//
// OPENSSL_LH_new from 0xa20e98 to 0xa20f60 (200 bytes)
//
// 13 xrefs:
// > SSL_load_client_CA_file @ 0x9a68e8
// > SSL_CTX_new @ 0x9ad578
// > ERR_load_ERR_strings @ 0xa0e610
// > ERR_load_ERR_strings @ 0xa0e634
// > ERR_load_ERR_strings @ 0xa0e658
// > ERR_load_ERR_strings @ 0xa0e67c
// > ERR_load_strings @ 0xa0e7c0
// > OBJ_NAME_init @ 0xa30440
// > OBJ_add_object @ 0xa30f98
// > TXT_DB_create_index @ 0xa4decc
// > _CONF_new_data @ 0xa8d588
// > engine_table_register @ 0xac9568
// > ??> @ 0x74e7c
//
// 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_new(
unsigned __int8 *(__fastcall *a1)(unsigned __int8 *result),
int (**a2)(const char *, const char *))
{
int *v4; // r4
int v5; // r8
v4 = (int *)CRYPTO_zalloc(96, "crypto/lhash/lhash.c", 31);
if ( !v4 )
return nullptr;
v5 = CRYPTO_zalloc(64, "crypto/lhash/lhash.c", 33);
*v4 = v5;
if ( v5 )
{
if ( !a2 )
a2 = &strcmp;
v4[1] = (int)a2;
if ( !a1 )
a1 = OPENSSL_LH_strhash;
v4[4] = 16;
v4[2] = (int)a1;
v4[3] = 8;
v4[6] = 8;
v4[7] = 512;
v4[8] = 256;
return v4;
}
else
{
CRYPTO_free(v4, "crypto/lhash/lhash.c", 45);
return nullptr;
}
}