//
// LevelPickerPopup::onRefreshOnline from 0xc64390 to 0xc6440c (124 bytes)
//
// 3 xrefs:
// > ??> @ 0x84088
// > LevelPickerPopup::init @ 0xc6a488
// > ??> @ 0x1543720
//
// 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:24 +0000
//
PagedListPopup *__fastcall LevelPickerPopup::onRefreshOnline(PagedListPopup *this, cocos2d::CCObject *a2)
{
char *v2; // x20
__int64 v3; // x2
PagedListPopup *v4; // x19
GameLevelManager *v5; // x0
const char *v6; // x1
if ( *((_BYTE *)this + 808) )
{
v2 = (char *)this + 840;
v3 = *((_BYTE *)this + 840) >> 1;
if ( (*((_BYTE *)this + 840) & 1) != 0 )
v3 = *((_QWORD *)this + 106);
v4 = this;
if ( v3 )
{
v5 = (GameLevelManager *)GameLevelManager::sharedState(this);
v6 = (char *)v4 + 841;
if ( (*((_BYTE *)v4 + 840) & 1) != 0 )
v6 = *((const char **)v2 + 2);
GameLevelManager::resetTimerForKey(v5, v6);
return PagedListPopup::loadPage(v4, *((_DWORD *)v4 + 169));
}
else
{
return PagedListPopup::loadPage(this, *((_DWORD *)this + 169));
}
}
return this;
}