//
// ec_GF2m_simple_invert from 0x88a7b4 to 0x88a814 (96 bytes)
//
// 2 xrefs:
// > ??> @ 0x6aa3c
// > ??> @ 0xab4fd0
//
// 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
//
int __fastcall ec_GF2m_simple_invert(int a1, _DWORD *a2)
{
int result; // r0
if ( EC_POINT_is_at_infinity(a1, a2) || BN_is_zero(a2[2]) )
return 1;
result = EC_POINT_make_affine(a1, a2);
if ( result )
return BN_GF2m_add(a2[2], a2[1], a2[2]);
return result;
}