//
// sub_1000184A8 from 0x1000184a8 to 0x1000184ec (68 bytes)
//
// 8 xrefs:
// > sub_100018470 @ 0x100018484
// > sub_10001AC84 @ 0x10001aca0
// > sub_1000207BC @ 0x100020878
// > sub_1000208B0 @ 0x1000208c0
// > sub_100150330 @ 0x1001503ec
// > sub_100150424 @ 0x100150434
// > sub_10015095C @ 0x100150a18
// > sub_100150A50 @ 0x100150a60
//
// 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 10:57:19 +0000
//
void __fastcall sub_1000184A8(int a1, _QWORD *__p)
{
_QWORD *v2; // x19
_QWORD *v3; // x20
void *v4; // x0
if ( __p )
{
v2 = __p;
do
{
v3 = (_QWORD *)*v2;
v4 = (void *)v2[3];
if ( v4 )
{
v2[4] = v4;
operator delete(v4);
}
operator delete(v2);
v2 = v3;
}
while ( v3 );
}
}