//
// ERR_unload_strings from 0xa0e7ec to 0xa0e8b8 (204 bytes)
//
// 1 xrefs:
// > ??> @ 0x7c36c
//
// 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_unload_strings(int a1, int *a2)
{
int result; // r0
int v5; // r0
int v6; // r3
bool v7; // zf
int v8; // r6
int v9; // t1
int v10; // t1
result = CRYPTO_THREAD_run_once(&unk_D3414C, sub_A0E308);
if ( result )
{
result = dword_D34140;
if ( dword_D34140 )
{
CRYPTO_THREAD_write_lock(dword_D3413C);
v5 = dword_D34150;
if ( dword_D34150 )
{
v6 = *a2;
if ( *a2 )
{
v7 = a1 == 0;
v8 = a1 << 24;
if ( v7 )
{
while ( 1 )
{
OPENSSL_LH_delete(v5, a2);
v9 = a2[2];
a2 += 2;
if ( !v9 )
break;
v5 = dword_D34150;
}
}
else
{
while ( 1 )
{
*a2 = v6 | v8;
OPENSSL_LH_delete(v5, a2);
v10 = a2[2];
a2 += 2;
v6 = v10;
if ( !v10 )
break;
v5 = dword_D34150;
}
}
}
}
CRYPTO_THREAD_unlock(dword_D3413C);
return 1;
}
}
return result;
}