//
// sub_C5CE84 from 0xc5ce84 to 0xc5cf7c (248 bytes)
//
// 2 xrefs:
// > TIFFPredictorInit @ 0xc5d2f0
// > TIFFPredictorInit @ 0xc5d2f8
//
// 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_C5CE84(__int64 a1, FILE *s, __int64 a3)
{
__int64 result; // x0
int *v7; // x21
__int64 (__fastcall *v8)(__int64, FILE *, __int64); // x3
int v9; // w2
result = *(_QWORD *)(a1 + 72);
v7 = *(int **)(a1 + 848);
if ( (result & 4) != 0 )
{
fwrite(" Predictor: ", 1u, 0xDu, s);
v9 = *v7;
if ( *v7 == 2 )
{
fwrite("horizontal differencing ", 1u, 0x18u, s);
v9 = *v7;
}
else if ( v9 == 3 )
{
fwrite("floating point predictor ", 1u, 0x19u, s);
v9 = *v7;
}
else if ( v9 == 1 )
{
fwrite("none ", 1u, 5u, s);
v9 = *v7;
}
result = fprintf(s, "%u (0x%x)\n", v9, v9);
}
v8 = *((__int64 (__fastcall **)(__int64, FILE *, __int64))v7 + 13);
if ( v8 )
return v8(a1, s, a3);
return result;
}