//
// EC_GROUP_free from 0x100f938 to 0x100f9c0 (136 bytes)
//
// 10 xrefs:
// > sub_100970C @ 0x1009770
// > sub_100A208 @ 0x100a254
// > EC_GROUP_new_by_curve_name @ 0x100d5ec
// > EC_KEY_free @ 0x100dd94
// > EC_KEY_copy @ 0x100dec8
// > EC_KEY_set_group @ 0x100e63c
// > EC_GROUP_dup @ 0x100fdac
// > sub_10B25F4 @ 0x10b2614
// > sub_10B2654 @ 0x10b2768
// > ??> @ 0xefe48
//
// 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:02 +0000
//
__int64 __fastcall EC_GROUP_free(__int64 result)
{
__int64 *v1; // x19
void (*v2)(void); // x1
v1 = (__int64 *)result;
if ( result )
{
v2 = *(void (**)(void))(*(_QWORD *)result + 16LL);
if ( v2 )
v2();
EC_pre_comp_free((__int64)v1);
BN_MONT_CTX_free(v1[18]);
EC_POINT_free(v1[1]);
BN_free(v1[2]);
BN_free(v1[3]);
CRYPTO_free(v1[6], "crypto/ec/ec_lib.c", 107);
return CRYPTO_free(v1, "crypto/ec/ec_lib.c", 108);
}
return result;
}