I think the -1 << 3 will keep the all higher bit as 1, and the last 3 bit as 000, then everything before `mateIdShift + bitsFormate` will keep as the original one. And then it will also return the previous non-mate bit also.