The number of marbles in each input should be the same, or the number of blue marbles should be 1 more than the number of reds.
IF there are 15 or fewer marbles total: Subtract the total number of marbles from the register.
IF AND ONLY IF there are more than 15 marbles total: Flip gear bits A to the left.

Things to test: 3 marbles/input: Register reads 9.
6 blue, 5 red: Register reads 4.
9 blue, 8 red: Gear bits left.
15 blue, 15 red: Gear bits left.