– In spurts, Elijah Stewart felt bone-tired. His voice was nearly gone, too. His mind wandered to last season's triple-overtime loss to Colorado, too.

In the end, Stewart shoved everything aside and hit the go-ahead free throws with 22 seconds left in the fourth overtime, helping Southern California edge No. 7 Arizona 103-101 Saturday to improve to 11-0 at home for the first time since 1973-74.

"I was thinking to just make the free throws, black out and make muscle memory kick in," Stewart said. "I'm glad I made them."

Arizona's Gabe York dribbled around as the clock wound down before Jordan McLaughlin knocked the ball away and the Wildcats recovered only to see Kadeem Allen's three-point attempt fall short at the buzzer, ending an exhausting 60 minutes of action.

"It was a battle of wills to the end," Arizona coach Sean Miller said.

It was the first quadruple-OT game in Arizona history and the third for USC. The last time the Trojans went that long, they beat crosstown rival UCLA 80-78 in 1985. Arizona's previous longest game was three OTs in 2010-11.

Stewart scored a career-high 27 points for the Trojans (14-3, 3-1 Pac-12), who blew a 12-point lead with 5 ½ minutes to go in regulation. They ended a three-game skid against Arizona.

"I'm ready to go again," McLaughlin said. "It was our biggest win."

Allonzo Trier scored 25 points and York added 21 in a game-high 55 minutes for the Wildcats (13-3, 1-2). They ended a lost weekend in Los Angeles, having been beaten by three points at UCLA on Thursday.

"We're not good enough," York said. "We got to all look at ourselves in the mirror, especially me. I didn't answer the bell for my team in both games."

Arizona's Ryan Anderson had his streak of five straight games with double-doubles stopped when he was held to a season-low five points on just seven shots.

In the fourth OT, Trier's basket gave Arizona a 99-97 lead. The Trojans got two free throws from Nikola Jovanovic and Stewart scored on a layup to make it 101-99. Kaleb Tarczewski tied it for the last time on a pair of free throws before Justin Simon's foul sent Stewart to the line and he made the winning free throws.