//
// sub_1004A401C from 0x1004a401c to 0x1004a4044 (40 bytes)
//
// 1 xrefs:
// > sub_100457CC4 @ 0x100457cdc
//
// 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_1004A401C(__int64 a1, _QWORD *a2)
{
__int16 v2; // w8
v2 = atomic_load((unsigned int *)(a1 + 100));
if ( (v2 & 0x800) == 0 )
return (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a1 + 8LL))(a1);
*a2 = *(_QWORD *)(a1 + 432);
return 0;
}