//
// TIFFInitLZW from 0x6df204 to 0x6df3d4 (464 bytes)
//
// 2 xrefs:
// > ??> @ 0x57bac
// > ??> @ 0xabb318
//
// 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 TIFFInitLZW(_DWORD *a1, int a2)
{
if ( a2 != 5 )
_assert2();
a1[144] = TIFFmalloc(160);
if ( a1[144] )
{
*(_DWORD *)(a1[144] + 124) = 0;
*(_DWORD *)(a1[144] + 104) = 0;
*(_DWORD *)(a1[144] + 152) = 0;
*(_DWORD *)(a1[144] + 80) = a1[2];
a1[126] = sub_6DC938;
a1[127] = sub_6DC95C;
a1[128] = sub_6DCB9C;
a1[133] = sub_6DCE48;
a1[135] = sub_6DCE48;
a1[137] = sub_6DCE48;
a1[129] = sub_6DE4E8;
a1[131] = sub_6DE5B8;
a1[132] = sub_6DEE20;
a1[134] = sub_6DE6EC;
a1[136] = sub_6DE6EC;
a1[138] = sub_6DE6EC;
a1[141] = sub_6DF12C;
TIFFPredictorInit(a1);
return 1;
}
else
{
TIFFErrorExt(a1[157], (int)"TIFFInitLZW", "No space for LZW state block");
return 0;
}
}