; (III) of the bridge company while the trustee or the special trustee is a direct or indirect beneficial holder of more than 50 percent of the equity securities of— (aa) the bridge company; or (bb) the affiliate, if all of the direct or indirect interests in the affiliate that are property of the estate are transferred under section 1185; or (IV) of an affiliate while the trustee or the special trustee is a direct or indirect beneficial holder of more than 50 percent of the equity securities of— (aa) the bridge company; or (bb) the affiliate, if all of the direct or indirect interests in the affiliate that are property of the estate are transferred under section 1185. (2) A debt, contract, lease, or agreement described in this paragraph is— (A) any debt (other than capital structure debt), executory contract, or unexpired lease of the debtor (other than a qualified financial contract); (B) any agreement under which the debtor issued or is obligated for debt (other than capital structure debt); (C) any debt, executory contract, or unexpired lease of an affiliate (other than a qualified financial contract); or (D) any agreement under which an affiliate issued or is obligated for debt. (3) The stay under this subsection terminates— (A) for the benefit of the debtor, upon the earliest of— (i) 48 hours after the commencement of the case; (ii) assumption of the debt, contract, lease, or agreement by the bridge company under an order authorizing a transfer under section 1185; (iii) a final order of the court denying the request for a transfer under section 1185; or (iv) the time the case is dismissed; and (B) for the benefit of an affiliate, upon the earliest of— (i) the entry of an order authorizing a transfer under section 1185 in which the direct or indirect interests in the affiliate that are property of the estate are not transferred under section 1185; (ii) a final order by the court denying the request for a transfer under section 1185