//
// X509_PKEY_new from 0x869a44 to 0x869ac4 (128 bytes)
//
// 4 xrefs:
// > PEM_X509_INFO_read_bio @ 0x8ba1c0
// > PEM_X509_INFO_read_bio @ 0x8ba348
// > PEM_X509_INFO_read_bio @ 0x8ba390
// > ??> @ 0x69b6c
//
// 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
//
_DWORD *X509_PKEY_new()
{
_DWORD *v0; // r4
int v1; // r0
int v2; // r3
bool v3; // zf
v0 = CRYPTO_zalloc(&word_30, (int)"crypto/asn1/x_pkey.c", 20);
if ( v0 )
{
v0[1] = X509_ALGOR_new();
v1 = ASN1_OCTET_STRING_new();
v2 = v0[1];
v3 = v2 == 0;
if ( v2 )
v3 = v1 == 0;
v0[2] = v1;
if ( !v3 )
return v0;
}
X509_PKEY_free((int)v0);
ERR_put_error(13, 173, 65, (int)"crypto/asn1/x_pkey.c", 32);
return nullptr;
}