(3)
It shall be an affirmative defense to charges brought under this section that the transportation of an assault weapon:
(a)
Is through the city by a nonresident who is in legal possession of an assault weapon; or
(b)
Is by a person carrying a permit issued under subsection (f) and the transportation is for one (1) of the following purposes:
i.
In aid of the civil power when thereto legally summoned;
ii.
To a bona fide hunting trip for wild game, or to a legitimate sporting use of such weapon, including shooting matches or target trap or skeet shooting. All weapons carried for such purposes shall be unloaded;
iii.
While transporting such weapon to or from a place for sale outside the city or for repair. All weapons carried for such purposes shall be unloaded at all times;
iv.
As a member of the armed forces of a state or of the federal government while engaged in the lawful performance of duty;
v.
In conjunction with moving personal property, including such weapon, from an old residence to a new residence. All weapons carried for such purposes shall be unloaded at all times.