//
// ERR_unload_strings from 0x101dd08 to 0x101ddd0 (200 bytes)
//
// 1 xrefs:
// > ??> @ 0x7eec8
//
// 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_unload_strings(int a1, unsigned __int64 *a2)
{
__int64 result; // x0
__int64 v5; // x0
unsigned __int64 v6; // x1
unsigned __int64 v7; // t1
unsigned __int64 v8; // t1
result = CRYPTO_THREAD_run_once(&unk_1566C78, sub_101D8A8);
if ( (_DWORD)result )
{
result = (unsigned int)dword_1566468;
if ( dword_1566468 )
{
CRYPTO_THREAD_write_lock(qword_1566460);
v5 = qword_1566C80;
if ( qword_1566C80 )
{
v6 = *a2;
if ( *a2 )
{
if ( a1 )
{
while ( 1 )
{
*a2 = v6 | ((unsigned __int64)(unsigned __int8)a1 << 24);
OPENSSL_LH_delete(v5, a2);
v8 = a2[2];
a2 += 2;
v6 = v8;
if ( !v8 )
break;
v5 = qword_1566C80;
}
}
else
{
while ( 1 )
{
OPENSSL_LH_delete(v5, a2);
v7 = a2[2];
a2 += 2;
if ( !v7 )
break;
v5 = qword_1566C80;
}
}
}
}
CRYPTO_THREAD_unlock(qword_1566460);
return 1;
}
}
return result;
}