//
// sub_10AA8D4 from 0x10aa8d4 to 0x10aa988 (180 bytes)
//
// 1 xrefs:
// > ??> @ 0x1552c10
//
// 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
//
__int64 __fastcall sub_10AA8D4(__int64 a1)
{
void *v2; // x0
if ( a1 )
{
if ( (int)OPENSSL_sk_num(*(unsigned int **)(a1 + 8)) <= 0 )
{
return 1;
}
else
{
v2 = (void *)OPENSSL_sk_pop(*(int **)(a1 + 8));
if ( v2 )
{
dlclose(v2);
return 1;
}
else
{
ERR_put_error(37, 103, 104, (__int64)"crypto/dso/dso_dlfcn.c", 143);
OPENSSL_sk_push(*(int **)(a1 + 8), 0);
return 0;
}
}
}
else
{
ERR_put_error(37, 103, 67, (__int64)"crypto/dso/dso_dlfcn.c", 136);
return 0;
}
}