//
// EVP_PKEY_asn1_new from 0xfe7018 to 0xfe70d4 (188 bytes)
//
// 2 xrefs:
// > EVP_PKEY_asn1_add_alias @ 0xfe70f4
// > ??> @ 0x7a800
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// 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 13:15:40 +0000
//
__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;
}