//
// TIFFReverseBits from 0x901330 to 0x901508 (472 bytes)
//
// 7 xrefs:
// > sub_8FCF80 @ 0x8fd4e4
// > TIFFFillStrip @ 0x8fe608
// > TIFFFillTile @ 0x8ff224
// > TIFFWriteEncodedStrip @ 0x9037ec
// > TIFFWriteEncodedTile @ 0x903f90
// > TIFFFlushData1 @ 0x904ea8
// > ??> @ 0x6b7cc
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 12:04:17 +0000
//
unsigned __int8 *__fastcall TIFFReverseBits(unsigned __int8 *result, int a2)
{
unsigned __int8 *v4; // [sp+4h] [bp-8h]
v4 = result;
while ( a2 > 8 )
{
*v4 = byte_C41748[*v4];
v4[1] = byte_C41748[v4[1]];
v4[2] = byte_C41748[v4[2]];
v4[3] = byte_C41748[v4[3]];
v4[4] = byte_C41748[v4[4]];
v4[5] = byte_C41748[v4[5]];
v4[6] = byte_C41748[v4[6]];
v4[7] = byte_C41748[v4[7]];
v4 += 8;
a2 -= 8;
}
while ( a2-- > 0 )
{
*v4 = byte_C41748[*v4];
++v4;
}
return result;
}