//
// sub_1005C69EC from 0x1005c69ec to 0x1005c6a30 (68 bytes)
//
// 2 xrefs:
// > sub_10057E01C @ 0x10057e0d4
// > ??> @ 0x1009ab7f0
//
// This function is hookable on this platform (idp: arm, 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 11:09:25 +0000
//
__int64 __fastcall sub_1005C69EC(__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;
}