//
// TIFFPredictorInit from 0x8fa844 to 0x8fa9bc (376 bytes)
//
// 5 xrefs:
// > sub_8EC51C @ 0x8ec5c0
// > TIFFInitLZW @ 0x8eef4c
// > TIFFInitPixarLog @ 0x8f769c
// > TIFFInitZIP @ 0x905ef0
// > ??> @ 0x6b5bc
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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 12:04:15 +0000
//
int __fastcall TIFFPredictorInit(_DWORD *a1)
{
_DWORD *v4; // [sp+Ch] [bp-8h]
v4 = (_DWORD *)a1[144];
if ( !v4 )
_assert2();
if ( TIFFMergeFields(a1, (int)&unk_C75FC4, 1u) )
{
v4[11] = a1[168];
a1[168] = sub_8FA600;
v4[12] = a1[167];
a1[167] = sub_8FA4D0;
v4[13] = a1[169];
a1[169] = sub_8FA708;
v4[14] = a1[127];
a1[127] = sub_8F7960;
v4[15] = a1[129];
a1[129] = sub_8F7C58;
*v4 = 1;
v4[6] = 0;
v4[10] = 0;
return 1;
}
else
{
TIFFErrorExt(a1[157], (int)"TIFFPredictorInit", "Merging Predictor codec-specific tags failed");
return 0;
}
}