//
// 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 (idp: pc, 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 10:52:40 +0000
//
__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;
}