Dean Foods Photo by Jessica Rinaldi/The Boston Globe via Getty Images

DALLAS (AP) — Dean Foods is filing for Chapter 11 bankruptcy protection and may sell the company off to the Dairy Farmers of America.

The company said Tuesday that it needs to address debt and unfunded pension obligations while it puts the company up for sale.

Dean Foods Co. has lost money in eight of its last 10 quarters and in seven of its last eight quarters, it’s posted declining sales.

The company has received a commitment of about $850 million in debtor-in-possession financing from certain existing lenders.

Dean Foods, which named Eric Berigause as its new CEO in July, said its business is operating normally while it reorganizes.