If the taxpayer establishes to the satisfaction of the Secretary that any amount distributed by a passive foreign investment company is paid out of earnings and profits of the company which were included under subsection (a) in the income of any United States person, such amount shall be treated, for purposes of this chapter, as a distribution which is not a dividend; except that such distribution shall immediately reduce earnings and profits. If the passive foreign investment company is a controlled foreign corporation (as defined in section
957
(a)), the preceding sentence shall not apply to any United States shareholder (as defined in section
951
(b)) in such corporation, and, in applying section
959 to any such shareholder, any inclusion under this section shall be treated as an inclusion under section
951
(a)(1)(A).