; and (II) has been designated in writing by the Inspector General, through an order of succession or otherwise, as the first assistant to the position of Inspector General; or (ii) if the Inspector General has not made a designation described in clause (i)(II)— (I) the Principal Deputy Inspector General of that Office, as of the day before the date on which the Inspector General dies, resigns, or otherwise becomes unable to perform the functions and duties of that position; or (II) if there is no Principal Deputy Inspector General of that Office, the Deputy Inspector General of that Office, as of the day before the date on which the Inspector General dies, resigns, or otherwise becomes unable to perform the functions and duties of that position. (B) Inspector general The term Inspector General — (i) means an Inspector General who is appointed by the President, by and with the advice and consent of the Senate; and (ii) includes the Inspector General of an establishment, the Special Inspector General for the Troubled Asset Relief Program, and the Special Inspector General for Pandemic Recovery. (2) Death, resignation, or inability to perform functions If an Inspector General dies, resigns, or is otherwise unable to perform the functions and duties of the position— (A) section 3345(a) of this title and section 103(e) of the National Security Act of 1947 ( 50 U.S.C. 3025(e) ) shall not apply; (B) subject to paragraph (4), the first assistant to the position of Inspector General shall perform the functions and duties of the Inspector General temporarily in an acting capacity subject to the time limitations of section 3346 of this title