Similar to Samuel’s 32 part solution. Saved a ramp by moving the second row of gear bits one row down.