Game 40: For Dodgers, the new normal is worse than the old normal.

SAN FRANCISCO — Remember the good old days, when the Dodgers had the best offense of any club in a generation, averaging five runs a game?

They still are averaging five a game, remarkably. You wonder where that team was the last few days. Thursday, Madison Bumgarner piled on to Clayton Kershaw’s season-long misery by hitting a home run, something the Dodgers forgot how to do while getting swept at AT&T Park.

Hyun-Jin Ryu and Erisbel Arruebarrena — remember him? — won’t be seen in a Dodgers uniform again this year.

I’ll post some quarter-pole-of-the-season thoughts here in a bit.

Hyun-Jin Ryu has his left shoulder labrum repaired, won’t return until 2016. Update.

SAN FRANCISCO — Dodgers pitcher Hyun-Jin Ryu is out of shoulder surgery and the results matched the expectations. The left-hander needed a repair of his left labrum and will not pitch again until 2016.

The surgery was performed in Los Angeles by team physician Dr. Neal ElAttrache.

“It went as well as could be expected,” Dodgers manager Don Mattingly said. “They felt he could be ready to pitch next year, in spring training.

Ryu, 28, faced a bleak outlook after being unable to throw off a mound since his last bullpen session May 1. Dodgers president of baseball operations Andrew Friedman said Tuesday the possibility of surgery only came up in recent days.

“Stan (Conte, the Dodgers’ head athletic trainer) was optimistic and upbeat about it being as good as it could possibly be,” Mattingly said. “For someone who had to have surgery, it sounded like it was a really good result.”

Update (1 p.m.): The Dodgers’ press release announcing the surgery contained no new information. Ryu’s final diagnosis was a torn labrum.

Game 39: Good news for people who love bad news.

SAN FRANCISCO — What would you like first, the bad news or the bad news?

The Dodgers are bracing for Hyun-Jin Ryu’s season to be officially over once he has surgery tomorrow.

The Giants can sweep the Dodgers for the second time this season if Madison Bumgarner beats Clayton Kershaw tomorrow. Wednesday’s box score is here.

So yeah, tomorrow should be fun.