Sounds perfect for a factoring agreement.
The chapter 11 offers additional protection for the lender if approached properly.