//
// sub_1006E0C3C from 0x1006e0c3c to 0x1006e0d60 (292 bytes)
//
// 2 xrefs:
// > ??> @ 0x1009bc040
// > ??> @ 0x1009bc170
//
// 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:12:33 +0000
//
__int64 __fastcall sub_1006E0C3C(__int64 a1, __int64 a2, __int64 *a3)
{
__int64 v6; // x21
void **v7; // x20
if ( *(_DWORD *)(a2 + 80) )
return 1;
if ( (unsigned int)sub_1006DE894(a1, (_QWORD *)a2) )
return 1;
if ( a3 )
{
v7 = nullptr;
}
else
{
v7 = (void **)sub_1006D1C30();
a3 = (__int64 *)v7;
if ( !v7 )
return 0;
}
sub_1006D1DF8((__int64)a3);
sub_1006D1F64(a3);
if ( sub_1006D1F64(a3)
&& (unsigned int)sub_1006DE654(a1, (_QWORD *)a2)
&& (unsigned int)sub_1006DE57C(a1, (_QWORD *)a2) )
{
if ( *(_DWORD *)(a2 + 80) )
{
v6 = 1;
goto LABEL_16;
}
sub_100706FB0(16, 102, 68, "ecp_smpl.c", 1236);
}
v6 = 0;
LABEL_16:
sub_1006D1EE0((__int64)a3);
if ( v7 )
sub_1006D1C94(v7);
return v6;
}