SAN FRANCISCO (AP) – Mark Trumbo regained the major league lead with his 33rd home run and the Baltimore Orioles moved back into first place in the AL East with a 5-2 victory over the San Francisco Giants on Friday night.

Trumbo’s two-run homer in the third inning off Giants starter Matt Cain traveled an estimated 441 feet, landing near the back of the stands in left field. Earlier Friday, Toronto’s Edwin Encarnacion hit his 32nd home run to tie Trumbo for the MLB lead.

The Orioles’ win, coupled with the Blue Jays’ 5-3 home loss to Houston, moved Baltimore back into first place by a half-game over Toronto. The Giants retained their one-game lead in the NL West over the Los Angeles Dodgers, who lost 5-1 at home to Pittsburgh.

Chris Davis led off the fifth with his 24th homer of the season for the Orioles, who are 4-4 on a 10-game road trip that ends Sunday in San Francisco.

Matt Wieters and Adam Jones had RBIs in the Orioles’ two-run second.

Denard Span drove in San Francisco’s first run with a third-inning double. Brandon Belt added an RBI single in the ninth.

Dylan Bundy (6-3), making his sixth career start, allowed one run and three hits in 5 2-3 innings for Baltimore. Zach Britton got the final three outs for his AL-leading 36th save. He has not blown a save this season, and hasn’t allowed an earned run in his last 40 games.

Cain (4-7), who had won his previous three starts, gave up five runs and 11 hits in four-plus innings.

The Giants have lost eight of their last 10 interleague games.

TRAINER’S ROOM

Orioles: Manager Buck Showalter said RHP Darren O’Day was sent home to Baltimore for tests after experiencing shoulder discomfort in Thursday’s relief appearance at Oakland. … Showalter said INF Steve Pearce, who has missed four games with an injured flexor tendon in his right arm, should be ready to return Saturday.

Giants: Manager Bruce Bochy said there’s no date set for the return of RHP Cory Gearrin, who has made five relief appearances at Triple-A Sacramento while rehabbing from a right shoulder strain.

UP NEXT

Orioles: Kevin Gausman (3-9, 4.02 ERA) starts Saturday against the Giants. He is tied for the team lead with quality starts in 60 percent of his 20 outings this season.

Giants: Madison Bumgarner (10-7, 2.20) makes his 25th start of 2016 on Saturday. The Giants have lost his last five starts, including a 1-0 complete game defeat at Washington last Sunday.