//
// LevelPickerPopup::onToggleFavorites from 0x75aac8 to 0x75ab34 (108 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:58:58 +0000
//
int __fastcall LevelPickerPopup::onToggleFavorites(LevelPickerPopup *this, cocos2d::CCObject *a2)
{
int v3; // r1
CCMenuItemToggler *v4; // r0
int v5; // r2
int v6; // r0
int v7; // r0
int v8; // r0
v3 = *((unsigned __int8 *)this + 614) ^ 1;
*((_BYTE *)this + 614) = v3;
v4 = *((CCMenuItemToggler **)this + 154);
if ( v4 )
CCMenuItemToggler::toggle(v4, v3);
v5 = *((unsigned __int8 *)this + 612);
*((_BYTE *)this + 740) = 0;
*((_DWORD *)this + 134) = 0;
if ( v5 )
{
v6 = *((_DWORD *)this + 168);
*((_BYTE *)this + 612) = 0;
if ( v6 )
ButtonSprite::setString(v6, "Online");
v7 = *((_DWORD *)this + 166);
if ( v7 )
(*(void (__fastcall **)(int, _DWORD))(*(_DWORD *)v7 + 172))(v7, 0);
v8 = *((_DWORD *)this + 167);
if ( v8 )
(*(void (__fastcall **)(int, _DWORD))(*(_DWORD *)v8 + 172))(v8, 0);
}
PagedListPopup::fadeLoading(this, v3, v5);
return LevelPickerPopup::buildSavedPage(this);
}