//
// BN_CTX_new from 0x1093950 to 0x10939c8 (120 bytes)
//
// 69 xrefs:
// > sub_1005B4C @ 0x1005b80
// > sub_1005CF0 @ 0x1005d08
// > sub_1006DA8 @ 0x1006ed4
// > sub_1008178 @ 0x1008208
// > sub_1008488 @ 0x100850c
// > sub_10088DC @ 0x1008ab4
// > EC_GROUP_new_by_curve_name @ 0x100d474
// > ec_key_simple_generate_key @ 0x100e1a4
// > ec_key_simple_check_key @ 0x100e3fc
// > EC_KEY_set_public_key_affine_coordinates @ 0x100e784
// > EC_GROUP_cmp @ 0x10107e0
// > ec_precompute_mont_data @ 0x1010a40
// > ec_wNAF_mul @ 0x1011120
// > ec_wNAF_precompute_mult @ 0x1011e54
// > ecdh_simple_compute_key @ 0x1012590
// > ossl_ecdsa_sign_setup @ 0x1012b08
// > ossl_ecdsa_sign_sig @ 0x1012eb8
// > ossl_ecdsa_verify_sig @ 0x1013820
// > ECPKParameters_print @ 0x1013fd8
// > ec_GFp_mont_group_set_curve @ 0x1014824
// > sub_10150E8 @ 0x1015ffc
// > sub_10163C0 @ 0x1016858
// > ec_GFp_simple_set_compressed_coordinates @ 0x1016b2c
// > ec_GFp_simple_point2oct @ 0x1016f74
// > ec_GFp_simple_oct2point @ 0x1017314
// > ec_GFp_simple_group_get_curve @ 0x101769c
// > ec_GFp_simple_get_Jprojective_coordinates_GFp @ 0x10177ac
// > ec_GFp_simple_group_check_discriminant @ 0x101795c
// > ec_GFp_simple_set_Jprojective_coordinates_GFp @ 0x1017bc4
// > ec_GFp_simple_point_get_affine_coordinates @ 0x1017e44
// > ec_GFp_simple_dbl @ 0x10182e0
// > ec_GFp_simple_group_set_curve @ 0x1018594
// > ec_GFp_simple_cmp @ 0x1018870
// > ec_GFp_simple_add @ 0x1018b4c
// > ec_GFp_simple_is_on_curve @ 0x1018fe0
// > ec_GFp_simple_make_affine @ 0x1019244
// > ec_GFp_simple_points_make_affine @ 0x10193a8
// > RSA_setup_blinding @ 0x1051e80
// > sub_1052B04 @ 0x1052b70
// > sub_1052E9C @ 0x1052f08
// > sub_1053210 @ 0x1053248
// > sub_10536BC @ 0x10536f4
// > SRP_Calc_server_key @ 0x105c8e8
// > SRP_Calc_B @ 0x105c9f8
// > SRP_Calc_A @ 0x105cd18
// > SRP_Calc_client_key @ 0x105cdcc
// > SRP_Verify_B_mod_N @ 0x105cf78
// > SRP_create_verifier_BN @ 0x105e3b0
// > BN_CTX_secure_new @ 0x10939d0
// > DH_check @ 0x10a7a78
// > DH_check_pub_key @ 0x10a7d08
// > dsa_builtin_paramgen @ 0x10a88d0
// > dsa_builtin_paramgen2 @ 0x10a9360
// > dsa_builtin_paramgen2 @ 0x10a964c
// > ec_GF2m_simple_set_compressed_coordinates @ 0x10b0a40
// > ec_GF2m_simple_point2oct @ 0x10b0e30
// > ec_GF2m_simple_oct2point @ 0x10b1220
// > ec_GF2m_simple_group_check_discriminant @ 0x10b1750
// > ec_GF2m_simple_cmp @ 0x10b1cfc
// > ec_GF2m_simple_make_affine @ 0x10b1e18
// > ec_GF2m_simple_is_on_curve @ 0x10b1f7c
// > ec_GF2m_simple_add @ 0x10b2344
// > RSA_generate_key_ex @ 0x10e89e0
// > BN_is_prime_fasttest_ex @ 0x10f50b4
// > BN_generate_prime_ex @ 0x10f56e0
// > DH_generate_parameters_ex @ 0x10fa528
// > DSA_generate_key @ 0x10faadc
// > ec_GF2m_simple_mul @ 0x10fb6c8
// > ??> @ 0x69100
//
// 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:17:22 +0000
//
_QWORD *BN_CTX_new()
{
_QWORD *v0; // x0
_QWORD *v1; // x19
v0 = CRYPTO_zalloc(&dword_40, (__int64)"crypto/bn/bn_ctx.c", 138);
v1 = v0;
if ( v0 )
{
v0[2] = 0;
v0[1] = 0;
*v0 = 0;
*((_DWORD *)v0 + 7) = 0;
*((_DWORD *)v0 + 6) = 0;
v0[4] = 0;
*((_DWORD *)v0 + 11) = 0;
*((_DWORD *)v0 + 10) = 0;
}
else
{
ERR_put_error(3, 106, 65, (__int64)"crypto/bn/bn_ctx.c", 139);
}
return v1;
}