//
// OPENSSL_LH_free from 0xa20f6c to 0xa20ffc (144 bytes)
//
// 12 xrefs:
// > SSL_load_client_CA_file @ 0x9a69e4
// > SSL_load_client_CA_file @ 0x9a6a30
// > SSL_CTX_free @ 0x9ad3b8
// > err_free_strings_int @ 0xa0e908
// > OBJ_NAME_cleanup @ 0xa30a84
// > obj_cleanup_int @ 0xa30d90
// > TXT_DB_create_index @ 0xa4df38
// > TXT_DB_create_index @ 0xa4dfa8
// > TXT_DB_free @ 0xa4e2b8
// > _CONF_free_data @ 0xa8d5f0
// > engine_table_cleanup @ 0xac9658
// > ??> @ 0x74eac
//
// 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:55 +0000
//
int *__fastcall OPENSSL_LH_free(int *result)
{
unsigned int v1; // r2
int *v2; // r7
int v3; // r3
unsigned int i; // r6
int v5; // r0
int v6; // r4
if ( result )
{
v1 = result[3];
v2 = result;
v3 = *result;
for ( i = 0; i < v1; ++i )
{
v5 = *(_DWORD *)(v3 + 4 * i);
if ( v5 )
{
do
{
v6 = *(_DWORD *)(v5 + 4);
CRYPTO_free(v5, "crypto/lhash/lhash.c", 62);
v5 = v6;
}
while ( v6 );
v3 = *v2;
v1 = v2[3];
}
}
CRYPTO_free(v3, "crypto/lhash/lhash.c", 66);
return (int *)CRYPTO_free(v2, "crypto/lhash/lhash.c", 67);
}
return result;
}