//
// sub_10066E1CC from 0x10066e1cc to 0x10066e2e8 (284 bytes)
//
// 1 xrefs:
// > sub_1006430D0 @ 0x100643b28
//
// 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_10066E1CC(_QWORD *a1, _DWORD *a2)
{
__int64 (__fastcall *v4)(_QWORD *, _DWORD *, _QWORD); // x8
__int64 v5; // x20
__int64 v6; // x0
_BYTE v8[48]; // [xsp+8h] [xbp-58h] BYREF
*a2 = 115;
v4 = (__int64 (__fastcall *)(_QWORD *, _DWORD *, _QWORD))a1[86];
if ( !v4 || (v5 = v4(a1, a2, a1[85]), !(_DWORD)v5) )
{
*a2 = 80;
if ( a1[90] )
{
if ( a1[91] )
{
if ( a1[92] )
{
if ( a1[97] )
{
v5 = 2;
if ( (int)sub_100706330(v8, 48) >= 1 )
{
a1[96] = sub_1006D1318(v8, 48, 0);
sub_1006B0510((int)v8, 0x30u);
v6 = sub_10073F1BC(a1[96], a1[90], a1[91], a1[97]);
a1[93] = v6;
if ( v6 )
return 0;
else
return 2;
}
}
else
{
return 2;
}
}
else
{
return 2;
}
}
else
{
return 2;
}
}
else
{
return 2;
}
}
return v5;
}