These laws generally state that you have to report it within a period from when they were stolen, and you knew they were stolen, or reasonably should have known they were stolen. Several cities in CA have them, none has been declared unconstitutional. Since it doesn’t affect your ability to keep and bear arms, I don’t know what the grounds for a challenge would be.
Dredge Scott was once called Constitutional.....that did not make it so.