//
// sub_E0A5C from 0xe0a5c to 0xe0a98 (60 bytes)
//
// 1 xrefs:
// > sub_A1300 @ 0xa137c
//
// 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 12:14:57 +0000
//
__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;
}