//
// sub_1004AE0F0 from 0x1004ae0f0 to 0x1004ae164 (116 bytes)
//
// 0 xrefs:
//
// 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
//
_QWORD *__fastcall sub_1004AE0F0(_QWORD *a1)
{
__int64 v2; // x19
_QWORD *v3; // x20
_QWORD *v4; // x9
v2 = a1[46];
sub_1004B5C70(v2);
v3 = (_QWORD *)a1[43];
if ( v3 == a1 + 43 && (_QWORD *)a1[44] == a1 + 43 )
{
v3 = nullptr;
}
else
{
v4 = (_QWORD *)v3[1];
*v4 = *v3;
*(_QWORD *)(*v3 + 8LL) = v4;
*v3 = v3;
v3[1] = v3;
}
sub_1004B5CA0(v2);
return v3;
}