//
// sub_180003F00 from 0x180003f00 to 0x180003f1d (29 bytes)
//
// 5 xrefs:
// > sub_180017A50 @ 0x180017b9c
// > sub_180017CB0 @ 0x180017d28
// > sub_180017E70 @ 0x180018034
// > sub_180017E70 @ 0x180018095
// > sub_180017E70 @ 0x1800180bd
//
// 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_180003F00(__int64 a1, int a2)
{
if ( a2 && a2 + *(_DWORD *)(a1 + 24) > *(_DWORD *)(a1 + 28) )
return 4294967165LL;
*(_DWORD *)(a1 + 24) += a2;
return 0;
}