//
// EVP_PKEY_asn1_new from 0xd68cb8 to 0xd68d74 (188 bytes)
//
// 2 xrefs:
// > EVP_PKEY_asn1_add_alias @ 0xd68d94
// > ??> @ 0x590b8
//
// 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_new(int a1, int a2, __int64 a3, __int64 a4)
{
__int64 v7; // x0
__int64 v8; // x19
__int64 v9; // x0
__int64 v10; // x0
v7 = CRYPTO_zalloc(216, "crypto/asn1/ameth_lib.c", 232);
v8 = v7;
if ( !v7 )
return v8;
*(_DWORD *)v7 = a1;
*(_DWORD *)(v7 + 4) = a1;
*(_QWORD *)(v7 + 8) = a2 | 2;
if ( !a4 || (v9 = CRYPTO_strdup(a4, "crypto/asn1/ameth_lib.c", 242), (*(_QWORD *)(v8 + 24) = v9) != 0) )
{
if ( !a3 )
return v8;
v10 = CRYPTO_strdup(a3, "crypto/asn1/ameth_lib.c", 248);
*(_QWORD *)(v8 + 16) = v10;
if ( v10 )
return v8;
}
EVP_PKEY_asn1_free(v8);
return 0;
}