//
// sub_8BF848 from 0x8bf848 to 0x8bf8a4 (92 bytes)
//
// 2 xrefs:
// > sub_8BA31C @ 0x8ba614
// > sub_8BA678 @ 0x8ba92c
//
// 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_8BF848(int result, int a2, _DWORD *a3)
{
*a3 = *(_DWORD *)(a2 + 16);
if ( (*(_DWORD *)(result + 12) & 0x80) != 0 )
return TIFFSwabLong(a3);
return result;
}