of dividends received by domestic corporations from specified 10-percent owned foreign corporations (a) In general In the case of any dividend received from a specified 10-percent owned foreign corporation by a domestic corporation which is a United States shareholder with respect to such foreign corporation, there shall be allowed as a deduction an amount equal to the foreign-source portion of such dividend. (b) Specified 10-percent owned foreign corporation For purposes of this section— (1) In general The term specified 10-percent owned foreign corporation means any foreign corporation with respect to which any domestic corporation is a United States shareholder with respect to such corporation. (2) Exclusion of passive foreign investment companies Such term shall not include any corporation which is a passive foreign investment company (as defined in section 1297) with respect to the shareholder and which is not a controlled foreign corporation. (c) Foreign-source portion For purposes of this section— (1) In general The foreign-source portion of any dividend from a specified 10-percent owned foreign corporation is an amount which bears the same ratio to such dividend as— (A) the undistributed foreign earnings of the specified 10-percent owned foreign corporation, bears to (B) the total undistributed earnings of such foreign corporation. (2) Undistributed earnings The term undistributed earnings means the amount of the earnings and profits of the specified 10-percent owned foreign corporation (computed in accordance with sections 964(a) and 986)— (A) as of the close of the taxable year of the specified 10-percent owned foreign corporation in which the dividend is distributed, and (B) without diminution by reason of dividends distributed during such taxable year. (3) Undistributed foreign earnings The term undistributed foreign earnings means the portion of the undistributed earnings which is attributable to neither— (A) income described in subparagraph (A) of section 245(a)(5), nor (B) dividends described in