//
// sub_849764 from 0x849764 to 0x849838 (212 bytes)
//
// 1 xrefs:
// > ??> @ 0xa39150
//
// 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 sub_849764(void ****a1)
{
void ***v2; // r4
void **v3; // r0
int v4; // r0
v2 = (void ***)CRYPTO_zalloc(&dword_14, (int)"crypto/x509/x_name.c", 92);
if ( v2 )
{
v3 = (void **)OPENSSL_sk_new_null();
*v2 = v3;
if ( v3 && (v4 = BUF_MEM_new(), (v2[2] = (void **)v4) != nullptr) )
{
v2[1] = (void **)(&dword_0 + 1);
*a1 = v2;
return 1;
}
else
{
ERR_put_error(13, 171, 65, (int)"crypto/x509/x_name.c", 105);
OPENSSL_sk_free(*v2);
CRYPTO_free(v2, (int)"crypto/x509/x_name.c", 108);
return 0;
}
}
else
{
ERR_put_error(13, 171, 65, (int)"crypto/x509/x_name.c", 105);
return 0;
}
}