//
// sub_1800B5F30 from 0x1800b5f30 to 0x1800b5f5a (42 bytes)
//
// 1 xrefs:
// > ??> @ 0x18016e788
//
// 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_1800B5F30(__int64 a1, __int64 a2, int a3, _DWORD *a4)
{
int v4; // r10d
unsigned int v5; // eax
unsigned int v6; // edx
bool v7; // cf
v4 = *(_DWORD *)(a1 + 496);
v5 = *(_DWORD *)(a1 + 32);
v6 = v4 + a3;
v7 = v5 < v4 + a3;
if ( v5 < v4 + a3 )
{
a3 = v5 - v4;
v7 = v5 < v6;
}
*a4 = a3;
*(_DWORD *)(a1 + 496) += a3;
return v7 ? 0x1F : 0;
}