What happens when your gun isn't registered in California?

IF law requires that particular gun to be registered (not all are) you lose the gun and can go to jail.

Many, but not all firearms in California must be registered with the state Dept. of Justice. Suggest you check with a local gun shop for a lesson in CA gun laws. Violate them, lose gun, go to jail.