You have to wade through a bizarre intro to get to it, but it seems that nature worked out how to evolve functional gears a very long time ago. Of course it'd be in a bug. Most everything really clever in natural engineering happens in insects, it seems.