//
// sub_6E73A4 from 0x6e73a4 to 0x6e756c (456 bytes)
//
// 3 xrefs:
// > TIFFInitPixarLog @ 0x6e7a74
// > TIFFInitPixarLog @ 0x6e7a78
// > ??> @ 0x6e7b78
//
// 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_6E73A4(_DWORD *a1)
{
_DWORD *v3; // [sp+Ch] [bp-8h]
v3 = (_DWORD *)a1[144];
if ( !v3 )
_assert2();
TIFFPredictorCleanup(a1);
a1[168] = v3[35];
a1[167] = v3[36];
if ( v3[40] )
TIFFfree(v3[40]);
if ( v3[41] )
TIFFfree(v3[41]);
if ( v3[42] )
TIFFfree(v3[42]);
if ( v3[37] )
TIFFfree(v3[37]);
if ( v3[38] )
TIFFfree(v3[38]);
if ( v3[39] )
TIFFfree(v3[39]);
if ( (v3[32] & 1) != 0 )
{
if ( a1[2] )
j_deflateEnd(v3 + 16);
else
j_inflateEnd(v3 + 16);
}
if ( v3[30] )
TIFFfree(v3[30]);
TIFFfree(v3);
a1[144] = 0;
return TIFFSetDefaultCompressionState(a1);
}