//
// sub_1005D0BC8 from 0x1005d0bc8 to 0x1005d0c08 (64 bytes)
//
// 1 xrefs:
// > sub_1005A43BC @ 0x1005a4438
//
// 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 11:09:31 +0000
//
__int64 __fastcall sub_1005D0BC8(_DWORD *a1, int a2)
{
int v2; // w8
int v3; // w9
v2 = a1[94];
a1[94] = a2;
v3 = a1[8];
if ( v3 == -1 )
return 0;
a1[8] = v2 - a2 + v3;
if ( (unsigned int)(v3 + v2) <= a1[9] )
return 0;
else
return 28;
}