//
// ERR_load_strings from 0x101dc18 to 0x101dd08 (240 bytes)
//
// 59 xrefs:
// > ERR_load_SSL_strings @ 0xfe1908
// > ERR_load_SSL_strings @ 0xfe1914
// > ERR_load_EVP_strings @ 0x10df484
// > ERR_load_EVP_strings @ 0x10df490
// > ERR_load_KDF_strings @ 0x10e0ff8
// > ERR_load_KDF_strings @ 0x10e1004
// > ERR_load_OBJ_strings @ 0x10e13e4
// > ERR_load_OBJ_strings @ 0x10e13f0
// > ERR_load_OCSP_strings @ 0x10e143c
// > ERR_load_OCSP_strings @ 0x10e1448
// > ERR_load_PEM_strings @ 0x10e23ec
// > ERR_load_PEM_strings @ 0x10e23f8
// > ERR_load_PKCS12_strings @ 0x10e4230
// > ERR_load_PKCS12_strings @ 0x10e423c
// > ERR_load_PKCS7_strings @ 0x10e45c8
// > ERR_load_PKCS7_strings @ 0x10e45d4
// > ERR_load_RAND_strings @ 0x10e6058
// > ERR_load_RAND_strings @ 0x10e6064
// > ERR_load_RSA_strings @ 0x10e8960
// > ERR_load_RSA_strings @ 0x10e896c
// > ERR_load_TS_strings @ 0x10ec7f8
// > ERR_load_TS_strings @ 0x10ec804
// > ERR_load_UI_strings @ 0x10ec850
// > ERR_load_UI_strings @ 0x10ec85c
// > ERR_load_X509_strings @ 0x10ecf98
// > ERR_load_X509_strings @ 0x10ecfa4
// > ERR_load_X509V3_strings @ 0x10ee520
// > ERR_load_X509V3_strings @ 0x10ee52c
// > ERR_load_ASN1_strings @ 0x10ee5b8
// > ERR_load_ASN1_strings @ 0x10ee5c4
// > ERR_load_ASYNC_strings @ 0x10f1408
// > ERR_load_ASYNC_strings @ 0x10f1414
// > ERR_load_BIO_strings @ 0x10f27d4
// > ERR_load_BIO_strings @ 0x10f27e0
// > ERR_load_BN_strings @ 0x10f2904
// > ERR_load_BN_strings @ 0x10f2910
// > ERR_load_BUF_strings @ 0x10f5bfc
// > ERR_load_BUF_strings @ 0x10f5c0c
// > ERR_load_CMS_strings @ 0x10f9778
// > ERR_load_CMS_strings @ 0x10f9784
// > ERR_load_COMP_strings @ 0x10f97d0
// > ERR_load_COMP_strings @ 0x10f97dc
// > ERR_load_CONF_strings @ 0x10f9828
// > ERR_load_CONF_strings @ 0x10f9834
// > ERR_load_CRYPTO_strings @ 0x10f9880
// > ERR_load_CRYPTO_strings @ 0x10f988c
// > ERR_load_CT_strings @ 0x10f98d8
// > ERR_load_CT_strings @ 0x10f98e4
// > ERR_load_DH_strings @ 0x10fa4b8
// > ERR_load_DH_strings @ 0x10fa4c4
// > ERR_load_DSA_strings @ 0x10faa80
// > ERR_load_DSA_strings @ 0x10faa8c
// > ERR_load_DSO_strings @ 0x10fac28
// > ERR_load_DSO_strings @ 0x10fac34
// > ERR_load_EC_strings @ 0x10fb740
// > ERR_load_EC_strings @ 0x10fb74c
// > ERR_load_ENGINE_strings @ 0x10fb798
// > ERR_load_ENGINE_strings @ 0x10fb7a4
// > ??> @ 0xa5850
//
// 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:09 +0000
//
__int64 __fastcall ERR_load_strings(int a1, unsigned __int64 *a2)
{
__int64 result; // x0
__int64 v5; // x0
unsigned __int64 v6; // x1
_QWORD *v7; // x19
unsigned __int64 v8; // t1
__int64 v9; // t1
unsigned __int64 v10; // t1
result = ERR_load_ERR_strings();
if ( (_DWORD)result )
{
CRYPTO_THREAD_write_lock(qword_1566460);
v5 = qword_1566C80;
if ( qword_1566C80 || (v5 = OPENSSL_LH_new(sub_101D850, sub_101D898), (qword_1566C80 = v5) != 0) )
{
v6 = *a2;
if ( *a2 )
{
if ( a1 )
{
while ( 1 )
{
*a2 = v6 | ((unsigned __int64)(unsigned __int8)a1 << 24);
OPENSSL_LH_insert(v5, a2);
v10 = a2[2];
a2 += 2;
v6 = v10;
if ( !v10 )
break;
v5 = qword_1566C80;
}
}
else
{
OPENSSL_LH_insert(v5, a2);
v8 = a2[2];
v7 = a2 + 2;
if ( v8 )
{
do
{
OPENSSL_LH_insert(qword_1566C80, v7);
v9 = v7[2];
v7 += 2;
}
while ( v9 );
}
}
}
}
CRYPTO_THREAD_unlock(qword_1566460);
return 1;
}
return result;
}