//
// sub_10066FF50 from 0x10066ff50 to 0x10066ffc0 (112 bytes)
//
// 2 xrefs:
// > sub_100694E54 @ 0x100694f6c
// > sub_100694E54 @ 0x100694fdc
//
// 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:07 +0000
//
__int64 __fastcall sub_10066FF50(__int64 a1, __int64 a2)
{
__int64 result; // x0
if ( !a1 )
return sub_1006923F4(a2);
if ( *(_QWORD *)(a1 + 112) )
sub_100695E10(a1, 3, 2);
result = sub_1006923F4(a2);
if ( *(_QWORD *)(a1 + 112) )
return sub_100695E5C(a1, 3);
return result;
}