//
// sub_A96B2C from 0xa96b2c to 0xa96c30 (260 bytes)
//
// 1 xrefs:
// > ??> @ 0xd264d4
//
// 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
//
char *__fastcall sub_A96B2C(int a1, char *a2)
{
size_t v4; // r4
char *v5; // r0
char *v6; // r4
char v8; // r0
void *v9; // r3
void *v10; // r4
v4 = strlen(a2);
if ( strchr(a2, 47) )
{
v5 = (char *)CRYPTO_malloc((void *)(v4 + 1), (int)"crypto/dso/dso_dlfcn.c", 257);
v6 = v5;
if ( v5 )
{
strcpy(v5, a2);
return v6;
}
goto LABEL_11;
}
v8 = DSO_flags(a1);
v9 = (void *)(v4 + 4);
if ( (v8 & 2) == 0 )
v9 = (void *)(v4 + 7);
v10 = CRYPTO_malloc(v9, (int)"crypto/dso/dso_dlfcn.c", 257);
if ( !v10 )
{
LABEL_11:
ERR_put_error(37, 123, 109, (int)"crypto/dso/dso_dlfcn.c", 259);
return nullptr;
}
if ( (DSO_flags(a1) & 2) != 0 )
sub_993BD0((int)v10, "%s.so", a2);
else
sub_993BD0((int)v10, "lib%s.so", a2);
return (char *)v10;
}