//
// sub_A96C4C from 0xa96c4c to 0xa96d84 (312 bytes)
//
// 1 xrefs:
// > ??> @ 0xd264cc
//
// 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:09:01 +0000
//
void *__fastcall sub_A96C4C(int a1, const char *a2)
{
bool v2; // zf
_DWORD *v5; // r4
int v6; // r0
void *v7; // r0
void *result; // r0
char *v9; // r0
v2 = a2 == nullptr;
if ( a2 )
v2 = a1 == 0;
if ( v2 )
{
ERR_put_error(37, 100, 67, (int)"crypto/dso/dso_dlfcn.c", 164);
return nullptr;
}
else if ( OPENSSL_sk_num(*(_DWORD *)(a1 + 4)) <= 0 )
{
ERR_put_error(37, 100, 105, (int)"crypto/dso/dso_dlfcn.c", 168);
return nullptr;
}
else
{
v5 = *(_DWORD **)(a1 + 4);
v6 = OPENSSL_sk_num((int)v5);
v7 = (void *)OPENSSL_sk_value(v5, v6 - 1);
if ( v7 )
{
result = dlsym(v7, a2);
if ( !result )
{
ERR_put_error(37, 100, 106, (int)"crypto/dso/dso_dlfcn.c", 178);
v9 = dlerror();
ERR_add_error_data(4, "symname(", a2, "): ", v9);
return nullptr;
}
}
else
{
ERR_put_error(37, 100, 104, (int)"crypto/dso/dso_dlfcn.c", 173);
return nullptr;
}
}
return result;
}