//
// sub_8BF2F8 from 0x8bf2f8 to 0x8bf344 (76 bytes)
//
// 6 xrefs:
// > sub_8B96C4 @ 0x8b97d8
// > sub_8B9A14 @ 0x8b9b40
// > sub_8B9D44 @ 0x8b9e6c
// > sub_8BA03C @ 0x8ba170
// > sub_8BA31C @ 0x8ba424
// > sub_8BA678 @ 0x8ba780
//
// 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:03:58 +0000
//
int __fastcall sub_8BF2F8(int result, int a2, _WORD *a3)
{
*a3 = *(_WORD *)(a2 + 16);
if ( (*(_DWORD *)(result + 12) & 0x80) != 0 )
return TIFFSwabShort(a3);
return result;
}