//
// sub_E0A5C from 0xe0a5c to 0xe0a98 (60 bytes)
//
// 1 xrefs:
// > sub_A1300 @ 0xa137c
//
// 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
//
__int64 __fastcall sub_E0A5C(_DWORD *a1, int a2)
{
int v2; // w8
int v3; // w9
unsigned int v4; // w10
v2 = a1[8];
v3 = a1[94];
a1[94] = a2;
if ( v2 == -1 )
return 0;
v4 = a1[9];
a1[8] = v3 - a2 + v2;
if ( v2 + v3 <= v4 )
return 0;
else
return 28;
}