//
// ec_GF2m_simple_invert from 0xa9f3b4 to 0xa9f414 (96 bytes)
//
// 2 xrefs:
// > ??> @ 0x844bc
// > ??> @ 0xd196ac
//
// 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:09:11 +0000
//
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;
}