//
// MusicBrowser::onToggleView from 0x1006e8e10 to 0x1006e8e7a (106 bytes)
//
// 3 xrefs:
// > MusicBrowser::init @ 0x1006e8018
// > MusicBrowser::init @ 0x1006e8154
// > MusicBrowser::init @ 0x1006e829b
//
// 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:35:48 +0000
//
__int64 __fastcall MusicBrowser::onToggleView(__int64 a1, __int64 a2)
{
__int64 result; // rax
unsigned int v4; // eax
unsigned int *v5; // rdi
unsigned int v6; // ecx
if ( *(_QWORD *)(a1 + 712) )
{
v4 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a2 + 64LL))(a2);
v5 = *(unsigned int **)(a1 + 712);
v6 = 0;
if ( v5[35] != v4 )
v6 = v4;
v5[35] = v6;
if ( v6 == 3 )
{
sub_1006EA680(a1);
v5 = *(unsigned int **)(a1 + 712);
}
v5[24] = 0;
MusicSearchResult::updateObjects(v5);
return MusicBrowser::setupList(a1);
}
return result;
}