(1) discloses any information furnished to him for, or in connection with, the preparation of any such return, or
(2) uses any such information for any purpose other than to prepare, or assist in preparing, any such return,
(1) Disclosure
Subsection (a) shall not apply to a disclosure of information if such disclosure is made—
(A) pursuant to any other provision of this title, or
(B) pursuant to an order of a court.
(2) Use
Subsection (a) shall not apply to the use of information in the preparation of, or in connection with the preparation of, State and local tax returns and declarations of estimated tax of the person to whom the information relates.
(3) Regulations
Subsection (a) shall not apply to a disclosure or use of information which is permitted by regulations prescribed by the Secretary under this section. Such regulations shall permit (subject to such conditions as such regulations shall provide) the disclosure or use of information for quality or peer reviews.