//
// ec_GFp_simple_invert from 0x1018e48 to 0x1018e98 (80 bytes)
//
// 4 xrefs:
// > ??> @ 0xa44a0
// > ??> @ 0x1539f40
// > ??> @ 0x153a0c0
// > ??> @ 0x153a240
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// 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 13:16:06 +0000
//
__int64 __fastcall ec_GFp_simple_invert(__int64 a1, _QWORD *a2)
{
if ( (unsigned int)EC_POINT_is_at_infinity(a1, a2) || BN_is_zero(a2[2]) )
return 1;
else
return BN_usub(a2[2], *(_QWORD *)(a1 + 64), a2[2]);
}