//
// sub_C5B974 from 0xc5b974 to 0xc5b9e4 (112 bytes)
//
// 2 xrefs:
// > TIFFPredictorInit @ 0xc5d2cc
// > TIFFPredictorInit @ 0xc5d2d4
//
// 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
//
__int64 __fastcall sub_C5B974(__int64 a1, int a2, __int64 a3)
{
__int64 v3; // x4
int v4; // w1
_WORD **v5; // x0
_WORD *v6; // x1
_WORD **v8; // x8
__int64 v9; // x9
__int64 v10; // x7
_WORD **v11; // [xsp+10h] [xbp+10h]
__int64 v12; // [xsp+18h] [xbp+18h]
__int64 v13; // [xsp+20h] [xbp+20h]
__int64 v14; // [xsp+28h] [xbp+28h]
v3 = *(_QWORD *)(a1 + 848);
if ( a2 == 317 )
{
v4 = *(_DWORD *)(a3 + 24);
v5 = *(_WORD ***)a3;
if ( v4 < -7 )
v5 = (_WORD **)(*(_QWORD *)(a3 + 8) + v4);
v6 = *v5;
*v6 = *(_DWORD *)v3;
return 1;
}
else
{
v8 = *(_WORD ***)a3;
v9 = *(_QWORD *)(a3 + 8);
v10 = *(_QWORD *)(a3 + 24);
v13 = *(_QWORD *)(a3 + 16);
v14 = v10;
v11 = v8;
v12 = v9;
return (*(__int64 (**)(void))(v3 + 88))();
}
}