SAO PAULO - Brazilian restaurant chain operator Zamp has agreed to buy the rights to operate the Starbucks brand and some stores in the South American country, it said on Thursday, sending its shares soaring.

Zamp, which is controlled by Abu Dhabi state investor Mubadala, operates Burger King and Popeyes restaurants in Latin America's largest economy, and had disclosed in February it was in talks for the Starbucks deal.

The firm in a securities filing said the 120 million-real ($22.7 million) deal was signed with SouthRock, the company that currently owns the rights and assets and has been in bankruptcy protection since last year.

Sao Paulo-traded shares of Zamp jumped as much as 17.2% after the announcement.

It is not yet known exactly how many of the more than 100 Starbucks stores in the country Zamp would buy, the company said.

As required by SouthRock's bankruptcy proceedings, the deal would be implemented through a competitive process in which Zamp would have the right to match potentially higher bids, according to the filing.

Zamp said the deal requires approval from Brazil's antitrust watchdog CADE and the court overseeing SouthRock's bankruptcy.

It also needs a final agreement with Starbucks, which has so far agreed to an initial deal authorizing Zamp to explore the brand and develop operations of the coffee shop chain in Brazil.

A Starbucks spokesperson confirmed the company has been "in conversations with Zamp to directly manage Starbucks retail cafes across Brazil."

SouthRock did not immediately respond to a request for comment.

($1 = 5.2991 reais)

(Reporting by Andre Romani; Editing by Gabriel Araujo, Kirsten Donovan and Chris Reese)