//
// OPENSSL_init_ssl from 0xfde5b8 to 0xfde6b4 (252 bytes)
//
// 2 xrefs:
// > SSL_CTX_new @ 0xfbf7ac
// > ??> @ 0xb7910
//
// 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:15:36 +0000
//
bool __fastcall OPENSSL_init_ssl(__int64 a1)
{
int v1; // w21
v1 = a1;
if ( !dword_15662E4 )
{
if ( (unsigned int)OPENSSL_init_crypto(a1 | 0xC)
&& (unsigned int)CRYPTO_THREAD_run_once(&unk_15662EC, sub_FDE3E8)
&& dword_15662E0
&& ((v1 & 0x100000) == 0 || (unsigned int)CRYPTO_THREAD_run_once(&unk_15662F0, sub_FDE3B0) && dword_15662D0) )
{
if ( (v1 & 0x200000) == 0 )
return 1;
if ( (unsigned int)CRYPTO_THREAD_run_once(&unk_15662F0, sub_FDE3C0) )
return dword_15662D8 != 0;
}
return 0;
}
if ( dword_15662E8 )
return 0;
dword_15662E8 = 1;
ERR_put_error(20, 342, 70, "ssl/ssl_init.c", 189);
return 0;
}