//
// sub_1005FFC38 from 0x1005ffc38 to 0x1005ffc68 (48 bytes)
//
// 2 xrefs:
// > sub_100612098 @ 0x100612154
// > sub_100612EC8 @ 0x100612f90
//
// 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:56 +0000
//
__int64 __fastcall sub_1005FFC38(__int64 a1, int a2)
{
int v2; // w9
int v4; // w10
v2 = *(_DWORD *)(a1 + 8);
if ( v2 < 0 )
return 0xFFFFFFFFLL;
v4 = *(_DWORD *)(a1 + 12) + a2;
if ( v4 > v2 )
return 0xFFFFFFFFLL;
*(_DWORD *)(a1 + 12) = v4;
return 0;
}