//
// ERR_load_strings from 0xa0e6fc to 0xa0e7d4 (216 bytes)
//
// 59 xrefs:
// > ERR_load_SSL_strings @ 0x9d1d54
// > ERR_load_SSL_strings @ 0x9d1d60
// > ERR_load_EVP_strings @ 0xacc3bc
// > ERR_load_EVP_strings @ 0xacc3c8
// > ERR_load_KDF_strings @ 0xacdbcc
// > ERR_load_KDF_strings @ 0xacdbd8
// > ERR_load_OBJ_strings @ 0xacdf50
// > ERR_load_OBJ_strings @ 0xacdf5c
// > ERR_load_OCSP_strings @ 0xacdf94
// > ERR_load_OCSP_strings @ 0xacdfa0
// > ERR_load_PEM_strings @ 0xacef10
// > ERR_load_PEM_strings @ 0xacef1c
// > ERR_load_PKCS12_strings @ 0xad0d3c
// > ERR_load_PKCS12_strings @ 0xad0d48
// > ERR_load_PKCS7_strings @ 0xad1084
// > ERR_load_PKCS7_strings @ 0xad1090
// > ERR_load_RAND_strings @ 0xad27b8
// > ERR_load_RAND_strings @ 0xad27c4
// > ERR_load_RSA_strings @ 0xad4924
// > ERR_load_RSA_strings @ 0xad4930
// > ERR_load_TS_strings @ 0xad7ba8
// > ERR_load_TS_strings @ 0xad7bb4
// > ERR_load_UI_strings @ 0xad7bec
// > ERR_load_UI_strings @ 0xad7bf8
// > ERR_load_X509_strings @ 0xad8278
// > ERR_load_X509_strings @ 0xad8284
// > ERR_load_X509V3_strings @ 0xad97ac
// > ERR_load_X509V3_strings @ 0xad97b8
// > ERR_load_ASN1_strings @ 0xad9848
// > ERR_load_ASN1_strings @ 0xad9854
// > ERR_load_ASYNC_strings @ 0xadcb20
// > ERR_load_ASYNC_strings @ 0xadcb2c
// > ERR_load_BIO_strings @ 0xade06c
// > ERR_load_BIO_strings @ 0xade078
// > ERR_load_BN_strings @ 0xade168
// > ERR_load_BN_strings @ 0xade174
// > ERR_load_BUF_strings @ 0xae07b8
// > ERR_load_BUF_strings @ 0xae07c8
// > ERR_load_CMS_strings @ 0xae4b04
// > ERR_load_CMS_strings @ 0xae4b10
// > ERR_load_COMP_strings @ 0xae4b48
// > ERR_load_COMP_strings @ 0xae4b54
// > ERR_load_CONF_strings @ 0xae4b8c
// > ERR_load_CONF_strings @ 0xae4b98
// > ERR_load_CRYPTO_strings @ 0xae4bd0
// > ERR_load_CRYPTO_strings @ 0xae4bdc
// > ERR_load_CT_strings @ 0xae4c14
// > ERR_load_CT_strings @ 0xae4c20
// > ERR_load_DH_strings @ 0xae5884
// > ERR_load_DH_strings @ 0xae5890
// > ERR_load_DSA_strings @ 0xae5e70
// > ERR_load_DSA_strings @ 0xae5e7c
// > ERR_load_DSO_strings @ 0xae5ff4
// > ERR_load_DSO_strings @ 0xae6000
// > ERR_load_EC_strings @ 0xae6be4
// > ERR_load_EC_strings @ 0xae6bf0
// > ERR_load_ENGINE_strings @ 0xae6c28
// > ERR_load_ENGINE_strings @ 0xae6c34
// > ??> @ 0x77b8c
//
// 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:45 +0000
//
int __fastcall ERR_load_strings(int a1, int *a2)
{
int result; // r0
int v5; // r0
int v6; // r3
bool v7; // zf
int v8; // r5
int v9; // t1
int v10; // t1
result = ERR_load_ERR_strings();
if ( result )
{
CRYPTO_THREAD_write_lock(dword_D3413C);
v5 = dword_D34150;
if ( dword_D34150 || (v5 = OPENSSL_LH_new(sub_A0E2B4, sub_A0E2F8), (dword_D34150 = v5) != 0) )
{
v6 = *a2;
if ( *a2 )
{
v7 = a1 == 0;
v8 = a1 << 24;
if ( v7 )
{
while ( 1 )
{
OPENSSL_LH_insert(v5, a2);
v9 = a2[2];
a2 += 2;
if ( !v9 )
break;
v5 = dword_D34150;
}
}
else
{
while ( 1 )
{
*a2 = v6 | v8;
OPENSSL_LH_insert(v5, a2);
v10 = a2[2];
a2 += 2;
v6 = v10;
if ( !v10 )
break;
v5 = dword_D34150;
}
}
}
}
CRYPTO_THREAD_unlock(dword_D3413C);
return 1;
}
return result;
}