//
// sub_6AF828 from 0x6af828 to 0x6af87c (84 bytes)
//
// 6 xrefs:
// > sub_6A9B04 @ 0x6a9d18
// > sub_6A9E54 @ 0x6aa048
// > sub_6AA184 @ 0x6aa348
// > sub_6AA47C @ 0x6aa674
// > sub_6AA75C @ 0x6aa8f4
// > sub_6AAAB8 @ 0x6aac50
//
// 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_6AF828(int result, int a2, _DWORD *a3)
{
*a3 = *(_DWORD *)(a2 + 16);
if ( (*(_DWORD *)(result + 12) & 0x80) != 0 )
return TIFFSwabLong(a3);
return result;
}