//
// EVP_PKEY_asn1_add0 from 0x7c2298 to 0x7c230c (116 bytes)
//
// 2 xrefs:
// > EVP_PKEY_asn1_add_alias @ 0x7c2578
// > ??> @ 0x5e5fc
//
// 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_add0(int a1)
{
int v2; // r0
int v4; // [sp+4h] [bp-4h]
v2 = dword_AD2DDC;
if ( !dword_AD2DDC )
{
v4 = a1;
v2 = OPENSSL_sk_new(sub_7C201C);
a1 = v4;
dword_AD2DDC = v2;
if ( !v2 )
return 0;
}
if ( !OPENSSL_sk_push(v2, a1) )
return 0;
OPENSSL_sk_sort(dword_AD2DDC);
return 1;
}