//
// sub_1004AC950 from 0x1004ac950 to 0x1004ac9a0 (80 bytes)
//
// 1 xrefs:
// > ??> @ 0x100828448
//
// 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_1004AC950(__int64 a1, __int64 a2, __int64 a3, __int64 a4)
{
__int64 (__fastcall *v5)(_QWORD, __int64, __int64, __int64, _QWORD); // x8
__int64 result; // x0
v5 = *(__int64 (__fastcall **)(_QWORD, __int64, __int64, __int64, _QWORD))(a1 + 520);
if ( v5
|| (v5 = *(__int64 (__fastcall **)(_QWORD, __int64, __int64, __int64, _QWORD))(*(_QWORD *)(a1 + 408) + 70136LL)) != nullptr )
{
result = v5(*(_QWORD *)(a1 + 552), a2, a3, a4, *(_QWORD *)(a1 + 560));
}
else
{
result = 0;
}
*(_DWORD *)(a1 + 476) = result;
return result;
}