//
// DSO_set_filename from 0x1009034 to 0x1009128 (244 bytes)
//
// 2 xrefs:
// > DSO_load @ 0x100919c
// > ??> @ 0xbb4c8
//
// 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:15:58 +0000
//
__int64 __fastcall DSO_set_filename(__int64 a1, __int64 a2)
{
__int64 v4; // x19
if ( a1 && a2 )
{
if ( *(_QWORD *)(a1 + 56) )
{
ERR_put_error(37, 129, 110, "crypto/dso/dso_lib.c", 248);
return 0;
}
else
{
v4 = CRYPTO_strdup(a2, "crypto/dso/dso_lib.c", 252);
if ( v4 )
{
CRYPTO_free(*(_QWORD *)(a1 + 48), "crypto/dso/dso_lib.c", 257);
*(_QWORD *)(a1 + 48) = v4;
return 1;
}
else
{
ERR_put_error(37, 129, 65, "crypto/dso/dso_lib.c", 254);
return 0;
}
}
}
else
{
ERR_put_error(37, 129, 67, "crypto/dso/dso_lib.c", 244);
return 0;
}
}