//
// sub_1006ADA5C from 0x1006ada5c to 0x1006adb2c (208 bytes)
//
// 1 xrefs:
// > sub_1006A9638 @ 0x1006aa494
//
// 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
//
__int64 __fastcall sub_1006ADA5C(__int64 a1, int a2)
{
int *v4; // x21
int v5; // w8
void **v6; // x22
__int64 v7; // x23
void *v8; // x0
__int64 v9; // x8
v4 = (int *)(a1 + 35944);
v5 = *(_DWORD *)(a1 + 35944);
if ( v5 )
{
v6 = (void **)(a1 + 35952);
if ( v5 >= 1 )
{
v7 = 0;
do
{
sub_10069AA00(*((_QWORD *)*v6 + v7));
*((_QWORD *)*v6 + v7++) = 0;
}
while ( v7 < *v4 );
}
off_1009E5FD8(*v6);
*v6 = nullptr;
*v4 = 0;
}
v8 = off_1009E5FF0(a2, 8u);
if ( !v8 )
return 27;
v9 = 0;
*v4 = a2;
*(_QWORD *)(a1 + 35952) = v8;
return v9;
}