By Bernie Wilson

The Associated Press

LOS ANGELES — Jimmy Garoppolo went out with a flourish, leading the suddenly exciting San Francisco 49ers to their fifth straight win to end the season.

Now he heads into the offseason while Jared Goff, Todd Gurley and the rest of the Los Angeles Rams head into the franchise’s first playoff appearance since the 2004 season.

Garoppolo passed for 292 yards and two touchdowns to lead the 49ers to a 34-13 victory Sunday against a Rams team that chose to rest its big stars for the playoffs, including Goff, Gurley and Aaron Donald.

The Rams (11-5), who clinched the NFC West last weekend, got everything they hoped for: healthy players and the NFC’s No. 3 seed. They will host the Atlanta Falcons on Saturday night.

First-year coach Sean McVay called the loss “humbling” but did not second-guess the decision to rest the stars.

“You certainly try to win the game,” he said, “but when you look at the way we approached it, we feel good about being able to allow some of players to get some rest, some recovery time that I think is much needed for those guys, and then you keep a couple of guys out of harm’s way.”

McVay welcomed the challenge of playing the Falcons, adding: “Our players will be juiced up to be able to get this preparation going and I know our coaches certainly feel that way, too.”

The 49ers (6-10) finished last in the division but have hope with Garoppolo, who was Tom Brady’s backup with New England before being acquired on Oct. 31. He threw touchdown passes of 8 yards to Marquise Goodwin — who later left with a concussion after a brutal hit by Blake Countess — and 12 yards to Aldrick Robinson. Both receivers were wide open.

Garoppolo completed 20 of 33 passes, looking confident and making some brilliant throws. He also was intercepted twice.

“We could keep going,” Garoppolo said. “It’s unfortunate that our season comes to an end like this, but hopefully for next year we keep this good thing going.”

19160870