//
// ec_GF2m_simple_invert from 0x10b2398 to 0x10b240c (116 bytes)
//
// 2 xrefs:
// > ??> @ 0x818e0
// > ??> @ 0x153ef80
//
// 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 13:17:44 +0000
//
__int64 __fastcall ec_GF2m_simple_invert(__int64 a1, _QWORD *a2)
{
__int64 result; // x0
if ( (unsigned int)EC_POINT_is_at_infinity(a1, a2) || BN_is_zero(a2[2]) )
return 1;
result = EC_POINT_make_affine(a1, a2);
if ( (_DWORD)result )
return BN_GF2m_add(a2[2], a2[1], a2[2]);
return result;
}