SAN FRANCISCO (AP) — Matt Cain hit a three-run homer during his first win in more than two months, and the San Francisco Giants beat the Cincinnati Reds 9-7 on Tuesday night. The Giants broke out of their offensive funk with 13 hits and nine runs, the most by manager Bruce Bochy's club in nearly a month. Umpires initially ruled that Green hit into an inning-ending double play, but Bochy challenged second baseman Brandon Phillips' tag of Belt and got the call overturned. Reds starter Cody Reed (0-5) allowed six runs over five innings in his first career appearance against the Giants. Homer Bailey rejoined the Reds before the game following his latest rehab start in the minors and is likely to make his first start in the majors in more than 15 months on Sunday when Cincinnati ends its six-game road trip in San Diego.