//
// sub_E254C from 0xe254c to 0xe2584 (56 bytes)
//
// 1 xrefs:
// > ??> @ 0x10f178
//
// 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_E254C(__int64 a1, __int64 a2, int a3, _DWORD *a4)
{
int v4; // w8
unsigned int v5; // w9
unsigned int v6; // w10
int v7; // w8
bool v8; // cc
int v9; // w9
unsigned int v10; // w8
v4 = *(_DWORD *)(a1 + 496);
v5 = *(_DWORD *)(a1 + 32);
v6 = v4 + a3;
v7 = v5 - v4;
v8 = v6 > v5;
if ( v6 <= v5 )
v9 = a3;
else
v9 = v7;
*a4 = v9;
if ( v8 )
v10 = 31;
else
v10 = 0;
*(_DWORD *)(a1 + 496) += v9;
return v10;
}