//
// OPENSSL_init_ssl from 0x9ce408 to 0x9ce528 (288 bytes)
//
// 2 xrefs:
// > SSL_CTX_new @ 0x9ad4b4
// > ??> @ 0x7599c
//
// 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:10 +0000
//
bool __fastcall OPENSSL_init_ssl(int a1)
{
if ( !dword_D34050 )
{
if ( OPENSSL_init_crypto(a1 | 0xC)
&& CRYPTO_THREAD_run_once(&unk_D34058, sub_9CE224)
&& dword_D3404C
&& ((a1 & 0x100000) == 0 || CRYPTO_THREAD_run_once(&unk_D3405C, sub_9CE1E8) && dword_D3403C) )
{
if ( (a1 & 0x200000) == 0 )
return 1;
if ( CRYPTO_THREAD_run_once(&unk_D3405C, sub_9CE200) )
return dword_D34044 != 0;
}
return 0;
}
if ( dword_D34054 )
return 0;
dword_D34054 = 1;
ERR_put_error(20, 342, 70, "ssl/ssl_init.c", 189);
return 0;
}