//
// deflateResetKeep from 0xf33fb4 to 0xf3407c (200 bytes)
//
// 2 xrefs:
// > deflateReset @ 0xf3408c
// > ??> @ 0xcf988
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// 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 13:12:55 +0000
//
__int64 __fastcall deflateResetKeep(__int64 a1)
{
__int64 v1; // x20
int v3; // w0
__int64 v4; // x1
unsigned __int64 v5; // x0
if ( a1 )
{
v1 = *(_QWORD *)(a1 + 56);
if ( v1 )
{
if ( *(_QWORD *)(a1 + 64) && *(_QWORD *)(a1 + 72) )
{
v3 = *(_DWORD *)(v1 + 44);
*(_DWORD *)(a1 + 88) = 2;
*(_QWORD *)(a1 + 40) = 0;
*(_QWORD *)(a1 + 16) = 0;
*(_QWORD *)(a1 + 48) = 0;
v4 = *(_QWORD *)(v1 + 16);
*(_DWORD *)(v1 + 40) = 0;
*(_QWORD *)(v1 + 32) = v4;
if ( v3 < 0 )
{
v3 = -v3;
*(_DWORD *)(v1 + 44) = v3;
}
else if ( !v3 )
{
*(_DWORD *)(v1 + 8) = 113;
goto LABEL_8;
}
*(_DWORD *)(v1 + 8) = 42;
if ( v3 == 2 )
{
v5 = crc32(0, nullptr, 0);
goto LABEL_9;
}
LABEL_8:
v5 = adler32(0, nullptr, 0);
LABEL_9:
*(_QWORD *)(a1 + 96) = v5;
*(_DWORD *)(v1 + 64) = 0;
sub_F3D648(v1);
return 0;
}
}
}
return 4294967294LL;
}