//
// sub_83C6C4 from 0x83c6c4 to 0x83c768 (164 bytes)
//
// 1 xrefs:
// > ??> @ 0xac0f14
//
// 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_83C6C4(int a1)
{
int *v2; // r4
int v3; // r5
pthread_rwlock_t *v4; // r5
v2 = (int *)CRYPTO_malloc(&byte_9[3], (int)"crypto/x509/by_dir.c", 103);
if ( !v2 )
return 0;
v3 = BUF_MEM_new();
*v2 = v3;
if ( v3 )
{
v2[1] = 0;
v4 = CRYPTO_THREAD_lock_new();
v2[2] = (int)v4;
if ( v4 )
{
*(_DWORD *)(a1 + 12) = v2;
return 1;
}
else
{
BUF_MEM_free(*v2);
CRYPTO_free(v2, (int)"crypto/x509/by_dir.c", 113);
return 0;
}
}
else
{
CRYPTO_free(v2, (int)"crypto/x509/by_dir.c", 106);
return 0;
}
}