//
// ec_GFp_mont_group_clear_finish from 0x7efae0 to 0x7efb10 (48 bytes)
//
// 3 xrefs:
// > ??> @ 0x61d7c
// > ??> @ 0xab26b0
// > ??> @ 0xab2774
//
// 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_clear_finish(int a1)
{
_BYTE *v2; // r0
BN_MONT_CTX_free(*(_BYTE **)(a1 + 76));
v2 = *(_BYTE **)(a1 + 80);
*(_DWORD *)(a1 + 76) = 0;
BN_clear_free(v2);
*(_DWORD *)(a1 + 80) = 0;
return ec_GFp_simple_group_clear_finish(a1);
}