//
// LevelPickerPopup::onOnlineMode from 0xc84bc8 to 0xc84d98 (464 bytes)
//
// 3 xrefs:
// > ??> @ 0x48a90
// > LevelPickerPopup::init @ 0xc6a34c
// > ??> @ 0x1541688
//
// 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::onOnlineMode(LevelPickerPopup *this, cocos2d::CCObject *a2)
{
ButtonSprite *v3; // x0
__int64 v4; // x0
__int64 v5; // x0
CCTextInputNode *v7; // x0
_BOOL4 v8; // w21
_QWORD *v9; // x23
ButtonSprite *v10; // x0
__int64 v11; // x0
__int64 v12; // x0
__int64 v13; // [xsp+40h] [xbp+40h] BYREF
__int64 v14; // [xsp+48h] [xbp+48h]
void *v15; // [xsp+50h] [xbp+50h]
if ( *((_BYTE *)this + 808) )
{
v3 = *((ButtonSprite **)this + 115);
*((_BYTE *)this + 808) = 0;
*((_DWORD *)this + 169) = 0;
if ( v3 )
ButtonSprite::setString(v3, "Online");
v4 = *((_QWORD *)this + 113);
if ( v4 )
(*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v4 + 344LL))(v4, 0);
v5 = *((_QWORD *)this + 114);
if ( v5 )
(*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v5 + 344LL))(v5, 0);
PagedListPopup::fadeLoading(this);
LevelPickerPopup::buildSavedPage(this);
}
else
{
v7 = *((CCTextInputNode **)this + 112);
if ( v7 )
{
CCTextInputNode::getString(v7, &v13);
if ( (v13 & 1) != 0 )
{
v8 = v14 != 0;
operator delete(v15);
}
else
{
v8 = (int)(unsigned __int8)v13 >> 1 != 0;
}
if ( v8 )
{
v9 = *((_QWORD **)this + 112);
v13 = 0;
v14 = 0;
v15 = nullptr;
std::string::__init(&v13, &byte_11B8890, 0);
CCTextInputNode::setString(v9, (char *)&v13);
if ( (v13 & 1) != 0 )
operator delete(v15);
}
}
std::string::assign((__int64 *)this + 109, &byte_11B8890);
v10 = *((ButtonSprite **)this + 115);
*((_BYTE *)this + 808) = 1;
if ( v10 )
ButtonSprite::setString(v10, "Saved");
v11 = *((_QWORD *)this + 113);
if ( v11 )
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v11 + 344LL))(v11, 1);
v12 = *((_QWORD *)this + 114);
if ( v12 )
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v12 + 344LL))(v12, 1);
LevelPickerPopup::refreshUseID(this);
PagedListPopup::loadPage(this, 0);
}
return _stack_chk_guard;
}