//
// TIFFPredictorInit from 0xed3454 to 0xed353c (232 bytes)
//
// 3 xrefs:
// > sub_ECE660 @ 0xece730
// > TIFFInitLZW @ 0xeced9c
// > ??> @ 0x8bc60
//
// 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 TIFFPredictorInit(_QWORD *a1)
{
__int64 v2; // x20
__int64 v3; // x1
__int64 v4; // x1
__int64 v5; // x2
__int64 v6; // x2
v2 = a1[106];
if ( (unsigned int)TIFFMergeFields(a1, dword_13FD2E0, 1u) )
{
*(_QWORD *)(v2 + 88) = a1[130];
v3 = a1[129];
a1[130] = sub_ED1B34;
*(_QWORD *)(v2 + 96) = v3;
v4 = a1[131];
a1[129] = sub_ED1AAC;
*(_QWORD *)(v2 + 104) = v4;
v5 = a1[89];
a1[131] = sub_ED3044;
*(_QWORD *)(v2 + 112) = v5;
v6 = a1[91];
a1[89] = sub_ED27D4;
*(_QWORD *)(v2 + 120) = v6;
a1[91] = sub_ED3238;
*(_DWORD *)v2 = 1;
*(_QWORD *)(v2 + 48) = 0;
*(_QWORD *)(v2 + 80) = 0;
return 1;
}
else
{
TIFFErrorExt(a1[119], (__int64)"TIFFPredictorInit", "Merging Predictor codec-specific tags failed");
return 0;
}
}