//
// ec_GFp_simple_invert from 0xa094b4 to 0xa094f8 (68 bytes)
//
// 4 xrefs:
// > ??> @ 0x7b98c
// > ??> @ 0xd16de0
// > ??> @ 0xd16ea4
// > ??> @ 0xd16f68
//
// 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:42 +0000
//
int __fastcall ec_GFp_simple_invert(int a1, _DWORD *a2)
{
if ( EC_POINT_is_at_infinity(a1, a2) || BN_is_zero(a2[2]) )
return 1;
else
return BN_usub(a2[2], *(_DWORD *)(a1 + 36));
}