Please note that non-crucial animation factors (like the sector accelerating after releasing the piston) have been left out. The first clip shows an AEG gearbox functioning normally, with a full tooth piston.
In the second clip, we see a piston that has had a single tooth removed, and is being used with a full-tooth sector gear.
In the third clip, a full tooth piston is used with sector gear which has had a tooth removed.