//
// sub_10066F828 from 0x10066f828 to 0x10066f8b0 (136 bytes)
//
// 1 xrefs:
// > sub_100693C98 @ 0x100693e90
//
// 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:06 +0000
//
__int64 __fastcall sub_10066F828(__int64 *a1, __int64 a2, __int64 a3)
{
__int64 v6; // x19
__int64 v7; // x8
__int64 v8; // x0
__int64 v9; // x0
__int64 v10; // x20
v6 = *a1;
v7 = *(_QWORD *)(*a1 + 112);
v8 = *a1;
if ( v7 )
{
sub_100695E10(v6, 3, 2);
v8 = *a1;
}
v9 = sub_10066F8B0(v8, a2, a3);
v10 = v9;
if ( v9 )
++*(_QWORD *)(v9 + 16);
if ( *(_QWORD *)(v6 + 112) )
sub_100695E5C(v6, 3);
return v10;
}