//
// ProfilePage::loadPageFromUserInfo from 0x5f8c50 to 0x5fa66a (6682 bytes)
//
// 4 xrefs:
// > ProfilePage::init @ 0x5faf9e
// > ProfilePage::followUserFinished @ 0x5fb21e
// > ProfilePage::userInfoChanged @ 0x5fb2fe
// > ProfilePage::getUserInfoFinished @ 0x5fb5c0
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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 11:54:35 +0000
//
float __fastcall ProfilePage::loadPageFromUserInfo(ProfilePage *this, GJUserScore *a2)
{
cocos2d::CCObject *v4; // r0
int v5; // r3
float result; // r0
_DWORD *v7; // r2
int *v8; // r6
int *v9; // r5
int v10; // r0
int v11; // t1
int v12; // r3
int v13; // r5
int v14; // r5
void (__fastcall *v15)(int, cocos2d::CCLabelBMFont *); // r7
cocos2d::CCLabelBMFont *v16; // r1
int v17; // r0
_BOOL4 v18; // r5
GJAccountManager *v19; // r0
GameManager *v20; // r0
GameManager *v21; // r0
GameLevelManager *GameVariable; // r0
GameLevelManager *v23; // r5
GameLevelManager *v24; // r0
GameLevelManager *isFollowingUser; // r0
GameLevelManager *v26; // r0
int v27; // r3
int v28; // r8
int v29; // r2
int v30; // r5
int v31; // r5
int v32; // r2
int v33; // r10
int v34; // r3
int v35; // r2
GameManager *v36; // r0
_BOOL4 v37; // r7
GameManager *v38; // r0
cocos2d::CCNode *v39; // r0
_BOOL4 v40; // r3
char *v41; // r9
float v42; // s19
float v43; // s20
float v44; // s16
const cocos2d::CCPoint *v45; // r10
cocos2d::CCArray *v46; // r0
int v47; // r8
unsigned int v48; // r1
float v49; // r6
const char *v50; // r2
cocos2d::CCLabelBMFont *v51; // r0
cocos2d::CCLabelBMFont *v52; // r5
cocos2d::CCSprite *v53; // r0
int v54; // r6
cocos2d::CCObject *v55; // r7
cocos2d::CCArray *v56; // r0
cocos2d::CCObject *v57; // r1
float v58; // s21
float v59; // s16
float v60; // s15
void (__fastcall *v61)(const cocos2d::CCPoint *, _DWORD *); // r5
unsigned int v62; // r5
int v63; // r0
int v64; // r6
int v65; // r9
void (__fastcall *v66)(int, _DWORD); // r8
float v67; // s16
float v68; // r0
const cocos2d::CCPoint *v69; // r9
void (__fastcall *v70)(int, _DWORD *); // r8
int v71; // r6
float v72; // s17
GameManager *v73; // r0
GameManager *v74; // r0
int v75; // r0
GameManager *v76; // r0
GameManager *v77; // r0
int v78; // r0
GameManager *v79; // r0
_DWORD *v80; // r3
SimplePlayer *v81; // r5
int v82; // r8
int v83; // r9
int v84; // r0
int v85; // r0
int v86; // r1
int v89; // s15
cocos2d::CCSprite *v90; // r7
int v91; // r3
char v92; // r3
cocos2d::CCObject *v93; // r10
int v94; // r3
void (__fastcall *v95)(cocos2d::CCObject *, _DWORD *); // r8
void (__fastcall *v96)(cocos2d::CCSprite *, _DWORD *); // r8
const cocos2d::CCPoint *v97; // r9
void (__fastcall *v98)(cocos2d::CCObject *, _DWORD *); // r8
GameManager *v99; // r0
GameManager *v100; // r0
GameManager *v101; // r0
const char *v102; // r1
int v103; // r6
int v104; // r9
const char *v105; // r1
int v106; // r9
int v107; // r9
int v108; // r9
int v109; // r9
char *v110; // r0
int v111; // r0
cocos2d::CCObject *v112; // r9
const cocos2d::CCPoint *v113; // r10
const char *v114; // r1
char *v115; // r0
cocos2d::CCObject *v116; // r6
void (__fastcall *v117)(cocos2d::CCObject *, _DWORD *); // r9
int v118; // r3
int v119; // r2
_BOOL4 v120; // r6
GameManager *v121; // r0
GameManager *v122; // r0
const char *v123; // r1
int v124; // r0
const char *v125; // r6
char *v126; // r7
const char *v127; // r1
cocos2d::CCObject *v128; // r7
const char *v129; // r1
cocos2d::CCObject *v130; // r8
void (__fastcall *v131)(cocos2d::CCObject *, _DWORD *); // r9
cocos2d::CCString *v132; // r0
cocos2d::CCLabelBMFont *CString; // r0
const char *v134; // r2
cocos2d::CCObject *v135; // r6
void (__fastcall *v136)(cocos2d::CCObject *, _DWORD *); // r8
cocos2d::CCLabelBMFont *v137; // r0
int v138; // r7
const char *v139; // r1
int v140; // r3
char *v141; // r1
cocos2d::CCSprite *v142; // r0
int v143; // r0
cocos2d::CCObject *v144; // r7
void (__fastcall *v145)(cocos2d::CCObject *, _DWORD *); // r10
CCSpriteWithHue *v146; // r5
cocos2d::CCObject *v147; // r7
int v148; // r0
const cocos2d::CCPoint *v149; // r10
void (__fastcall *v150)(cocos2d::CCObject *, _DWORD *); // r9
float v151; // s22
int v152; // r5
float v153; // s15
int v154; // r0
const char *v155; // r1
int v156; // r7
cocos2d::CCObject *v157; // r7
const cocos2d::CCPoint *v158; // r10
int v159; // r9
GameLevelManager *v160; // r0
float v161; // r0
cocos2d::CCArray *v162; // r10
const char *v163; // r1
int v164; // r7
cocos2d::CCObject *v165; // r7
void (__fastcall *v166)(cocos2d::CCObject *, _DWORD *); // r8
const char *v167; // r1
cocos2d::CCObject *v168; // r8
const char *v169; // r1
int v170; // r9
cocos2d::CCObject *v171; // r9
const cocos2d::CCPoint *v172; // r11
void (__fastcall *v173)(cocos2d::CCObject *, _DWORD *); // r10
const char *v174; // r1
cocos2d::CCObject *v175; // r10
void (__fastcall *v176)(cocos2d::CCObject *, _DWORD *); // r11
GameManager *v177; // r0
GameManager *v178; // r0
GameManager *v179; // r0
GameManager *v180; // r0
GameManager *v181; // r0
cocos2d::CCArray *v182; // r0
GameManager *v183; // r7
GameManager *v184; // r0
const char *v185; // r1
cocos2d::CCObject *v186; // r5
cocos2d::CCObject *v187; // r5
GameManager *v188; // r0
GameManager *v189; // r0
const char *v190; // r1
cocos2d::CCObject *v191; // r5
cocos2d::CCObject *v192; // r5
GameManager *v193; // r0
GameManager *v194; // r0
const char *v195; // r1
int v196; // r0
cocos2d::CCObject *v197; // r5
const cocos2d::CCPoint *v198; // r8
const cocos2d::CCPoint *v199; // r6
float v200; // r0
int v201; // r7
float v202; // r0
const char *v203; // r1
_DWORD *v204; // r3
const char *v205; // r8
cocos2d::CCPoint *v206; // r6
int v207; // r5
GameManager *v208; // r0
GameManager *v209; // r0
int v210; // r0
cocos2d::CCObject *v211; // r5
const cocos2d::CCPoint *v212; // r11
const cocos2d::CCPoint *v213; // r10
void (__fastcall *v214)(cocos2d::CCObject *, _DWORD *); // r9
GameManager *v215; // r0
GameManager *v216; // r0
float v217; // s20
const cocos2d::CCPoint *v218; // r5
cocos2d::CCString *v219; // r0
cocos2d::CCLabelBMFont *v220; // r0
const char *v221; // r2
cocos2d::CCLabelBMFont *v222; // r9
int (__fastcall *v223)(const cocos2d::CCPoint *, _DWORD *); // r6
GameLevelManager *v224; // r0
int v225; // r0
cocos2d::CCObject *v226; // r6
const cocos2d::CCPoint *v227; // r10
const cocos2d::CCPoint *v228; // r9
int v229; // r0
cocos2d::CCObject *v230; // r10
const cocos2d::CCPoint *v231; // r9
void (__fastcall *v232)(cocos2d::CCObject *, _DWORD *); // r6
int v233; // [sp+Ch] [bp-128h]
cocos2d::CCPoint *v234; // [sp+Ch] [bp-128h]
cocos2d::CCNode *v235; // [sp+10h] [bp-124h]
cocos2d::CCNode *v236; // [sp+10h] [bp-124h]
cocos2d::CCNode *v237; // [sp+10h] [bp-124h]
cocos2d::CCNode *v238; // [sp+10h] [bp-124h]
int v239; // [sp+10h] [bp-124h]
cocos2d::CCNode *v240; // [sp+10h] [bp-124h]
cocos2d::CCNode *v241; // [sp+10h] [bp-124h]
cocos2d::CCNode *v242; // [sp+10h] [bp-124h]
cocos2d::CCNode *v243; // [sp+10h] [bp-124h]
cocos2d::CCArray *v244; // [sp+14h] [bp-120h]
cocos2d::CCArray *v245; // [sp+14h] [bp-120h]
cocos2d::CCArray *v246; // [sp+14h] [bp-120h]
int v247; // [sp+18h] [bp-11Ch]
int v248; // [sp+18h] [bp-11Ch]
char *v249; // [sp+1Ch] [bp-118h]
void (__fastcall *v250)(cocos2d::CCLabelBMFont *, _DWORD *); // [sp+1Ch] [bp-118h]
cocos2d::CCSprite *v251; // [sp+20h] [bp-114h]
cocos2d::CCSprite *v252; // [sp+20h] [bp-114h]
cocos2d::CCSprite *v253; // [sp+20h] [bp-114h]
cocos2d::CCSprite *v254; // [sp+20h] [bp-114h]
__int16 v255; // [sp+40h] [bp-F4h] BYREF
char v256; // [sp+42h] [bp-F2h]
__int16 v257; // [sp+44h] [bp-F0h]
char v258; // [sp+46h] [bp-EEh]
float v259; // [sp+48h] [bp-ECh] BYREF
float v260; // [sp+4Ch] [bp-E8h]
_BYTE v261[8]; // [sp+50h] [bp-E4h] BYREF
_BYTE v262[8]; // [sp+58h] [bp-DCh] BYREF
float v263[2]; // [sp+60h] [bp-D4h] BYREF
char v264[8]; // [sp+68h] [bp-CCh] BYREF
_DWORD (*v265)(ProfilePage *__hidden, cocos2d::CCObject *); // [sp+70h] [bp-C4h]
int v266; // [sp+74h] [bp-C0h]
int (__fastcall *v267)(ProfilePage *, cocos2d::CCObject *); // [sp+78h] [bp-BCh]
int v268; // [sp+7Ch] [bp-B8h]
_DWORD (*v269)(ProfilePage *__hidden, cocos2d::CCObject *); // [sp+80h] [bp-B4h]
int v270; // [sp+84h] [bp-B0h]
FLAlertLayer *(__fastcall *v271)(ProfilePage *, cocos2d::CCObject *); // [sp+88h] [bp-ACh]
int v272; // [sp+8Ch] [bp-A8h]
int (__fastcall *v273)(GJGameLevel **, cocos2d::CCObject *); // [sp+90h] [bp-A4h]
int v274; // [sp+94h] [bp-A0h]
int (__fastcall *v275)(int, cocos2d::CCObject *); // [sp+98h] [bp-9Ch]
int v276; // [sp+9Ch] [bp-98h]
_DWORD (*v277)(ProfilePage *__hidden, cocos2d::CCObject *); // [sp+A0h] [bp-94h]
int v278; // [sp+A4h] [bp-90h]
_DWORD (*v279)(ProfilePage *__hidden, cocos2d::CCObject *); // [sp+A8h] [bp-8Ch]
int v280; // [sp+ACh] [bp-88h]
_DWORD v281[2]; // [sp+B0h] [bp-84h] BYREF
_DWORD v282[6]; // [sp+B8h] [bp-7Ch] BYREF
_DWORD v283[2]; // [sp+D0h] [bp-64h] BYREF
float v284[2]; // [sp+D8h] [bp-5Ch] BYREF
float v285[2]; // [sp+E0h] [bp-54h] BYREF
_DWORD v286[2]; // [sp+E8h] [bp-4Ch] BYREF
int v287[3]; // [sp+F0h] [bp-44h] BYREF
int v288[3]; // [sp+FCh] [bp-38h] BYREF
int v289[3]; // [sp+108h] [bp-2Ch] BYREF
int v290; // [sp+114h] [bp-20h] BYREF
int v291; // [sp+118h] [bp-1Ch]
cocos2d::CCSprite *v292; // [sp+11Ch] [bp-18h]
int v293; // [sp+120h] [bp-14h] BYREF
int v294; // [sp+124h] [bp-10h]
cocos2d::CCLabelBMFont *v295; // [sp+128h] [bp-Ch]
(*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 115) + 64))(*((_DWORD *)this + 115), 1065353216);
(*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 115) + 72))(*((_DWORD *)this + 115), 1065353216);
if ( a2 )
cocos2d::CCObject::retain(a2);
v4 = *((cocos2d::CCObject **)this + 138);
if ( v4 )
{
v4 = (cocos2d::CCObject *)cocos2d::CCObject::release(v4);
*((_DWORD *)this + 138) = 0;
}
cocos2d::CCDirector::sharedDirector(v4);
cocos2d::CCDirector::getWinSize((cocos2d::CCDirector *)&v259);
v5 = *((_DWORD *)this + 152);
if ( v5 )
{
v7 = *(_DWORD **)(v5 + 52);
if ( *v7 )
{
v8 = (int *)v7[3];
v9 = &v8[*v7 - 1];
while ( v8 <= v9 )
{
v11 = *v8++;
v10 = v11;
if ( !v11 )
break;
(*(void (__fastcall **)(int))(*(_DWORD *)v10 + 260))(v10);
}
}
}
result = COERCE_FLOAT(cocos2d::CCArray::removeAllObjects(*((cocos2d::CCArray **)this + 152)));
if ( a2 )
{
v12 = *((_DWORD *)this + 145);
*((_DWORD *)this + 138) = a2;
if ( v12 )
{
std::string::basic_string(&v293, (int)a2 + 264);
v13 = (v293 & 1) != 0 ? v294 : (int)(unsigned __int8)v293 >> 1;
std::string::~string((int)&v293);
if ( v13 )
{
v14 = *((_DWORD *)this + 145);
v15 = *(void (__fastcall **)(int, cocos2d::CCLabelBMFont *))(*(_DWORD *)v14 + 464);
std::string::basic_string(&v293, *((_DWORD *)this + 138) + 264);
if ( (v293 & 1) != 0 )
v16 = v295;
else
v16 = (cocos2d::CCLabelBMFont *)((char *)&v293 + 1);
v15(v14, v16);
std::string::~string((int)&v293);
cocos2d::CCLabelBMFont::limitLabelWidth(*((cocos2d::CCLabelBMFont **)this + 145), 160.0, 0.8, 0.0);
}
}
v17 = *((_DWORD *)this + 149);
v18 = *(_DWORD *)(*((_DWORD *)this + 138) + 520) == 2;
if ( v17 )
(*(void (__fastcall **)(int, bool))(*(_DWORD *)v17 + 172))(v17, *(_DWORD *)(*((_DWORD *)this + 138) + 520) != 2);
v19 = *((GJAccountManager **)this + 150);
if ( v19 )
v19 = (GJAccountManager *)(*(int (__fastcall **)(GJAccountManager *, bool))(*(_DWORD *)v19 + 172))(v19, !v18);
if ( v18 )
return ProfilePage::setupAccountButtons(*(float *)&this);
if ( !*((_BYTE *)this + 560) )
{
v20 = (GameManager *)GJAccountManager::sharedState(v19);
if ( *((_DWORD *)v20 + 70) - *((_DWORD *)v20 + 71) > 0 )
{
v21 = (GameManager *)GameManager::sharedState(v20);
GameVariable = (GameLevelManager *)GameManager::getGameVariable(v21, "0241");
if ( GameVariable )
{
v23 = (GameLevelManager *)*(unsigned __int8 *)(*((_DWORD *)this + 138) + 552);
v24 = (GameLevelManager *)GameLevelManager::sharedState(GameVariable);
isFollowingUser = (GameLevelManager *)GameLevelManager::isFollowingUser(v24, *((const char **)this + 139));
if ( v23 != isFollowingUser )
{
if ( *(_BYTE *)(*((_DWORD *)this + 138) + 552) )
{
v26 = (GameLevelManager *)GameLevelManager::sharedState(isFollowingUser);
GameLevelManager::followUser(v26, *((const char **)this + 139));
}
else
{
v224 = (GameLevelManager *)GameLevelManager::sharedState(isFollowingUser);
GameLevelManager::unfollowUser(v224, *((const char **)this + 139));
}
ProfilePage::updateFollowButton(this, *(unsigned __int8 *)(*((_DWORD *)this + 138) + 552));
}
}
}
}
std::string::basic_string(v287, *((_DWORD *)this + 138) + 380);
if ( (v287[0] & 1) != 0 )
v27 = v287[1];
else
v27 = (int)LOBYTE(v287[0]) >> 1;
v28 = v27;
if ( v27 )
v28 = 1;
std::string::basic_string(v288, *((_DWORD *)this + 138) + 392);
if ( (v288[0] & 1) != 0 )
v29 = v288[1];
else
v29 = (int)LOBYTE(v288[0]) >> 1;
if ( v29 )
++v28;
std::string::basic_string(v289, *((_DWORD *)this + 138) + 404);
if ( (v289[0] & 1) != 0 )
v30 = v289[1];
else
v30 = (int)LOBYTE(v289[0]) >> 1;
if ( v30 )
v31 = v28 + 1;
else
v31 = v28;
std::string::basic_string(&v290, *((_DWORD *)this + 138) + 428);
if ( (v290 & 1) != 0 )
v32 = v291;
else
v32 = (int)(unsigned __int8)v290 >> 1;
if ( v32 )
v33 = v31 + 1;
else
v33 = v31;
std::string::basic_string(&v293, *((_DWORD *)this + 138) + 440);
v34 = v33;
if ( (v293 & 1) != 0 )
v35 = v294;
else
v35 = (int)(unsigned __int8)v293 >> 1;
if ( v35 )
v34 = v33 + 1;
v247 = v34;
std::string::~string((int)&v293);
std::string::~string((int)&v290);
std::string::~string((int)v289);
std::string::~string((int)v288);
v36 = (GameManager *)std::string::~string((int)v287);
v37 = *(_DWORD *)(*((_DWORD *)this + 138) + 320) > 0;
v38 = (GameManager *)GameManager::sharedState(v36);
v39 = (cocos2d::CCNode *)GameManager::safeModeEnabled(v38);
if ( v39 )
v40 = 0;
else
v40 = *(_DWORD *)(*((_DWORD *)this + 138) + 544) > 0;
v41 = nullptr;
v235 = (cocos2d::CCNode *)v40;
v42 = 60.0;
v43 = (float)(v260 * 0.5) + 85.0;
if ( v37 )
v42 = 50.0;
v44 = 0.0;
v45 = (const cocos2d::CCPoint *)cocos2d::CCNode::create(v39);
(*(void (__fastcall **)(const cocos2d::CCPoint *, void *))(*(_DWORD *)v45 + 160))(v45, &unk_D2C728);
(*(void (__fastcall **)(_DWORD, const cocos2d::CCPoint *))(**((_DWORD **)this + 115) + 228))(
*((_DWORD *)this + 115),
v45);
v46 = (cocos2d::CCArray *)cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v261, 0.0, 0.0);
v249 = (char *)v235 + v37 + 5;
v244 = (cocos2d::CCArray *)cocos2d::CCArray::create(v46);
while ( 1 )
{
v290 = 0;
v291 = 0;
v292 = nullptr;
if ( v41 != &byte_5 )
break;
if ( !v235 )
goto LABEL_78;
std::string::assign(&v290, "GJ_followIcon_001.png");
v49 = 3.0;
v48 = *(_DWORD *)(*((_DWORD *)this + 138) + 544);
v233 = 1062920519;
if ( *((_BYTE *)this + 560) )
v47 = 4;
else
v47 = 0;
LABEL_83:
GameToolbox::pointsToString((GameToolbox *)&v293, v48);
if ( (v293 & 1) != 0 )
v51 = v295;
else
v51 = (cocos2d::CCLabelBMFont *)((char *)&v293 + 1);
v52 = (cocos2d::CCLabelBMFont *)cocos2d::CCLabelBMFont::create(v51, "bigFont.fnt", v50);
std::string::~string((int)&v293);
(*(void (__fastcall **)(const cocos2d::CCPoint *, cocos2d::CCLabelBMFont *, int))(*(_DWORD *)v45 + 232))(
v45,
v52,
2);
v251 = *(cocos2d::CCSprite **)(*(_DWORD *)v52 + 148);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v286, 0.0, 0.5);
((void (__fastcall *)(cocos2d::CCLabelBMFont *, _DWORD *))v251)(v52, v286);
v252 = *(cocos2d::CCSprite **)(*(_DWORD *)v52 + 92);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v285, v49, 0.0);
cocos2d::CCPoint::operator+(v286, v261, v285);
((void (__fastcall *)(cocos2d::CCLabelBMFont *, _DWORD *))v252)(v52, v286);
(*(void (__fastcall **)(cocos2d::CCLabelBMFont *, int))(*(_DWORD *)v52 + 80))(v52, 1058642330);
cocos2d::CCLabelBMFont::limitLabelWidth(v52, v42, 0.6, 0.0);
cocos2d::CCArray::addObject(*((cocos2d::CCArray **)this + 152), v52);
if ( (v290 & 1) != 0 )
v53 = v292;
else
v53 = (cocos2d::CCSprite *)((char *)&v290 + 1);
v54 = cocos2d::CCSprite::createWithSpriteFrameName(v53, (const char *)((unsigned __int8)v290 << 31));
(*(void (__fastcall **)(int, int))(*(_DWORD *)v54 + 80))(v54, v233);
(*(void (__fastcall **)(float *, cocos2d::CCLabelBMFont *))(*(_DWORD *)v52 + 168))(v285, v52);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v286, v285[0] + 14.0, 0.0);
cocos2d::CCPoint::operator+(v284, v261, v286);
if ( v47 )
{
v266 = 0;
v265 = ProfilePage::onStatInfo;
v55 = (cocos2d::CCObject *)CCMenuItemSpriteExtra::create(v54, 0, (int)this, (int)ProfilePage::onStatInfo, 0);
(*(void (__fastcall **)(cocos2d::CCObject *, int))(*(_DWORD *)v55 + 36))(v55, v47);
v253 = *(cocos2d::CCSprite **)(*(_DWORD *)v55 + 160);
cocos2d::CCSize::CCSize((cocos2d::CCSize *)v286, 30.0, 30.0);
((void (__fastcall *)(cocos2d::CCObject *, _DWORD *))v253)(v55, v286);
v254 = *(cocos2d::CCSprite **)(*(_DWORD *)v54 + 92);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v286, 15.0, 15.0);
((void (__fastcall *)(int, _DWORD *))v254)(v54, v286);
(*(void (__fastcall **)(_DWORD, cocos2d::CCObject *))(**((_DWORD **)this + 111) + 228))(
*((_DWORD *)this + 111),
v55);
(*(void (__fastcall **)(cocos2d::CCObject *, float *))(*(_DWORD *)v55 + 92))(v55, v284);
cocos2d::CCArray::addObject(*((cocos2d::CCArray **)this + 152), v55);
v56 = v244;
v57 = v55;
}
else
{
(*(void (__fastcall **)(const cocos2d::CCPoint *, int, int))(*(_DWORD *)v45 + 232))(v45, v54, 2);
(*(void (__fastcall **)(int, float *))(*(_DWORD *)v54 + 92))(v54, v284);
v56 = *((cocos2d::CCArray **)this + 152);
v57 = (cocos2d::CCObject *)v54;
}
cocos2d::CCArray::addObject(v56, v57);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v285, 20.0, 0.0);
cocos2d::CCPoint::operator+(v286, v284, v285);
cocos2d::CCPoint::operator=(v261, v286);
v58 = *(float *)(*(int (__fastcall **)(cocos2d::CCLabelBMFont *))(*(_DWORD *)v52 + 164))(v52);
v59 = v44
+ (float)((float)(v58 * (*(float (__fastcall **)(cocos2d::CCLabelBMFont *))(*(_DWORD *)v52 + 84))(v52)) + 14.0);
if ( v41 )
v60 = 20.0;
else
v60 = 10.0;
++v41;
v44 = v59 + v60;
std::string::~string((int)&v290);
if ( v41 == v249 )
{
if ( v44 > 420.0 )
{
(*(void (__fastcall **)(const cocos2d::CCPoint *, _DWORD))(*(_DWORD *)v45 + 80))(v45, 420.0 / v44);
v44 = 420.0;
}
v61 = *(void (__fastcall **)(const cocos2d::CCPoint *, _DWORD *))(*(_DWORD *)v45 + 92);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v286, (float)(v259 * 0.5) - (float)(v44 * 0.5), v43);
v61(v45, v286);
v62 = 0;
while ( v62 < cocos2d::CCArray::count(v244) )
{
v63 = cocos2d::CCArray::objectAtIndex(v244, v62++);
v64 = v63;
v65 = (*(int (__fastcall **)(int))(*(_DWORD *)v63 + 536))(v63);
v66 = *(void (__fastcall **)(int, _DWORD))(*(_DWORD *)v65 + 80);
v67 = COERCE_FLOAT((*(int (__fastcall **)(int))(*(_DWORD *)v65 + 84))(v65));
v68 = COERCE_FLOAT((*(int (__fastcall **)(const cocos2d::CCPoint *))(*(_DWORD *)v45 + 84))(v45));
v66(v65, v67 * v68);
v69 = *((const cocos2d::CCPoint **)this + 111);
v70 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v64 + 92);
(*(void (__fastcall **)(int))(*(_DWORD *)v64 + 96))(v64);
cocos2d::CCNode::convertToWorldSpace((cocos2d::CCNode *)v285, v45);
cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)v286, v69);
v70(v64, v286);
}
v71 = 0;
v72 = 3.0;
v73 = (GameManager *)cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v262, v259 * 0.5, (float)(v260 * 0.5) + 40.0);
v74 = (GameManager *)GameManager::sharedState(v73);
v75 = GameManager::colorForIdx(v74, *(_DWORD *)(*((_DWORD *)this + 138) + 336));
v255 = v75;
v76 = (GameManager *)BYTE2(v75);
v256 = (char)v76;
v77 = (GameManager *)GameManager::sharedState(v76);
v78 = GameManager::colorForIdx(v77, *(_DWORD *)(*((_DWORD *)this + 138) + 340));
v257 = v78;
v79 = (GameManager *)BYTE2(v78);
v258 = (char)v79;
while ( 1 )
{
v80 = *((_DWORD **)this + 138);
switch ( v71 )
{
case 1:
v81 = (SimplePlayer *)v80[117];
v82 = 1;
v83 = 1064514355;
break;
case 2:
v81 = (SimplePlayer *)v80[118];
v82 = 2;
v83 = 1064514355;
break;
case 3:
v81 = (SimplePlayer *)v80[119];
v82 = 3;
v83 = 1064514355;
break;
case 4:
v81 = (SimplePlayer *)v80[120];
v82 = 4;
v83 = 1064514355;
break;
case 5:
v81 = (SimplePlayer *)v80[121];
v82 = 5;
v83 = 1064514355;
break;
case 6:
v81 = (SimplePlayer *)v80[122];
v82 = 6;
v83 = 1064514355;
break;
case 7:
v81 = (SimplePlayer *)v80[123];
v83 = 1063675494;
v82 = 7;
v72 = v72 + 2.0;
break;
case 8:
v81 = (SimplePlayer *)v80[124];
v82 = 8;
v83 = 1063675494;
break;
default:
v81 = (SimplePlayer *)v80[116];
v82 = 0;
v83 = 1064514355;
break;
}
v84 = GameManager::sharedState(v79);
v85 = GameManager::countForType(v84, v82);
if ( (int)v81 <= v85 ? (int)v81 <= 0 : v85 <= 0 )
{
v81 = (SimplePlayer *)(&dword_0 + 1);
}
else if ( (int)v81 >= v85 )
{
v81 = (SimplePlayer *)v85;
}
v89 = v71++;
v90 = SimplePlayer::create(v81, v86);
cocos2d::CCPoint::CCPoint(
(cocos2d::CCPoint *)v286,
(float)((float)((float)((float)v89 * 44.0) - 176.0) + v72) - 1.0,
0.0);
cocos2d::CCPoint::operator+(v284, v262, v286);
(*(void (__fastcall **)(cocos2d::CCSprite *, __int16 *))(*(_DWORD *)v90 + 480))(v90, &v255);
SimplePlayer::setSecondColor(v90);
v91 = *((_DWORD *)this + 138);
v92 = *(_DWORD *)(v91 + 348) == 2 ? 1 : *(_BYTE *)(v91 + 504);
*((_BYTE *)v90 + 540) = v92;
SimplePlayer::tryEnableCustomGlowColor(v90, *(_DWORD *)(*((_DWORD *)this + 138) + 344));
SimplePlayer::updatePlayerFrame((int)v90, (int)v81, v82);
SimplePlayer::updateColors(v90);
(*(void (__fastcall **)(cocos2d::CCSprite *, int))(*(_DWORD *)v90 + 80))(v90, v83);
v268 = 0;
v267 = ProfilePage::onIconInfo;
v93 = (cocos2d::CCObject *)CCMenuItemSpriteExtra::create(
(int)v90,
0,
(int)this,
(int)ProfilePage::onIconInfo,
0);
(*(void (__fastcall **)(cocos2d::CCObject *, int))(*(_DWORD *)v93 + 36))(v93, v82);
v94 = *(_DWORD *)v93;
*((_DWORD *)v93 + 96) = v81;
v95 = *(void (__fastcall **)(cocos2d::CCObject *, _DWORD *))(v94 + 160);
cocos2d::CCSize::CCSize((cocos2d::CCSize *)v286, 30.0, 30.0);
v95(v93, v286);
v96 = *(void (__fastcall **)(cocos2d::CCSprite *, _DWORD *))(*(_DWORD *)v90 + 92);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v286, 15.0, 15.0);
v96(v90, v286);
(*(void (__fastcall **)(_DWORD, cocos2d::CCObject *))(**((_DWORD **)this + 111) + 228))(
*((_DWORD *)this + 111),
v93);
v97 = *((const cocos2d::CCPoint **)this + 111);
v98 = *(void (__fastcall **)(cocos2d::CCObject *, _DWORD *))(*(_DWORD *)v93 + 92);
cocos2d::CCNode::convertToWorldSpace((cocos2d::CCNode *)v285, *((const cocos2d::CCPoint **)this + 115));
cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)v286, v97);
v98(v93, v286);
v79 = (GameManager *)cocos2d::CCArray::addObject(*((cocos2d::CCArray **)this + 152), v93);
if ( v71 == 9 )
break;
v72 = -3.0;
if ( v71 < 5 )
v72 = 3.0;
}
v99 = (GameManager *)cocos2d::CCPoint::CCPoint(
(cocos2d::CCPoint *)v263,
(float)((float)(v259 * 0.5) + 220.0) - 22.0,
(float)((float)(v260 * 0.5) + 145.0) - 22.0);
v100 = (GameManager *)GameManager::sharedState(v99);
v101 = (GameManager *)GameManager::safeModeEnabled(v100);
v103 = (int)v101;
if ( v247 == 1 )
{
std::string::basic_string(&v293, *((_DWORD *)this + 138) + 380);
if ( (v293 & 1) != 0 )
v104 = v294;
else
v104 = (int)(unsigned __int8)v293 >> 1;
v101 = (GameManager *)std::string::~string((int)&v293);
if ( v104 )
{
if ( !v103 )
{
v110 = "gj_ytIcon_001.png";
goto LABEL_155;
}
goto LABEL_160;
}
std::string::basic_string(&v293, *((_DWORD *)this + 138) + 392);
if ( (v293 & 1) != 0 )
v106 = v294;
else
v106 = (int)(unsigned __int8)v293 >> 1;
v101 = (GameManager *)std::string::~string((int)&v293);
if ( v106 )
{
if ( v103 )
goto LABEL_160;
v103 = 1;
v110 = "gj_twIcon_001.png";
}
else
{
std::string::basic_string(&v293, *((_DWORD *)this + 138) + 404);
if ( (v293 & 1) != 0 )
v107 = v294;
else
v107 = (int)(unsigned __int8)v293 >> 1;
v101 = (GameManager *)std::string::~string((int)&v293);
if ( v107 )
{
if ( v103 )
goto LABEL_160;
v103 = 2;
v110 = "gj_twitchIcon_001.png";
}
else
{
std::string::basic_string(&v293, *((_DWORD *)this + 138) + 428);
if ( (v293 & 1) != 0 )
v108 = v294;
else
v108 = (int)(unsigned __int8)v293 >> 1;
v101 = (GameManager *)std::string::~string((int)&v293);
if ( !v108 )
{
std::string::basic_string(&v293, *((_DWORD *)this + 138) + 440);
if ( (v293 & 1) != 0 )
v109 = v294;
else
v109 = (int)(unsigned __int8)v293 >> 1;
v101 = (GameManager *)std::string::~string((int)&v293);
if ( v109 && !v103 )
{
v103 = 4;
v110 = "gj_tiktokIcon_001.png";
goto LABEL_155;
}
LABEL_160:
v118 = *((_DWORD *)this + 138);
v119 = *(_DWORD *)(v118 + 364);
if ( v119 == 2 )
v120 = 0;
else
v120 = v119 != 1 || *(_DWORD *)(v118 + 520) == 1;
v121 = (GameManager *)GameManager::sharedState(v101);
if ( !GameManager::accountPostsRestricted(v121) )
{
v122 = (GameManager *)GameManager::sharedState(nullptr);
if ( !GameManager::commentsRestricted(v122) )
{
if ( v120
|| *((_BYTE *)this + 560)
|| (v124 = GameManager::sharedState(nullptr),
*(_DWORD *)(v124 + 820) - *(_DWORD *)(v124 + 824) == 2) )
{
v225 = cocos2d::CCSprite::createWithSpriteFrameName(
(cocos2d::CCSprite *)"btn_chatHistory_001.png",
v123);
v274 = 0;
v273 = ProfilePage::onCommentHistory;
v226 = (cocos2d::CCObject *)CCMenuItemSpriteExtra::create(
v225,
0,
(int)this,
(int)ProfilePage::onCommentHistory,
0);
(*(void (__fastcall **)(_DWORD, cocos2d::CCObject *))(**((_DWORD **)this + 111) + 228))(
*((_DWORD *)this + 111),
v226);
v227 = *((const cocos2d::CCPoint **)this + 115);
v228 = *((const cocos2d::CCPoint **)this + 111);
v243 = *(cocos2d::CCNode **)(*(_DWORD *)v226 + 92);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v284, v263[0], (float)(v260 * 0.5) - 10.0);
cocos2d::CCNode::convertToWorldSpace((cocos2d::CCNode *)v285, v227);
cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)v286, v228);
((void (__fastcall *)(cocos2d::CCObject *, _DWORD *))v243)(v226, v286);
cocos2d::CCArray::addObject(*((cocos2d::CCArray **)this + 152), v226);
}
}
}
v125 = *(const char **)(*((_DWORD *)this + 138) + 516);
if ( (int)v125 > 0 )
{
if ( v125 == (_BYTE *)&dword_0 + 1 )
{
v126 = "rankIcon_1_001.png";
}
else if ( (int)v125 <= 10 )
{
v126 = "rankIcon_top10_001.png";
}
else if ( (int)v125 <= 50 )
{
v126 = "rankIcon_top50_001.png";
}
else if ( (int)v125 <= 100 )
{
v126 = "rankIcon_top100_001.png";
}
else if ( (int)v125 <= 200 )
{
v126 = "rankIcon_top200_001.png";
}
else if ( (int)v125 <= 500 )
{
v126 = "rankIcon_top500_001.png";
}
else if ( (int)v125 <= 1000 )
{
v126 = "rankIcon_top1000_001.png";
}
else if ( (int)v125 <= 5000 )
{
v126 = "rankIcon_top2500_001.png";
}
else if ( (int)v125 <= 10000 )
{
v126 = "rankIcon_top5000_001.png";
}
else if ( (int)v125 <= 50000 )
{
v126 = "rankIcon_top10000_001.png";
}
else
{
v126 = "rankIcon_all_001.png";
}
cocos2d::CCPoint::CCPoint(
(cocos2d::CCPoint *)v284,
(float)(v259 * 0.5) - 164.0,
(float)(v260 * 0.5) + 123.0);
v128 = (cocos2d::CCObject *)cocos2d::CCSprite::createWithSpriteFrameName(
(cocos2d::CCSprite *)v126,
v127);
(*(void (__fastcall **)(_DWORD, cocos2d::CCObject *, int))(**((_DWORD **)this + 115) + 232))(
*((_DWORD *)this + 115),
v128,
10);
(*(void (__fastcall **)(cocos2d::CCObject *, float *))(*(_DWORD *)v128 + 92))(v128, v284);
cocos2d::CCArray::addObject(*((cocos2d::CCArray **)this + 152), v128);
v130 = (cocos2d::CCObject *)cocos2d::CCSprite::createWithSpriteFrameName(
(cocos2d::CCSprite *)"gj_globalRankTxt_001.png",
v129);
(*(void (__fastcall **)(_DWORD, cocos2d::CCObject *, int))(**((_DWORD **)this + 115) + 232))(
*((_DWORD *)this + 115),
v130,
10);
v131 = *(void (__fastcall **)(cocos2d::CCObject *, _DWORD *))(*(_DWORD *)v130 + 92);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v285, 40.0, 6.0);
cocos2d::CCPoint::operator+(v286, v284, v285);
v131(v130, v286);
cocos2d::CCArray::addObject(*((cocos2d::CCArray **)this + 152), v130);
v132 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"%i", v125);
CString = (cocos2d::CCLabelBMFont *)cocos2d::CCString::getCString(v132);
v135 = (cocos2d::CCObject *)cocos2d::CCLabelBMFont::create(CString, "chatFont.fnt", v134);
(*(void (__fastcall **)(_DWORD, cocos2d::CCObject *, int))(**((_DWORD **)this + 115) + 232))(
*((_DWORD *)this + 115),
v135,
10);
v136 = *(void (__fastcall **)(cocos2d::CCObject *, _DWORD *))(*(_DWORD *)v135 + 92);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v285, 40.0, -6.0);
cocos2d::CCPoint::operator+(v286, v284, v285);
v136(v135, v286);
(*(void (__fastcall **)(cocos2d::CCObject *, int))(*(_DWORD *)v135 + 80))(v135, 1058642330);
cocos2d::CCArray::addObject(*((cocos2d::CCArray **)this + 152), v135);
}
if ( *(int *)(*((_DWORD *)this + 138) + 512) > 0 )
{
cocos2d::CCPoint::CCPoint(
(cocos2d::CCPoint *)v283,
(float)(v259 * 0.5) - 180.0,
(float)(v260 * 0.5) + 100.0);
v137 = *((cocos2d::CCLabelBMFont **)this + 145);
if ( v137 )
{
cocos2d::CCLabelBMFont::limitLabelWidth(v137, 140.0, 0.9, 0.0);
v138 = (*(int (__fastcall **)(_DWORD))(**((_DWORD **)this + 145) + 96))(*((_DWORD *)this + 145));
(*(void (__fastcall **)(float *))(**((_DWORD **)this + 145) + 168))(v284);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v285, (float)-(float)(v284[0] * 0.5) - 16.0, -1.0);
cocos2d::CCPoint::operator+(v286, v138, v285);
cocos2d::CCPoint::operator=(v283, v286);
}
v293 = 0;
v294 = 0;
v295 = nullptr;
std::string::__init(&v293, "modBadge_01_001.png", 0x13u);
v140 = *(_DWORD *)(*((_DWORD *)this + 138) + 512);
if ( v140 == 3 )
{
v141 = "modBadge_03_001.png";
goto LABEL_198;
}
if ( v140 == 2 )
{
v141 = "modBadge_02_001.png";
LABEL_198:
std::string::assign(&v293, v141);
}
if ( (v293 & 1) != 0 )
v142 = v295;
else
v142 = (cocos2d::CCSprite *)((char *)&v293 + 1);
v143 = cocos2d::CCSprite::createWithSpriteFrameName(v142, v139);
v276 = 0;
v275 = ProfilePage::onModInfo;
v144 = (cocos2d::CCObject *)CCMenuItemSpriteExtra::create(
v143,
0,
(int)this,
(int)ProfilePage::onModInfo,
0);
(*(void (__fastcall **)(_DWORD, cocos2d::CCObject *))(**((_DWORD **)this + 111) + 228))(
*((_DWORD *)this + 111),
v144);
v145 = *(void (__fastcall **)(cocos2d::CCObject *, _DWORD *))(*(_DWORD *)v144 + 92);
v237 = *((cocos2d::CCNode **)this + 111);
cocos2d::CCNode::convertToWorldSpace(
(cocos2d::CCNode *)v285,
*((const cocos2d::CCPoint **)this + 115));
cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)v286, v237);
v145(v144, v286);
cocos2d::CCArray::addObject(*((cocos2d::CCArray **)this + 152), v144);
std::string::~string((int)&v293);
}
v293 = 0;
v294 = 0;
v295 = nullptr;
std::string::__init(&v293, "GJ_infoIcon_001.png", 0x13u);
v146 = CCSpriteGrayscale::createWithSpriteFrameName((char *)&v293);
std::string::~string((int)&v293);
(*(void (__fastcall **)(CCSpriteWithHue *, int))(*(_DWORD *)v146 + 80))(v146, 1055286886);
v278 = 0;
v277 = ProfilePage::onInfo;
v147 = (cocos2d::CCObject *)CCMenuItemSpriteExtra::create(
(int)v146,
0,
(int)this,
(int)ProfilePage::onInfo,
0);
CCMenuItemSpriteExtra::setSizeMult((int)v147, 1.5);
(*(void (__fastcall **)(_DWORD, cocos2d::CCObject *))(**((_DWORD **)this + 111) + 228))(
*((_DWORD *)this + 111),
v147);
*(float *)&v148 = COERCE_FLOAT((*(int (__fastcall **)(_DWORD))(**((_DWORD **)this + 145) + 84))(*((_DWORD *)this + 145)));
v149 = *((const cocos2d::CCPoint **)this + 111);
v150 = *(void (__fastcall **)(cocos2d::CCObject *, _DWORD *))(*(_DWORD *)v147 + 92);
v151 = *(float *)&v148;
v152 = (*(int (__fastcall **)(_DWORD))(**((_DWORD **)this + 145) + 96))(*((_DWORD *)this + 145));
v153 = *(float *)(*(int (__fastcall **)(_DWORD))(**((_DWORD **)this + 145) + 164))(*((_DWORD *)this + 145));
v154 = (*(int (__fastcall **)(_DWORD))(**((_DWORD **)this + 145) + 164))(*((_DWORD *)this + 145));
cocos2d::CCPoint::CCPoint(
(cocos2d::CCPoint *)v284,
(float)((float)(v153 * 0.5) * v151) + 8.0,
(float)((float)(*(float *)(v154 + 4) * 0.5) * v151) - 5.0);
cocos2d::CCPoint::operator+(v285, v152, v284);
cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)v286, v149);
v150(v147, v286);
cocos2d::CCArray::addObject(*((cocos2d::CCArray **)this + 152), v147);
v156 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"whiteSquare60_001.png", v155);
(*(void (__fastcall **)(int, int))(*(_DWORD *)v156 + 72))(v156, 1061997773);
(*(void (__fastcall **)(int, _DWORD))(*(_DWORD *)v156 + 172))(v156, 0);
v280 = 0;
v279 = ProfilePage::onCopyName;
v157 = (cocos2d::CCObject *)CCMenuItemSpriteExtra::create(
v156,
0,
(int)this,
(int)ProfilePage::onCopyName,
0);
*((_BYTE *)v157 + 320) = 0;
(*(void (__fastcall **)(_DWORD, cocos2d::CCObject *))(**((_DWORD **)this + 111) + 228))(
*((_DWORD *)this + 111),
v157);
v158 = *((const cocos2d::CCPoint **)this + 111);
v238 = *(cocos2d::CCNode **)(*(_DWORD *)v157 + 92);
v159 = (*(int (__fastcall **)(_DWORD))(**((_DWORD **)this + 145) + 96))(*((_DWORD *)this + 145));
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v284, 0.0, -2.0);
cocos2d::CCPoint::operator+(v285, v159, v284);
cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)v286, v158);
((void (__fastcall *)(cocos2d::CCObject *, _DWORD *))v238)(v157, v286);
v160 = (GameLevelManager *)cocos2d::CCArray::addObject(*((cocos2d::CCArray **)this + 152), v157);
if ( !*((_BYTE *)this + 560) )
{
v239 = *((unsigned __int8 *)this + 560);
v161 = ProfilePage::setupAccountButtons(*(float *)&this);
v162 = (cocos2d::CCArray *)cocos2d::CCArray::create((cocos2d::CCArray *)LODWORD(v161));
cocos2d::CCPoint::CCPoint(
(cocos2d::CCPoint *)v283,
(float)((float)((float)(v259 * 0.5) + 220.0) - 22.0) - 1.0,
(float)((float)(v260 * 0.5) - 145.0) + 22.0);
v164 = cocos2d::CCSprite::createWithSpriteFrameName(
(cocos2d::CCSprite *)"accountBtn_myLevels_001.png",
v163);
(*(void (__fastcall **)(int, int))(*(_DWORD *)v164 + 80))(v164, 1061158912);
v281[1] = v239;
v245 = (cocos2d::CCArray *)v239;
v281[0] = ProfilePage::onMyLevels;
v165 = (cocos2d::CCObject *)CCMenuItemSpriteExtra::create(
v164,
v239,
(int)this,
(int)ProfilePage::onMyLevels,
v239);
CCMenuItemSpriteExtra::setSizeMult((int)v165, 1.2);
(*(void (__fastcall **)(_DWORD, cocos2d::CCObject *))(**((_DWORD **)this + 111) + 228))(
*((_DWORD *)this + 111),
v165);
cocos2d::CCArray::addObject(v162, v165);
cocos2d::CCArray::addObject(*((cocos2d::CCArray **)this + 152), v165);
v166 = *(void (__fastcall **)(cocos2d::CCObject *, _DWORD *))(*(_DWORD *)v165 + 92);
v240 = *((cocos2d::CCNode **)this + 111);
cocos2d::CCNode::convertToWorldSpace(
(cocos2d::CCNode *)v285,
*((const cocos2d::CCPoint **)this + 115));
cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)v286, v240);
v166(v165, v286);
v168 = (cocos2d::CCObject *)cocos2d::CCSprite::createWithSpriteFrameName(
(cocos2d::CCSprite *)"GJ_myLevelsTxt_001.png",
v167);
(*(void (__fastcall **)(_DWORD, cocos2d::CCObject *, int))(**((_DWORD **)this + 115) + 232))(
*((_DWORD *)this + 115),
v168,
2);
v241 = *(cocos2d::CCNode **)(*(_DWORD *)v168 + 92);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v285, -1.0, 26.0);
cocos2d::CCPoint::operator+(v286, v283, v285);
((void (__fastcall *)(cocos2d::CCObject *, _DWORD *))v241)(v168, v286);
cocos2d::CCArray::addObject(*((cocos2d::CCArray **)this + 152), v168);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v286, -42.0, 0.0);
cocos2d::CCPoint::operator+(v284, v283, v286);
v170 = cocos2d::CCSprite::createWithSpriteFrameName(
(cocos2d::CCSprite *)"accountBtn_myLists_001.png",
v169);
(*(void (__fastcall **)(int, int))(*(_DWORD *)v170 + 80))(v170, 1061158912);
v282[1] = v245;
v282[0] = ProfilePage::onMyLists;
v171 = (cocos2d::CCObject *)CCMenuItemSpriteExtra::create(
v170,
(int)v245,
(int)this,
(int)ProfilePage::onMyLists,
(int)v245);
CCMenuItemSpriteExtra::setSizeMult((int)v171, 1.2);
(*(void (__fastcall **)(_DWORD, cocos2d::CCObject *))(**((_DWORD **)this + 111) + 228))(
*((_DWORD *)this + 111),
v171);
cocos2d::CCArray::addObject(v162, v171);
cocos2d::CCArray::addObject(*((cocos2d::CCArray **)this + 152), v171);
v172 = *((const cocos2d::CCPoint **)this + 111);
v173 = *(void (__fastcall **)(cocos2d::CCObject *, _DWORD *))(*(_DWORD *)v171 + 92);
cocos2d::CCNode::convertToWorldSpace(
(cocos2d::CCNode *)v285,
*((const cocos2d::CCPoint **)this + 115));
cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)v286, v172);
v173(v171, v286);
v175 = (cocos2d::CCObject *)cocos2d::CCSprite::createWithSpriteFrameName(
(cocos2d::CCSprite *)"GJ_myListsTxt_001.png",
v174);
(*(void (__fastcall **)(_DWORD, cocos2d::CCObject *, int))(**((_DWORD **)this + 115) + 232))(
*((_DWORD *)this + 115),
v175,
2);
v176 = *(void (__fastcall **)(cocos2d::CCObject *, _DWORD *))(*(_DWORD *)v175 + 92);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v285, -46.0, 0.0);
cocos2d::CCPoint::operator+(v286, v284, v285);
v176(v175, v286);
v177 = (GameManager *)cocos2d::CCArray::addObject(*((cocos2d::CCArray **)this + 152), v175);
v178 = (GameManager *)GameManager::sharedState(v177);
v179 = (GameManager *)GameManager::modUIRank(v178);
if ( (int)v179 > 0 )
v179 = (GameManager *)(*(int (__fastcall **)(cocos2d::CCObject *, cocos2d::CCArray *))(*(_DWORD *)v175 + 172))(
v175,
v245);
v180 = (GameManager *)GameManager::sharedState(v179);
if ( GameManager::onlyCuratedLevels(v180)
|| (v181 = (GameManager *)GameManager::sharedState(nullptr), *((_DWORD *)v181 + 101))
|| (result = COERCE_FLOAT(GameManager::sharedState(v181)), *(_DWORD *)(LODWORD(result) + 408)) )
{
(*(void (__fastcall **)(cocos2d::CCObject *, _DWORD))(*(_DWORD *)v165 + 172))(v165, 0);
(*(void (__fastcall **)(cocos2d::CCObject *, _DWORD))(*(_DWORD *)v165 + 528))(v165, 0);
(*(void (__fastcall **)(cocos2d::CCObject *, _DWORD))(*(_DWORD *)v168 + 172))(v168, 0);
(*(void (__fastcall **)(cocos2d::CCObject *, _DWORD))(*(_DWORD *)v171 + 172))(v171, 0);
(*(void (__fastcall **)(cocos2d::CCObject *, _DWORD))(*(_DWORD *)v171 + 528))(v171, 0);
return COERCE_FLOAT((*(int (__fastcall **)(cocos2d::CCObject *, _DWORD))(*(_DWORD *)v175 + 172))(v175, 0));
}
return result;
}
v182 = (cocos2d::CCArray *)GameLevelManager::sharedState(v160);
*((_DWORD *)v182 + 208) = (char *)this + 528;
v183 = (GameManager *)cocos2d::CCArray::create(v182);
v184 = (GameManager *)GameManager::sharedState(v183);
if ( GameManager::messagesRestricted(v184) )
{
v234 = nullptr;
}
else
{
v234 = (cocos2d::CCPoint *)cocos2d::CCSprite::createWithSpriteFrameName(
(cocos2d::CCSprite *)"accountBtn_messages_001.png",
v185);
v282[3] = 0;
v282[2] = ProfilePage::onMessages;
v186 = (cocos2d::CCObject *)CCMenuItemSpriteExtra::create(
(int)v234,
0,
(int)this,
(int)ProfilePage::onMessages,
0);
CCMenuItemSpriteExtra::setSizeMult((int)v186, 1.1);
(*(void (__fastcall **)(_DWORD, cocos2d::CCObject *))(**((_DWORD **)this + 111) + 228))(
*((_DWORD *)this + 111),
v186);
cocos2d::CCArray::addObject(v183, v186);
cocos2d::CCArray::addObject(*((cocos2d::CCArray **)this + 152), v186);
}
v246 = (cocos2d::CCArray *)cocos2d::CCSprite::createWithSpriteFrameName(
(cocos2d::CCSprite *)"accountBtn_friends_001.png",
v185);
v282[5] = 0;
v282[4] = ProfilePage::onFriends;
v187 = (cocos2d::CCObject *)CCMenuItemSpriteExtra::create(
(int)v246,
0,
(int)this,
(int)ProfilePage::onFriends,
0);
CCMenuItemSpriteExtra::setSizeMult((int)v187, 1.1);
(*(void (__fastcall **)(_DWORD, cocos2d::CCObject *))(**((_DWORD **)this + 111) + 228))(
*((_DWORD *)this + 111),
v187);
cocos2d::CCArray::addObject(v183, v187);
v188 = (GameManager *)cocos2d::CCArray::addObject(*((cocos2d::CCArray **)this + 152), v187);
v189 = (GameManager *)GameManager::sharedState(v188);
if ( GameManager::friendRequestsRestricted(v189) )
{
v242 = nullptr;
}
else
{
v242 = (cocos2d::CCNode *)cocos2d::CCSprite::createWithSpriteFrameName(
(cocos2d::CCSprite *)"accountBtn_requests_001.png",
v190);
v283[1] = 0;
v283[0] = ProfilePage::onRequests;
v191 = (cocos2d::CCObject *)CCMenuItemSpriteExtra::create(
(int)v242,
0,
(int)this,
(int)ProfilePage::onRequests,
0);
CCMenuItemSpriteExtra::setSizeMult((int)v191, 1.1);
(*(void (__fastcall **)(_DWORD, cocos2d::CCObject *))(**((_DWORD **)this + 111) + 228))(
*((_DWORD *)this + 111),
v191);
cocos2d::CCArray::addObject(v183, v191);
cocos2d::CCArray::addObject(*((cocos2d::CCArray **)this + 152), v191);
}
v248 = cocos2d::CCSprite::createWithSpriteFrameName(
(cocos2d::CCSprite *)"accountBtn_notifications_001.png",
v190);
v284[1] = 0.0;
LODWORD(v284[0]) = ProfilePage::onNotifications;
v192 = (cocos2d::CCObject *)CCMenuItemSpriteExtra::create(
v248,
0,
(int)this,
(int)ProfilePage::onNotifications,
0);
CCMenuItemSpriteExtra::setSizeMult((int)v192, 1.1);
(*(void (__fastcall **)(_DWORD, cocos2d::CCObject *))(**((_DWORD **)this + 111) + 228))(
*((_DWORD *)this + 111),
v192);
cocos2d::CCArray::addObject(v183, v192);
v193 = (GameManager *)cocos2d::CCArray::addObject(*((cocos2d::CCArray **)this + 152), v192);
v194 = (GameManager *)GameManager::sharedState(v193);
if ( !GameManager::safeModeEnabled(v194) )
{
v196 = cocos2d::CCSprite::createWithSpriteFrameName(
(cocos2d::CCSprite *)"accountBtn_settings_001.png",
v195);
v285[1] = 0.0;
LODWORD(v285[0]) = ProfilePage::onSettings;
v197 = (cocos2d::CCObject *)CCMenuItemSpriteExtra::create(
v196,
0,
(int)this,
(int)ProfilePage::onSettings,
0);
CCMenuItemSpriteExtra::setSizeMult((int)v197, 1.1);
(*(void (__fastcall **)(_DWORD, cocos2d::CCObject *))(**((_DWORD **)this + 111) + 228))(
*((_DWORD *)this + 111),
v197);
cocos2d::CCArray::addObject(v183, v197);
cocos2d::CCArray::addObject(*((cocos2d::CCArray **)this + 152), v197);
}
v198 = *((const cocos2d::CCPoint **)this + 115);
v199 = *((const cocos2d::CCPoint **)this + 111);
cocos2d::CCPoint::CCPoint(
(cocos2d::CCPoint *)v281,
v259 * 0.5,
(float)((float)(v260 * 0.5) - 145.0) + 10.0);
cocos2d::CCNode::convertToWorldSpace((cocos2d::CCNode *)v282, v198);
cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)v286, v199);
v200 = *(float *)&v183;
v201 = 1;
v202 = GameToolbox::alignItemsHorisontally(v200, 20.0, (int)v286, 0);
while ( 2 )
{
v204 = *((_DWORD **)this + 138);
if ( v201 != 3 )
{
if ( v201 == 4 )
{
v207 = v204[134];
v208 = (GameManager *)GameManager::sharedState((GameManager *)LODWORD(v202));
v202 = COERCE_FLOAT(GameManager::getGameVariable(v208, "0240"));
if ( v202 == 0.0 )
{
v209 = (GameManager *)GameManager::sharedState(nullptr);
v202 = COERCE_FLOAT(GameManager::safeModeEnabled(v209));
if ( v202 == 0.0 )
v207 += *(_DWORD *)(*((_DWORD *)this + 138) + 540);
}
if ( v207 >= 99 )
v207 = 99;
v205 = (const char *)v207;
if ( v207 <= 0 )
{
LABEL_234:
v210 = cocos2d::CCSprite::createWithSpriteFrameName(
(cocos2d::CCSprite *)"GJ_chatBtn_001.png",
v203);
v286[1] = 0;
v286[0] = ProfilePage::onComment;
v211 = (cocos2d::CCObject *)CCMenuItemSpriteExtra::create(
v210,
0,
(int)this,
(int)ProfilePage::onComment,
0);
CCMenuItemSpriteExtra::setSizeMult((int)v211, 1.5);
(*(void (__fastcall **)(_DWORD, cocos2d::CCObject *))(**((_DWORD **)this + 111) + 228))(
*((_DWORD *)this + 111),
v211);
v212 = *((const cocos2d::CCPoint **)this + 115);
v213 = *((const cocos2d::CCPoint **)this + 111);
v214 = *(void (__fastcall **)(cocos2d::CCObject *, _DWORD *))(*(_DWORD *)v211 + 92);
cocos2d::CCPoint::CCPoint(
(cocos2d::CCPoint *)v264,
(float)((float)(v259 * 0.5) + 220.0) - 10.0,
(float)((float)((float)(v260 * 0.5) - 145.0) + 10.0) + 1.0);
cocos2d::CCNode::convertToWorldSpace((cocos2d::CCNode *)v281, v212);
cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)v282, v213);
v214(v211, v282);
v215 = (GameManager *)cocos2d::CCArray::addObject(*((cocos2d::CCArray **)this + 152), v211);
v216 = (GameManager *)GameManager::sharedState(v215);
result = COERCE_FLOAT(GameManager::accountPostsRestricted(v216));
if ( result != 0.0 )
{
(*(void (__fastcall **)(cocos2d::CCObject *, _DWORD))(*(_DWORD *)v211 + 172))(v211, 0);
return COERCE_FLOAT((*(int (__fastcall **)(cocos2d::CCObject *, _DWORD))(*(_DWORD *)v211 + 528))(v211, 0));
}
return result;
}
v206 = (cocos2d::CCPoint *)v248;
LABEL_237:
if ( v206 )
{
v217 = -0.5;
if ( v205 != (_BYTE *)&dword_0 + 1 )
v217 = 0.0;
v218 = (const cocos2d::CCPoint *)cocos2d::CCSprite::createWithSpriteFrameName(
(cocos2d::CCSprite *)"d_ball_01_001.png",
v203);
(*(void (__fastcall **)(const cocos2d::CCPoint *, void *))(*(_DWORD *)v218 + 480))(
v218,
&unk_BEE648);
(*(void (__fastcall **)(const cocos2d::CCPoint *, int))(*(_DWORD *)v218 + 80))(v218, 1058642330);
v219 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"%i", v205);
v220 = (cocos2d::CCLabelBMFont *)cocos2d::CCString::getCString(v219);
v222 = (cocos2d::CCLabelBMFont *)cocos2d::CCLabelBMFont::create(v220, "bigFont.fnt", v221);
cocos2d::CCLabelBMFont::limitLabelWidth(v222, 28.0, 0.8, 0.0);
(*(void (__fastcall **)(const cocos2d::CCPoint *, cocos2d::CCLabelBMFont *))(*(_DWORD *)v218 + 228))(
v218,
v222);
v250 = *(void (__fastcall **)(cocos2d::CCLabelBMFont *, _DWORD *))(*(_DWORD *)v222 + 92);
cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)v281, v218);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v282, v217, 1.0);
cocos2d::CCPoint::operator+(v286, v281, v282);
v250(v222, v286);
(*(void (__fastcall **)(cocos2d::CCPoint *, const cocos2d::CCPoint *, int))(*(_DWORD *)v206 + 232))(
v206,
v218,
1);
v223 = *(int (__fastcall **)(const cocos2d::CCPoint *, _DWORD *))(*(_DWORD *)v218 + 92);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v286, 38.0, 38.0);
v202 = COERCE_FLOAT(v223(v218, v286));
}
LABEL_241:
if ( v201 == 4 )
goto LABEL_234;
}
else
{
if ( v201 != 2 )
{
v205 = (const char *)v204[131];
if ( (int)v205 > 0 )
{
v206 = v234;
goto LABEL_237;
}
goto LABEL_241;
}
v205 = (const char *)v204[133];
v206 = v246;
LABEL_261:
if ( (int)v205 > 0 )
goto LABEL_237;
}
++v201;
continue;
}
break;
}
v205 = (const char *)v204[132];
v206 = v242;
goto LABEL_261;
}
if ( v103 )
goto LABEL_160;
v103 = 3;
v110 = "gj_instaIcon_001.png";
}
}
LABEL_155:
v111 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)v110, v105);
v270 = 0;
v269 = ProfilePage::onSocialPage;
v112 = (cocos2d::CCObject *)CCMenuItemSpriteExtra::create(
v111,
0,
(int)this,
(int)ProfilePage::onSocialPage,
0);
(*(void (__fastcall **)(cocos2d::CCObject *, int))(*(_DWORD *)v112 + 36))(v112, v103);
(*(void (__fastcall **)(_DWORD, cocos2d::CCObject *))(**((_DWORD **)this + 111) + 228))(
*((_DWORD *)this + 111),
v112);
v113 = *((const cocos2d::CCPoint **)this + 111);
v236 = *(cocos2d::CCNode **)(*(_DWORD *)v112 + 92);
cocos2d::CCNode::convertToWorldSpace((cocos2d::CCNode *)v285, *((const cocos2d::CCPoint **)this + 115));
cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)v286, v113);
((void (__fastcall *)(cocos2d::CCObject *, _DWORD *))v236)(v112, v286);
cocos2d::CCArray::addObject(*((cocos2d::CCArray **)this + 152), v112);
if ( v103 )
{
if ( v103 == 1 )
{
v115 = "GJ_twitterTxt_001.png";
}
else if ( v103 == 2 )
{
v115 = "GJ_twitchTxt_001.png";
}
else
{
v115 = "GJ_stuffTxt_001.png";
}
}
else
{
v115 = "GJ_youtubeTxt_001.png";
}
}
else
{
if ( v101 || v247 <= 1 )
goto LABEL_160;
v229 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"accountBtn_social_001.png", v102);
v272 = v103;
v271 = ProfilePage::onMyStuff;
v230 = (cocos2d::CCObject *)CCMenuItemSpriteExtra::create(
v229,
v103,
(int)this,
(int)ProfilePage::onMyStuff,
v103);
(*(void (__fastcall **)(_DWORD, cocos2d::CCObject *))(**((_DWORD **)this + 111) + 228))(
*((_DWORD *)this + 111),
v230);
v231 = *((const cocos2d::CCPoint **)this + 111);
v232 = *(void (__fastcall **)(cocos2d::CCObject *, _DWORD *))(*(_DWORD *)v230 + 92);
cocos2d::CCNode::convertToWorldSpace((cocos2d::CCNode *)v285, *((const cocos2d::CCPoint **)this + 115));
cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)v286, v231);
v232(v230, v286);
cocos2d::CCArray::addObject(*((cocos2d::CCArray **)this + 152), v230);
v115 = "GJ_stuffTxt_001.png";
}
v116 = (cocos2d::CCObject *)cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)v115, v114);
(*(void (__fastcall **)(_DWORD, cocos2d::CCObject *, int))(**((_DWORD **)this + 115) + 232))(
*((_DWORD *)this + 115),
v116,
2);
v117 = *(void (__fastcall **)(cocos2d::CCObject *, _DWORD *))(*(_DWORD *)v116 + 92);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v285, -60.0, 0.0);
cocos2d::CCPoint::operator+(v286, v263, v285);
v117(v116, v286);
v101 = (GameManager *)cocos2d::CCArray::addObject(*((cocos2d::CCArray **)this + 152), v116);
goto LABEL_160;
}
}
if ( v41 == &byte_6 )
{
LABEL_78:
std::string::assign(&v290, "GJ_hammerIcon_001.png");
v48 = *(_DWORD *)(*((_DWORD *)this + 138) + 320);
LABEL_79:
v47 = 0;
}
else
{
switch ( (unsigned int)v41 )
{
case 1u:
std::string::assign(&v290, "GJ_moonsIcon_001.png");
v47 = 2;
v48 = *(_DWORD *)(*((_DWORD *)this + 138) + 304);
break;
case 2u:
std::string::assign(&v290, "GJ_coinsIcon_001.png");
v48 = *(_DWORD *)(*((_DWORD *)this + 138) + 324);
goto LABEL_79;
case 3u:
std::string::assign(&v290, "GJ_coinsIcon2_001.png");
v48 = *(_DWORD *)(*((_DWORD *)this + 138) + 328);
goto LABEL_79;
case 4u:
std::string::assign(&v290, "GJ_demonIcon_001.png");
v47 = 3;
v48 = *(_DWORD *)(*((_DWORD *)this + 138) + 312);
break;
default:
std::string::assign(&v290, "GJ_starsIcon_001.png");
v47 = 1;
v48 = *(_DWORD *)(*((_DWORD *)this + 138) + 300);
break;
}
}
v49 = 0.0;
v233 = 1063675494;
goto LABEL_83;
}
return result;
}