As for the gears for the cylinder on the shotgun,

since the arm is going through the cylinder,

it will have to follow a track around the cylinder,

the cylinder rotates as the chambers are emptied.