//
// sub_1006E9668 from 0x1006e9668 to 0x1006e9748 (224 bytes)
//
// 1 xrefs:
// > ??> @ 0x1009bd618
//
// 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_1006E9668(__int64 a1, __int64 a2, unsigned __int64 *a3, __int64 a4, __int64 a5)
{
__int64 v9; // x8
__int64 v10; // x21
__int64 v11; // x24
unsigned __int64 v12; // x25
__int64 result; // x0
unsigned __int64 v14; // x8
__int64 v15; // x0
__int64 v16; // x0
unsigned int v17; // [xsp+Ch] [xbp-44h] BYREF
v9 = *(_QWORD *)(a1 + 16);
v10 = *(_QWORD *)(v9 + 32);
if ( !a2 )
{
v14 = (int)sub_1006F72B8(*(_QWORD *)(v9 + 32));
LABEL_10:
*a3 = v14;
return 1;
}
v11 = *(_QWORD *)(a1 + 40);
v12 = *a3;
if ( v12 < (int)sub_1006F72B8(*(_QWORD *)(v9 + 32)) )
{
sub_100706FB0(16, 218, 100, "ec_pmeth.c", 171);
return 0;
}
v15 = *(_QWORD *)(v11 + 8);
if ( v15 )
v16 = sub_100711408(v15);
else
v16 = 64;
result = sub_1006F8154(v16, a4, a5, a2, &v17, v10);
if ( (int)result >= 1 )
{
v14 = v17;
goto LABEL_10;
}
return result;
}