//
// ec_GFp_simple_invert from 0x7f48b4 to 0x7f48f8 (68 bytes)
//
// 4 xrefs:
// > ??> @ 0x61f0c
// > ??> @ 0xab2704
// > ??> @ 0xab27c8
// > ??> @ 0xab288c
//
// 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_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));
}