//
// sub_8F6F64 from 0x8f6f64 to 0x8f712c (456 bytes)
//
// 3 xrefs:
// > TIFFInitPixarLog @ 0x8f7634
// > TIFFInitPixarLog @ 0x8f7638
// > ??> @ 0x8f7738
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 12:04:14 +0000
//
_DWORD *__fastcall sub_8F6F64(_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);
}