ARLINGTON, Texas — With friends like that, Kirby Yates could have used a few enemies.

Facing the Texas Rangers for the first time since leaving them as a free agent, it took just seven pitches for Yates to undo an afternoon’s work, suffer his first blown save with the Dodgers and give up a two-run walk-off home run to Adolis Garcia as the Texas Rangers beat the Dodgers 4-3 on Saturday afternoon.

Leading 3-2 in the bottom of the ninth, the Dodgers’ nominal closer (Tanner Scott) was unavailable after pitching on three of the previous five days. Out went Yates for his first ninth inning with the Dodgers.

He looked vulnerable even while jumping out to an 0-and-2 count against Josh Smith. The left-handed hitter ripped a long fly ball down the right-field line that just curved foul — a reprieve that took a replay review to confirm.

Smith sliced Yates’ next pitch down the left-field line for a double, just the third hit given up by Yates in 15 at-bats by left-handed hitters.

Right-handed Garcia was next, and Yates left a 1-and-1 fastball over the heart of the plate. Garcia went deep in the heart of Texas, sending it 394 feet into the left-field seats and setting off the celebration among Yates’ former teammates. It was the first home run allowed by Yates since last August 29.

“It happened pretty quick,” Yates said. “I was in a pretty good count with Smitty. Hung back-to-back splits. He put two good swings on it. Dolie, I had him 1-and-1 and threw him a pretty good split. I thought that would kind of get him off the fastball. To his credit, he stayed on it, got one to hit and put a good swing on it.”

Yates has played for seven teams in 11 big league seasons, meaning he often faces former teammates. That doesn’t make it any easier.

“It’s always weird,” he said. “I’ve done this a few times now. I don’t really like facing your friends, know what I mean?”

His blown save didn’t make a friend out of Roki Sasaki, costing him a win on a day when he completed six innings for the first time and held the Rangers to just two hits despite decreased velocity on his pitches.

“I felt like I was able to do the job that I was supposed to do as a starting pitcher,” Sasaki said through his interpreter. “My command of my fastball and my offspeed were pretty good, so I’m really happy with that. I was surprised with the fastball velo in the first inning myself. But I was able to really kind of dig in to what I needed to do and make some mechanical changes. I was able to increase the velo a little bit. So I was pretty pleased with that as well. Overall, I think I was pretty happy.”

Sasaki’s fastball registered just 92-93 mph even as he retired the first six batters he faced. He averaged 96.9 mph over his first four starts. Andy Pages saved him at one point, going to the wall and robbing Corey Seager of a home run in the first inning.

The Dodgers got a two-run home run by Freddie Freeman and RBI double by Max Muncy in the fourth inning.