//
// ENGINE_new from 0x101b6f4 to 0x101b7c8 (212 bytes)
//
// 4 xrefs:
// > ENGINE_by_id @ 0x101c2cc
// > engine_load_dynamic_int @ 0x10db81c
// > engine_load_openssl_int @ 0x10dbfe0
// > ??> @ 0x6a3d8
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// 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 13:16:07 +0000
//
__int64 ENGINE_new()
{
__int64 v0; // x19
__int64 v2; // x0
if ( (unsigned int)CRYPTO_THREAD_run_once(&engine_lock_init, do_engine_lock_init_ossl_)
&& do_engine_lock_init_ossl_ret_
&& (v0 = CRYPTO_zalloc(192, "crypto/engine/eng_lib.c", 31)) != 0 )
{
*(_DWORD *)(v0 + 156) = 1;
if ( !(unsigned int)CRYPTO_new_ex_data(10, v0, v0 + 168) )
{
v2 = v0;
v0 = 0;
CRYPTO_free(v2, "crypto/engine/eng_lib.c", 38);
}
return v0;
}
else
{
ERR_put_error(38, 122, 65, "crypto/engine/eng_lib.c", 32);
return 0;
}
}