//
// ERR_lib_error_string from 0xa0e928 to 0xa0e9c4 (156 bytes)
//
// 2 xrefs:
// > ERR_error_string_n @ 0xa0eb88
// > ??> @ 0x7c37c
//
// 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_lib_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 & 0xFF000000;
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);
}