//
// DSO_merge from 0x9f84e8 to 0x9f8560 (120 bytes)
//
// 2 xrefs:
// > sub_AC8090 @ 0xac82a8
// > ??> @ 0x7aaac
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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 12:07:33 +0000
//
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();
}
}