//
// OPENSSL_LH_free from 0x1031848 to 0x1031904 (188 bytes)
//
// 12 xrefs:
// > SSL_load_client_CA_file @ 0xfb92a0
// > SSL_load_client_CA_file @ 0xfb931c
// > SSL_CTX_free @ 0xfbf6d4
// > err_free_strings_int @ 0x101de18
// > OBJ_NAME_cleanup @ 0x103fa50
// > obj_cleanup_int @ 0x1040210
// > TXT_DB_create_index @ 0x105f61c
// > TXT_DB_create_index @ 0x105f69c
// > TXT_DB_free @ 0x105fa08
// > _CONF_free_data @ 0x10a1550
// > engine_table_cleanup @ 0x10dc49c
// > ??> @ 0xbeb10
//
// 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:20 +0000
//
__int64 __fastcall OPENSSL_LH_free(__int64 result)
{
unsigned int v1; // w2
__int64 v2; // x22
__int64 v3; // x3
unsigned int i; // w21
__int64 v5; // x0
__int64 v6; // x19
if ( result )
{
v1 = *(_DWORD *)(result + 24);
v2 = result;
if ( v1 )
{
v3 = *(_QWORD *)result;
for ( i = 0; i < v1; ++i )
{
v5 = *(_QWORD *)(v3 + 8LL * i);
if ( v5 )
{
do
{
v6 = *(_QWORD *)(v5 + 8);
CRYPTO_free(v5, "crypto/lhash/lhash.c", 62);
v5 = v6;
}
while ( v6 );
v3 = *(_QWORD *)v2;
v1 = *(_DWORD *)(v2 + 24);
}
}
}
else
{
v3 = *(_QWORD *)result;
}
CRYPTO_free(v3, "crypto/lhash/lhash.c", 66);
return CRYPTO_free(v2, "crypto/lhash/lhash.c", 67);
}
return result;
}