//
// sub_10064F82C from 0x10064f82c to 0x10064f8d8 (172 bytes)
//
// 4 xrefs:
// > sub_10064CF24 @ 0x10064cfd8
// > sub_10064D018 @ 0x10064d0d0
// > sub_10064F7D0 @ 0x10064f800
// > sub_10064F9DC @ 0x10064f9f4
//
// 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:10:49 +0000
//
__int64 __fastcall sub_10064F82C(__int64 result)
{
__int64 v1; // x19
__int64 v2; // x8
_QWORD *v3; // x9
__int64 v4; // x0
__int64 v5; // x0
__int64 v6; // x0
__int64 v7; // x0
__int64 v8; // x0
v1 = result;
v2 = *(_QWORD *)(result + 128);
v3 = *(_QWORD **)(v2 + 448);
if ( v3 )
{
if ( *v3 )
{
sub_100709690(*v3);
v2 = *(_QWORD *)(v1 + 128);
v3 = *(_QWORD **)(v2 + 448);
}
v4 = v3[1];
if ( v4 )
{
sub_100709690(v4);
v2 = *(_QWORD *)(v1 + 128);
v3 = *(_QWORD **)(v2 + 448);
}
v5 = v3[2];
if ( v5 )
{
sub_100709690(v5);
v2 = *(_QWORD *)(v1 + 128);
v3 = *(_QWORD **)(v2 + 448);
}
v6 = v3[3];
if ( v6 )
{
sub_100709690(v6);
v2 = *(_QWORD *)(v1 + 128);
v3 = *(_QWORD **)(v2 + 448);
}
v7 = v3[4];
if ( v7 )
{
sub_100709690(v7);
v2 = *(_QWORD *)(v1 + 128);
v3 = *(_QWORD **)(v2 + 448);
}
v8 = v3[5];
if ( v8 )
{
sub_100709690(v8);
v2 = *(_QWORD *)(v1 + 128);
}
result = sub_1006AEDAC(*(void **)(v2 + 448));
*(_QWORD *)(*(_QWORD *)(v1 + 128) + 448LL) = 0;
}
return result;
}