//
// inflateResetKeep from 0x94bec4 to 0x94bf1c (88 bytes)
//
// 1 xrefs:
// > inflateReset @ 0x94bf2a
//
// 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:05:17 +0000
//
int __fastcall inflateResetKeep(_DWORD *a1)
{
_DWORD *v1; // r3
if ( !a1 )
return -2;
v1 = (_DWORD *)a1[7];
if ( !v1 )
return -2;
v1[7] = 0;
a1[5] = 0;
a1[2] = 0;
a1[6] = 0;
if ( v1[2] )
a1[12] = v1[2] & 1;
*v1 = 0;
v1[1] = 0;
v1[3] = 0;
v1[8] = 0;
v1[14] = 0;
v1[15] = 0;
v1[5] = 0x8000;
v1[27] = v1 + 332;
v1[20] = v1 + 332;
v1[19] = v1 + 332;
v1[1776] = 1;
v1[1777] = -1;
return 0;
}