//
// ERR_func_error_string from 0xa0e9cc to 0xa0ea6c (160 bytes)
//
// 31 xrefs:
// > ERR_load_SSL_strings @ 0x9d1d3c
// > ERR_error_string_n @ 0xa0eb94
// > ERR_load_EVP_strings @ 0xacc3a4
// > ERR_load_KDF_strings @ 0xacdbb4
// > ERR_load_OBJ_strings @ 0xacdf38
// > ERR_load_OCSP_strings @ 0xacdf7c
// > ERR_load_PEM_strings @ 0xaceef8
// > ERR_load_PKCS12_strings @ 0xad0d24
// > ERR_load_PKCS7_strings @ 0xad106c
// > ERR_load_RAND_strings @ 0xad27a0
// > ERR_load_RSA_strings @ 0xad490c
// > ERR_load_TS_strings @ 0xad7b90
// > ERR_load_UI_strings @ 0xad7bd4
// > ERR_load_X509_strings @ 0xad8260
// > ERR_load_X509V3_strings @ 0xad9794
// > ERR_load_ASN1_strings @ 0xad9830
// > ERR_load_ASYNC_strings @ 0xadcb08
// > ERR_load_BIO_strings @ 0xade054
// > ERR_load_BN_strings @ 0xade150
// > ERR_load_BUF_strings @ 0xae07a0
// > ERR_load_CMS_strings @ 0xae4aec
// > ERR_load_COMP_strings @ 0xae4b30
// > ERR_load_CONF_strings @ 0xae4b74
// > ERR_load_CRYPTO_strings @ 0xae4bb8
// > ERR_load_CT_strings @ 0xae4bfc
// > ERR_load_DH_strings @ 0xae586c
// > ERR_load_DSA_strings @ 0xae5e58
// > ERR_load_DSO_strings @ 0xae5fdc
// > ERR_load_EC_strings @ 0xae6bcc
// > ERR_load_ENGINE_strings @ 0xae6c10
// > ??> @ 0x77b7c
//
// 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_func_error_string(int a1)
{
int v2; // r5
unsigned int v4[3]; // [sp+0h] [bp-Ch] BYREF
if ( !CRYPTO_THREAD_run_once(&unk_D3414C, sub_A0E308) || !dword_D34140 )
return 0;
v4[0] = a1 & 0xFFFFF000;
CRYPTO_THREAD_read_lock(dword_D3413C);
if ( !dword_D34150 )
{
CRYPTO_THREAD_unlock(dword_D3413C);
return 0;
}
v2 = OPENSSL_LH_retrieve(dword_D34150, v4);
CRYPTO_THREAD_unlock(dword_D3413C);
if ( !v2 )
return 0;
return *(_DWORD *)(v2 + 4);
}