//
// sub_10066E5B0 from 0x10066e5b0 to 0x10066e664 (180 bytes)
//
// 1 xrefs:
// > sub_100649644 @ 0x10064a168
//
// 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_10066E5B0(__int64 a1, int *a2)
{
int (__fastcall *v4)(__int64, _QWORD); // x8
__int64 result; // x0
int v6; // w8
if ( (sub_1006D156C(*(_QWORD *)(a1 + 728), *(_QWORD *)(a1 + 720)) & 0x80000000) == 0
|| (sub_1006D156C(*(_QWORD *)(a1 + 744), *(_QWORD *)(a1 + 720)) & 0x80000000) == 0
|| !*(_DWORD *)(*(_QWORD *)(a1 + 744) + 8LL) )
{
result = 0;
v6 = 47;
LABEL_9:
*a2 = v6;
return result;
}
if ( (int)sub_1006D0D88(*(_QWORD *)(a1 + 720)) < *(_DWORD *)(a1 + 792) )
goto LABEL_12;
v4 = *(int (__fastcall **)(__int64, _QWORD))(a1 + 696);
if ( v4 )
{
if ( v4(a1, *(_QWORD *)(a1 + 680)) > 0 )
return 1;
goto LABEL_12;
}
if ( !sub_10073F9BC(*(_QWORD *)(a1 + 728), *(_QWORD *)(a1 + 720)) )
{
LABEL_12:
result = 0;
v6 = 71;
goto LABEL_9;
}
return 1;
}