//
// TIFFPredictorInit from 0xc5d294 to 0xc5d37c (232 bytes)
//
// 3 xrefs:
// > sub_C584A0 @ 0xc58570
// > TIFFInitLZW @ 0xc58bdc
// > ??> @ 0x67020
//
// 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 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_111D910, 1u) )
{
*(_QWORD *)(v2 + 88) = a1[130];
v3 = a1[129];
a1[130] = sub_C5B974;
*(_QWORD *)(v2 + 96) = v3;
v4 = a1[131];
a1[129] = sub_C5B8EC;
*(_QWORD *)(v2 + 104) = v4;
v5 = a1[89];
a1[131] = sub_C5CE84;
*(_QWORD *)(v2 + 112) = v5;
v6 = a1[91];
a1[89] = sub_C5C614;
*(_QWORD *)(v2 + 120) = v6;
a1[91] = sub_C5D078;
*(_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;
}
}