//
// ProfilePage::onMyLists from 0x1403c3b30 to 0x1403c3c85 (341 bytes)
//
// 2 xrefs:
// > ProfilePage::loadPageFromUserInfo @ 0x1403c273b
// > ??> @ 0x1406d7784
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
void ProfilePage::onMyLists(ProfilePage *a1, cocos2d::CCObject *a2)
{
__int64 v3; // rax
__int64 v4; // rcx
__int64 v5; // rcx
__int64 v6; // rcx
__int64 v7; // rcx
__int64 v8; // rbx
__int64 v9; // rcx
struct cocos2d::CCScene *v10; // rbx
__int64 v11; // rcx
cocos2d::CCDirector *v12; // rax
cocos2d::CCString *v13; // rax
const char *CString; // rax
size_t v15; // r8
GJSearchObject *v16; // rbx
struct cocos2d::CCScene *v17; // rdi
__int64 v18; // rcx
LevelBrowserLayer *v19; // rax
struct cocos2d::CCTransitionFade *v20; // rbx
__int64 v21; // rcx
cocos2d::CCDirector *v22; // rax
__int128 v23; // [rsp+20h] [rbp-28h] BYREF
__int64 v24; // [rsp+30h] [rbp-18h]
__int64 v25; // [rsp+38h] [rbp-10h]
if ( a1->m_ownProfile )
{
v3 = (__int64)GJSearchObject::create_2(MyLists);
}
else
{
if ( *(_BYTE *)(cocos2d::CCDirector::sharedDirector(a1) + 168) )
return;
v6 = *(_QWORD *)(cocos2d::CCDirector::sharedDirector(v5) + 264);
if ( *(_DWORD *)(v6 + 28) != 15 )
{
if ( *(_QWORD *)(cocos2d::CCDirector::sharedDirector(v6) + 96) )
{
v10 = *(struct cocos2d::CCScene **)(cocos2d::CCDirector::sharedDirector(v7) + 96);
v12 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v11);
cocos2d::CCDirector::popToSceneInStack(v12, v10);
}
else
{
v8 = *(_QWORD *)(cocos2d::CCDirector::sharedDirector(v7) + 264);
*(_QWORD *)(cocos2d::CCDirector::sharedDirector(v9) + 96) = v8;
}
}
v13 = cocos2d::CCString::createWithFormat("%i", a1->m_accountID);
CString = cocos2d::CCString::getCString(v13);
v23 = 0;
v24 = 0;
v15 = -1;
v25 = 0;
do
++v15;
while ( CString[v15] );
sub_14003A930(&v23, CString, v15);
v3 = GJSearchObject::create_1(5, (__int64)&v23);
}
v16 = (GJSearchObject *)v3;
*(_DWORD *)(v3 + 464) = 1;
v17 = (struct cocos2d::CCScene *)cocos2d::CCScene::create(v4);
*(_QWORD *)(cocos2d::CCApplication::sharedApplication(v18) + 224) = v17;
v19 = LevelBrowserLayer::create(v16);
v17->addChild_1(v17, v19);
v20 = cocos2d::CCTransitionFade::create(0.5, v17);
v22 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v21);
cocos2d::CCDirector::pushScene(v22, v20);
}