//
// do_engine_lock_init_ossl_ from 0x7f733c to 0x7f7378 (60 bytes)
//
// 8 xrefs:
// > ??> @ 0x6233c
// > ENGINE_init @ 0x7f71e8
// > ENGINE_new @ 0x7f73c0
// > ENGINE_get_first @ 0x7f7848
// > ENGINE_get_last @ 0x7f790c
// > ENGINE_by_id @ 0x7f7e6c
// > ENGINE_pkey_asn1_find_str @ 0x7f89c4
// > ??> @ 0xab8604
//
// 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 do_engine_lock_init_ossl_()
{
int inited; // r0
int result; // r0
int v2; // r1
inited = OPENSSL_init_crypto(0);
result = CRYPTO_THREAD_lock_new(inited);
v2 = result;
if ( result )
v2 = 1;
global_engine_lock = result;
do_engine_lock_init_ossl_ret_ = v2;
return result;
}