//
// sub_100425FD0 from 0x100425fd0 to 0x100426015 (69 bytes)
//
// 0 xrefs:
//
// 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 12:30:17 +0000
//
unsigned __int64 __fastcall sub_100425FD0(__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;
}