//
// sub_1004AAD10 from 0x1004aad10 to 0x1004aad40 (48 bytes)
//
// 3 xrefs:
// > sub_10043F584 @ 0x10043f608
// > sub_10043FA1C @ 0x10043fbbc
// > sub_1004886E0 @ 0x10048879c
//
// 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_1004AAD10(__int64 a1, __int64 a2, int a3, int a4, __int64 a5)
{
__int64 result; // x0
result = sub_1004A9690(a1, a2, a3, a4);
if ( !(_DWORD)result )
{
*(_DWORD *)(a1 + 496) = 0;
*(_QWORD *)(a1 + 504) = a5;
}
return result;
}