//
// sub_1006E95B4 from 0x1006e95b4 to 0x1006e9668 (180 bytes)
//
// 1 xrefs:
// > ??> @ 0x1009bd608
//
// 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_1006E95B4(__int64 a1, __int64 a2)
{
__int64 **v4; // x22
_BYTE *v5; // x21
v4 = *(__int64 ***)(a1 + 40);
if ( *(_QWORD *)(a1 + 16) || *v4 )
{
v5 = sub_1006E56DC();
if ( v5 )
{
sub_10070F95C(a2);
if ( *(_QWORD *)(a1 + 16) )
{
if ( !(unsigned int)sub_10070F650(a2) )
return 0;
return sub_1006E5AA0(*(_QWORD *)(a2 + 32));
}
if ( sub_1006E5C4C((__int64)v5, *v4) )
return sub_1006E5AA0(*(_QWORD *)(a2 + 32));
}
}
else
{
sub_100706FB0(16, 199, 139, "ec_pmeth.c", 476);
}
return 0;
}