Get breaking news alerts and special reports. The news and stories that matter, delivered weekday mornings.

NEW YORK — The R-rated spy comedy "Kingsman: The Golden Circle" displaced the horror sensation "It" as the No. 1 film in North America, while the second "Lego Movie" spinoff of the year didn't assemble the expected audience.

"Kingsman: The Golden Circle" opened with a weekend-leading $39 million debut, according to studio estimates Sunday. But "It" still continues to pull in record crowds. With $30 million over the weekend, "It" is now the highest-grossing horror film of all time, not accounting for inflation, with $266.3 million thus far. (1973's "The Exorcist" grossed $232.9 million domestically, or more than $1 billion in 2017 dollars.)

Twentieth Century Fox's "Kingsman" sequel sought to expand on the 2015 original's $36.2 million opening, as well as its $414 million worldwide take. Matthew Vaughn's sequel returned stars Taron Egerton and Colin Firth while adding Channing Tatum, Halle Berry and others. It was made more for audiences than critics, and reviews for the gleefully distasteful spy romp were poor, at 51 percent fresh on Rotten Tomatoes.

Fox could celebrate an uptick the second time around, albeit a small one. "The Golden Circle" also debuted with $61 million overseas, giving it a $100 million global weekend. Vaughn is planning a third "Kingsman" film.

Let our news meet your inbox. The news and stories that matters, delivered weekday mornings. This site is protected by recaptcha

"We're 7 percent bigger than the last one, which opened on a holiday weekend," said Chris Aronson, distribution chief for Fox. "We grew the franchise. We're very happy."

The Stephen King adaptation "It," from Warner Bros. and New Line, may have slightly eaten into the ticket sales for "Kingsman." Few believed that "It" would still be such a draw in its third week of release; horror films usually drop sharply after release. But the film has already established itself as the biggest hit ever in the month of September — a welcome relief to Hollywood after a dismal August.

The "Lego Movie" spinoff "The Lego Ninjago Movie," was further off expectations, debuting at $21.2 million. Phil Lord and Chris Miller's "The Lego Movie" — the 2014 hit that made $469 million worldwide — kicked off a bustling franchise. "Ninjago," however, is the second spinoff of the calendar year, following February's "The Lego Batman Movie."

Channing Tatum poses for photographers at the premiere of 'Kingsman: The Golden Circle' in London on Sept. 18. Joel Ryan / AP

That release opened with $35 million and grossed $312 million in total — marks that it appears "Ninjago" will fall well short of. It may be two "Lego" movies in a year were too many.

"I was hoping we'd do more. I'm disappointed this weekend didn't come in a little higher," said Jeff Goldstein, Warner Bros.' distribution head. "We know that each one of these 'Lego' movies are different properties. This one played young."

In its second week of release, Darren Aronofsky's already infamous psychological thriller "mother!" failed to turn the tide. The film, which was made for $30 million, last week became one of the few movies to receive an "F" CinemaScore on release. The horror parable, starring Jennifer Lawrence, slid to sixth place, with $3.3 million, bringing its two-week haul to $13.4 million.

Paramount has proudly defended the film as intentionally divisive, daring filmmaking, the kind seldom produced by major studios.

But overall, theaters are suddenly flush again. Although the year is still 4.6 percent behind the pace of 2016, September is up by 20 percent, according to comScore.

"The fact that we're sitting here in September on the verge of what looks like a record-breaking month, powered by the unprecedented success of 'It,' tells you how quickly box office fortunes can rise and fall in this marketplace," said Paul Dergarabedian, a senior media analyst for comScore.

Estimated ticket sales for Friday through Sunday at U.S. and Canadian theaters according to comScore. Where available, the latest international numbers also are included. Final domestic figures will be released Monday.