//
// sub_1800B3C10 from 0x1800b3c10 to 0x1800b3c3e (46 bytes)
//
// 1 xrefs:
// > sub_1800398D0 @ 0x180039955
//
// 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:53:58 +0000
//
__int64 __fastcall sub_1800B3C10(_DWORD *a1, int a2)
{
int v2; // eax
int v3; // r8d
int v4; // eax
v2 = a1[8];
v3 = a2 - a1[94];
a1[94] = a2;
if ( v2 == -1 )
return 0;
v4 = v2 - v3;
a1[8] = v4;
if ( (unsigned int)(a2 + v4) <= a1[9] )
return 0;
else
return 28;
}