//
// sub_10064CCC8 from 0x10064ccc8 to 0x10064ce0c (324 bytes)
//
// 2 xrefs:
// > sub_10064B350 @ 0x10064b3bc
// > sub_10064B350 @ 0x10064b4e0
//
// 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:47 +0000
//
__int64 __fastcall sub_10064CCC8(_QWORD *a1)
{
__int64 v2; // x8
_QWORD *v3; // x9
__int64 v4; // x21
__int64 v5; // x22
__int64 v6; // x20
__int64 v7; // x21
int v8; // w20
v2 = a1[32];
if ( !v2 )
return 0;
v3 = *(_QWORD **)v2;
if ( !**(_QWORD **)v2 )
return 0;
if ( !v3[1] )
return 0;
if ( (*(_BYTE *)(*(_QWORD *)(a1[1] + 200LL) + 112LL) & 2) != 0 && !v3[2] )
return 0;
if ( (*(_DWORD *)(v2 + 108) & 0x30001) != 0 && !(unsigned int)sub_10065B140(a1, 0, 0, 0, 4294967294LL) )
return 0;
if ( (*(_BYTE *)(*(_QWORD *)(a1[16] + 936LL) + 24LL) & 6) == 0 )
return 1;
v4 = *(_QWORD *)(a1[38] + 168LL);
v5 = *(int *)(v4 + 8);
v6 = *(_QWORD *)(*(_QWORD *)a1[32] + 8LL);
if ( (unsigned int)sub_10070FBA0(v6) != 28 )
return 1;
if ( (v5 & 0x80000000) != 0
|| (v7 = sub_100725258(*(_QWORD *)(v4 + 56 * v5 + 24))) == 0
|| (v8 = sub_10070F71C(v6, v7), sub_10070FBF4(v7), v8 == 1) )
{
*(_QWORD *)a1[16] |= 0x10uLL;
return 1;
}
return 0;
}