//
// sub_1006AD9D4 from 0x1006ad9d4 to 0x1006ada5c (136 bytes)
//
// 1 xrefs:
// > sub_10067E90C @ 0x10067ea0c
//
// 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
//
void __fastcall sub_1006AD9D4(__int64 a1)
{
int *v1; // x19
int v2; // w8
void **v3; // x20
__int64 v4; // x21
v1 = (int *)(a1 + 35944);
v2 = *(_DWORD *)(a1 + 35944);
if ( v2 )
{
v3 = (void **)(a1 + 35952);
if ( v2 >= 1 )
{
v4 = 0;
do
{
sub_10069AA00(*((_QWORD *)*v3 + v4));
*((_QWORD *)*v3 + v4++) = 0;
}
while ( v4 < *v1 );
}
off_1009E5FD8(*v3);
*v3 = nullptr;
*v1 = 0;
}
}