//
// EVP_PKEY_asn1_add0 from 0xd68ad8 to 0xd68b44 (108 bytes)
//
// 2 xrefs:
// > EVP_PKEY_asn1_add_alias @ 0xd68da4
// > ??> @ 0xc3a80
//
// 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_add0(__int64 a1)
{
__int64 v2; // x0
__int64 v4; // [xsp+28h] [xbp+28h]
v2 = qword_125D508;
if ( !qword_125D508 )
{
v4 = a1;
v2 = OPENSSL_sk_new(sub_D68840);
qword_125D508 = v2;
a1 = v4;
if ( !v2 )
return 0;
}
if ( !(unsigned int)OPENSSL_sk_push(v2, a1) )
return 0;
OPENSSL_sk_sort(qword_125D508);
return 1;
}