//
// sub_6AFC88 from 0x6afc88 to 0x6afce4 (92 bytes)
//
// 2 xrefs:
// > sub_6AA75C @ 0x6aaa54
// > sub_6AAAB8 @ 0x6aad6c
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
int __fastcall sub_6AFC88(int result, int a2, _DWORD *a3)
{
*a3 = *(_DWORD *)(a2 + 16);
if ( (*(_DWORD *)(result + 12) & 0x80) != 0 )
return TIFFSwabLong(a3);
return result;
}