//
// sub_1006AE5D0 from 0x1006ae5d0 to 0x1006ae630 (96 bytes)
//
// 14 xrefs:
// > sub_1006AEE14 @ 0x1006aeed4
// > sub_1006AEFA0 @ 0x1006aefd4
// > sub_1006AEFA0 @ 0x1006af09c
// > sub_1006AF1A8 @ 0x1006af1d4
// > sub_1006AF1A8 @ 0x1006af268
// > sub_1006D4C00 @ 0x1006d4ca0
// > sub_1006ED420 @ 0x1006ed4c4
// > sub_1006F32A8 @ 0x1006f346c
// > sub_100705564 @ 0x1007055bc
// > sub_10070596C @ 0x100705984
// > sub_100705AC4 @ 0x100705b80
// > sub_1007070B4 @ 0x100707124
// > sub_100707A40 @ 0x100707a6c
// > sub_10070873C @ 0x100708778
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 11:11:48 +0000
//
int *__fastcall sub_1006AE5D0(int **a1)
{
int *result; // x0
if ( off_100A0C758 )
return (int *)off_100A0C758(a1);
if ( off_100A0C760 )
{
result = (int *)((__int64 (*)(void))off_100A0C760)();
*a1 = nullptr;
a1[1] = nullptr;
}
else
{
result = __error();
*a1 = nullptr;
a1[1] = nullptr;
*a1 = result;
}
a1[1] = result;
return result;
}