171c. (a) (1) Any person who brings a loaded firearm into, or possesses a loaded firearm within, the State Capitol, any legislative office, any office of the Governor or other constitutional officer, or any hearing room in which any committee of the Senate or Assembly is conducting a hearing, or upon the grounds of the State Capitol, which is bounded by 10th, L, 15th, and N Streets in the City of Sacramento, shall be punished by imprisonment in a county jail for a period of not more than one year, a fine of not more than one thousand dollars ($1,000), or both such imprisonment and fine, or by imprisonment pursuant to subdivision (h) of Section 1170.
(2) Any person who brings or possesses, within the State Capitol, any legislative office, any hearing room in which any committee of the Senate or Assembly is conducting a hearing, the Legislative Office Building at 1020 N Street in the City of Sacramento, or upon the grounds of the State Capitol, which is bounded by 10th, L, 15th, and N Streets in the City of Sacramento, any of the following, isguilty of a misdemeanor punishable by imprisonment in a county jail for a period not to exceed one year, or by a fine not exceeding one thousand dollars ($1,000), or by both that fine and imprisonment, if the area is posted with a statement providing reasonable notice that prosecution may result from possession of any of these items:
(A) Any firearm.
(B) Any deadly weapon described in Section 653k or 12020.
(C) Any knife with a blade length in excess of four inches, the
blade of which is fixed or is capable of being fixed in an unguarded position by the use of one or two hands.