//
// inflateResetKeep from 0xf38a8c to 0xf38b08 (124 bytes)
//
// 2 xrefs:
// > inflateReset @ 0xf38b20
// > ??> @ 0xb20c0
//
// 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:59 +0000
//
__int64 __fastcall inflateResetKeep(_QWORD *a1)
{
__int64 v1; // x1
int v2; // w2
if ( !a1 )
return 4294967294LL;
v1 = a1[7];
if ( !v1 )
return 4294967294LL;
*(_QWORD *)(v1 + 32) = 0;
v2 = *(_DWORD *)(v1 + 8);
a1[5] = 0;
a1[2] = 0;
a1[6] = 0;
if ( v2 )
a1[12] = v2 & 1;
*(_QWORD *)(v1 + 136) = v1 + 1360;
*(_QWORD *)(v1 + 104) = v1 + 1360;
*(_QWORD *)(v1 + 96) = v1 + 1360;
*(_DWORD *)v1 = 0;
*(_DWORD *)(v1 + 7136) = 1;
*(_DWORD *)(v1 + 4) = 0;
*(_DWORD *)(v1 + 12) = 0;
*(_DWORD *)(v1 + 20) = 0x8000;
*(_QWORD *)(v1 + 40) = 0;
*(_QWORD *)(v1 + 72) = 0;
*(_DWORD *)(v1 + 80) = 0;
*(_DWORD *)(v1 + 7140) = -1;
return 0;
}