//
// BN_CTX_free from 0xa80ba8 to 0xa80c48 (160 bytes)
//
// 80 xrefs:
// > sub_9F4C18 @ 0x9f4ce8
// > sub_9F4DE0 @ 0x9f4eb0
// > sub_9F5DC4 @ 0x9f5e7c
// > sub_9F715C @ 0x9f7218
// > sub_9F74B8 @ 0x9f7640
// > sub_9F74B8 @ 0x9f76c4
// > sub_9F7978 @ 0x9f7a24
// > EC_GROUP_new_by_curve_name @ 0x9fcd54
// > ec_key_simple_generate_key @ 0x9fdac4
// > ec_key_simple_check_key @ 0x9fdca0
// > EC_KEY_set_public_key_affine_coordinates @ 0x9fe13c
// > EC_GROUP_cmp @ 0xa00134
// > EC_GROUP_cmp @ 0xa0029c
// > ec_precompute_mont_data @ 0xa00534
// > ec_wNAF_mul @ 0xa00aac
// > ec_wNAF_mul @ 0xa00bc0
// > ec_wNAF_mul @ 0xa00c90
// > ec_wNAF_mul @ 0xa00efc
// > ec_wNAF_mul @ 0xa012c8
// > ec_wNAF_mul @ 0xa01330
// > ec_wNAF_precompute_mult @ 0xa01838
// > ec_wNAF_precompute_mult @ 0xa01950
// > ec_wNAF_precompute_mult @ 0xa01af8
// > ec_wNAF_precompute_mult @ 0xa01c7c
// > ecdh_simple_compute_key @ 0xa023b4
// > ossl_ecdsa_sign_setup @ 0xa02788
// > ossl_ecdsa_sign_sig @ 0xa02e44
// > ossl_ecdsa_verify_sig @ 0xa03768
// > ECPKParameters_print @ 0xa04014
// > ec_GFp_mont_group_set_curve @ 0xa047a4
// > sub_A05194 @ 0xa06080
// > sub_A067A0 @ 0xa068b0
// > ec_GFp_simple_set_compressed_coordinates @ 0xa06ec4
// > ec_GFp_simple_point2oct @ 0xa072d8
// > ec_GFp_simple_point2oct @ 0xa074a0
// > ec_GFp_simple_oct2point @ 0xa07774
// > ec_GFp_simple_group_get_curve @ 0xa07b60
// > ec_GFp_simple_get_Jprojective_coordinates_GFp @ 0xa07c4c
// > ec_GFp_simple_group_check_discriminant @ 0xa07e2c
// > ec_GFp_simple_set_Jprojective_coordinates_GFp @ 0xa0802c
// > ec_GFp_simple_point_get_affine_coordinates @ 0xa082e0
// > ec_GFp_simple_dbl @ 0xa08564
// > ec_GFp_simple_group_set_curve @ 0xa08b78
// > ec_GFp_simple_cmp @ 0xa08da4
// > ec_GFp_simple_add @ 0xa09118
// > ec_GFp_simple_is_on_curve @ 0xa095d0
// > ec_GFp_simple_make_affine @ 0xa09870
// > ec_GFp_simple_points_make_affine @ 0xa09964
// > ec_GFp_simple_points_make_affine @ 0xa099cc
// > RSA_setup_blinding @ 0xa420f4
// > sub_A42E10 @ 0xa42f78
// > sub_A431F4 @ 0xa43330
// > sub_A43568 @ 0xa43644
// > sub_A43A80 @ 0xa43d58
// > SRP_Calc_server_key @ 0xa4b5d4
// > SRP_Calc_B @ 0xa4b70c
// > SRP_Calc_A @ 0xa4b9e8
// > SRP_Calc_client_key @ 0xa4bb30
// > SRP_Verify_B_mod_N @ 0xa4bc3c
// > SRP_create_verifier_BN @ 0xa4cdf0
// > DH_check @ 0xa941d4
// > DH_check_pub_key @ 0xa943cc
// > dsa_builtin_paramgen @ 0xa95534
// > dsa_builtin_paramgen2 @ 0xa959f8
// > ec_GF2m_simple_set_compressed_coordinates @ 0xa9dabc
// > ec_GF2m_simple_point2oct @ 0xa9dd08
// > ec_GF2m_simple_point2oct @ 0xa9deec
// > ec_GF2m_simple_oct2point @ 0xa9e1f4
// > ec_GF2m_simple_group_check_discriminant @ 0xa9e78c
// > ec_GF2m_simple_cmp @ 0xa9ec38
// > ec_GF2m_simple_make_affine @ 0xa9eda4
// > ec_GF2m_simple_is_on_curve @ 0xa9eea0
// > ec_GF2m_simple_add @ 0xa9f2c4
// > RSA_generate_key_ex @ 0xad4b24
// > BN_is_prime_fasttest_ex @ 0xadfd24
// > BN_generate_prime_ex @ 0xae030c
// > DH_generate_parameters_ex @ 0xae5a38
// > DSA_generate_key @ 0xae5f28
// > ec_GF2m_simple_mul @ 0xae69bc
// > ??> @ 0x7a4fc
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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 12:08:49 +0000
//
void __fastcall BN_CTX_free(void **a1)
{
_DWORD *v2; // r4
bool v3; // zf
_DWORD *v4; // r5
_BYTE *v5; // r0
void *v6; // r0
if ( a1 )
{
CRYPTO_free(a1[5], (int)"crypto/bn/bn_ctx.c", 247);
v2 = *a1;
v3 = *a1 == nullptr;
a1[5] = nullptr;
if ( !v3 )
{
do
{
v4 = v2 + 80;
do
{
v5 = v2;
v3 = *v2 == 0;
v2 += 5;
if ( !v3 )
BN_clear_free(v5);
}
while ( v2 != v4 );
v6 = *a1;
a1[1] = *((void **)*a1 + 81);
CRYPTO_free(v6, (int)"crypto/bn/bn_ctx.c", 296);
v2 = a1[1];
*a1 = v2;
}
while ( v2 );
}
CRYPTO_free(a1, (int)"crypto/bn/bn_ctx.c", 178);
}
}