//
// ProfilePage::onMyLists from 0x8f8e7c to 0x8f902c (432 bytes)
//
// 3 xrefs:
// > ??> @ 0x7c338
// > ProfilePage::loadPageFromUserInfo @ 0x8fa984
// > ??> @ 0x122c280
//
// 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)
{
cocos2d::CCDirector *v3; // x21
cocos2d::CCDirector *v4; // x0
cocos2d::CCString *v5; // x0
char *CString; // x0
GJSearchObject *v7; // x20
void *v8; // x0
cocos2d::CCDirector *v9; // x21
cocos2d::CCScene *v10; // x0
cocos2d::CCTransitionFade *v11; // x0
unsigned int *v12; // x2
int v13; // w1
cocos2d::CCDirector *v14; // x21
__int64 v15; // [xsp+40h] [xbp+40h] BYREF
if ( a1->m_ownProfile )
{
v7 = (GJSearchObject *)GJSearchObject::create(102);
}
else
{
if ( cocos2d::CCDirector::sharedDirector()->m_bIsTransitioning )
return;
if ( cocos2d::CCDirector::sharedDirector()->m_pRunningScene->m_eObjType != MenuLayerObjectType )
{
if ( cocos2d::CCDirector::sharedDirector()->m_pSceneReference )
{
v3 = cocos2d::CCDirector::sharedDirector();
v4 = cocos2d::CCDirector::sharedDirector();
cocos2d::CCDirector::popToSceneInStack(v3, v4->m_pSceneReference);
}
else
{
v14 = cocos2d::CCDirector::sharedDirector();
v14->m_pSceneReference = cocos2d::CCDirector::sharedDirector()->m_pRunningScene;
}
}
v5 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(
(cocos2d::CCString *)"%i",
(const char *)(unsigned int)a1->m_accountID);
CString = (char *)cocos2d::CCString::getCString(v5);
sub_D153B8((int)&v15, CString);
v7 = GJSearchObject::create(UsersLevels);
v8 = (void *)(v15 - 24);
if ( (__int64 *)(v15 - 24) != &qword_124B6B0 )
{
if ( &pthread_create )
{
v12 = (unsigned int *)(v15 - 8);
do
v13 = __ldaxr(v12);
while ( __stlxr(v13 - 1, v12) );
}
else
{
v13 = *(_DWORD *)(v15 - 8);
*(_DWORD *)(v15 - 8) = v13 - 1;
}
if ( v13 <= 0 )
operator delete(v8);
}
}
v7->m_searchMode = (unsigned int)&dword_0 + 1;
v9 = cocos2d::CCDirector::sharedDirector();
v10 = LevelBrowserLayer::scene(v7);
v11 = cocos2d::CCTransitionFade::create(0.5, v10);
cocos2d::CCDirector::pushScene(v9, v11);
}