//
// sub_8822DC from 0x8822dc to 0x882380 (164 bytes)
//
// 1 xrefs:
// > ??> @ 0xac12f0
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
int __fastcall sub_8822DC(int a1)
{
void *v3; // r0
if ( a1 )
{
if ( OPENSSL_sk_num(*(_DWORD *)(a1 + 4)) > 0 )
{
v3 = (void *)OPENSSL_sk_pop(*(int **)(a1 + 4));
if ( v3 )
{
dlclose(v3);
return 1;
}
else
{
ERR_put_error(37, 103, 104, (int)"crypto/dso/dso_dlfcn.c", 143);
OPENSSL_sk_push(*(int **)(a1 + 4), 0);
return 0;
}
}
else
{
return 1;
}
}
else
{
ERR_put_error(37, 103, 67, (int)"crypto/dso/dso_dlfcn.c", 136);
return 0;
}
}