//
// OPENSSL_sk_new from 0xde04e8 to 0xde056c (132 bytes)
//
// 26 xrefs:
// > sub_D3BB18 @ 0xd3bb40
// > tls_process_certificate_request @ 0xd49c78
// > EVP_PKEY_asn1_add0 @ 0xd68b30
// > EVP_PKEY_meth_add0 @ 0xdadf18
// > OBJ_add_sigid @ 0xdc31c8
// > OBJ_add_sigid @ 0xdc31e4
// > OPENSSL_sk_new_null @ 0xde0570
// > sub_DE4614 @ 0xde46fc
// > X509_STORE_new @ 0xde76bc
// > X509_TRUST_add @ 0xde91b0
// > X509_VERIFY_PARAM_add0_table @ 0xdeef30
// > X509_CRL_add0_revoked @ 0xdf0efc
// > policy_cache_set @ 0xdf3068
// > sub_DF6EDC @ 0xdf6f14
// > X509v3_asid_add_id_or_range @ 0xdf9c4c
// > X509V3_EXT_add @ 0xdfdf7c
// > X509_PURPOSE_add @ 0xe010c8
// > X509_get1_ocsp @ 0xe042fc
// > sub_E04310 @ 0xe044c0
// > sub_E04310 @ 0xe044d8
// > ASN1_STRING_TABLE_add @ 0xe0c880
// > EVP_PBE_alg_add_type @ 0xe61a28
// > policy_node_cmp_new @ 0xe6f658
// > sub_E70710 @ 0xe707e4
// > sub_E70BD8 @ 0xe70c04
// > ??> @ 0x5f178
//
// 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
//
_QWORD *__fastcall OPENSSL_sk_new(__int64 a1)
{
_QWORD *v2; // x19
void *v3; // x0
v2 = CRYPTO_zalloc(&qword_28, (__int64)"crypto/stack/stack.c", 108);
if ( v2 && (v3 = CRYPTO_zalloc(&qword_20, (__int64)"crypto/stack/stack.c", 110), (v2[1] = v3) != 0) )
{
v2[4] = a1;
v2[3] = 4;
return v2;
}
else
{
CRYPTO_free(v2, (__int64)"crypto/stack/stack.c", 117);
return nullptr;
}
}