//
// ProfilePage::onMyLists from 0xa55010 to 0xa5517c (364 bytes)
//
// 3 xrefs:
// > ??> @ 0xa5cd0
// > ProfilePage::loadPageFromUserInfo @ 0xa5a118
// > ??> @ 0x1544a38
//
// 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:00:07 +0000
//
__int64 __fastcall ProfilePage::onMyLists(ProfilePage *this, cocos2d::CCObject *a2)
{
cocos2d::CCDirector *v3; // x0
cocos2d::CCDirector *v4; // x0
cocos2d::CCDirector *v6; // x0
cocos2d::CCDirector *v7; // x0
cocos2d::CCDirector *v8; // x21
__int64 v9; // x0
cocos2d::CCString *v10; // x0
const char *CString; // x0
size_t v12; // x0
LevelBrowserLayer *v13; // x20
cocos2d::CCDirector *v14; // x21
GJSearchObject *v15; // x1
AppDelegate *v16; // x0
cocos2d::CCScene *v17; // x1
cocos2d::CCScene *v18; // x0
cocos2d::CCDirector *v19; // x21
char *v20; // [xsp+38h] [xbp+38h]
__int64 v21[2]; // [xsp+40h] [xbp+40h] BYREF
void *v22; // [xsp+50h] [xbp+50h]
v3 = (cocos2d::CCDirector *)*((unsigned __int8 *)this + 740);
if ( (_DWORD)v3 )
{
v13 = (LevelBrowserLayer *)GJSearchObject::create(102);
LABEL_9:
*((_DWORD *)v13 + 108) = (unsigned int)&dword_0 + 1;
v14 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector((cocos2d::CCDirector *)((char *)&dword_0 + 1));
v16 = LevelBrowserLayer::scene(v13, v15);
v18 = (cocos2d::CCScene *)cocos2d::CCTransitionFade::create(v16, 0.5, v17);
cocos2d::CCDirector::pushScene(v14, v18);
return _stack_chk_guard;
}
v4 = (cocos2d::CCDirector *)*(unsigned __int8 *)(cocos2d::CCDirector::sharedDirector(v3) + 176);
if ( !(_DWORD)v4 )
{
v6 = (cocos2d::CCDirector *)*(unsigned int *)(*(_QWORD *)(cocos2d::CCDirector::sharedDirector(v4) + 272) + 28LL);
if ( (_DWORD)v6 != 15 )
{
v7 = *(cocos2d::CCDirector **)(cocos2d::CCDirector::sharedDirector(v6) + 96);
if ( v7 )
{
v8 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v7);
v9 = cocos2d::CCDirector::sharedDirector(v8);
cocos2d::CCDirector::popToSceneInStack(v8, *(cocos2d::CCScene **)(v9 + 96));
}
else
{
v19 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(nullptr);
*((_QWORD *)v19 + 12) = *(_QWORD *)(cocos2d::CCDirector::sharedDirector(v19) + 272);
}
}
v10 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(
(cocos2d::CCString *)"%i",
(const char *)*((unsigned int *)this + 184));
CString = (const char *)cocos2d::CCString::getCString(v10);
v21[0] = 0;
v20 = (char *)CString;
v21[1] = 0;
v22 = nullptr;
v12 = strlen(CString);
std::string::__init(v21, v20, v12);
v13 = (LevelBrowserLayer *)GJSearchObject::create(5, (char *)v21);
if ( (v21[0] & 1) != 0 )
operator delete(v22);
goto LABEL_9;
}
return _stack_chk_guard;
}