//
// LevelPickerPopup::onToggleFavorites from 0xc84834 to 0xc848cc (152 bytes)
//
// 3 xrefs:
// > ??> @ 0x6e938
// > LevelPickerPopup::init @ 0xc6a760
// > ??> @ 0x1542be0
//
// 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:05:41 +0000
//
__int64 __fastcall LevelPickerPopup::onToggleFavorites(LevelPickerPopup *this, cocos2d::CCObject *a2)
{
char v3; // w1
CCMenuItemToggler *v4; // x0
unsigned __int8 v5; // w1
int v6; // w0
ButtonSprite *v7; // x0
__int64 v8; // x0
__int64 v9; // x0
v3 = *((_BYTE *)this + 810);
v4 = *((CCMenuItemToggler **)this + 102);
v5 = v3 ^ 1;
*((_BYTE *)this + 810) = v5;
if ( v4 )
CCMenuItemToggler::toggle(v4, v5);
v6 = *((unsigned __int8 *)this + 808);
*((_BYTE *)this + 1056) = 0;
*((_DWORD *)this + 169) = 0;
if ( v6 )
{
v7 = *((ButtonSprite **)this + 115);
*((_BYTE *)this + 808) = 0;
if ( v7 )
ButtonSprite::setString(v7, "Online");
v8 = *((_QWORD *)this + 113);
if ( v8 )
(*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v8 + 344LL))(v8, 0);
v9 = *((_QWORD *)this + 114);
if ( v9 )
(*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v9 + 344LL))(v9, 0);
}
PagedListPopup::fadeLoading(this);
return LevelPickerPopup::buildSavedPage(this);
}