//
// sub_6EA910 from 0x6ea910 to 0x6eaa28 (280 bytes)
//
// 3 xrefs:
// > TIFFPredictorInit @ 0x6ead5c
// > TIFFPredictorInit @ 0x6ead60
// > ??> @ 0x6eae18
//
// 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_6EA910(_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;
}