//
// sub_1006E9E3C from 0x1006e9e3c to 0x1006e9f10 (212 bytes)
//
// 2 xrefs:
// > sub_1006E97B4 @ 0x1006e9808
// > sub_1006E97B4 @ 0x1006e9884
//
// 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_1006E9E3C(_QWORD *a1, __int64 a2, _QWORD *a3)
{
__int64 v5; // x9
__int64 v6; // x8
__int64 v7; // x21
__int64 v8; // x0
int v9; // w0
__int64 v10; // x8
__int64 v12; // x0
int v13; // w0
int v14; // w8
v5 = a1[2];
if ( !v5 || (v6 = a1[3]) == 0 )
{
sub_100706FB0(16, 217, 140, "ec_pmeth.c", 216);
return 0;
}
v7 = *(_QWORD *)(a1[5] + 16LL);
if ( !v7 )
v7 = *(_QWORD *)(v5 + 32);
if ( !a2 )
{
v12 = sub_1006E5C44(v7);
v13 = sub_1006DDFB0(v12);
v14 = v13 + 7;
if ( v13 + 7 < 0 )
v14 = v13 + 14;
v10 = v14 >> 3;
goto LABEL_12;
}
v8 = sub_1006E5CD4(*(_QWORD *)(v6 + 32));
v9 = sub_1006FBC64(a2, *a3, v8, v7, 0);
if ( v9 >= 1 )
{
v10 = v9;
LABEL_12:
*a3 = v10;
return 1;
}
return 0;
}