"If you do secure pay transactions, whether it's on your credit card or on your smart mobile device, we make the chip that does that," Caulfield said. "Do you like the photographs your camera takes? Well, we make image sensor processors that drive that camera. Do you like the battery life on your phone? We make the PMICs, the power management ICs that make sure that power is managed on these devices."

During the 2021 chip shortage, GlobalFoundries told CNBC it . That same year, the company on the Nasdaq.

"Ultimately, we really need these chips," said Daniel Newman, CEO of research firm Futurum Group. "We found that out because we had parking lots full of pickup trucks that couldn't be shipped because they couldn't put the ECU in or they couldn't install power seats. So GlobalFoundries had a really strong market requirement."

GlobalFoundries is the only one of the world's top five chip foundries based in the U.S. The other four are in China, with fabs in South Korea and the U.S., and and TSMC, which are both in Taiwan.

"Not only do we have a high concentration of semiconductor manufacturing in Taiwan between TSMC and UMC, but TSMC is twice the size of the other four companies combined," Caulfield said.

TSMC makes of the world's most-advanced microchips, creating vulnerability during supply chain backlogs as well as risks tied to China's continued threats to invade Taiwan. Like GlobalFoundries, TSMC also makes older nodes. Caulfield said GlobalFoundries is absolutely going after TSMC.

"Not only do we have aspirations, we think in certain areas we've won," Caulfield said. He pointed to his company's radio frequency chips and silicon on insulator technology.

"Silicon on insulator is a huge differentiator when it comes to power, and TSMC doesn't use that," Moorhead said.

At a time of geopolitical turmoil, GlobalFoundries is investing about $7 billion to add capacity in parts of the world with lower risk.

In Singapore, the company just completed a that it says makes it the country's most-advanced fab. In June, it with to build a jointly owned fab in Crolles, France.

Not all global expansion endeavors have gone smoothly, however. In 2017, GlobalFoundries made big plans for a fab in Chengdu, China. In 2020, it .

"It turned out we had three relatively large facilities around the world already that were severely underloaded," Caulfield said. "Adding more capacity at a time when we couldn't fill our existing capacity was just going to create a bigger economic hole for us."

The U.S. has recently enacted a series of export bans on chip companies sending advanced tech to China. By only producing older nodes, GlobalFoundries says it's been "very minimally" impacted.

Although GlobalFoundries' chips are considered legacy nodes, the process and resources needed are still incredibly complex. Caulfield said each silicon wafer goes through at least 1,000 steps over 90 days in the Malta fab. The process requires extensive cleaning, cooling and chemical treatment, which uses a lot of water. GlobalFoundries says Fab 8 uses about 4 million gallons of water a day, reclaiming 65% of that.

"Upstate New York is a very good place for access to high-quality and abundant water," Caulfield said.

All the heavy machinery also requires about 2 gigawatts of power per day, according to Hui Peng Koh, who heads up the Malta fab. She said it's enough power to "run a small city."

"I would say our lowest-cost power is in the U.S.," Caulfield said. "A lot of our power in upstate New York, where this facility is at, comes from hydroelectric, so it's a greener power. In both Europe and Singapore, much of that power comes off of natural gas."

Then there's the manpower. GlobalFoundries has 13,000 employees worldwide. About 1,500 people report to Koh in Malta. She told CNBC it's "challenging to attract talent to this part of the world."

GlobalFoundries recently established the to help develop a semiconductor workforce in Vermont and New York. In July, TSMC for delays to its fab being built in Arizona.

The high cost of materials and construction work also make , so public subsidies have been key for reshoring production. GlobalFoundries said New York pitched in more than $2 billion for the Malta fab. The company also from the $52 billion national CHIPS and Science Act. Focusing on 12-nanometer and above also helps the company keep costs down.

GlobalFoundries said it's putting out 400,000 wafers per year from its Malta fab. While Caulfield wouldn't put a dollar figure on the wafers, he said at any given time, there's "about a half-billion dollars worth of inventory that's running over those 90 days to create product."

GlobalFoundries' main customers for this massive output of essential chips are the world's largest fabless chip companies, including , AMD, and .

Eventually, many of its chips end up in the auto, aerospace, and U.S. defense industries.

GlobalFoundries is known for making "specialty chips" in big, exclusive deals, like one with for onshoring production of certain chips, and a recent $3 billion agreement with the .

Newman said GlobalFoundries has around 50 such long-term agreements.

"Effectively they're saying, 'We will create a stable margin commitment capacity and if the market shifts, we're going to stand by the letter of our agreement,'" he said.

For companies hit hardest by the chip shortage, a deal with GlobalFoundries is a hedge against it happening again. In February, set aside exclusive production capacity at the Malta fab.

"GM, their lines got held up for very low-cost components because they couldn't get enough," Moorhead said. "What GM decided is that this is too much supply chain risk. We're going to go directly to GF."

GlobalFoundries says automotive is one of its fastest-growing segments. It makes many different kinds of chips for cars: the microcontrollers for power seats, airbags and braking; the sensing chips for cameras and Lidar; and battery management chips for electric vehicles.

Meanwhile, the growth of GlobalFoundries' smartphone business is decelerating, alongside an . GlobalFoundries laid off 800 employees in December and January, and issued for the third quarter.

"Smart mobile devices last year represented 46% of our revenue," Caulfield said. "While it grew last year, it was 50% the year before. So we've been trying to build our other business and to get more balanced, rather than having such a high exposure to smart mobile devices."