//
// sub_1004A5AC0 from 0x1004a5ac0 to 0x1004a5b34 (116 bytes)
//
// 1 xrefs:
// > sub_1004A7B1C @ 0x1004a7cbc
//
// 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_1004A5AC0(__int64 a1, __int64 a2, __int64 a3)
{
__int64 result; // x0
__int64 v7; // x20
if ( !*(_QWORD *)(a1 + 496) )
return 0;
result = sub_100442B9C(*(_QWORD *)(a1 + 168), 0);
if ( !(_DWORD)result )
{
v7 = (*(__int64 (__fastcall **)(__int64, __int64, __int64))(a1 + 496))(a1, a2, a3);
result = sub_100442C1C(*(_QWORD *)(a1 + 168));
if ( !(_DWORD)result )
{
result = v7;
if ( !(_DWORD)v7 )
return 0;
}
}
return result;
}