//
// EVP_PKEY_asn1_new from 0x9d709c to 0x9d7144 (168 bytes)
//
// 2 xrefs:
// > EVP_PKEY_asn1_add_alias @ 0x9d7164
// > ??> @ 0x780bc
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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 12:07:15 +0000
//
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;
}