Chapter 70:
http://leg1.state.va.us/000/reg/TOC19030.HTM#C0070
LOL...No muffler passes the state inspection but is not allowed by VA Code.
VA CODE § 46.2-1047: Muffler cutout, etc., illegal. It shall be unlawful to sell or offer for sale any (i) muffler without interior baffle plates or other effective muffling device or (ii) gutted muffler, muffler cutout, or straight exhaust. It shall be unlawful for any person to operate on the highways in the Commonwealth a motor vehicle, moped, or motorized skateboard or scooter equipped with a gutted muffler, muffler cutout, or straight exhaust.
Bet this code number is on your ticket. You could argue to the court the code doesn't meet the standard of the inspection code.
§ 46.2-1000. Department to suspend registration of vehicles lacking certain equipment; officer to take possession of registration card, license plates and decals when observing defect in motor vehicle; when to be returned.
The Department shall suspend the registration of any motor vehicle, trailer, or semitrailer which the Department or the Department of State Police determines is not equipped with proper (i) brakes, (ii) lights, (iii) horn or warning device, (iv) turn signals, (v) safety glass when required by law, (vi) mirror, (vii) muffler, (viii) windshield wiper, (ix) steering gear adequate to ensure the safe movement of the vehicle as required by this title or when such vehicle is equipped with a smoke screen device or cutout or when such motor vehicle, trailer, or semitrailer is otherwise unsafe to be operated.
Any law-enforcement officer shall, when he observes any defect in a motor vehicle as described above, take possession of the registration card, license plates, and decals of any such vehicle and retain the same in his possession for a period of fifteen days unless the owner of the vehicle corrects the defects or obtains a new safety inspection sticker from an authorized safety inspection station. When the defect or defects are corrected as indicated above the registration card, license plates, and decals shall be returned to the owner.