//
// sub_6EAB48 from 0x6eab48 to 0x6eac70 (296 bytes)
//
// 3 xrefs:
// > TIFFPredictorInit @ 0x6ead7c
// > TIFFPredictorInit @ 0x6ead80
// > ??> @ 0x6eae1c
//
// 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_6EAB48(int result, FILE *a2, int a3)
{
int v3; // r3
int v6; // [sp+Ch] [bp-10h]
_DWORD *v7; // [sp+14h] [bp-8h]
v6 = result;
v7 = *(_DWORD **)(result + 576);
if ( (*(_DWORD *)(result + 48) & 4) != 0 )
{
fwrite(" Predictor: ", 1u, 0xDu, a2);
v3 = *v7;
if ( *v7 == 2 )
{
fwrite("horizontal differencing ", 1u, 0x18u, a2);
}
else if ( v3 == 3 )
{
fwrite("floating point predictor ", 1u, 0x19u, a2);
}
else if ( v3 == 1 )
{
fwrite("none ", 1u, 5u, a2);
}
result = fprintf(a2, "%u (0x%x)\n", *v7, *v7);
}
if ( v7[13] )
return ((int (__fastcall *)(int, FILE *, int))v7[13])(v6, a2, a3);
return result;
}