//
// sub_1006E9520 from 0x1006e9520 to 0x1006e95b4 (148 bytes)
//
// 1 xrefs:
// > ??> @ 0x1009bd5f8
//
// 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
//
bool __fastcall sub_1006E9520(__int64 a1, int a2)
{
__int64 **v3; // x21
_BYTE *v4; // x0
__int64 v5; // x20
_BOOL8 v6; // x21
v3 = *(__int64 ***)(a1 + 40);
if ( !*v3 )
{
sub_100706FB0(16, 219, 139, "ec_pmeth.c", 457);
return 0;
}
v4 = sub_1006E56DC();
v5 = (__int64)v4;
if ( !v4 )
return 0;
v6 = sub_1006E5C4C((__int64)v4, *v3);
if ( !v6 )
{
sub_1006E57EC(v5);
return 0;
}
sub_10070F95C(a2);
return v6;
}