How does the speedometer gear stay in? MY bud took this apart and I cannot find a clip

My bet is on the oil seal old and warn out. There is probably a bit of a friction fit to the seal that holds the gear and shaft in place till it is installed, then the gear is captive.
"Captive" is a good word to describe it. Once it's together, the gear can't go anywhere.