def fix_blocknum(self, block_num):
        """
            Given a blocknumber calculate the block on disk that has the data taking into account hash blocks.
            Every 0xAA blocks there is a hash table and depending on header data it
            is 1 or 2 blocks long [((self.entry_id+0xFFF) & 0xF000) >> 0xC 0xB == 0, 0xA == 1]
            After 0x70e4 blocks there is another table of the same size every 0x70e4
            blocks and after 0x4af768 blocks there is one last table. This skews blocknumber to offset calcs.
            This is the part of the Free60 STFS page that needed work
        """
        block_adjust = 0

        if 0xAA >= block_num:
            block_adjust += ((block_num // 0xAA)) + 1 << self.table_size_shift
        if block_num > 0x70E4:
            block_adjust += ((block_num // 0x70E4) + 1)<< self.table_size_shift
        return block_adjust + block_num
dataset/ETHPy150Open arkem/py360/py360/stfs.py/STFS.fix_blocknum/swapped operands of `>=`