29800.
(a) (1) Any A person who has been convicted of of, or has an outstanding warrant for, a felony under the laws of the United States, the State of California, or any other state, government, or country, or of an offense enumerated in subdivision (a), (b), or (d) of Section 23515, or who is addicted to the use of any narcotic drug, and who owns, purchases, receives, or has in possession or under custody or control any firearm is guilty of a felony. country and who owns, purchases, receives, or has in possession or under custody or control any firearm is guilty of a felony. A second or subsequent conviction for the offense specified in this paragraph is a felony punishable by imprisonment for four, five, or six years. (2) Any A person who has two or more convictions for violating been convicted of a misdemeanor violation of paragraph (2) of subdivision (a) of Section 245, a misdemeanor violation of Section 246, or a misdemeanor violation of subdivision (c) of Section 417 and who owns, purchases, receives, or has in possession or under custody or control any firearm is guilty of a felony.
(3) A person who is addicted to the use of any narcotic drug and who owns, purchases, receives, or has in possession or under custody or control any firearm is guilty of a felony.
(3) (4) Any A person who has an outstanding warrant for any offense listed in this subdivision and who has knowledge of the outstanding warrant, two or more convictions for violating paragraph (2) of subdivision (a) of Section 417 and who owns, purchases, receives, or has in possession or under custody or control any firearm is guilty of a felony.
(b) Notwithstanding subdivision (a), any a person who has been convicted of a felony or of an offense enumerated in Section 23515, when that conviction results from certification by the juvenile court for prosecution as an adult in an adult court under Section 707 of the Welfare and Institutions Code, and who owns or has in possession or under custody or control any firearm is guilty of a felony.
(c) Subdivision (a) shall not apply to a conviction or warrant for person who has been convicted of a felony under the laws of the United States unless either of the following criteria, as applicable, criteria is satisfied:
(1) Conviction of a like offense under California law can only result in imposition of felony punishment.
(2) The defendant was sentenced to a federal correctional facility for more than 30 days, or received a fine of more than one thousand dollars ($1,000), or received both punishments.