((a)) The trustee shall distribute customer property ratably to customers on the basis and to the extent of such customers’ allowed net equity claims and in priority to all other claims, except claims of the kind specified in that are attributable to the administration of such customer property.
((b))
((1)) The trustee shall distribute customer property in excess of that distributed under subsection (a) of this section in accordance with .
((2)) Except as provided in , if a customer is not paid the full amount of such customer’s allowed net equity claim from customer property, the unpaid portion of such claim is a claim entitled to distribution under .
((c)) Any cash or security remaining after the liquidation of a security interest created under a security agreement made by the debtor, excluding property excluded under , shall be apportioned between the general estate and customer property in the same proportion as the general estate of the debtor and customer property were subject to such security interest.