//
// DSO_bind_func from 0x1008e8c to 0x1008f2c (160 bytes)
//
// 5 xrefs:
// > CONF_modules_load @ 0x1000364
// > CONF_modules_load @ 0x100037c
// > sub_10DB098 @ 0x10db480
// > sub_10DB098 @ 0x10db4a0
// > ??> @ 0xeef48
//
// 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_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;
}