//
// EVP_PKEY_CTX_free from 0xdadf2c to 0xdadf94 (104 bytes)
//
// 45 xrefs:
// > ssl_generate_pkey @ 0xd38774
// > ssl_generate_pkey_curve @ 0xd38844
// > ssl_derive @ 0xd3897c
// > sub_D4843C @ 0xd48628
// > sub_D4843C @ 0xd4866c
// > tls_construct_client_key_exchange @ 0xd4a920
// > tls_construct_client_key_exchange @ 0xd4a990
// > tls_process_key_exchange @ 0xd4b63c
// > tls_process_key_exchange @ 0xd4bd7c
// > tls_process_client_key_exchange @ 0xd529bc
// > tls_process_client_key_exchange @ 0xd534b0
// > sub_D60980 @ 0xd60b0c
// > tls1_final_finish_mac @ 0xd61554
// > tls1_final_finish_mac @ 0xd61578
// > tls1_generate_master_secret @ 0xd61728
// > EVP_MD_CTX_reset @ 0xda175c
// > EVP_DigestSignFinal @ 0xdab7e0
// > EVP_SignFinal @ 0xdacb00
// > EVP_VerifyFinal @ 0xdacc90
// > EVP_PKEY_new_mac_key @ 0xdadcb0
// > EVP_PKEY_CTX_new @ 0xdae0c8
// > EVP_PKEY_CTX_dup @ 0xdae1b8
// > EVP_PKEY_CTX_new_id @ 0xdae2b4
// > sub_DCC148 @ 0xdcc24c
// > sub_DCC148 @ 0xdcc2ac
// > PKCS7_dataInit @ 0xdcc858
// > PKCS7_dataInit @ 0xdcca14
// > PKCS7_dataInit @ 0xdcca38
// > sub_E1D4B4 @ 0xe1d4f0
// > sub_E1D63C @ 0xe1d6b4
// > CMS_RecipientInfo_decrypt @ 0xe1dfc0
// > CMS_RecipientInfo_decrypt @ 0xe1e24c
// > CMS_RecipientInfo_encrypt @ 0xe1e584
// > CMS_RecipientInfo_kari_set0_pkey @ 0xe1f0ac
// > CMS_RecipientInfo_kari_set0_pkey @ 0xe1f0dc
// > CMS_RecipientInfo_kari_decrypt @ 0xe1f23c
// > CMS_RecipientInfo_kari_decrypt @ 0xe1f2c0
// > cms_RecipientInfo_kari_init @ 0xe1f3dc
// > cms_RecipientInfo_kari_init @ 0xe1f478
// > cms_RecipientInfo_kari_encrypt @ 0xe1f6f0
// > cms_RecipientInfo_kari_encrypt @ 0xe1f798
// > cms_SignedData_final @ 0xe21ae8
// > cms_SignedData_final @ 0xe21bc0
// > CMS_SignerInfo_verify_content @ 0xe222fc
// > ??> @ 0x69720
//
// 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
//
__int64 __fastcall EVP_PKEY_CTX_free(__int64 result)
{
__int64 *v1; // x19
void (*v2)(void); // x1
v1 = (__int64 *)result;
if ( result )
{
if ( *(_QWORD *)result )
{
v2 = *(void (**)(void))(*(_QWORD *)result + 24LL);
if ( v2 )
v2();
}
EVP_PKEY_free(v1[2]);
EVP_PKEY_free(v1[3]);
ENGINE_finish(v1[1]);
return CRYPTO_free(v1, "crypto/evp/pmeth_lib.c", 290);
}
return result;
}