//
// MusicBrowser::onToggleView from 0x6be596 to 0x6be5e0 (74 bytes)
//
// 0 xrefs:
//
// 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 11:56:48 +0000
//
MusicSearchResult **__fastcall MusicBrowser::onToggleView(MusicSearchResult **this, cocos2d::CCObject *a2)
{
MusicSearchResult **v2; // r4
int v3; // r0
MusicSearchResult *v4; // r2
v2 = this;
if ( *(this + 136) )
{
v3 = (*(int (__fastcall **)(cocos2d::CCObject *))(*(_DWORD *)a2 + 32))(a2);
v4 = v2[136];
if ( *((_DWORD *)v4 + 26) == v3 )
v3 = 0;
*((_DWORD *)v4 + 26) = v3;
if ( v3 == 3 )
MusicBrowser::refreshLevelIDList((MusicBrowser *)v2);
*((_DWORD *)v2[136] + 18) = 0;
MusicSearchResult::updateObjects(v2[136]);
return (MusicSearchResult **)MusicBrowser::setupList(v2, v2[136]);
}
return this;
}