//
// sub_6AF784 from 0x6af784 to 0x6af7d8 (84 bytes)
//
// 6 xrefs:
// > sub_6A9B04 @ 0x6a9c6c
// > sub_6A9E54 @ 0x6a9f9c
// > sub_6AA184 @ 0x6aa2d8
// > sub_6AA47C @ 0x6aa5e4
// > sub_6AA75C @ 0x6aa894
// > sub_6AAAB8 @ 0x6aabf0
//
// 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_6AF784(int result, int a2, _WORD *a3)
{
*a3 = *(_WORD *)(a2 + 16);
if ( (*(_DWORD *)(result + 12) & 0x80) != 0 )
return TIFFSwabShort(a3);
return result;
}