LONDON -- Luis Scola scored 17 points, Manu Ginobili and Carlos Delfino added 16 apiece and Argentina held on down the stretch for an 82-77 quarterfinal win over Brazil in the Olympic men's basketball tournament on Wednesday, setting up a probable rematch with the U.S. in the semifinals.

Argentina lost to the Americans by 29 in the preliminary round finale.

But if the heavily favored U.S. defeats Australia in the late quarterfinal, the Argentines and Americans will meet in the semifinals for the third straight Olympics. Argentina won in 2004 at Athens, and the U.S. Redeem Team avenged that loss four years ago in Beijing on the way to winning gold.

Marcelinho Huertas and Leandro Barbosa had 22 points each for Brazil, which cut an 11-point deficit to three in the final two minutes but couldn't catch Argentina.

After the final horn sounded, Andres Nocioni raised his arms in triumph and he and his teammates began jumping as one near mid-court. Guard Pablo Prigioni grabbed the game ball and punted it into the stands like a soccer goalie.

As the final seconds ticked down, Argentina's fans sang "Cada dia te qui ero mas" (We love you more) to the players.

Ginobili, Scola, Delfino, Nocioni and Leonardo Gutierrez are fondly called "The Golden Generation" in their homeland for winning gold in Greece.

They've got a chance to do it again.

Late in the first half, U.S. stars LeBron James, Kevin Durant and several other American players, all wearing over-sized stereo headphones, walked in and took seats near one baseline to get a closer look at Brazil and Argentina. As soon as the first half ended, James left his seat and walked to the area where both team exited the floor.

As the players filed past, he nodded his head and swung his arms to the music's beat, his actions seeming to send a message: America's next.

In the opposite side of the bracket, Andrei Kirilenko scored 19 points and Timofey Mozgov added 17 as Russia, overlooked among the top medal contenders before arriving in England, moved into the semifinals with an 83-74 win over Lithuania.

The Russians will play Friday against Spain, a 66-59 winner over France in another quarterfinal game.

"This was a big step for our country, for our basketball," said Russian forward Sergei Monya.

Russia won its group in the preliminary round, beating medal favorites Brazil and Spain in the process. Those tight wins gained the Russians a few believers, but most international hoop experts didn't think they belonged in the same company with the Americans, Argentina, Spain, France or Brazil.

"We've been outside that circle," Russian coach David Blatt, who was born in the U.S., said earlier in the tournament.

Russia's now on the inside.

"We're thankful to win," said Blatt, who suffered a bloody nose in the rowdy post-game celebration. "It was not easy. We had to play our heart out."

After trailing by 14, Lithuania was within six in the fourth when Monya, who played for both Portland and Sacramento, hit a 3-pointer for Russia, and Kirilenko, who signed a two-year, $20 million contract with Minnesota this summer, converted a three-point play with 1:42 remaining.

Lithuania, which pushed the U.S. deep into the fourth quarter before losing 99-94 on Saturday, was still within five in the final minute. But a bad turnover and two missed free throws helped Russia go on a game-ending 6-0 run.

On the court afterward, players from two nations who used to play under the Soviet Union's red flag, embraced.

"Tough game," Kirilenko said. "They had a great game, we love them. But unfortunately they had to play us. We wish they were in a different quarterfinal."

Rimantas Kaukenas scored 19 and Darius Songaila 15 for Lithuania, which has not won a medal since getting bronze in 2000.

The Spaniards turned up their defensive pressure in the fourth quarter to take control of the game.

Marc Gasol scored 14 points, brother Pau had two huge blocked shots and Spain held France scoreless for nearly seven minutes.

Trailing 57-54 after Nicolas Batum's basket with 6:51 to play, Spain didn't allow another point until Mickael Gelabale's meaningless jumper with 5.5 seconds remaining, ending a two-game losing streak.

Juan Carlos Navarro added 12 points and Pau Gasol 10 for the Spanish, the 2008 silver medalists.

Tony Parker and Boris Diaw each scored 15 points for France, which grew frustrated at the finish and committed two unsportsmanlike fouls in the final half-minute.