//
// sub_106F53C from 0x106f53c to 0x106f61c (224 bytes)
//
// 1 xrefs:
// > ??> @ 0x140e488
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 13:17:00 +0000
//
__int64 __fastcall sub_106F53C(_QWORD *a1)
{
_DWORD *v2; // x19
_QWORD *v3; // x0
__int64 v4; // x0
v2 = CRYPTO_zalloc(&qword_28, (__int64)"crypto/x509/x_name.c", 92);
if ( v2 )
{
v3 = OPENSSL_sk_new_null();
*(_QWORD *)v2 = v3;
if ( v3 && (v4 = BUF_MEM_new(), (*((_QWORD *)v2 + 2) = v4) != 0) )
{
v2[2] = 1;
*a1 = v2;
return 1;
}
else
{
ERR_put_error(13, 171, 65, (__int64)"crypto/x509/x_name.c", 105);
OPENSSL_sk_free(*(void ***)v2);
CRYPTO_free(v2, (__int64)"crypto/x509/x_name.c", 108);
return 0;
}
}
else
{
ERR_put_error(13, 171, 65, (__int64)"crypto/x509/x_name.c", 105);
return 0;
}
}