//
// sub_1006E8F94 from 0x1006e8f94 to 0x1006e9080 (236 bytes)
//
// 2 xrefs:
// > sub_1006E7D70 @ 0x1006e7d9c
// > sub_1006E80F4 @ 0x1006e8120
//
// 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:37 +0000
//
__int64 __fastcall sub_1006E8F94(int *a1, char ***a2, __int64 a3)
{
__int64 v6; // x0
__int64 v7; // x22
unsigned int v8; // w0
int v9; // w8
__int64 v10; // x2
__int64 v11; // x4
__int64 v13; // x0
_DWORD *v14; // x22
int v15; // w0
if ( !a3 || (v6 = sub_1006E5C44(a3), (v7 = v6) == 0) )
{
v10 = 124;
v11 = 78;
goto LABEL_7;
}
if ( (unsigned int)sub_1006DDDF0(v6) )
{
v8 = sub_1006DDDD8(v7);
if ( v8 )
{
*a2 = sub_1006B0D04(v8);
v9 = 6;
LABEL_11:
*a1 = v9;
return 1;
}
}
v13 = sub_100721B84();
v14 = (_DWORD *)v13;
if ( v13 )
{
v15 = sub_1006E5398(a3, v13 + 8);
*v14 = v15;
if ( v15 > 0 )
{
*a2 = (char **)v14;
v9 = 16;
goto LABEL_11;
}
sub_100721BE0(v14);
v10 = 16;
v11 = 96;
LABEL_7:
sub_100706FB0(16, 223, v10, "ec_ameth.c", v11);
return 0;
}
return 0;
}