//
// sub_1006A9350 from 0x1006a9350 to 0x1006a93c0 (112 bytes)
//
// 1 xrefs:
// > sub_1006AD8D4 @ 0x1006ad8d4
//
// 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:43 +0000
//
__int64 __fastcall sub_1006A9350(__int64 a1, int a2)
{
__int64 v3; // x20
__int64 v4; // x8
__int64 v5; // x0
__int64 *v6; // x21
__int64 v7; // x8
__int64 result; // x0
_QWORD *v9; // x19
v3 = a2;
v4 = a1 + 40LL * a2;
v5 = *(_QWORD *)(v4 + 544);
if ( v5 )
{
v6 = (__int64 *)(v4 + 544);
sub_100664E14(v5);
sub_100664C7C(*v6);
sub_10066450C(*v6);
*v6 = 0;
}
v7 = a1 + 40 * v3;
result = *(_QWORD *)(v7 + 536);
if ( result )
{
v9 = (_QWORD *)(v7 + 536);
result = sub_100664808(result);
*v9 = 0;
}
return result;
}