//
// sub_10042E3B0 from 0x10042e3b0 to 0x10042e408 (88 bytes)
//
// 4 xrefs:
// > SFXBrowser::init @ 0x10042ca23
// > SFXBrowser::init @ 0x10042cbc6
// > SFXBrowser::init @ 0x10042cd0e
// > SFXBrowser::init @ 0x10042ce59
//
// This function is hookable on this platform (idp: pc, 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 12:30:21 +0000
//
__int64 __fastcall sub_10042E3B0(__int64 a1, __int64 a2)
{
__int64 result; // rax
unsigned int v3; // eax
if ( *(_QWORD *)(a1 + 712) )
{
v3 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a2 + 64LL))(a2);
if ( v3 == 4 )
{
v3 = 4 * (*(_DWORD *)(a1 + 1116) != 4);
}
else if ( *(_DWORD *)(*(_QWORD *)(a1 + 712) + 140LL) == v3 )
{
v3 = *(_DWORD *)(a1 + 1116);
}
return sub_1004326B0(a1, v3);
}
return result;
}