//
// sub_8FA4D0 from 0x8fa4d0 to 0x8fa5e8 (280 bytes)
//
// 3 xrefs:
// > TIFFPredictorInit @ 0x8fa91c
// > TIFFPredictorInit @ 0x8fa920
// > ??> @ 0x8fa9d8
//
// 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:04:15 +0000
//
int __fastcall sub_8FA4D0(_DWORD *a1, int a2, _DWORD *a3)
{
_DWORD *v8; // [sp+14h] [bp-8h]
v8 = (_DWORD *)a1[144];
if ( !v8 )
_assert2();
if ( !v8[12] )
_assert2();
if ( a2 != 317 )
return ((int (__fastcall *)(_DWORD *, int, _DWORD *))v8[12])(a1, a2, a3);
*v8 = (unsigned __int16)*a3;
a1[12] |= 4u;
a1[3] |= 8u;
return 1;
}