//
// sub_9050AC from 0x9050ac to 0x9051c4 (280 bytes)
//
// 3 xrefs:
// > TIFFInitZIP @ 0x905e40
// > TIFFInitZIP @ 0x905e44
// > ??> @ 0x905f60
//
// 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
//
bool __fastcall sub_9050AC(int a1)
{
_DWORD *v4; // [sp+Ch] [bp-8h]
v4 = *(_DWORD **)(a1 + 576);
if ( !v4 )
_assert2();
if ( (v4[31] & 1) == 0 )
(*(void (__fastcall **)(int))(a1 + 508))(a1);
v4[16] = *(_DWORD *)(a1 + 588);
v4[17] = *(_DWORD *)(a1 + 608);
if ( v4[17] == *(_DWORD *)(a1 + 608) )
return j_inflateReset(v4 + 16) == 0;
TIFFErrorExt(*(_DWORD *)(a1 + 628), (int)"ZIPPreDecode", "ZLib cannot deal with buffers this size");
return 0;
}