I was wondering on how Stockfish encodes the destination and origin square in 5 bits each. I think they don't, at least the code on github uses 6 bits each, which actually gives you 64 possible values, so works out fine:
https://github.com/official-stockfish/Stockfish/blob/master/...
Thats 16 bits. Thank you for sending me down that (small) rabbit hole!