EXCLUSIVE: Lionsgate is circling Relativity’s 40-plus title library — which includes films such as Limitless and Act of Valor — after it has become clear that CEO Ryan Kavanaugh’s company is backed into a financial corner with cash flow rapidly declining.

A Chapter 7 (liquidation) is on the horizon and could be filed before year’s end, sources tell Deadline, which if so would come only months after Relativity emerged from Chapter 11 restructuring in April. While multiple sources said Relativity is nearing its end, one source said they are desperately trying to refinance. In the meantime, the company made its payroll today.

Restructuring company Zolfo Cooper is on board, and it would not be if Relativity could stand on its own. Joe Nicholas, who had been pumping millions into the studio to help keep it afloat, exited his post as co-CEO earlier this month.

Senior lender Anchorage Capital — which remains involved financially in Relativity via RM Bidder — would have first lien if a Chapter 7 filing proceeds. Anchorage declined comment.

Lionsgate is said to have a serious interest in the Relativity library. Lionsgate had no comment. A source told Deadline the library also carries with it some debt. Kavanaugh did not return inquiries for comment.

Sources said to expect a resolution for Relativity before year’s end, which could send a number of executives and projects back out into the marketplace. The company still has the Halle Berry-starring Kidnap on its slate to release December 2, while Mike Flanagan’s Before I Wake starring Kate Bosworth and Thomas Jane has been taken off the release schedule entirely.

Relativity and its lawyers told the U.S. Bankruptcy Court in New York early this year they were optimistic about the company and its financial prospects. The company’s now struggling to meet its debt obligations. The next hearing on the company in the court is October 20 for Relativity Holdings v. VII Peaks Capital.

Since re-emerging from Chapter 11, Relativity has opened two films — and both bombed. The Disappointments Room grossed only $1.4 million in its opening weekend on a $15M budget, and the ensemble comedy Masterminds has taken in a total of $14.2M to date after papers submitted to the bankruptcy court said that the studio was estimating $125.4M in lifetime revenues from the film against $78,346 in distribution costs.

“This could be the fastest out-of-bankruptcy-and-back-in-again in corporate history,” said one executive with knowledge of Relativity’s financials. For the sake of all the employees who would be facing layoffs, we hope not.

Here’s a look of Relativity film’s box office performance, in a chart compiled by my colleague Anthony D’Alessandro:

Relativity’s Top 5 Films

thumb film release opening weekend gross
Immortals 11/11/2011 $32.2M $83.5M
Limitless 3/18/2011 $18.9M $79.2M
Safe Haven 2/14/2013 $21.4M $71.3M
Act of Valor 2/24/2012 $24.5M $70M
Mirror Mirror 3/30/2012 $18.1M $64.9M
Source: ComScore

Relativity’s Lowest Grossing Movies

thumb film release opening weekend gross
The Disappointments Room 9/9/16 $1.4M $2.4M
Romeo & Juliet 10/11/13 $520K $1.16M
Hector and the Search for Happiness 9/19/14 $40K $1.12M
Machine Gun Preacher 9/23/11 $45K $539K
Desert Dancer 4/10/15 $41K $155K
Source: ComScore