//
// sub_1004AA7EC from 0x1004aa7ec to 0x1004aa830 (68 bytes)
//
// 12 xrefs:
// > sub_1004661D0 @ 0x1004664b8
// > sub_1004661D0 @ 0x1004664cc
// > sub_1004661D0 @ 0x1004664e0
// > sub_1004661D0 @ 0x100466514
// > sub_1004661D0 @ 0x1004665ac
// > sub_1004661D0 @ 0x1004666e0
// > sub_10047CDD0 @ 0x10047cff8
// > sub_10048319C @ 0x1004833d0
// > sub_10048319C @ 0x1004833e0
// > sub_10048319C @ 0x1004833f4
// > sub_10048319C @ 0x100483418
// > sub_10048319C @ 0x100483438
//
// 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_1004AA7EC(__int64 a1, _DWORD *a2)
{
__int64 result; // x0
int8x8_t v4[2]; // [xsp+Ah] [xbp-16h] BYREF
result = sub_1004AA0BC(a1, v4, 2u, 1, (unsigned int *)((char *)v4 + 2));
if ( a2 )
*a2 = v4[0].i16[0];
return result;
}