//
// do_engine_lock_init_ossl_ from 0xd9d328 to 0xd9d368 (64 bytes)
//
// 8 xrefs:
// > ??> @ 0x93dc8
// > ENGINE_init @ 0xd9d1f0
// > ENGINE_new @ 0xd9d3a8
// > ENGINE_get_first @ 0xd9d7e0
// > ENGINE_get_last @ 0xd9d884
// > ENGINE_by_id @ 0xd9dd84
// > ENGINE_pkey_asn1_find_str @ 0xd9e910
// > ??> @ 0x122d0e0
//
// 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
//
__int64 do_engine_lock_init_ossl_()
{
__int64 inited; // x0
__int64 result; // x0
inited = OPENSSL_init_crypto(0);
result = CRYPTO_THREAD_lock_new(inited);
global_engine_lock = result;
do_engine_lock_init_ossl_ret_ = result != 0;
return result;
}