//
// EC_POINT_invert from 0x9ffc18 to 0x9ffc98 (128 bytes)
//
// 3 xrefs:
// > ec_wNAF_mul @ 0xa015cc
// > ec_wNAF_mul @ 0xa01628
// > ??> @ 0x7b56c
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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 12:07:37 +0000
//
int __fastcall EC_POINT_invert(int a1, _DWORD *a2)
{
int (*v2)(void); // r12
v2 = *(int (**)(void))(*(_DWORD *)a1 + 100);
if ( !v2 )
{
ERR_put_error(16, 210, 66, "crypto/ec/ec_lib.c", 808);
return 0;
}
if ( *(_DWORD *)a1 != *a2 )
{
ERR_put_error(16, 210, 101, "crypto/ec/ec_lib.c", 812);
return 0;
}
return v2();
}