//
// EVP_PKEY_asn1_new from 0x7c249c to 0x7c2544 (168 bytes)
//
// 2 xrefs:
// > EVP_PKEY_asn1_add_alias @ 0x7c2564
// > ??> @ 0x5e63c
//
// 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
//
int __fastcall EVP_PKEY_asn1_new(int a1, int a2, int a3, int a4)
{
_DWORD *v8; // r0
int v9; // r4
int v10; // r0
int v11; // r0
v8 = (_DWORD *)CRYPTO_zalloc(112, "crypto/asn1/ameth_lib.c", 232);
v9 = (int)v8;
if ( !v8 )
return v9;
v8[2] = a2 | 2;
*v8 = a1;
v8[1] = a1;
if ( !a4 || (v10 = CRYPTO_strdup(a4, "crypto/asn1/ameth_lib.c", 242), (*(_DWORD *)(v9 + 16) = v10) != 0) )
{
if ( !a3 )
return v9;
v11 = CRYPTO_strdup(a3, "crypto/asn1/ameth_lib.c", 248);
*(_DWORD *)(v9 + 12) = v11;
if ( v11 )
return v9;
}
EVP_PKEY_asn1_free(v9);
return 0;
}