//
// sub_1005D4258 from 0x1005d4258 to 0x1005d42cc (116 bytes)
//
// 0 xrefs:
//
// 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:09:33 +0000
//
_QWORD *__fastcall sub_1005D4258(_QWORD *a1)
{
__int64 v2; // x19
_QWORD *v3; // x20
_QWORD *v4; // x9
v2 = a1[46];
sub_1005DBDD8(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_1005DBE08(v2);
return v3;
}