//
// ec_GF2m_simple_invert from 0xe34098 to 0xe3410c (116 bytes)
//
// 2 xrefs:
// > ??> @ 0x5ece0
// > ??> @ 0x12271f8
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
__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;
}