//
// sub_6F5A2C from 0x6f5a2c to 0x6f5b40 (276 bytes)
//
// 3 xrefs:
// > TIFFInitZIP @ 0x6f62d0
// > TIFFInitZIP @ 0x6f62d4
// > ??> @ 0x6f63b4
//
// 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_6F5A2C(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;
}