//
// TIFFPredictorInit from 0x6eac84 to 0x6eadfc (376 bytes)
//
// 5 xrefs:
// > sub_6DC95C @ 0x6dca00
// > TIFFInitLZW @ 0x6df38c
// > TIFFInitPixarLog @ 0x6e7adc
// > TIFFInitZIP @ 0x6f6330
// > ??> @ 0x5855c
//
// 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 TIFFPredictorInit(_DWORD *a1)
{
_DWORD *v4; // [sp+Ch] [bp-8h]
v4 = (_DWORD *)a1[144];
if ( !v4 )
_assert2();
if ( TIFFMergeFields(a1, (int)&unk_A2DB3C, 1u) )
{
v4[11] = a1[168];
a1[168] = sub_6EAA40;
v4[12] = a1[167];
a1[167] = sub_6EA910;
v4[13] = a1[169];
a1[169] = sub_6EAB48;
v4[14] = a1[127];
a1[127] = sub_6E7DA0;
v4[15] = a1[129];
a1[129] = sub_6E8098;
*v4 = 1;
v4[6] = 0;
v4[10] = 0;
return 1;
}
else
{
TIFFErrorExt(a1[157], (int)"TIFFPredictorInit", "Merging Predictor codec-specific tags failed");
return 0;
}
}