//
// sub_1004AAEC0 from 0x1004aaec0 to 0x1004aaf50 (144 bytes)
//
// 1 xrefs:
// > sub_10043F62C @ 0x10043f86c
//
// 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
//
double __fastcall sub_1004AAEC0(__int64 a1)
{
__int64 v1; // x0
v1 = sub_1004A966C(a1);
*(_QWORD *)v1 = &off_100828308;
*(_QWORD *)(v1 + 536) = v1 + 528;
*(_QWORD *)(v1 + 528) = v1 + 528;
*(_OWORD *)(v1 + 544) = 0u;
*(_OWORD *)(v1 + 560) = 0u;
*(_OWORD *)(v1 + 572) = 0u;
*(_WORD *)(v1 + 588) = 1;
*(_DWORD *)(v1 + 592) = 0;
*(_QWORD *)(v1 + 496) = -1;
*(_QWORD *)(v1 + 504) = 0;
*(_QWORD *)(v1 + 520) = 0;
*(_QWORD *)(v1 + 512) = 0;
*(_DWORD *)(v1 + 404) &= ~1u;
*(_BYTE *)(v1 + 600) = 0;
*(_DWORD *)(v1 + 604) = 0;
*(_DWORD *)(v1 + 56) = 3;
*(_OWORD *)(v1 + 608) = 0u;
*(_OWORD *)(v1 + 624) = 0u;
*(_OWORD *)(v1 + 640) = 0u;
*(_OWORD *)(v1 + 656) = 0u;
*(_OWORD *)(v1 + 672) = 0u;
*(_OWORD *)(v1 + 688) = 0u;
*(_OWORD *)(v1 + 704) = 0u;
*(_OWORD *)(v1 + 720) = 0u;
*(_OWORD *)(v1 + 736) = 0u;
*(_OWORD *)(v1 + 752) = 0u;
*(_OWORD *)(v1 + 768) = 0u;
*(_OWORD *)(v1 + 784) = 0u;
*(_OWORD *)(v1 + 800) = 0u;
*(_OWORD *)(v1 + 816) = 0u;
*(_OWORD *)(v1 + 832) = 0u;
*(_OWORD *)(v1 + 848) = 0u;
return 0.0;
}