//
// DSO_set_filename from 0x9f80f4 to 0x9f81dc (232 bytes)
//
// 2 xrefs:
// > DSO_load @ 0x9f8254
// > ??> @ 0x7aa9c
//
// 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:07:33 +0000
//
int __fastcall DSO_set_filename(int a1, int a2)
{
bool v2; // zf
int v5; // r6
v2 = a2 == 0;
if ( a2 )
v2 = a1 == 0;
if ( v2 )
{
ERR_put_error(37, 129, 67, "crypto/dso/dso_lib.c", 244);
return 0;
}
else if ( *(_DWORD *)(a1 + 32) )
{
ERR_put_error(37, 129, 110, "crypto/dso/dso_lib.c", 248);
return 0;
}
else
{
v5 = CRYPTO_strdup(a2, "crypto/dso/dso_lib.c", 252);
if ( v5 )
{
CRYPTO_free(*(_DWORD *)(a1 + 28), "crypto/dso/dso_lib.c", 257);
*(_DWORD *)(a1 + 28) = v5;
return 1;
}
else
{
ERR_put_error(37, 129, 65, "crypto/dso/dso_lib.c", 254);
return 0;
}
}
}