//
// EVP_PKEY_asn1_free from 0xd68c50 to 0xd68cb8 (104 bytes)
//
// 4 xrefs:
// > EVP_PKEY_asn1_new @ 0xd68d68
// > EVP_PKEY_asn1_add_alias @ 0xd68dc8
// > engine_pkey_asn1_meths_free @ 0xd9e7b8
// > ??> @ 0xae948
//
// 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_asn1_free(__int64 result)
{
__int64 v1; // x19
if ( result )
{
if ( (*(_QWORD *)(result + 8) & 2) != 0 )
{
v1 = result;
CRYPTO_free(*(_QWORD *)(result + 16), "crypto/asn1/ameth_lib.c", 298);
CRYPTO_free(*(_QWORD *)(v1 + 24), "crypto/asn1/ameth_lib.c", 299);
return CRYPTO_free(v1, "crypto/asn1/ameth_lib.c", 300);
}
}
return result;
}