//
// sub_1004AC9A0 from 0x1004ac9a0 to 0x1004aca10 (112 bytes)
//
// 1 xrefs:
// > ??> @ 0x100828450
//
// 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_1004AC9A0(_QWORD *a1, __int64 a2)
{
__int64 result; // x0
__int64 (__fastcall *v3)(_QWORD, __int64, _QWORD); // x9
if ( a1[67] || !a1[65] && *(_QWORD *)(a1[51] + 70152LL) )
return 0;
v3 = (__int64 (__fastcall *)(_QWORD, __int64, _QWORD))a1[66];
if ( !v3 )
{
v3 = *(__int64 (__fastcall **)(_QWORD, __int64, _QWORD))(a1[51] + 70144LL);
if ( !v3 )
return 0;
}
result = v3(a1[69], a2, a1[70]);
if ( !(_DWORD)result )
return 0;
return result;
}