//
// sub_10AA678 from 0x10aa678 to 0x10aa79c (292 bytes)
//
// 1 xrefs:
// > ??> @ 0x1552c18
//
// 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:17:38 +0000
//
void *__fastcall sub_10AA678(__int64 a1, const char *a2)
{
unsigned int *v4; // x19
int v5; // w0
void *v6; // x0
void *v7; // x19
char *v9; // x0
if ( a1 && a2 )
{
if ( (int)OPENSSL_sk_num(*(unsigned int **)(a1 + 8)) <= 0 )
{
v7 = nullptr;
ERR_put_error(37, 100, 105, (__int64)"crypto/dso/dso_dlfcn.c", 168);
}
else
{
v4 = *(unsigned int **)(a1 + 8);
v5 = OPENSSL_sk_num(v4);
v6 = (void *)OPENSSL_sk_value((__int64)v4, v5 - 1);
v7 = v6;
if ( v6 )
{
v7 = dlsym(v6, a2);
if ( !v7 )
{
ERR_put_error(37, 100, 106, (__int64)"crypto/dso/dso_dlfcn.c", 178);
v9 = dlerror();
ERR_add_error_data(4, "symname(", a2, "): ", v9);
}
}
else
{
ERR_put_error(37, 100, 104, (__int64)"crypto/dso/dso_dlfcn.c", 173);
}
}
return v7;
}
else
{
ERR_put_error(37, 100, 67, (__int64)"crypto/dso/dso_dlfcn.c", 164);
return nullptr;
}
}