//
// DSO_bind_func from 0x9f7f18 to 0x9f7fcc (180 bytes)
//
// 5 xrefs:
// > CONF_modules_load @ 0x9ef060
// > CONF_modules_load @ 0x9ef07c
// > sub_AC8090 @ 0xac8500
// > sub_AC8090 @ 0xac8528
// > ??> @ 0x79d7c
//
// 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_bind_func(int a1, int a2)
{
bool v2; // zf
int (*v3)(void); // r4
int result; // r0
v2 = a2 == 0;
if ( a2 )
v2 = a1 == 0;
if ( v2 )
{
ERR_put_error(37, 108, 67, "crypto/dso/dso_lib.c", 177);
return 0;
}
else
{
v3 = *(int (**)(void))(*(_DWORD *)a1 + 12);
if ( v3 )
{
result = v3();
if ( !result )
{
ERR_put_error(37, 108, 106, "crypto/dso/dso_lib.c", 185);
return 0;
}
}
else
{
ERR_put_error(37, 108, 108, "crypto/dso/dso_lib.c", 181);
return 0;
}
}
return result;
}