NEW YORK — Apple has its first box-office hit.

“F1 The Movie” debuted with $55.6 million in North American theaters and $144 million globally over the weekend, according to studio estimates Sunday, handing the tech company easily its biggest opening yet.

Though Apple Original Films has had some notable successes in its six years in Hollywood — including the 2021 Oscar-winner “CODA” — its theatrical results have been decidedly mixed. Misfires like “Argylle” and “Fly Me to the Moon” and big-budget awards plays like Ridley Scott’s “Napoleon” and Martin Scorsese’s “Killers of the Flower Moon” have been better at driving viewers to Apple TV+ than movie theaters.

But “F1” was Apple’s first foray into summer blockbuster territory. It won a bidding war for the project from much of the production team behind the 2022 box-office smash “Top Gun: Maverick.” Apple then partnered with Warner Bros. to distributed the film starring Brad Pitt, Damson Idris and Kerry Condon.

With a production budget over $200 million, “F1” still has several laps to go to turn a profit. But for now, “F1” is full speed ahead.

As in “Top Gun: Maverick,” the filmmakers sought an adrenaline rush by placing IMAX cameras inside the cockpit in “F1.” IMAX and large-format screens accounted for 55% of in its ticket sales. IMAX, whose screens are much sought-after in the summer, has carved out a three-week run for the movie.

Warner Bros. expected “F1” to perform well overseas, where the sport is more popular than it is in the U.S.

Universal’s “M3gan 2.0” had been expected to pose a greater challenge to “F1.” Instead, the robot doll sequel didn’t come close to matching the 2022 original’s box-office launch.

“M3gan 2.0” collected $10.2 million in 3,112 theaters. Memes and viral videos helped propel the first “M3gan” to a $30.4 million opening and a total haul of $180 million, all on a $12 million budget.

The film, written and directed by Gerald Johnstone, cost only $25 million to make. A spinoff titled “Soulm8te” is scheduled for release next year.

M3gan 2.0” ended up in fourth place. The box-office leader of the last two weekends, “How to Train Your Dragon,” slid to second with $19.4 million.

After a debut that marked a new low for Pixar, the studio’s “Elio” gathered up $10.7 million in sales in its second weekend.