//
// sub_100438530 from 0x100438530 to 0x100438575 (69 bytes)
//
// 0 xrefs:
//
// 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
//
unsigned __int64 __fastcall sub_100438530(__int64 a1)
{
unsigned __int64 v2; // rax
unsigned __int64 v3; // rcx
unsigned __int64 v4; // rbx
bool v5; // cf
unsigned __int64 v6; // rcx
std::mutex::lock((std::mutex *)(a1 + 72));
v2 = *(_QWORD *)(a1 + 64) + *(_QWORD *)(a1 + 192);
v3 = (__int64)(*(_QWORD *)(a1 + 8) - *(_QWORD *)a1) >> 3;
v4 = 0;
v5 = v3 < v2;
v6 = v3 - v2;
if ( !v5 )
v4 = v6;
std::mutex::unlock((std::mutex *)(a1 + 72));
return v4;
}