//
// sub_106289C from 0x106289c to 0x1062954 (184 bytes)
//
// 1 xrefs:
// > ??> @ 0x15524e0
//
// 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:16:51 +0000
//
__int64 *__fastcall sub_106289C(__int64 a1)
{
__int64 *result; // x0
__int64 *v3; // x19
__int64 v4; // x0
pthread_rwlock_t *v5; // x0
result = (__int64 *)CRYPTO_malloc(&off_18, (__int64)"crypto/x509/by_dir.c", 103);
v3 = result;
if ( result )
{
v4 = BUF_MEM_new();
*v3 = v4;
if ( v4 )
{
v3[1] = 0;
v5 = CRYPTO_THREAD_lock_new();
v3[2] = (__int64)v5;
if ( v5 )
{
*(_QWORD *)(a1 + 16) = v3;
return (_QWORD *)(dword_0 + 1);
}
else
{
BUF_MEM_free(*v3);
CRYPTO_free(v3, (__int64)"crypto/x509/by_dir.c", 113);
return nullptr;
}
}
else
{
CRYPTO_free(v3, (__int64)"crypto/x509/by_dir.c", 106);
return nullptr;
}
}
return result;
}