//
// sub_8BC440 from 0x8bc440 to 0x8bc488 (72 bytes)
//
// 12 xrefs:
// > sub_8BC4F8 @ 0x8bc500
// > sub_8BC4F8 @ 0x8bc50c
// > ??> @ 0x8bc65c
// > sub_8BC66C @ 0x8bc690
// > sub_8BC66C @ 0x8bc69c
// > ??> @ 0x8bca8c
// > sub_8BCB18 @ 0x8bcb6c
// > sub_8BCB18 @ 0x8bcb78
// > sub_8BCB18 @ 0x8bccf4
// > sub_8BCB18 @ 0x8bccfc
// > ??> @ 0x8bd6b8
// > ??> @ 0x8bd6d8
//
// 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 sub_8BC440()
{
pthread_rwlock_t *v0; // r0
bool v1; // zf
int result; // r0
OPENSSL_init_crypto(0, 0, nullptr);
dword_AD48F8 = (int)CRYPTO_THREAD_lock_new();
v0 = CRYPTO_THREAD_lock_new();
v1 = v0 == nullptr;
if ( v0 )
v1 = dword_AD48F8 == 0;
dword_AD48FC = (int)v0;
result = !v1;
dword_AD4900 = result;
return result;
}