//
// DSO_merge from 0x7e38e8 to 0x7e3960 (120 bytes)
//
// 2 xrefs:
// > sub_8B3090 @ 0x8b32a8
// > ??> @ 0x6102c
//
// 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
//
int __fastcall DSO_merge(_DWORD *a1, int a2)
{
bool v2; // zf
int (*v3)(void); // r12
int (*v5)(void); // r3
v2 = a2 == 0;
if ( a2 )
v2 = a1 == nullptr;
if ( v2 )
{
ERR_put_error(37, 132, 67, "crypto/dso/dso_lib.c", 267);
return 0;
}
else
{
if ( (a1[3] & 1) != 0 )
return 0;
v3 = (int (*)(void))a1[6];
if ( v3 )
return v3();
v5 = *(int (**)(void))(*a1 + 24);
if ( !v5 )
return 0;
else
return v5();
}
}