//
// sub_9055EC from 0x9055ec to 0x905700 (276 bytes)
//
// 3 xrefs:
// > TIFFInitZIP @ 0x905e90
// > TIFFInitZIP @ 0x905e94
// > ??> @ 0x905f74
//
// 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_9055EC(int a1)
{
_DWORD *v4; // [sp+Ch] [bp-8h]
v4 = *(_DWORD **)(a1 + 576);
if ( !v4 )
_assert2();
if ( v4[31] != 2 )
(*(void (__fastcall **)(int))(a1 + 516))(a1);
v4[19] = *(_DWORD *)(a1 + 588);
v4[20] = *(_DWORD *)(a1 + 592);
if ( v4[20] == *(_DWORD *)(a1 + 592) )
return j_deflateReset(v4 + 16) == 0;
TIFFErrorExt(*(_DWORD *)(a1 + 628), (int)"ZIPPreEncode", "ZLib cannot deal with buffers this size");
return 0;
}