//
// sub_905A1C from 0x905a1c to 0x905b20 (260 bytes)
//
// 3 xrefs:
// > TIFFInitZIP @ 0x905ee0
// > TIFFInitZIP @ 0x905ee4
// > ??> @ 0x905f88
//
// 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:18 +0000
//
_DWORD *__fastcall sub_905A1C(_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);
}