//
// sub_1004AC5C8 from 0x1004ac5c8 to 0x1004ac6cc (260 bytes)
//
// 1 xrefs:
// > ??> @ 0x100828348
//
// 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_1004AC5C8(__int64 a1, int a2)
{
__int64 result; // x0
_BYTE v5[2048]; // [xsp+18h] [xbp-848h] BYREF
bzero(v5, 0x800u);
result = (*(__int64 (__fastcall **)(__int64, _QWORD))(*(_QWORD *)a1 + 72LL))(a1, 0);
if ( !(_DWORD)result )
{
result = sub_1004AAF50(
result,
a1 + 608,
a1 + 2656,
2047,
a1 + 4736,
4096,
(_WORD *)(a1 + 8832),
(__int64)v5,
2047,
nullptr);
if ( !(_DWORD)result )
{
result = sub_1004AB2B8(
a1,
(unsigned __int8)a1 + 96,
a1 + 2656,
(__int64)v5,
(_BYTE *)(a1 + 4736),
*(unsigned __int16 *)(a1 + 8832),
nullptr,
a2);
if ( !(_DWORD)result )
*(_DWORD *)(a1 + 504) = a2;
}
}
return result;
}