//
// sub_ED3044 from 0xed3044 to 0xed313c (248 bytes)
//
// 2 xrefs:
// > TIFFPredictorInit @ 0xed34b0
// > TIFFPredictorInit @ 0xed34b8
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// 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 13:11:41 +0000
//
__int64 __fastcall sub_ED3044(__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;
}