//
// DSO_bind_func from 0xd8ab2c to 0xd8abcc (160 bytes)
//
// 5 xrefs:
// > CONF_modules_load @ 0xd82004
// > CONF_modules_load @ 0xd8201c
// > sub_E5D098 @ 0xe5d480
// > sub_E5D098 @ 0xe5d4a0
// > ??> @ 0xb6fb8
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
__int64 (*__fastcall DSO_bind_func(__int64 a1, __int64 a2))(void)
{
__int64 (*v2)(void); // x19
if ( a1 && a2 )
{
v2 = *(__int64 (**)(void))(*(_QWORD *)a1 + 24LL);
if ( v2 )
{
v2 = (__int64 (*)(void))v2();
if ( !v2 )
ERR_put_error(37, 108, 106, "crypto/dso/dso_lib.c", 185);
}
else
{
ERR_put_error(37, 108, 108, "crypto/dso/dso_lib.c", 181);
}
}
else
{
v2 = nullptr;
ERR_put_error(37, 108, 67, "crypto/dso/dso_lib.c", 177);
}
return v2;
}