//
// DSO_merge from 0x10093e8 to 0x1009464 (124 bytes)
//
// 2 xrefs:
// > sub_10DB098 @ 0x10db370
// > ??> @ 0x74020
//
// 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_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();
}