//
// DSO_merge from 0xd8b088 to 0xd8b104 (124 bytes)
//
// 2 xrefs:
// > sub_E5D098 @ 0xe5d370
// > ??> @ 0x53a00
//
// 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_merge(__int64 a1, __int64 a2)
{
__int64 v2; // x4
__int64 (*v3)(void); // x5
__int64 (*v5)(void); // x3
if ( !a1 || !a2 )
{
ERR_put_error(37, 132, 67, "crypto/dso/dso_lib.c", 267);
return 0;
}
v2 = 0;
if ( (*(_DWORD *)(a1 + 20) & 1) != 0 )
return v2;
v3 = *(__int64 (**)(void))(a1 + 40);
if ( v3 )
return v3();
v5 = *(__int64 (**)(void))(*(_QWORD *)a1 + 48LL);
if ( !v5 )
return v2;
return v5();
}