//
// SFXBrowser::onToggleView from 0x14061b360 to 0x14061b3c3 (99 bytes)
//
// 5 xrefs:
// > SFXBrowser::init @ 0x1406172a2
// > SFXBrowser::init @ 0x140617494
// > SFXBrowser::init @ 0x140617600
// > SFXBrowser::init @ 0x1406177bb
// > ??> @ 0x140930218
//
// 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 11:35:20 +0000
//
void __fastcall SFXBrowser::onToggleView(__int64 a1, __int64 a2)
{
unsigned int v3; // eax
__int64 v4; // rdx
__int64 v5; // rcx
if ( *(_QWORD *)(a1 + 712) )
{
v3 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a2 + 56LL))(a2);
v4 = v3;
if ( v3 == 4 )
{
v5 = a1;
if ( *(_DWORD *)(a1 + 1108) == 4 )
v4 = 0;
}
else
{
if ( *(_DWORD *)(*(_QWORD *)(a1 + 712) + 148LL) == v3 )
v4 = *(unsigned int *)(a1 + 1108);
v5 = a1;
}
SFXBrowser::switchToView(v5, v4);
}
}