//
// do_engine_lock_init_ossl_ from 0xa0bf3c to 0xa0bf78 (60 bytes)
//
// 8 xrefs:
// > ??> @ 0x7bdbc
// > ENGINE_init @ 0xa0bde8
// > ENGINE_new @ 0xa0bfc0
// > ENGINE_get_first @ 0xa0c448
// > ENGINE_get_last @ 0xa0c50c
// > ENGINE_by_id @ 0xa0ca6c
// > ENGINE_pkey_asn1_find_str @ 0xa0d5c4
// > ??> @ 0xd1d5c8
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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 12:07:43 +0000
//
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;
}