M16 and M4 are the real military weapons issued to the troops- full auto. I don’t think anyone can have THOSE at all. Even if someone was rich enough to buy one AND pass all the requirements to have a class 3 license they probably wouldn’t butcher one up converting it to .22 lr. The look alike knock offs that share most of the cosmetic features are probably more in line with what you are seeking-semi auto. I think even in CA people can own SKS’s and AK clones if the mags are 10 rds or less single stack, and the ammo for those is the real deal 7.62×39. So .22 cal should be ok. Or try google CA gun laws.