//
// BIO_ctrl from 0xff4f68 to 0xff5064 (252 bytes)
//
// 192 xrefs:
// > sub_E2B824 @ 0xe2b990
// > sub_E2B824 @ 0xe2b9c0
// > sub_E2B824 @ 0xe2b9f4
// > sub_E2B824 @ 0xe2ba24
// > sub_E2B824 @ 0xe2ba54
// > sub_E2B824 @ 0xe2ba84
// > sub_E2B824 @ 0xe2baec
// > sub_E2B824 @ 0xe2bb1c
// > sub_E2B824 @ 0xe2bb88
// > sub_E2B824 @ 0xe2bbb4
// > sub_E2B824 @ 0xe2bc74
// > sub_E2B824 @ 0xe2bd50
// > sub_E2B824 @ 0xe2bd80
// > sub_E2B824 @ 0xe2bda8
// > sub_E2B824 @ 0xe2bdd8
// > sub_E2B824 @ 0xe2be78
// > sub_E2B824 @ 0xe2bea8
// > sub_E2B824 @ 0xe2becc
// > sub_E2B824 @ 0xe2bf00
// > sub_E2B824 @ 0xe2c01c
// > sub_E2B824 @ 0xe2c048
// > sub_E2B824 @ 0xe2c098
// > sub_E2B824 @ 0xe2c0c4
// > sub_E2B824 @ 0xe2c114
// > sub_E2B824 @ 0xe2c140
// > sub_E2B824 @ 0xe2c190
// > sub_E2B824 @ 0xe2c1bc
// > sub_E2B824 @ 0xe2c210
// > sub_E2B824 @ 0xe2c23c
// > sub_E2B824 @ 0xe2c2ec
// > sub_E2B824 @ 0xe2c318
// > sub_E2B824 @ 0xe2c368
// > sub_E2B824 @ 0xe2c394
// > sub_E2B824 @ 0xe2c3e4
// > sub_E2B824 @ 0xe2c410
// > sub_E2B824 @ 0xe2c460
// > sub_E2B824 @ 0xe2c48c
// > sub_E2B824 @ 0xe2c564
// > sub_E2B824 @ 0xe2c594
// > sub_E2B824 @ 0xe2c5e0
// > sub_E2B824 @ 0xe2c60c
// > sub_E2B824 @ 0xe2c660
// > sub_E2B824 @ 0xe2c68c
// > sub_E2B824 @ 0xe2c6e0
// > sub_E2B824 @ 0xe2c70c
// > sub_E2B824 @ 0xe2c760
// > sub_E2B824 @ 0xe2c78c
// > sub_E2B824 @ 0xe2c7dc
// > sub_E2B824 @ 0xe2c808
// > sub_E2B824 @ 0xe2c858
// > sub_E2B824 @ 0xe2c884
// > sub_E2B824 @ 0xe2c8d4
// > sub_E2B824 @ 0xe2c900
// > sub_E2C94C @ 0xe2ca90
// > sub_E2C94C @ 0xe2cb0c
// > sub_E2C94C @ 0xe2cb38
// > sub_E2C94C @ 0xe2cb60
// > sub_E2C94C @ 0xe2cb8c
// > sub_E2C94C @ 0xe2cf1c
// > sub_E2DA90 @ 0xe2e6ec
// > sub_FADD3C @ 0xfaddd8
// > sub_FADD3C @ 0xfae010
// > sub_FADD3C @ 0xfae0f0
// > BIO_new_ssl @ 0xfae280
// > ssl3_dispatch_alert @ 0xfb7d90
// > SSL_load_client_CA_file @ 0xfb920c
// > SSL_add_file_cert_subjects_to_stack @ 0xfb93d8
// > SSL_get_rfd @ 0xfbdb6c
// > SSL_get_wfd @ 0xfbdbac
// > SSL_set_wfd @ 0xfbdcf0
// > SSL_set_rfd @ 0xfbddc8
// > SSL_dup @ 0xfc1d8c
// > SSL_dup @ 0xfc1db4
// > SSL_use_certificate_file @ 0xfc2738
// > SSL_use_RSAPrivateKey_file @ 0xfc2a04
// > SSL_use_PrivateKey_file @ 0xfc2d88
// > SSL_CTX_use_certificate_file @ 0xfc302c
// > SSL_CTX_use_RSAPrivateKey_file @ 0xfc32f8
// > SSL_CTX_use_PrivateKey_file @ 0xfc3678
// > SSL_CTX_use_certificate_chain_file @ 0xfc3888
// > SSL_use_certificate_chain_file @ 0xfc3a54
// > SSL_CTX_use_serverinfo_file @ 0xfc3ee8
// > statem_flush @ 0xfc63e0
// > tls_construct_client_verify @ 0xfc92a4
// > dtls1_do_write @ 0xfcb190
// > dtls1_do_write @ 0xfcb1b8
// > dtls1_do_write @ 0xfcb454
// > dtls1_retransmit_message @ 0xfcba1c
// > tls_process_cert_verify @ 0xfd1b10
// > dtls1_start_timer @ 0xfdb440
// > dtls1_stop_timer @ 0xfdb5c0
// > dtls1_check_timeout_num @ 0xfdb66c
// > DTLSv1_listen @ 0xfdb818
// > DTLSv1_listen @ 0xfdb8f8
// > DTLSv1_listen @ 0xfdbb74
// > DTLSv1_listen @ 0xfdbb9c
// > DTLSv1_listen @ 0xfdbcb4
// > DTLSv1_listen @ 0xfdbcd0
// > DTLSv1_listen @ 0xfdbd0c
// > DTLSv1_listen @ 0xfdbd74
// > DTLSv1_listen @ 0xfdbd9c
// > DTLSv1_listen @ 0xfdbeb0
// > dtls1_min_mtu @ 0xfdc084
// > dtls1_query_mtu @ 0xfdc110
// > dtls1_query_mtu @ 0xfdc158
// > dtls1_query_mtu @ 0xfdc170
// > dtls1_dispatch_alert @ 0xfdc354
// > ssl3_init_finished_mac @ 0xfdd79c
// > ssl3_digest_cached_records @ 0xfdd890
// > sub_FDFF14 @ 0xfdff50
// > sub_FF3E30 @ 0xff3ea4
// > sub_FF3E30 @ 0xff3f8c
// > sub_FF3E30 @ 0xff4014
// > BIO_int_ctrl @ 0xff5078
// > BIO_ptr_ctrl @ 0xff5094
// > BIO_ctrl_pending @ 0xff51a8
// > BIO_ctrl_wpending @ 0xff51b8
// > BIO_push @ 0xff51f8
// > BIO_pop @ 0xff5240
// > BIO_dup_chain @ 0xff540c
// > sub_FF5B30 @ 0xff5c00
// > sub_FF5B30 @ 0xff5c18
// > sub_FF5B30 @ 0xff5c44
// > BIO_new_connect @ 0xff6a4c
// > BIO_new_file @ 0xff7014
// > BIO_new_fp @ 0xff7128
// > BN_print_fp @ 0xffcb7c
// > EC_KEY_print_fp @ 0x1013ea8
// > ECParameters_print_fp @ 0x1013f40
// > ECPKParameters_print_fp @ 0x10145f4
// > PEM_ASN1_read @ 0x1045444
// > PEM_ASN1_write @ 0x10461bc
// > PEM_write @ 0x10462a0
// > PEM_read @ 0x1046a18
// > PEM_read_PrivateKey @ 0x10475c8
// > PEM_read_DHparams @ 0x10477f4
// > sub_104A794 @ 0x104a7e0
// > PKCS7_dataInit @ 0x104a9f0
// > PKCS7_dataInit @ 0x104aec0
// > PKCS7_dataDecode @ 0x104b124
// > PKCS7_dataDecode @ 0x104b280
// > PKCS7_dataDecode @ 0x104b608
// > PKCS7_dataFinal @ 0x104bae8
// > PKCS7_dataFinal @ 0x104bc14
// > PKCS7_dataFinal @ 0x104bd08
// > PKCS7_dataFinal @ 0x104bd2c
// > PKCS7_signatureVerify @ 0x104c174
// > SRP_VBASE_init @ 0x105dcb8
// > X509_load_cert_file @ 0x1062d00
// > X509_load_crl_file @ 0x1062eb4
// > X509_print_ex_fp @ 0x1063f0c
// > ASN1_d2i_fp @ 0x1086738
// > ASN1_item_d2i_fp @ 0x1086ba4
// > ASN1_i2d_fp @ 0x1087830
// > ASN1_item_i2d_fp @ 0x1087998
// > CMS_dataFinal @ 0x109deb8
// > CMS_dataFinal @ 0x109dedc
// > cms_DigestAlgorithm_init_bio @ 0x109e274
// > cms_DigestAlgorithm_find_ctx @ 0x109e324
// > sub_10DCF10 @ 0x10dd088
// > sub_10DCF10 @ 0x10dd168
// > sub_10DD39C @ 0x10dd418
// > sub_10DD39C @ 0x10dd498
// > OCSP_REQ_CTX_nbio @ 0x10e1854
// > OCSP_REQ_CTX_nbio @ 0x10e1874
// > OCSP_REQ_CTX_nbio @ 0x10e191c
// > OCSP_REQ_CTX_nbio @ 0x10e19e4
// > OCSP_REQ_CTX_nbio @ 0x10e1a34
// > OCSP_REQ_CTX_nbio @ 0x10e1a88
// > OCSP_REQ_CTX_nbio @ 0x10e1a9c
// > OCSP_REQ_CTX_nbio_d2i @ 0x10e1dc0
// > PEM_X509_INFO_read @ 0x10e293c
// > sub_10EE980 @ 0x10eeb30
// > SMIME_read_ASN1 @ 0x10ef3d0
// > SMIME_read_ASN1 @ 0x10ef538
// > SMIME_read_ASN1 @ 0x10ef648
// > SMIME_read_ASN1 @ 0x10ef788
// > SMIME_crlf_copy @ 0x10ef940
// > i2d_ASN1_bio_stream @ 0x10efad0
// > PEM_write_bio_ASN1_stream @ 0x10efbcc
// > SMIME_write_ASN1 @ 0x10f0044
// > SMIME_write_ASN1 @ 0x10f02b0
// > BIO_new_NDEF @ 0x10f08c8
// > cms_EncryptedContent_init_bio @ 0x10f910c
// > sub_10FC9C4 @ 0x10fca4c
// > sub_10FC9C4 @ 0x10fcaa0
// > sub_10FEBA0 @ 0x10fecb0
// > BIO_asn1_set_prefix @ 0x10ff1c0
// > BIO_asn1_get_prefix @ 0x10ff1ec
// > BIO_asn1_set_suffix @ 0x10ff230
// > BIO_asn1_get_suffix @ 0x10ff25c
// > ??> @ 0x47188
//
// 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:15:47 +0000
//
__int64 __fastcall BIO_ctrl(__int64 result, unsigned int a2, __int64 a3, __int64 a4)
{
__int64 v4; // x19
__int64 (*v8)(void); // x4
__int64 (*v9)(void); // x23
__int64 v10; // x0
v4 = result;
if ( result )
{
if ( *(_QWORD *)result && (v8 = *(__int64 (**)(void))(*(_QWORD *)result + 48LL)) != nullptr )
{
v9 = *(__int64 (**)(void))(result + 8);
if ( v9 )
{
result = v9();
if ( result > 0 )
{
v10 = (*(__int64 (__fastcall **)(__int64, _QWORD, __int64, __int64))(*(_QWORD *)v4 + 48LL))(v4, a2, a3, a4);
return ((__int64 (__fastcall *)(__int64, __int64, __int64, _QWORD, __int64, __int64))v9)(
v4,
134,
a4,
a2,
a3,
v10);
}
}
else
{
return v8();
}
}
else
{
ERR_put_error(32, 103, 121, "crypto/bio/bio_lib.c", 336);
return -2;
}
}
return result;
}