//
// sub_6F5E5C from 0x6f5e5c to 0x6f5f60 (260 bytes)
//
// 3 xrefs:
// > TIFFInitZIP @ 0x6f6320
// > TIFFInitZIP @ 0x6f6324
// > ??> @ 0x6f63c8
//
// 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
//
_DWORD *__fastcall sub_6F5E5C(_DWORD *a1)
{
_DWORD *v3; // [sp+Ch] [bp-8h]
v3 = (_DWORD *)a1[144];
if ( !v3 )
_assert2();
TIFFPredictorCleanup(a1);
a1[168] = v3[32];
a1[167] = v3[33];
if ( (v3[31] & 2) != 0 )
{
j_deflateEnd(v3 + 16);
v3[31] = 0;
}
else if ( (v3[31] & 1) != 0 )
{
j_inflateEnd(v3 + 16);
v3[31] = 0;
}
TIFFfree(v3);
a1[144] = 0;
return TIFFSetDefaultCompressionState(a1);
}