//
// sub_6AF7D8 from 0x6af7d8 to 0x6af828 (80 bytes)
//
// 7 xrefs:
// > sub_6A9B04 @ 0x6a9cc4
// > sub_6A9E54 @ 0x6a9ff4
// > sub_6AA184 @ 0x6aa32c
// > sub_6AA47C @ 0x6aa644
// > sub_6AA75C @ 0x6aa8c8
// > sub_6AAAB8 @ 0x6aac24
// > sub_6AADB8 @ 0x6aae54
//
// 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_6AF7D8(int result, int a2, _DWORD *a3)
{
*a3 = *(_DWORD *)(a2 + 16);
if ( (*(_DWORD *)(result + 12) & 0x80) != 0 )
return TIFFSwabLong(a3);
return result;
}