Coordination with recognition of gain attributable to depreciation
For purposes of this paragraph—
(i)#
subparagraph (A) shall be applied after the application of subsection (d)(6), and
(ii)#
subparagraph (B) shall be applied without regard to any gain to which subsection (d)(6) applies.