//
// SFXBrowser::onToggleCompactMode from 0xb92ad4 to 0xb92b40 (108 bytes)
//
// 3 xrefs:
// > ??> @ 0x5cd10
// > sub_B947C8 @ 0xb95140
// > ??> @ 0x1542298
//
// This function is hookable on this platform (idp: arm, 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 13:02:39 +0000
//
_QWORD *__fastcall SFXBrowser::onToggleCompactMode(_QWORD *this, cocos2d::CCObject *a2)
{
_QWORD *v2; // x19
GameManager *v3; // x0
char v4; // w0
__int64 v5; // x1
int v6; // w0
if ( *(this + 89) )
{
v2 = this;
v3 = (GameManager *)GameManager::sharedState((GameManager *)this);
v4 = GameManager::toggleGameVariable(v3, "0148");
v5 = v2[89];
*((_BYTE *)v2 + 1111) = v4;
if ( v4 )
v6 = 40;
else
v6 = 20;
*((_DWORD *)v2 + 276) = v6;
*(_DWORD *)(v5 + 96) = 0;
return (_QWORD *)SFXBrowser::setupList((SFXBrowser *)v2, (cocos2d::CCArray **)v2[89]);
}
return this;
}