//
// ec_GFp_mont_group_finish from 0x7efab0 to 0x7efae0 (48 bytes)
//
// 3 xrefs:
// > ??> @ 0x61d5c
// > ??> @ 0xab26ac
// > ??> @ 0xab2770
//
// 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_mont_group_finish(int a1)
{
int v2; // r0
BN_MONT_CTX_free(*(_BYTE **)(a1 + 76));
v2 = *(_DWORD *)(a1 + 80);
*(_DWORD *)(a1 + 76) = 0;
BN_free(v2);
*(_DWORD *)(a1 + 80) = 0;
return ec_GFp_simple_group_finish(a1);
}