//
// sub_6F54EC from 0x6f54ec to 0x6f5604 (280 bytes)
//
// 3 xrefs:
// > TIFFInitZIP @ 0x6f6280
// > TIFFInitZIP @ 0x6f6284
// > ??> @ 0x6f63a0
//
// 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
//
bool __fastcall sub_6F54EC(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;
}