//
// inflateResetKeep from 0x73c304 to 0x73c35c (88 bytes)
//
// 1 xrefs:
// > inflateReset @ 0x73c36a
//
// 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
//
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;
}