//
// ProfilePage::init from 0xa5ba80 to 0xa5c658 (3032 bytes)
//
// 2 xrefs:
// > ProfilePage::create @ 0xa5c878
// > ??> @ 0xd7a10
//
// 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:12 +0000
//
__int64 __fastcall ProfilePage::init(ProfilePage *this, int a2, unsigned __int8 a3)
{
int v3; // w20
unsigned __int8 v6; // w0
unsigned int v7; // w23
GameManager *v8; // x0
unsigned __int8 v9; // w0
unsigned int v10; // w1
__int64 v11; // x0
cocos2d::CCObject *v12; // x0
cocos2d::CCDirector *v13; // x0
cocos2d::CCDirector *v14; // x0
__int64 v15; // x21
void (__fastcall *v16)(__int64, __int64 *); // x25
__int64 (__fastcall *v17)(__int64, __int64 *); // x25
GJAccountManager *v18; // x0
__int64 v19; // x0
unsigned __int64 v20; // x0
cocos2d::CCDictionary **v21; // x0
const char *v22; // x2
cocos2d::CCLabelBMFont *v23; // x0
__int64 v24; // x0
__int64 v25; // x3
__int64 v26; // x21
void (__fastcall *v27)(__int64, __int64 *); // x24
const char *v28; // x1
cocos2d::CCObject *v29; // x21
void (__fastcall *v30)(cocos2d::CCObject *, __int64 *); // x25
__int64 v31; // x26
cocos2d::CCObject *v32; // x21
void (__fastcall *v33)(cocos2d::CCObject *, __int64 *); // x26
void (__fastcall *v34)(cocos2d::CCObject *, __int64 *); // x2
cocos2d::CCObject *v35; // x21
void (__fastcall *v36)(cocos2d::CCObject *, __int64 *); // x26
void (__fastcall *v37)(cocos2d::CCObject *, __int64 *); // x2
const char *v38; // x1
__int64 v39; // x0
cocos2d::CCMenu *v40; // x21
__int64 v41; // x21
void (__fastcall *v42)(__int64, __int64 *); // x25
cocos2d::CCArray *v43; // x0
cocos2d::CCObject *v44; // x0
const char *v45; // x2
__int64 v46; // x0
__int64 v47; // x3
__int64 v48; // x21
void (__fastcall *v49)(__int64, __int64 *); // x25
GJAccountManager *v50; // x0
__int64 v51; // x0
GameManager *v52; // x0
__int64 v53; // x0
__int64 v54; // x21
void (__fastcall *v55)(__int64, __int64 *); // x25
const char *v56; // x1
__int64 v57; // x0
__int64 v58; // x0
__int64 v59; // x21
cocos2d::CCNode *v60; // x26
void (__fastcall *v61)(__int64, __int64 *); // x25
GameLevelManager *v62; // x0
GameLevelManager *v63; // x0
cocos2d::CCDictionary **v64; // x0
GJUserScore *v65; // x0
GameLevelManager *v67; // x0
_BOOL4 isFollowingUser; // w25
const char *v69; // x1
cocos2d::CCSprite *v70; // x0
__int64 v71; // x26
__int64 v72; // x0
__int64 v73; // x26
__int64 (__fastcall *v74)(__int64, __int64 *); // x27
GameManager *v75; // x0
const char *v76; // x1
__int64 v77; // x0
__int64 v78; // x3
__int64 v79; // x25
__int64 (__fastcall *v80)(__int64, __int64 *); // x26
__int64 v81; // x0
_BOOL8 v82; // x0
GameManager *v83; // x0
unsigned __int8 v84; // w0
GameLevelManager *v85; // x0
GameLevelManager *v86; // x0
GameLevelManager *v87; // x0
GJAccountManager *v88; // x20
__int64 v89; // x0
GameLevelManager *v90; // x0
GameLevelManager *v91; // x0
GameLevelManager *v92; // x0
GameLevelManager *v93; // x0
GameLevelManager *v94; // x0
GameLevelManager *v95; // x0
GameLevelManager *v96; // x0
GameLevelManager *v97; // x0
GameLevelManager *v98; // x0
__int64 v99; // x0
GameLevelManager *v100; // x0
__int64 v101; // x0
GameLevelManager *v102; // x0
__int64 v103; // x0
GameLevelManager *v104; // x0
__int64 v105; // x0
GameManager *v106; // x27
__int64 v107; // x0
int v108; // w26
GJAccountManager *v109; // x0
int v110; // w26
__int64 v111; // x0
int v112; // w25
GJAccountManager *v113; // x0
int v114; // w25
__int64 v115; // x0
__int64 v116; // x1
GameLevelManager *v117; // x0
GameLevelManager *v118; // x0
__int64 v119; // [xsp+80h] [xbp+80h] BYREF
_BYTE v120[8]; // [xsp+88h] [xbp+88h] BYREF
_BYTE v121[8]; // [xsp+90h] [xbp+90h] BYREF
_BYTE v122[8]; // [xsp+98h] [xbp+98h] BYREF
__int64 v123[2]; // [xsp+A0h] [xbp+A0h] BYREF
__int64 v124; // [xsp+B0h] [xbp+B0h] BYREF
__int64 v125; // [xsp+B8h] [xbp+B8h]
cocos2d::CCLabelBMFont *v126; // [xsp+C0h] [xbp+C0h]
v3 = a3;
v6 = FLAlertLayer::init(this, 150);
v7 = v6;
if ( !v6 )
return v7;
*((_DWORD *)this + 184) = a2;
if ( !v3 )
{
*((_BYTE *)this + 740) = 0;
v8 = (GameManager *)GameManager::sharedState(nullptr);
v9 = GameManager::offlineModeEnabled(v8);
v10 = v9;
if ( !v9 )
goto LABEL_4;
LABEL_28:
v7 = v10;
ProfilePage::createOfflineNotice(this);
return v7;
}
v81 = GJAccountManager::sharedState(nullptr);
v82 = a2 == *(_DWORD *)(v81 + 352) - *(_DWORD *)(v81 + 356);
*((_BYTE *)this + 740) = v82;
v83 = (GameManager *)GameManager::sharedState((GameManager *)v82);
v84 = GameManager::offlineModeEnabled(v83);
v10 = v84;
if ( v84 )
goto LABEL_28;
LABEL_4:
v11 = *((unsigned __int8 *)this + 740);
if ( *((_BYTE *)this + 740) )
{
v11 = *(unsigned __int8 *)(GameManager::sharedState((GameManager *)v11) + 656);
if ( !(_DWORD)v11 )
{
v88 = (GJAccountManager *)GameLevelManager::sharedState((GameLevelManager *)v11);
v89 = GJAccountManager::sharedState(v88);
v90 = (GameLevelManager *)GameLevelManager::resetStoredUserInfo(
(cocos2d::CCDictionary **)v88,
*(_DWORD *)(v89 + 352) - *(_DWORD *)(v89 + 356));
v91 = (GameLevelManager *)GameLevelManager::sharedState(v90);
v92 = (GameLevelManager *)GameLevelManager::invalidateMessages(v91, 1u, 0);
v93 = (GameLevelManager *)GameLevelManager::sharedState(v92);
v94 = (GameLevelManager *)GameLevelManager::invalidateMessages(v93, 0, 0);
v95 = (GameLevelManager *)GameLevelManager::sharedState(v94);
v96 = (GameLevelManager *)GameLevelManager::invalidateRequests(v95, 1u, 0);
v97 = (GameLevelManager *)GameLevelManager::sharedState(v96);
v98 = (GameLevelManager *)GameLevelManager::invalidateRequests(v97, 0, 0);
v99 = GameLevelManager::sharedState(v98);
v100 = (GameLevelManager *)GameLevelManager::invalidateUserList(v99, 0, 0);
v101 = GameLevelManager::sharedState(v100);
v102 = (GameLevelManager *)GameLevelManager::invalidateUserList(v101, 1u, 0);
v103 = GameLevelManager::sharedState(v102);
v104 = (GameLevelManager *)GameLevelManager::invalidateUserList(v103, 3u, 0);
v105 = GameLevelManager::sharedState(v104);
v11 = GameLevelManager::invalidateUserList(v105, 4u, 0);
}
}
v12 = (cocos2d::CCObject *)cocos2d::CCArray::create((cocos2d::CCArray *)v11);
*((_QWORD *)this + 105) = v12;
v13 = (cocos2d::CCDirector *)cocos2d::CCObject::retain(v12);
v14 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v13);
cocos2d::CCDirector::getWinSize(&v119, v14);
cocos2d::CCRect::CCRect((cocos2d::CCRect *)v123, 0.0, 0.0, 80.0, 80.0);
v15 = cocos2d::extension::CCScale9Sprite::create("GJ_square01.png", v123);
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v15 + 912LL))(v15, 0xFFFFFFFFLL);
v16 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v15 + 320LL);
cocos2d::CCSize::CCSize((cocos2d::CCSize *)v123, 440.0, 290.0);
v16(v15, v123);
(*(void (__fastcall **)(_QWORD, __int64, __int64))(**((_QWORD **)this + 73) + 464LL))(
*((_QWORD *)this + 73),
v15,
0xFFFFFFFFLL);
v17 = *(__int64 (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v15 + 184LL);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v123, *(float *)&v119 * 0.5, *((float *)&v119 + 1) * 0.5);
v18 = (GJAccountManager *)v17(v15, v123);
v19 = GJAccountManager::sharedState(v18);
v20 = (unsigned int)(*(_DWORD *)(v19 + 352) - *(_DWORD *)(v19 + 356));
if ( a2 == (_DWORD)v20 )
{
v106 = (GameManager *)GameLevelManager::sharedState((GameLevelManager *)v20);
v107 = GameManager::sharedState(v106);
v108 = *(_DWORD *)(v107 + 660);
v109 = (GJAccountManager *)*(unsigned int *)(v107 + 664);
v110 = v108 - (_DWORD)v109;
v111 = GJAccountManager::sharedState(v109);
v112 = *(_DWORD *)(v111 + 352);
v113 = (GJAccountManager *)*(unsigned int *)(v111 + 356);
v114 = v112 - (_DWORD)v113;
v115 = GJAccountManager::sharedState(v113);
v124 = 0;
v125 = 0;
v126 = nullptr;
if ( (*(_BYTE *)(v115 + 328) & 1) != 0 )
{
std::string::__init(&v124, *(void **)(v115 + 344), *(_QWORD *)(v115 + 336));
}
else
{
v116 = *(_QWORD *)(v115 + 336);
v124 = *(_QWORD *)(v115 + 328);
v125 = v116;
v126 = *(cocos2d::CCLabelBMFont **)(v115 + 344);
}
GameLevelManager::storeUserName(v106, v110, v114, (char *)&v124);
v20 = (unsigned __int8)v124;
if ( (v124 & 1) != 0 )
operator delete(v126);
}
v21 = (cocos2d::CCDictionary **)GameLevelManager::sharedState((GameLevelManager *)v20);
GameLevelManager::tryGetUsername(&v124, v21, a2);
v23 = (cocos2d::CCLabelBMFont *)((char *)&v124 + 1);
if ( (v124 & 1) != 0 )
v23 = v126;
v24 = cocos2d::CCLabelBMFont::create(v23, "bigFont.fnt", v22);
v25 = *((_QWORD *)this + 73);
*((_QWORD *)this + 97) = v24;
(*(void (__fastcall **)(__int64, __int64, __int64))(*(_QWORD *)v25 + 464LL))(v25, v24, 20);
v26 = *((_QWORD *)this + 97);
v27 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v26 + 184LL);
cocos2d::CCPoint::CCPoint(
(cocos2d::CCPoint *)v123,
*(float *)&v119 * 0.5,
(float)((float)(*((float *)&v119 + 1) * 0.5) + 145.0) - 20.0);
v27(v26, v123);
if ( (unsigned __int8)ProfilePage::isOnWatchlist(this) )
(*(void (__fastcall **)(_QWORD, void *))(**((_QWORD **)this + 97) + 1072LL))(*((_QWORD *)this + 97), &unk_1171790);
cocos2d::CCLabelBMFont::limitLabelWidth(*((cocos2d::CCLabelBMFont **)this + 97), 160.0, 0.8, 0.0);
cocos2d::CCArray::addObject(*((cocos2d::CCArray **)this + 105), *((cocos2d::CCObject **)this + 97));
v29 = (cocos2d::CCObject *)cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"floorLine_001.png", v28);
(*(void (__fastcall **)(cocos2d::CCObject *, float))(*(_QWORD *)v29 + 128LL))(v29, 0.8);
(*(void (__fastcall **)(cocos2d::CCObject *, float))(*(_QWORD *)v29 + 144LL))(v29, 1.0);
(*(void (__fastcall **)(cocos2d::CCObject *, __int64))(*(_QWORD *)v29 + 912LL))(v29, 100);
(*(void (__fastcall **)(_QWORD, cocos2d::CCObject *, _QWORD))(**((_QWORD **)this + 73) + 464LL))(
*((_QWORD *)this + 73),
v29,
0);
v30 = *(void (__fastcall **)(cocos2d::CCObject *, __int64 *))(*(_QWORD *)v29 + 184LL);
v31 = (*(__int64 (__fastcall **)(_QWORD))(**((_QWORD **)this + 97) + 192LL))(*((_QWORD *)this + 97));
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v122, 0.0, -21.0);
cocos2d::CCPoint::operator+(v123, v31);
v30(v29, v123);
(*(void (__fastcall **)(cocos2d::CCObject *, __int64))(*(_QWORD *)v29 + 1080LL))(v29, 0x100000302LL);
cocos2d::CCArray::addObject(*((cocos2d::CCArray **)this + 105), v29);
cocos2d::CCPoint::CCPoint(
(cocos2d::CCPoint *)v120,
*(float *)&v119 * 0.5,
(float)(*((float *)&v119 + 1) * 0.5) + 40.0);
cocos2d::CCRect::CCRect((cocos2d::CCRect *)v123, 0.0, 0.0, 80.0, 80.0);
v32 = (cocos2d::CCObject *)cocos2d::extension::CCScale9Sprite::create("square02b_001.png", v123);
v33 = *(void (__fastcall **)(cocos2d::CCObject *, __int64 *))(*(_QWORD *)v32 + 320LL);
cocos2d::CCSize::CCSize((cocos2d::CCSize *)v123, 400.0, 45.0);
v33(v32, v123);
(*(void (__fastcall **)(cocos2d::CCObject *, _BYTE *))(*(_QWORD *)v32 + 184LL))(v32, v120);
v34 = *(void (__fastcall **)(cocos2d::CCObject *, __int64 *))(*(_QWORD *)v32 + 960LL);
LOWORD(v123[0]) = 29375;
BYTE2(v123[0]) = 62;
v34(v32, v123);
(*(void (__fastcall **)(_QWORD, cocos2d::CCObject *, __int64))(**((_QWORD **)this + 73) + 464LL))(
*((_QWORD *)this + 73),
v32,
1);
cocos2d::CCArray::addObject(*((cocos2d::CCArray **)this + 105), v32);
cocos2d::CCRect::CCRect((cocos2d::CCRect *)v123, 0.0, 0.0, 80.0, 80.0);
v35 = (cocos2d::CCObject *)cocos2d::extension::CCScale9Sprite::create("square02b_002.png", v123);
v36 = *(void (__fastcall **)(cocos2d::CCObject *, __int64 *))(*(_QWORD *)v35 + 320LL);
cocos2d::CCSize::CCSize((cocos2d::CCSize *)v123, 400.0, 45.0);
v36(v35, v123);
(*(void (__fastcall **)(cocos2d::CCObject *, _BYTE *))(*(_QWORD *)v35 + 184LL))(v35, v120);
v37 = *(void (__fastcall **)(cocos2d::CCObject *, __int64 *))(*(_QWORD *)v35 + 960LL);
LOWORD(v123[0]) = 16514;
BYTE2(v123[0]) = 32;
v37(v35, v123);
(*(void (__fastcall **)(_QWORD, cocos2d::CCObject *, __int64))(**((_QWORD **)this + 73) + 464LL))(
*((_QWORD *)this + 73),
v35,
1);
cocos2d::CCArray::addObject(*((cocos2d::CCArray **)this + 105), v35);
v39 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_closeBtn_001.png", v38);
v40 = (cocos2d::CCMenu *)CCMenuItemSpriteExtra::create(v39, 0, (__int64)this, (__int64)ProfilePage::onClose, 0);
CCMenuItemSpriteExtra::setSizeMult((__int64)v40, 1.6);
v41 = cocos2d::CCMenu::create(v40, nullptr);
*((_QWORD *)this + 69) = v41;
v42 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v41 + 184LL);
cocos2d::CCPoint::CCPoint(
(cocos2d::CCPoint *)v123,
(float)((float)(*(float *)&v119 * 0.5) + -220.0) + 10.0,
(float)((float)(*((float *)&v119 + 1) * 0.5) + 145.0) - 10.0);
v42(v41, v123);
(*(void (__fastcall **)(_QWORD, _QWORD, __int64))(**((_QWORD **)this + 73) + 464LL))(
*((_QWORD *)this + 73),
*((_QWORD *)this + 69),
10);
v43 = (cocos2d::CCArray *)ProfilePage::setupComments(this);
v44 = (cocos2d::CCObject *)cocos2d::CCArray::create(v43);
*((_QWORD *)this + 104) = v44;
cocos2d::CCObject::retain(v44);
v46 = cocos2d::CCLabelBMFont::create((cocos2d::CCLabelBMFont *)"Something went wrong...", "goldFont.fnt", v45);
v47 = *((_QWORD *)this + 73);
*((_QWORD *)this + 96) = v46;
(*(void (__fastcall **)(__int64, __int64, __int64))(*(_QWORD *)v47 + 464LL))(v47, v46, 10);
v48 = *((_QWORD *)this + 96);
v49 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v48 + 184LL);
cocos2d::CCPoint::CCPoint(
(cocos2d::CCPoint *)v123,
*(float *)&v119 * 0.5,
(float)(*((float *)&v119 + 1) * 0.5) + -53.0);
v49(v48, v123);
(*(void (__fastcall **)(_QWORD, float))(**((_QWORD **)this + 96) + 160LL))(*((_QWORD *)this + 96), 0.6);
v50 = (GJAccountManager *)(*(__int64 (__fastcall **)(_QWORD, _QWORD))(**((_QWORD **)this + 96) + 344LL))(
*((_QWORD *)this + 96),
0);
v51 = GJAccountManager::sharedState(v50);
if ( *(_DWORD *)(v51 + 352) - *(_DWORD *)(v51 + 356) != *((_DWORD *)this + 184) )
{
v52 = (GameManager *)GameManager::sharedState((GameManager *)v51);
v51 = (unsigned __int8)GameManager::safeModeEnabled(v52);
if ( !(_BYTE)v51 )
{
v67 = (GameLevelManager *)GameLevelManager::sharedState((GameLevelManager *)v51);
isFollowingUser = GameLevelManager::isFollowingUser(v67, (const char *)*((unsigned int *)this + 184));
cocos2d::CCPoint::CCPoint(
(cocos2d::CCPoint *)v121,
(float)(*(float *)&v119 * 0.5) + -158.0,
(float)(*((float *)&v119 + 1) * 0.5) + -123.0);
v70 = (cocos2d::CCSprite *)(isFollowingUser ? "followBtnOn_001.png" : "followBtnOff_001.png");
v71 = cocos2d::CCSprite::createWithSpriteFrameName(v70, v69);
(*(void (__fastcall **)(__int64, float))(*(_QWORD *)v71 + 160LL))(v71, 1.1);
v72 = CCMenuItemSpriteExtra::create(v71, 0, (__int64)this, (__int64)ProfilePage::onFollow, 0);
*((_QWORD *)this + 101) = v72;
CCMenuItemSpriteExtra::setSizeMult(v72, 1.1);
(*(void (__fastcall **)(_QWORD, _QWORD))(**((_QWORD **)this + 69) + 456LL))(
*((_QWORD *)this + 69),
*((_QWORD *)this + 101));
v73 = *((_QWORD *)this + 101);
v74 = *(__int64 (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v73 + 184LL);
cocos2d::CCNode::convertToNodeSpace(v123, *((cocos2d::CCNode **)this + 69), (const cocos2d::CCPoint *)v121);
v51 = v74(v73, v123);
if ( !isFollowingUser )
{
v75 = (GameManager *)GameManager::sharedState((GameManager *)v51);
v51 = GameManager::modUIRank(v75);
if ( !(_DWORD)v51 )
{
v77 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_followTxt_001.png", v76);
v78 = *((_QWORD *)this + 73);
*((_QWORD *)this + 102) = v77;
(*(void (__fastcall **)(__int64, __int64, __int64))(*(_QWORD *)v78 + 464LL))(v78, v77, 2);
v79 = *((_QWORD *)this + 102);
v80 = *(__int64 (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v79 + 184LL);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v122, 48.0, -2.0);
cocos2d::CCPoint::operator+(v123, v121);
v51 = v80(v79, v123);
}
}
}
}
v53 = LoadingCircle::create((LoadingCircle *)v51);
*((_QWORD *)this + 108) = v53;
*(_QWORD *)(v53 + 552) = *((_QWORD *)this + 73);
*(_BYTE *)(*((_QWORD *)this + 108) + 560LL) = 0;
cocos2d::CCObject::retain(*((cocos2d::CCObject **)this + 108));
LoadingCircle::show(*((cocos2d::CCNode ***)this + 108));
(*(void (__fastcall **)(_QWORD, _QWORD))(**((_QWORD **)this + 108) + 344LL))(*((_QWORD *)this + 108), 0);
v54 = *(_QWORD *)(*((_QWORD *)this + 108) + 544LL);
v55 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v54 + 184LL);
cocos2d::CCPoint::CCPoint(
(cocos2d::CCPoint *)v123,
*(float *)&v119 * 0.5,
(float)(*((float *)&v119 + 1) * 0.5) + -53.0);
v55(v54, v123);
v57 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_updateBtn_001.png", v56);
v58 = CCMenuItemSpriteExtra::create(v57, 0, (__int64)this, (__int64)ProfilePage::onUpdate, 0);
*((_QWORD *)this + 110) = v58;
CCMenuItemSpriteExtra::setSizeMult(v58, 1.5);
(*(void (__fastcall **)(_QWORD, _QWORD))(**((_QWORD **)this + 69) + 456LL))(
*((_QWORD *)this + 69),
*((_QWORD *)this + 110));
v59 = *((_QWORD *)this + 110);
v60 = *((cocos2d::CCNode **)this + 69);
v61 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v59 + 184LL);
cocos2d::CCPoint::CCPoint(
(cocos2d::CCPoint *)v122,
(float)((float)(*(float *)&v119 * 0.5) + -220.0) + 10.0,
(float)((float)((float)(*((float *)&v119 + 1) * 0.5) + -145.0) + 10.0) + 1.0);
cocos2d::CCNode::convertToNodeSpace(v123, v60, (const cocos2d::CCPoint *)v122);
v61(v59, v123);
v62 = (GameLevelManager *)(*(__int64 (__fastcall **)(_QWORD, _QWORD))(**((_QWORD **)this + 110) + 344LL))(
*((_QWORD *)this + 110),
0);
*(_QWORD *)(GameLevelManager::sharedState(v62) + 1352) = (char *)this + 688;
v63 = (GameLevelManager *)*((unsigned __int8 *)this + 740);
if ( !*((_BYTE *)this + 740)
|| (v63 = (GameLevelManager *)*(unsigned __int8 *)(GameManager::sharedState(v63) + 656), (_DWORD)v63) )
{
v64 = (cocos2d::CCDictionary **)GameLevelManager::sharedState(v63);
v65 = (GJUserScore *)GameLevelManager::userInfoForAccountID(v64, *((_DWORD *)this + 184));
if ( v65 )
{
if ( *((_DWORD *)v65 + 172) == 2 )
{
ProfilePage::loadPageFromUserInfo(this, v65);
ProfilePage::setupCommentsBrowser(this, nullptr);
(*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 110) + 344LL))(*((_QWORD *)this + 110), 1);
}
else
{
(*(void (__fastcall **)(ProfilePage *, GJUserScore *))(*(_QWORD *)this + 1384LL))(this, v65);
}
}
else
{
(*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 108) + 344LL))(*((_QWORD *)this + 108), 1);
(*(void (__fastcall **)(_QWORD, _QWORD))(**((_QWORD **)this + 110) + 344LL))(*((_QWORD *)this + 110), 0);
v117 = (GameLevelManager *)ProfilePage::setupCommentsBrowser(this, nullptr);
v118 = (GameLevelManager *)GameLevelManager::sharedState(v117);
GameLevelManager::getGJUserInfo(v118, (const char *)*((unsigned int *)this + 184));
}
}
else
{
v85 = (GameLevelManager *)ProfilePage::setupCommentsBrowser(this, nullptr);
*(_QWORD *)(GameLevelManager::sharedState(v85) + 1296) = (char *)this + 712;
(*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 108) + 344LL))(*((_QWORD *)this + 108), 1);
v86 = (GameLevelManager *)(*(__int64 (__fastcall **)(_QWORD, _QWORD))(**((_QWORD **)this + 110) + 344LL))(
*((_QWORD *)this + 110),
0);
v87 = (GameLevelManager *)GameLevelManager::sharedState(v86);
GameLevelManager::updateUserScore(v87);
}
if ( (v124 & 1) != 0 )
operator delete(v126);
return v7;
}