Exceptions to penalty for possession in a county courthouse or state capitol. The provisions of § 22-14-23 do not apply to: (1) The lawful performance of official duties by an officer, agent, or employee of the United States, the state, political subdivision thereof, or a municipality, who is authorized by law to engage in or supervise the prevention, detection, investigation, or prosecution of any violation of law or who is an officer of the court; (2) The possession of a firearm or other dangerous weapon by a judge or magistrate; (3) The possession of a firearm or other dangerous weapon by a federal or state official, or by a member of the armed services, if such possession is authorized by law; (4) The possession of a concealed pistol in the state capitol by a qualified law enforcement officer or a qualified retired law enforcement officer in accordance with the Law Enforcement Officers Safety Act of 2004, 18 U.S.C. § 926B-C; (5) The possession of a concealed pistol anywhere in the state capitol, other than in the Supreme Court chamber or other access-controlled private office under the supervision of security personnel, by any person not otherwise referenced in this section, provided: (a) The person possessing the concealed pistol holds an enhanced permit issued in accordance with § 23-7-53; (b) At least twenty-four hours prior to initially entering the state capitol with a concealed pistol, the person notifies the superintendent of the Division of Highway Patrol, orally or in writing, that the person intends to possess a 26 Catchlines are not law. (§ 2-16-13.1) concealed pistol in the state capitol; (c) The Except as otherwise provided in subsection (d), the notification required by this subdivision includes : (i) Includes the date on which or the range of dates during which the person intends to possess a concealed pistol in the state capitol, provided the range of dates may not exceed thirty consecutive days; and (ii) May be renewed as necessary and without limit; (d) The In the case of a person who meets the requirements of subsections (a) and (b) of this subdivision and is in possession of a state capitol access control card, the notification required by the this subdivision may be renewed, as necessary and without limit includes the date on which or the range of dates during which the person intends to possess a concealed pistol in the state capitol, provided the range of dates may not extend beyond December thirty- first of each year; and (6) The lawful carrying of a firearm or other dangerous weapon in a county courthouse incident to a hunter safety or a gun safety course or for any other lawful purposes. 17