//
// OPENSSL_LH_new from 0x1031770 to 0x1031848 (216 bytes)
//
// 13 xrefs:
// > SSL_load_client_CA_file @ 0xfb91e8
// > SSL_CTX_new @ 0xfbf85c
// > ERR_load_ERR_strings @ 0x101dba8
// > ERR_load_ERR_strings @ 0x101dbc8
// > ERR_load_ERR_strings @ 0x101dbe8
// > ERR_load_ERR_strings @ 0x101dc08
// > ERR_load_strings @ 0x101dcf8
// > OBJ_NAME_init @ 0x103f434
// > OBJ_add_object @ 0x10403e4
// > TXT_DB_create_index @ 0x105f5b0
// > _CONF_new_data @ 0x10a14e4
// > engine_table_register @ 0x10dc3b8
// > ??> @ 0x49588
//
// 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_new(
unsigned __int8 *(__fastcall *a1)(unsigned __int8 *result),
int (**a2)(const char *, const char *))
{
__int64 result; // x0
__int64 v5; // x19
__int64 v6; // x0
result = CRYPTO_zalloc(176, "crypto/lhash/lhash.c", 31);
v5 = result;
if ( result )
{
v6 = CRYPTO_zalloc(128, "crypto/lhash/lhash.c", 33);
*(_QWORD *)v5 = v6;
if ( v6 )
{
if ( !a2 )
a2 = &strcmp;
*(_QWORD *)(v5 + 8) = a2;
if ( !a1 )
a1 = OPENSSL_LH_strhash;
*(_DWORD *)(v5 + 24) = 8;
*(_DWORD *)(v5 + 36) = 8;
*(_QWORD *)(v5 + 40) = 512;
*(_QWORD *)(v5 + 16) = a1;
*(_DWORD *)(v5 + 28) = 16;
*(_QWORD *)(v5 + 48) = 256;
return v5;
}
else
{
CRYPTO_free(v5, "crypto/lhash/lhash.c", 45);
return 0;
}
}
return result;
}