//
// sub_10AA3A4 from 0x10aa3a4 to 0x10aa544 (416 bytes)
//
// 1 xrefs:
// > ??> @ 0x1552c30
//
// 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
//
const char *__fastcall sub_10AA3A4(int a1, const char *a2, char *a3)
{
int v5; // w22
int v6; // w21
int v7; // w0
char *v8; // x0
char *v9; // x22
const char *v10; // x1
const char *v11; // x20
if ( a2 )
{
if ( !a3 )
{
LABEL_12:
v11 = CRYPTO_strdup(a2, (__int64)"crypto/dso/dso_dlfcn.c", 199);
if ( !v11 )
ERR_put_error(37, 130, 65, (__int64)"crypto/dso/dso_dlfcn.c", 201);
return v11;
}
}
else if ( !a3 )
{
v11 = nullptr;
ERR_put_error(37, 130, 67, (__int64)"crypto/dso/dso_dlfcn.c", 191);
return v11;
}
if ( a2 )
{
if ( *a2 != 47 )
{
v5 = strlen(a3);
v6 = v5;
v7 = strlen(a2) + v5;
if ( v5 && a3[v5 - 1] == 47 )
{
v6 = v5 - 1;
--v7;
}
v8 = (char *)CRYPTO_malloc((void *)(v7 + 2), (__int64)"crypto/dso/dso_dlfcn.c", 231);
v9 = v8;
if ( v8 )
{
v10 = a3;
v11 = v8;
strcpy(v8, v10);
v9[v6] = 47;
strcpy(&v9[v6 + 1], a2);
}
else
{
v11 = nullptr;
ERR_put_error(37, 130, 65, (__int64)"crypto/dso/dso_dlfcn.c", 233);
}
return v11;
}
goto LABEL_12;
}
v11 = CRYPTO_strdup(a3, (__int64)"crypto/dso/dso_dlfcn.c", 209);
if ( !v11 )
{
v11 = nullptr;
ERR_put_error(37, 130, 65, (__int64)"crypto/dso/dso_dlfcn.c", 211);
}
return v11;
}