//
// sub_1004A0884 from 0x1004a0884 to 0x1004a08c8 (68 bytes)
//
// 2 xrefs:
// > sub_100457EB4 @ 0x100457f6c
// > ??> @ 0x100828180
//
// 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_1004A0884(__int64 a1, bool *a2)
{
__int16 v2; // w8
bool v3; // w8
v2 = atomic_load((unsigned int *)(a1 + 100));
if ( (v2 & 0x100) != 0 )
v3 = *(_DWORD *)(a1 + 556) == 0;
else
v3 = *(_DWORD *)(*(_QWORD *)(a1 + 168) + 69864LL) >= *(_DWORD *)(a1 + 556);
*a2 = v3;
return 0;
}