WASHINGTON — The Pentagon’s latest deal with Lockheed Martin for new F-35 jets includes some for Turkey, raising the question of what will happen if the country is pushed out of the program.

The handshake agreement announced Monday totals about $34 billion for 478 new F-35s over lots 12 through 14, including about five to 10 jets for Turkey per lot, one source told Defense News.

But that might not complicate the process of finalizing the contract agreement, aerospace analysts and other sources close to the program said — even as the Defense Department begins “unwinding” Turkey’s participation in the program.

At issue is Turkey’s purchase of the S-400, a Russian air defense system that U.S. and NATO officials say is at odds with the alliance’s plan to field the F-35. Despite months of discussions between Ankara and Washington, Turkish leaders have emphatically maintained that it will not cancel the S-400 order.

In response, acting U.S. Defense Secretary Patrick Shanahan on June 6 approved a plan to strip Turkey from the F-35 program. Turkish pilots and maintainers undergoing training at U.S. bases are required to leave the United States by July 31, and contracts with Turkish defense companies could end in 2020.

Ankara has since doubled down on its intent to buy the S-400. Turkish President Recep Tayyip Erdogan said Wednesday that the purchase is already “a done deal” and that the Russian air defense system will be delivered in July, according to Reuters.

“We will call to account in every platform Turkey being excluded from the F-35 program for reasons without rationale or legitimacy,” Erdogan said.

So what if Turkey leaves?

Sources told Defense News that Turkey’s potential exit from the program isn’t expected to have much of an impact on the deal for lots 12 through 14.

The Pentagon hasn’t provided exact costs per unit for the new F-35s, but it has acknowledged that unit flyaway costs will decrease by about 8.8 percent in Lot 12, made up of 157 jets. The department also estimates unit prices will drop by about 15 percent from Lot 11 to Lot 14 across all variants.

By that framework, F-35 customers will be able to buy an F-35A conventional-takeoff-and-landing model for less than $80 million by Lot 13 — one year earlier than expected. That isn’t expected to change, even if Turkey is knocked from the program, a department source said.

Rebecca Grant of IRIS Independent Research said it’s likely the number of jets and the negotiated prices in the handshake agreement will stand, adding that the Defense Department still has options on the table.

“They can let Turkey go ahead and have those jets [and] park them in the desert [until this issue is resolved]. They can switch to a customer that wants earlier deliveries — also an option,” she said.

Dealing with these types of problems isn’t new for the United States, added Grant, who pointed to the U.S. arms embargo on Pakistan in 1990, which resulted in the country’s F-16s being placed into storage.

Richard Aboulafia, an aerospace analyst at the Teal Group, said there are multiple ways for the Pentagon to deal with the fallout of a Turkish exit from the program.

Countries like Singapore and Poland, which have expressed interest in buying F-35s, could join the program and pick up the slack. If Congress adds F-35s to upcoming budget cycles — which has been typical in recent years — the U.S. armed services could buy Turkey’s jets.

“I really don’t see it as a challenge,” Aboulafia said. “This is not the same as building white tails in the commercial aviation business.”

Another option was outlined by Marillyn Hewson, the head of F-35 manufacturer Lockheed Martin, in May: Sell Turkey’s jets to existing international customers.

“It’s not a significant number of aircraft that if there was a sanction that they couldn’t receive those aircraft now or in the future; it will be backfilled,” she said at Bernstein’s Strategic Decisions Conference, according to Defense One. “In fact, a lot of countries say: ‘We’ll take their [production line] slots.’ They [other countries] really want the aircraft. I don’t envision that being an impact on us from a Turkey standpoint.”

U.S. officials remain hopeful that Turkey will cancel its S-400 order, and they have made it clear that Turkey’s participation in the F-35 program will continue if that happens.

“Turkey still has the option to change course. If Turkey does not accept delivery of the S-400, we will enable Turkey to return to normal F-35 program activities,” Ellen Lord, the Pentagon’s acquisition chief, said June 7.

The U.S. government is no rush to expel Turkey from the program, Grant said. Including Turkey in the current contract negotiations helps send that message.

“We need Turkey in NATO, and we’d like to see a Turkish Air Force with F-35s,” she said. “This is going to take some diplomacy.”

Aboulafia noted that Turkey benefits from its involvement in the F-35 program, with its companies manufacturing parts for the jet’s F135 engine and a second supplier providing the center fuselage. The country has made the development of its defense industry a priority, and risks becoming a cottage industry if it alienates its NATO allies, he said.

“This does not do it any favors. They are going to have to line up partners and programs very fast," he added.

But the prospect of a happy resolution is looking increasing grim, he said.

“There is no room for compromise [on the U.S. side], and on the other side you have a populist, who is making this a test of his leadership. There is a lot of ego here.”