//
// InfoLayer::init from 0x53ece0 to 0x540362 (5762 bytes)
//
// 1 xrefs:
// > InfoLayer::create @ 0x54052a
//
// 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:52:18 +0000
//
GameManager *__fastcall InfoLayer::init(
InfoLayer *this,
GJGameLevel *a2,
GJUserScore *a3,
GJLevelList *a4,
GJEditorSoundConfig *a5)
{
int v9; // r3
GameManager *v10; // r0
GameLevelManager *GameVariable; // r0
float v12; // s19
int v13; // r3
cocos2d::CCDirector *v14; // r0
int v15; // r9
void (__fastcall *v16)(int, float *); // r5
int (__fastcall *v17)(int, float *); // r5
cocos2d::CCMenu *v18; // r0
int v19; // r0
const char *v20; // r2
int v21; // r0
float v22; // s13
float v23; // r1
int v24; // r6
void (__fastcall *v25)(int, float *); // r5
const char *v26; // r1
int v27; // r1
int *v28; // r3
int v29; // r1
const char *v30; // r2
cocos2d::CCLabelBMFont *v31; // r0
cocos2d::CCLabelBMFont *v32; // r5
void (__fastcall *v33)(cocos2d::CCLabelBMFont *, float *); // r6
float v34; // s15
float v35; // r8
float v36; // r2
GameLevelManager *v37; // r0
int v38; // r3
int v39; // r10
int v40; // r3
int v41; // r3
int v42; // r2
int v43; // r3
cocos2d::CCDictionary **v44; // r0
int v45; // r1
int *v46; // r3
int v47; // r1
int v48; // r3
cocos2d::CCString *v49; // r0
cocos2d::CCLabelBMFont *CString; // r0
const char *v51; // r2
cocos2d::CCLabelBMFont *v52; // r6
float v53; // s17
int v54; // r0
float v55; // r2
float v56; // s17
void (__fastcall *v57)(cocos2d::CCLabelBMFont *, float *); // r9
float v58; // s17
float v59; // s17
int v60; // r0
float v61; // s17
int v62; // r8
void (__fastcall *v63)(int, float *); // r9
void (__fastcall *v64)(cocos2d::CCLabelBMFont *, float *); // r2
int v65; // r7
void (__fastcall *v66)(int, float *); // r3
int v67; // r2
int v68; // r3
int v69; // r1
int *v70; // r3
int v71; // r1
_BOOL4 v72; // r7
EmoteSprite *v73; // r0
char *v74; // r1
char *v75; // r7
int v76; // r10
int v77; // r2
int v78; // r3
int v79; // r2
int v80; // r3
int v81; // r0
float v82; // s21
size_t v83; // r0
int v84; // r7
void (__fastcall *v85)(int, float *); // r10
GameManager *v86; // r0
const char *v87; // r1
int v88; // r3
GameManager *v89; // r0
_DWORD *v90; // r3
ButtonSprite *v91; // r9
int v92; // r9
void (__fastcall *v93)(int, float *); // r10
int v94; // r8
float v95; // s17
float v96; // r0
int v97; // r0
int v98; // r6
const cocos2d::CCPoint *v99; // r9
void (__fastcall *v100)(int, float *); // r8
const char *v101; // r1
int v102; // r0
int v103; // r0
int v104; // r7
const cocos2d::CCPoint *v105; // r10
void (__fastcall *v106)(int, float *); // r9
int v107; // r0
int v108; // r8
const cocos2d::CCPoint *v109; // r10
LoadingCircle *v110; // r0
cocos2d::CCLayerColor *v111; // r0
int v112; // r3
int v113; // r10
int (__fastcall *v114)(int, float *); // r8
cocos2d::CCMenu *v115; // r0
const cocos2d::CCPoint *v116; // r8
float v117; // s21
const char *v118; // r1
int v119; // r0
const char *v120; // r1
cocos2d::CCSprite *v121; // r10
int v122; // r0
void (__fastcall *v123)(int, float *); // r10
const char *v124; // r2
int v125; // r0
cocos2d::CCDirector *v126; // r0
int v127; // r5
void (__fastcall *v128)(int, float *); // r7
cocos2d::CCDirector *v129; // r0
float v130; // s21
cocos2d::CCDirector *v131; // r0
float v132; // r0
int v133; // r5
void (__fastcall *v134)(int, float *); // r7
cocos2d::CCMenu *v135; // r0
cocos2d::CCMenu *v136; // r6
int v137; // r10
int v138; // r7
_DWORD *SpriteButton; // r0
_DWORD *v140; // r0
char *updated; // r0
int v142; // r3
_DWORD *v143; // r0
char *v144; // r0
const char *v145; // r1
_DWORD *v146; // r0
GameManager *v147; // r8
GameManager *v148; // r0
const char *v149; // r1
_DWORD *v150; // r0
char *v151; // r0
int v152; // r0
const char *v153; // r1
float v154; // s21
ButtonSprite *v155; // r0
int v156; // r0
int v157; // r10
const cocos2d::CCPoint *v158; // r9
int (__fastcall *v159)(int, float *); // r8
PlatformToolbox *v160; // r0
const char *v161; // r2
char *v162; // r0
int v163; // r0
int v164; // r7
void (__fastcall *v165)(int, float *); // r8
PlatformToolbox *v166; // r0
GameLevelManager *isNetworkAvailable; // r0
int v168; // r9
GameManager *ID; // r8
GameManager *v170; // r0
int v171; // r0
int *CommentKey; // r0
GameLevelManager *v173; // r0
char *v174; // r1
GameManager *v175; // r0
const char *v176; // r1
int v177; // r6
int v178; // r0
int v179; // r6
const cocos2d::CCPoint *v180; // r10
void (__fastcall *v181)(int, _BYTE *); // r9
int v183; // r0
int v184; // r0
void (__fastcall *v185)(int, float *); // r10
int v186; // r0
int v187; // r8
void (__fastcall *v188)(int, float *); // r10
GameManager *v189; // [sp+10h] [bp-16Ch]
int v190; // [sp+10h] [bp-16Ch]
_BOOL4 v191; // [sp+14h] [bp-168h]
cocos2d::CCPoint *v192; // [sp+14h] [bp-168h]
cocos2d::CCPoint *v193; // [sp+14h] [bp-168h]
GameManager *v194; // [sp+18h] [bp-164h]
int v195; // [sp+1Ch] [bp-160h]
int (__fastcall *v196)(int, float *); // [sp+1Ch] [bp-160h]
int v197; // [sp+1Ch] [bp-160h]
void (__fastcall *v198)(int, float *); // [sp+1Ch] [bp-160h]
int v199; // [sp+1Ch] [bp-160h]
int v200; // [sp+1Ch] [bp-160h]
int v201; // [sp+24h] [bp-158h]
float v202; // [sp+28h] [bp-154h] BYREF
float v203; // [sp+2Ch] [bp-150h]
_BYTE v204[8]; // [sp+30h] [bp-14Ch] BYREF
_BYTE v205[8]; // [sp+38h] [bp-144h] BYREF
_BYTE v206[8]; // [sp+40h] [bp-13Ch] BYREF
ProfilePage *(__fastcall *v207)(InfoLayer *, cocos2d::CCObject *); // [sp+48h] [bp-134h]
int v208; // [sp+4Ch] [bp-130h]
int (__fastcall *v209)(InfoLayer *, cocos2d::CCObject *); // [sp+50h] [bp-12Ch]
int v210; // [sp+54h] [bp-128h]
int (__fastcall *v211)(InfoLayer *, cocos2d::CCObject *); // [sp+58h] [bp-124h]
int v212; // [sp+5Ch] [bp-120h]
ReportPopup *(__fastcall *v213)(InfoLayer *, cocos2d::CCObject *); // [sp+60h] [bp-11Ch]
int v214; // [sp+64h] [bp-118h]
int (__fastcall *v215)(cocos2d::CCObject **, cocos2d::CCObject *); // [sp+68h] [bp-114h]
int v216; // [sp+6Ch] [bp-110h]
int (__fastcall *v217)(InfoLayer *, cocos2d::CCObject *); // [sp+70h] [bp-10Ch]
int v218; // [sp+74h] [bp-108h]
int (__fastcall *v219)(InfoLayer *, cocos2d::CCObject *); // [sp+78h] [bp-104h]
int v220; // [sp+7Ch] [bp-100h]
int (__fastcall *v221)(InfoLayer *, cocos2d::CCObject *); // [sp+80h] [bp-FCh]
int v222; // [sp+84h] [bp-F8h]
int (__fastcall *v223)(InfoLayer *, cocos2d::CCObject *); // [sp+88h] [bp-F4h]
int v224; // [sp+8Ch] [bp-F0h]
_DWORD (*v225)(InfoLayer *__hidden, cocos2d::CCObject *); // [sp+90h] [bp-ECh]
int v226; // [sp+94h] [bp-E8h]
_DWORD (*v227)(InfoLayer *__hidden, cocos2d::CCObject *); // [sp+98h] [bp-E4h] BYREF
int v228; // [sp+9Ch] [bp-E0h]
int (__fastcall *v229)(InfoLayer *, cocos2d::CCObject *); // [sp+A0h] [bp-DCh] BYREF
int v230; // [sp+A4h] [bp-D8h]
float v231[2]; // [sp+A8h] [bp-D4h] BYREF
float v232[2]; // [sp+B0h] [bp-CCh] BYREF
int v233; // [sp+B8h] [bp-C4h] BYREF
int v234; // [sp+BCh] [bp-C0h]
cocos2d::CCLabelBMFont *v235; // [sp+C0h] [bp-BCh]
int v236; // [sp+C4h] [bp-B8h] BYREF
int v237; // [sp+C8h] [bp-B4h]
cocos2d::CCLabelBMFont *v238; // [sp+CCh] [bp-B0h]
int v239; // [sp+D0h] [bp-ACh] BYREF
int v240; // [sp+D4h] [bp-A8h]
cocos2d::CCLabelBMFont *v241; // [sp+D8h] [bp-A4h]
int v242; // [sp+DCh] [bp-A0h] BYREF
int v243; // [sp+E0h] [bp-9Ch]
cocos2d::CCLabelBMFont *v244; // [sp+E4h] [bp-98h]
int v245; // [sp+E8h] [bp-94h] BYREF
int v246; // [sp+ECh] [bp-90h]
char *v247; // [sp+F0h] [bp-8Ch]
int v248; // [sp+F4h] [bp-88h] BYREF
int v249; // [sp+F8h] [bp-84h]
char *v250; // [sp+FCh] [bp-80h]
int v251; // [sp+100h] [bp-7Ch] BYREF
int v252; // [sp+104h] [bp-78h]
char *v253; // [sp+108h] [bp-74h]
int v254; // [sp+10Ch] [bp-70h] BYREF
int v255; // [sp+110h] [bp-6Ch]
char *v256; // [sp+114h] [bp-68h]
int v257; // [sp+118h] [bp-64h] BYREF
int v258; // [sp+11Ch] [bp-60h]
char *v259; // [sp+120h] [bp-5Ch]
int v260; // [sp+124h] [bp-58h] BYREF
int v261; // [sp+128h] [bp-54h]
char *v262; // [sp+12Ch] [bp-50h]
int v263; // [sp+130h] [bp-4Ch] BYREF
int v264; // [sp+134h] [bp-48h]
char *v265; // [sp+138h] [bp-44h]
int v266[3]; // [sp+13Ch] [bp-40h] BYREF
int v267[2]; // [sp+148h] [bp-34h] BYREF
char *v268; // [sp+150h] [bp-2Ch]
float v269[4]; // [sp+154h] [bp-28h] BYREF
float v270[4]; // [sp+164h] [bp-18h] BYREF
v194 = FLAlertLayer::init(this, 150);
if ( !v194 )
return v194;
if ( a3 )
{
*((_DWORD *)this + 135) = a3;
cocos2d::CCObject::retain(a3);
v9 = 1;
}
else if ( a4 )
{
*((_DWORD *)this + 136) = a4;
cocos2d::CCObject::retain(a4);
v9 = 2;
}
else
{
if ( !a5 )
{
*((_DWORD *)this + 134) = a2;
cocos2d::CCObject::retain(a2);
*((_DWORD *)this + 159) = 0;
goto LABEL_10;
}
*((_DWORD *)this + 137) = a5;
cocos2d::CCObject::retain(a5);
v9 = 3;
}
*((_DWORD *)this + 159) = v9;
LABEL_10:
v189 = (GameManager *)InfoLayer::parentalCommentsDisabled(this);
v10 = (GameManager *)GameManager::sharedState(v189);
GameVariable = (GameLevelManager *)GameManager::getGameVariable(v10, "0089");
if ( GameVariable && !v189 )
{
v12 = -4.0;
v191 = 1;
}
else
{
v12 = -4.0;
v13 = *((_DWORD *)this + 135);
v191 = v13 != 0;
if ( !v13 )
v12 = -53.0;
}
v14 = (cocos2d::CCDirector *)GameLevelManager::sharedState(GameVariable);
*((_DWORD *)v14 + 208) = (char *)this + 524;
cocos2d::CCDirector::sharedDirector(v14);
cocos2d::CCDirector::getWinSize((cocos2d::CCDirector *)&v202);
cocos2d::CCRect::CCRect((cocos2d::CCRect *)v270, 0.0, 0.0, 80.0, 80.0);
v15 = cocos2d::extension::CCScale9Sprite::create("GJ_square01.png", v270);
(*(void (__fastcall **)(int, int))(*(_DWORD *)v15 + 456))(v15, 255);
v16 = *(void (__fastcall **)(int, float *))(*(_DWORD *)v15 + 160);
cocos2d::CCSize::CCSize((cocos2d::CCSize *)v270, 440.0, 290.0);
v16(v15, v270);
(*(void (__fastcall **)(_DWORD, int, int))(**((_DWORD **)this + 115) + 232))(*((_DWORD *)this + 115), v15, -1);
v17 = *(int (__fastcall **)(int, float *))(*(_DWORD *)v15 + 92);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v270, v202 * 0.5, v203 * 0.5);
v18 = (cocos2d::CCMenu *)v17(v15, v270);
v19 = cocos2d::CCMenu::create(v18);
*((_DWORD *)this + 111) = v19;
(*(void (__fastcall **)(_DWORD, int, int))(**((_DWORD **)this + 115) + 232))(*((_DWORD *)this + 115), v19, 10);
if ( *((_DWORD *)this + 135) )
{
v21 = cocos2d::CCLabelBMFont::create((cocos2d::CCLabelBMFont *)&unk_B6B226, "bigFont.fnt", v20);
v22 = (float)(v203 * 0.5) + 145.0;
v23 = v202 * 0.5;
*((_DWORD *)this + 161) = v21;
v24 = v21;
v25 = *(void (__fastcall **)(int, float *))(*(_DWORD *)v21 + 92);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v270, v23, v22 - 16.0);
v25(v24, v270);
(*(void (__fastcall **)(_DWORD, _DWORD))(**((_DWORD **)this + 115) + 228))(
*((_DWORD *)this + 115),
*((_DWORD *)this + 161));
InfoLayer::refreshUserTitle((int)this);
goto LABEL_120;
}
v27 = *((_DWORD *)this + 137);
v233 = 0;
v234 = 0;
v235 = nullptr;
if ( v27 )
{
std::string::basic_string(&v236, v27 + 324);
if ( (v233 & 1) != 0 )
{
*(_BYTE *)v235 = 0;
v234 = 0;
}
else
{
LOWORD(v233) = 0;
}
std::string::reserve(&v233, 0);
v28 = &v236;
v233 = v236;
v234 = v237;
v235 = v238;
v236 = 0;
v237 = 0;
v238 = nullptr;
}
else
{
v29 = *((_DWORD *)this + 136);
if ( v29 )
{
std::string::basic_string(&v239, v29 + 348);
if ( (v233 & 1) != 0 )
{
*(_BYTE *)v235 = 0;
v234 = 0;
}
else
{
LOWORD(v233) = 0;
}
std::string::reserve(&v233, 0);
v28 = &v239;
v233 = v239;
v234 = v240;
v235 = v241;
v239 = 0;
v240 = 0;
v241 = nullptr;
}
else
{
std::string::basic_string(&v242, *((_DWORD *)this + 134) + 280);
if ( (v233 & 1) != 0 )
{
*(_BYTE *)v235 = 0;
v234 = 0;
}
else
{
LOWORD(v233) = 0;
}
std::string::reserve(&v233, 0);
v28 = &v242;
v233 = v242;
v234 = v243;
v235 = v244;
v242 = 0;
v243 = 0;
v244 = nullptr;
}
}
std::string::~string((int)v28);
if ( (v233 & 1) != 0 )
v31 = v235;
else
v31 = (cocos2d::CCLabelBMFont *)((char *)&v233 + 1);
v32 = (cocos2d::CCLabelBMFont *)cocos2d::CCLabelBMFont::create(v31, "bigFont.fnt", v30);
v33 = *(void (__fastcall **)(cocos2d::CCLabelBMFont *, float *))(*(_DWORD *)v32 + 92);
v34 = 16.0;
if ( !v191 )
v34 = 20.0;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v270, v202 * 0.5, (float)((float)(v203 * 0.5) + 145.0) - v34);
v33(v32, v270);
if ( v191 )
v35 = 150.0;
else
v35 = 300.0;
if ( v191 )
v36 = 0.6;
else
v36 = 1.0;
v37 = (GameLevelManager *)cocos2d::CCLabelBMFont::limitLabelWidth(v32, v35, v36, 0.0);
v38 = *((_DWORD *)this + 137);
if ( v38 )
{
v39 = *(_DWORD *)(v38 + 288);
}
else
{
v40 = *((_DWORD *)this + 136);
if ( v40 )
{
v39 = *(_DWORD *)(v40 + 296);
}
else
{
v41 = *((_DWORD *)this + 134);
v42 = *(_DWORD *)(v41 + 416);
v43 = *(_DWORD *)(v41 + 420);
v39 = v42 - v43;
if ( v42 == v43 )
{
v44 = (cocos2d::CCDictionary **)GameLevelManager::sharedState(v37);
v39 = GameLevelManager::accountIDForUserID(
v44,
*(_DWORD *)(*((_DWORD *)this + 134) + 404) - *(_DWORD *)(*((_DWORD *)this + 134) + 408));
}
}
}
v45 = *((_DWORD *)this + 137);
v245 = 0;
v246 = 0;
v247 = nullptr;
if ( v45 )
{
std::string::basic_string(&v248, v45 + 360);
if ( (v245 & 1) != 0 )
{
*v247 = 0;
v246 = 0;
}
else
{
LOWORD(v245) = 0;
}
std::string::reserve(&v245, 0);
v46 = &v248;
v245 = v248;
v246 = v249;
v247 = v250;
v248 = 0;
v249 = 0;
v250 = nullptr;
}
else
{
v47 = *((_DWORD *)this + 136);
if ( v47 )
{
std::string::basic_string(&v251, v47 + 336);
if ( (v245 & 1) != 0 )
{
*v247 = 0;
v246 = 0;
}
else
{
LOWORD(v245) = 0;
}
std::string::reserve(&v245, 0);
v46 = &v251;
v245 = v251;
v246 = v252;
v247 = v253;
v251 = 0;
v252 = 0;
v253 = nullptr;
}
else
{
std::string::basic_string(&v254, *((_DWORD *)this + 134) + 316);
if ( (v245 & 1) != 0 )
{
*v247 = 0;
v246 = 0;
}
else
{
LOWORD(v245) = 0;
}
std::string::reserve(&v245, 0);
v46 = &v254;
v245 = v254;
v246 = v255;
v247 = v256;
v254 = 0;
v255 = 0;
v256 = nullptr;
}
}
std::string::~string((int)v46);
v48 = *((_DWORD *)this + 134);
if ( v48 && *(_DWORD *)(v48 + 952) == 1 )
{
std::string::assign(&v245, "RobTop");
v39 = 71;
}
if ( (v245 & 1) != 0 )
v49 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"By %s", v247);
else
v49 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(
(cocos2d::CCString *)"By %s",
(const char *)&v245 + 1);
CString = (cocos2d::CCLabelBMFont *)cocos2d::CCString::getCString(v49);
v52 = (cocos2d::CCLabelBMFont *)cocos2d::CCLabelBMFont::create(CString, "goldFont.fnt", v51);
v53 = v202 * 0.5;
v54 = (*(int (__fastcall **)(cocos2d::CCLabelBMFont *))(*(_DWORD *)v32 + 96))(v32);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v227, v53, *(float *)(v54 + 4) - 26.0);
if ( v191 )
v55 = 0.5;
else
v55 = 0.8;
cocos2d::CCLabelBMFont::limitLabelWidth(v52, v35, v55, 0.0);
if ( v191 )
{
(*(void (__fastcall **)(float *, cocos2d::CCLabelBMFont *))(*(_DWORD *)v32 + 168))(v269, v32);
v56 = v269[0];
(*(void (__fastcall **)(float *, cocos2d::CCLabelBMFont *))(*(_DWORD *)v52 + 168))(v270, v52);
v57 = *(void (__fastcall **)(cocos2d::CCLabelBMFont *, float *))(*(_DWORD *)v32 + 92);
v58 = (float)(v202 * 0.5) - (float)((float)((float)(v56 + v270[0]) + 15.0) * 0.5);
(*(void (__fastcall **)(float *, cocos2d::CCLabelBMFont *))(*(_DWORD *)v32 + 168))(v269, v32);
v59 = v58 + (float)(v269[0] * 0.5);
v60 = (*(int (__fastcall **)(cocos2d::CCLabelBMFont *))(*(_DWORD *)v32 + 96))(v32);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v270, v59, *(float *)(v60 + 4));
v57(v32, v270);
v195 = (*(int (__fastcall **)(cocos2d::CCLabelBMFont *))(*(_DWORD *)v32 + 96))(v32);
(*(void (__fastcall **)(float *, cocos2d::CCLabelBMFont *))(*(_DWORD *)v32 + 168))(v231, v32);
v61 = v231[0] * 0.5;
(*(void (__fastcall **)(float *, cocos2d::CCLabelBMFont *))(*(_DWORD *)v52 + 168))(v232, v52);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v269, (float)(v61 + (float)(v232[0] * 0.5)) + 15.0, 0.0);
cocos2d::CCPoint::operator+(v270, v195, v269);
cocos2d::CCPoint::operator=(&v227, v270);
}
(*(void (__fastcall **)(_DWORD, cocos2d::CCLabelBMFont *, int))(**((_DWORD **)this + 115) + 232))(
*((_DWORD *)this + 115),
v32,
20);
v208 = 0;
v207 = InfoLayer::onMore;
v62 = CCMenuItemSpriteExtra::create((int)v52, 0, (int)this, (int)InfoLayer::onMore, 0);
(*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 111) + 228))(*((_DWORD *)this + 111), v62);
v63 = *(void (__fastcall **)(int, float *))(*(_DWORD *)v62 + 92);
cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)v270, *((const cocos2d::CCPoint **)this + 111));
v63(v62, v270);
if ( !v39 )
{
v64 = *(void (__fastcall **)(cocos2d::CCLabelBMFont *, float *))(*(_DWORD *)v52 + 536);
LOWORD(v270[0]) = -166;
BYTE2(v270[0]) = -1;
v64(v52, v270);
(*(void (__fastcall **)(int, _DWORD))(*(_DWORD *)v62 + 528))(v62, 0);
}
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v229, v202 * 0.5, (float)(v203 * 0.5) + 52.0);
if ( !v191 )
{
cocos2d::CCRect::CCRect((cocos2d::CCRect *)v269, 0.0, 0.0, 80.0, 80.0);
cocos2d::CCRect::CCRect((cocos2d::CCRect *)v270, (const cocos2d::CCRect *)v269);
v65 = cocos2d::extension::CCScale9Sprite::create("square02b_001.png", v270);
cocos2d::CCSize::CCSize((cocos2d::CCSize *)v231, 340.0, 55.0);
(*(void (__fastcall **)(int, float *))(*(_DWORD *)v65 + 160))(v65, v231);
(*(void (__fastcall **)(_DWORD, int, int))(**((_DWORD **)this + 115) + 232))(*((_DWORD *)this + 115), v65, -1);
(*(void (__fastcall **)(int, int (__fastcall **)(InfoLayer *, cocos2d::CCObject *)))(*(_DWORD *)v65 + 92))(
v65,
&v229);
v66 = *(void (__fastcall **)(int, float *))(*(_DWORD *)v65 + 480);
LOWORD(v270[0]) = 16514;
BYTE2(v270[0]) = 33;
v66(v65, v270);
v251 = 0;
v252 = 0;
v253 = nullptr;
std::string::__init(&v251, "(No description provided)", 0x19u);
v69 = *((_DWORD *)this + 137);
v254 = 0;
v255 = 0;
v256 = nullptr;
if ( v69 )
{
GJEditorSoundConfig::getUnpackedSoundDesc((GJEditorSoundConfig *)&v257);
if ( (v254 & 1) != 0 )
{
*v256 = 0;
v255 = 0;
}
else
{
LOWORD(v254) = 0;
}
std::string::reserve(&v254, 0);
v70 = &v257;
v254 = v257;
v255 = v258;
v256 = v259;
v257 = 0;
v258 = 0;
v259 = nullptr;
}
else
{
v71 = *((_DWORD *)this + 136);
if ( v71 )
{
GJLevelList::getUnpackedDescription((GJLevelList *)&v260, v71, v67, v68);
if ( (v254 & 1) != 0 )
{
*v256 = 0;
v255 = 0;
}
else
{
LOWORD(v254) = 0;
}
std::string::reserve(&v254, 0);
v70 = &v260;
v254 = v260;
v255 = v261;
v256 = v262;
v260 = 0;
v261 = 0;
v262 = nullptr;
}
else
{
GJGameLevel::getUnpackedLevelDescription((GJGameLevel *)&v263, *((_DWORD *)this + 134), v67, v68);
if ( (v254 & 1) != 0 )
{
*v256 = 0;
v255 = 0;
}
else
{
LOWORD(v254) = 0;
}
std::string::reserve(&v254, 0);
v70 = &v263;
v254 = v263;
v255 = v264;
v256 = v265;
v263 = 0;
v264 = 0;
v265 = nullptr;
}
}
std::string::~string((int)v70);
memset(v266, 0, sizeof(v266));
std::string::__init(v266, &unk_B6B226, 0);
v72 = sub_53C8D6((unsigned __int8 *)&v254, (unsigned __int8 *)v266);
std::string::~string((int)v266);
if ( !v72 )
{
if ( (v254 & 1) != 0 )
v74 = v256;
else
v74 = (char *)&v254 + 1;
std::string::assign(&v251, v74);
}
v73 = (EmoteSprite *)GameToolbox::stripNonBreakingSpaces(&v251);
if ( *((_DWORD *)this + 136) )
v75 = (char *)&dword_118;
else
v75 = (char *)&dword_B4;
v76 = EmoteSprite::maxEmotesComment(v73);
if ( EmoteSprite::effectiveLength((unsigned __int8 *)&v251, v76, v77, v78) > (int)v75 )
{
v81 = (int)v75;
}
else
{
v81 = EmoteSprite::effectiveLength((unsigned __int8 *)&v251, v76, v79, v80);
if ( v81 <= 70 )
{
v82 = 1.0;
goto LABEL_106;
}
}
v82 = (float)((float)((float)(180 - v81) / (float)(int)v75) * 0.3) + 0.7;
LABEL_106:
if ( (v251 & 1) == 0 )
v75 = (char *)&v251 + 1;
v267[0] = 0;
if ( (v251 & 1) != 0 )
v75 = v253;
v267[1] = 0;
v268 = nullptr;
v83 = strlen(v75);
std::string::__init(v267, v75, v83);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v270, 0.5, 0.5);
v84 = TextArea::create(
(int)v267,
"chatFont.fnt",
1065353216,
COERCE_INT(324.5 / v82),
(const cocos2d::CCPoint *)v270,
1101004800,
1,
v76);
std::string::~string((int)v267);
(*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 115) + 228))(*((_DWORD *)this + 115), v84);
v85 = *(void (__fastcall **)(int, float *))(*(_DWORD *)v84 + 92);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v232, 0.0, 1.0);
cocos2d::CCPoint::operator+(v270, &v229, v232);
v85(v84, v270);
(*(void (__fastcall **)(int, float))(*(_DWORD *)v84 + 80))(v84, COERCE_FLOAT(LODWORD(v82)));
std::string::~string((int)&v254);
std::string::~string((int)&v251);
}
v86 = (GameManager *)InfoLayer::setupLevelInfo(this);
if ( !v191 )
{
v88 = *((_DWORD *)this + 134);
if ( v88 )
{
if ( *(_DWORD *)(v88 + 812) != *(_DWORD *)(v88 + 816) )
{
v89 = (GameManager *)GameManager::sharedState(v86);
if ( !GameManager::onlyCuratedLevels(v89) )
{
v90 = *((_DWORD **)this + 134);
v87 = (const char *)v90[67];
if ( (const char *)(v90[203] - v90[204]) != &v87[-v90[68]] )
{
v91 = ButtonSprite::create(
(ButtonSprite *)"Original",
(const char *)off_DC,
0,
0.45,
0,
"bigFont.fnt",
"GJ_button_01.png",
(const char *)0x41C80000,
*(float *)&v189);
(*(void (__fastcall **)(ButtonSprite *, int))(*(_DWORD *)v91 + 80))(v91, 1061997773);
v210 = 0;
v209 = InfoLayer::onOriginal;
v92 = CCMenuItemSpriteExtra::create((int)v91, 0, (int)this, (int)InfoLayer::onOriginal, 0);
(*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 111) + 228))(*((_DWORD *)this + 111), v92);
CCMenuItemSpriteExtra::setSizeMult(v92, 1.2);
v93 = *(void (__fastcall **)(int, float *))(*(_DWORD *)v92 + 92);
v94 = (*(int (__fastcall **)(int))(*(_DWORD *)v62 + 96))(v62);
v95 = *(float *)(*(int (__fastcall **)(cocos2d::CCLabelBMFont *))(*(_DWORD *)v52 + 164))(v52) * 0.5;
v96 = (*(float (__fastcall **)(cocos2d::CCLabelBMFont *))(*(_DWORD *)v52 + 84))(v52);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v269, (float)(v95 * v96) + 70.0, 0.0);
cocos2d::CCPoint::operator+(v270, v94, v269);
v93(v92, v270);
}
}
}
}
}
v97 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_chatBtn_001.png", v87);
v212 = 0;
v211 = InfoLayer::onComment;
v98 = CCMenuItemSpriteExtra::create(v97, 0, (int)this, (int)InfoLayer::onComment, 0);
CCMenuItemSpriteExtra::setSizeMult(v98, 1.5);
(*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 111) + 228))(*((_DWORD *)this + 111), v98);
v99 = *((const cocos2d::CCPoint **)this + 111);
v100 = *(void (__fastcall **)(int, float *))(*(_DWORD *)v98 + 92);
cocos2d::CCPoint::CCPoint(
(cocos2d::CCPoint *)v269,
(float)((float)(v202 * 0.5) + 220.0) - 10.0,
(float)((float)(v203 * 0.5) - 145.0) + 10.0);
cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)v270, v99);
v100(v98, v270);
v102 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_reportBtn_001.png", v101);
v214 = 0;
v213 = InfoLayer::confirmReport;
v103 = CCMenuItemSpriteExtra::create(v102, 0, (int)this, (int)InfoLayer::confirmReport, 0);
*((_DWORD *)this + 151) = v103;
CCMenuItemSpriteExtra::setSizeMult(v103, 1.5);
(*(void (__fastcall **)(_DWORD, _DWORD))(**((_DWORD **)this + 111) + 228))(
*((_DWORD *)this + 111),
*((_DWORD *)this + 151));
v104 = *((_DWORD *)this + 151);
v105 = *((const cocos2d::CCPoint **)this + 111);
v106 = *(void (__fastcall **)(int, float *))(*(_DWORD *)v104 + 92);
cocos2d::CCPoint::CCPoint(
(cocos2d::CCPoint *)v269,
(float)((float)(v202 * 0.5) - 220.0) + 10.0,
(float)((float)(v203 * 0.5) - 145.0) + 10.0);
cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)v270, v105);
v106(v104, v270);
if ( v189 )
{
(*(void (__fastcall **)(int, _DWORD))(*(_DWORD *)v98 + 172))(v98, 0);
(*(void (__fastcall **)(int, _DWORD))(*(_DWORD *)v98 + 528))(v98, 0);
}
std::string::~string((int)&v245);
std::string::~string((int)&v233);
LABEL_120:
v107 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_closeBtn_001.png", v26);
v216 = 0;
v215 = InfoLayer::onClose;
v108 = CCMenuItemSpriteExtra::create(v107, 0, (int)this, (int)InfoLayer::onClose, 0);
(*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 111) + 228))(*((_DWORD *)this + 111), v108);
CCMenuItemSpriteExtra::setSizeMult(v108, 1.6);
v109 = *((const cocos2d::CCPoint **)this + 111);
v196 = *(int (__fastcall **)(int, float *))(*(_DWORD *)v108 + 92);
cocos2d::CCPoint::CCPoint(
(cocos2d::CCPoint *)v269,
(float)((float)(v202 * 0.5) - 220.0) + 10.0,
(float)((float)(v203 * 0.5) + 145.0) - 10.0);
cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)v270, v109);
v110 = (LoadingCircle *)v196(v108, v270);
v111 = LoadingCircle::create(v110);
v112 = *((_DWORD *)this + 115);
*((_DWORD *)this + 141) = v111;
*((_DWORD *)v111 + 111) = v112;
*(_BYTE *)(*((_DWORD *)this + 141) + 448) = 0;
cocos2d::CCObject::retain(*((cocos2d::CCObject **)this + 141));
LoadingCircle::show(*((cocos2d::CCNode ***)this + 141));
(*(void (__fastcall **)(_DWORD, _DWORD))(**((_DWORD **)this + 141) + 172))(*((_DWORD *)this + 141), 0);
v113 = *(_DWORD *)(*((_DWORD *)this + 141) + 440);
v114 = *(int (__fastcall **)(int, float *))(*(_DWORD *)v113 + 92);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v270, v202 * 0.5, v12 + (float)(v203 * 0.5));
v115 = (cocos2d::CCMenu *)v114(v113, v270);
v116 = (const cocos2d::CCPoint *)cocos2d::CCMenu::create(v115);
(*(void (__fastcall **)(_DWORD, const cocos2d::CCPoint *, int))(**((_DWORD **)this + 115) + 232))(
*((_DWORD *)this + 115),
v116,
10);
v117 = (float)(v203 * 0.5) - 53.0;
v197 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_arrow_01_001.png", v118);
(*(void (__fastcall **)(int, int))(*(_DWORD *)v197 + 80))(v197, 1061997773);
v218 = 0;
v217 = InfoLayer::onPrevPage;
v119 = CCMenuItemSpriteExtra::create(v197, 0, (int)this, (int)InfoLayer::onPrevPage, 0);
*((_DWORD *)this + 146) = v119;
(*(void (__fastcall **)(const cocos2d::CCPoint *, int))(*(_DWORD *)v116 + 228))(v116, v119);
v201 = *((_DWORD *)this + 146);
v198 = *(void (__fastcall **)(int, float *))(*(_DWORD *)v201 + 92);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v269, (float)(v202 * 0.5) - 195.0, v117);
cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)v270, v116);
v198(v201, v270);
CCMenuItemSpriteExtra::setSizeMult(*((_DWORD *)this + 146), 2.0);
v121 = (cocos2d::CCSprite *)cocos2d::CCSprite::createWithSpriteFrameName(
(cocos2d::CCSprite *)"GJ_arrow_01_001.png",
v120);
cocos2d::CCSprite::setFlipX(v121, 1);
(*(void (__fastcall **)(cocos2d::CCSprite *, int))(*(_DWORD *)v121 + 80))(v121, 1061997773);
v220 = 0;
v219 = InfoLayer::onNextPage;
v122 = CCMenuItemSpriteExtra::create((int)v121, 0, (int)this, (int)InfoLayer::onNextPage, 0);
*((_DWORD *)this + 145) = v122;
(*(void (__fastcall **)(const cocos2d::CCPoint *, int))(*(_DWORD *)v116 + 228))(v116, v122);
v199 = *((_DWORD *)this + 145);
v123 = *(void (__fastcall **)(int, float *))(*(_DWORD *)v199 + 92);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v269, (float)(v202 * 0.5) + 195.0, v117);
cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)v270, v116);
v123(v199, v270);
CCMenuItemSpriteExtra::setSizeMult(*((_DWORD *)this + 145), 2.0);
(*(void (__fastcall **)(_DWORD, _DWORD))(**((_DWORD **)this + 146) + 172))(*((_DWORD *)this + 146), 0);
(*(void (__fastcall **)(_DWORD, _DWORD))(**((_DWORD **)this + 145) + 172))(*((_DWORD *)this + 145), 0);
v125 = cocos2d::CCLabelBMFont::create((cocos2d::CCLabelBMFont *)" ", "goldFont.fnt", v124);
*((_DWORD *)this + 142) = v125;
v126 = (cocos2d::CCDirector *)(*(int (__fastcall **)(_DWORD, int, int))(**((_DWORD **)this + 115) + 232))(
*((_DWORD *)this + 115),
v125,
10);
v127 = *((_DWORD *)this + 142);
v128 = *(void (__fastcall **)(int, float *))(*(_DWORD *)v127 + 92);
v129 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v126);
v130 = COERCE_FLOAT(cocos2d::CCDirector::getScreenRight(v129));
v131 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector((cocos2d::CCDirector *)LODWORD(v130));
v132 = COERCE_FLOAT(cocos2d::CCDirector::getScreenTop(v131));
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v270, v130 - 7.0, v132 - 2.0);
v128(v127, v270);
v133 = *((_DWORD *)this + 142);
v134 = *(void (__fastcall **)(int, float *))(*(_DWORD *)v133 + 148);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v270, 1.0, 1.0);
v134(v133, v270);
v135 = (cocos2d::CCMenu *)(*(int (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 142) + 80))(
*((_DWORD *)this + 142),
1053609165);
v136 = (cocos2d::CCMenu *)cocos2d::CCMenu::create(v135);
(*(void (__fastcall **)(_DWORD, cocos2d::CCMenu *, int))(**((_DWORD **)this + 115) + 232))(
*((_DWORD *)this + 115),
v136,
10);
if ( v189 || !InfoLayer::canToggleModRoom(this) )
{
v138 = 0;
v137 = 1060320051;
}
else
{
v137 = 1057971241;
v138 = 1;
}
v222 = 0;
v221 = InfoLayer::toggleCommentMode;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v270, 0.0, -0.5);
SpriteButton = InfoLayer::getSpriteButton(
(int)this,
(cocos2d::CCSprite *)"GJ_likesIcon_001.png",
(int)v221,
v222,
(int)v136,
v137,
(const cocos2d::CCPoint *)v270);
*((_DWORD *)this + 147) = SpriteButton;
(*(void (__fastcall **)(_DWORD *, _DWORD))(*SpriteButton + 36))(SpriteButton, 0);
v223 = InfoLayer::toggleCommentMode;
v224 = 0;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v270, 0.0, -1.0);
v140 = InfoLayer::getSpriteButton(
(int)this,
(cocos2d::CCSprite *)"GJ_timeIcon_001.png",
(int)v223,
v224,
(int)v136,
v137,
(const cocos2d::CCPoint *)v270);
*((_DWORD *)this + 148) = v140;
updated = (char *)(*(int (__fastcall **)(_DWORD *, int))(*v140 + 36))(v140, 1);
v142 = *((_DWORD *)this + 135);
if ( v142 )
{
if ( v189 )
{
if ( !v138 )
goto LABEL_136;
goto LABEL_134;
}
}
else
{
if ( v189 )
{
if ( !v138 )
goto LABEL_139;
goto LABEL_134;
}
v225 = InfoLayer::toggleExtendedMode;
v226 = 0;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v270, 0.0, -1.0);
v143 = InfoLayer::getSpriteButton(
(int)this,
(cocos2d::CCSprite *)"GJ_extendedIcon_001.png",
(int)v225,
v226,
(int)v136,
v137,
(const cocos2d::CCPoint *)v270);
v144 = (char *)(*(int (__fastcall **)(_DWORD *))(*v143 + 536))(v143);
if ( v191 )
v145 = "GJ_button_02.png";
else
v145 = "GJ_button_01.png";
ButtonSprite::updateBGImage(v144, v145);
}
v227 = InfoLayer::toggleSmallCommentMode;
v228 = 0;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v270, 0.0, -1.5);
v146 = InfoLayer::getSpriteButton(
(int)this,
(cocos2d::CCSprite *)"GJ_smallModeIcon_001.png",
(int)v227,
v228,
(int)v136,
v137,
(const cocos2d::CCPoint *)v270);
v147 = (GameManager *)(*(int (__fastcall **)(_DWORD *))(*v146 + 536))(v146);
v148 = (GameManager *)GameManager::sharedState(v147);
if ( GameManager::getGameVariable(v148, "0088") )
v149 = "GJ_button_02.png";
else
v149 = "GJ_button_01.png";
updated = ButtonSprite::updateBGImage((char *)v147, v149);
if ( v138 )
{
LABEL_134:
v229 = InfoLayer::toggleModRoom;
v230 = 0;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v270, 0.0, -2.0);
v150 = InfoLayer::getSpriteButton(
(int)this,
(cocos2d::CCSprite *)"modBadge_01_001.png",
(int)v229,
v230,
(int)v136,
v137,
(const cocos2d::CCPoint *)v270);
*((_DWORD *)this + 149) = v150;
v151 = (char *)(*(int (__fastcall **)(_DWORD *))(*v150 + 536))(v150);
updated = ButtonSprite::updateBGImage(v151, "GJ_button_01.png");
}
v142 = *((_DWORD *)this + 135);
if ( v142 )
{
LABEL_136:
if ( *(int *)(v142 + 296) > 0 )
{
v152 = GameManager::sharedState((GameManager *)updated);
if ( *(_DWORD *)(v152 + 820) - *(_DWORD *)(v152 + 824) > 0 )
{
v183 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_chatBtn_001.png", v153);
v231[1] = 0.0;
LODWORD(v231[0]) = InfoLayer::onComment;
v184 = CCMenuItemSpriteExtra::create(v183, 0, (int)this, (int)InfoLayer::onComment, 0);
*((_DWORD *)this + 150) = v184;
CCMenuItemSpriteExtra::setSizeMult(v184, 1.5);
(*(void (__fastcall **)(_DWORD, _DWORD))(**((_DWORD **)this + 111) + 228))(
*((_DWORD *)this + 111),
*((_DWORD *)this + 150));
v200 = *((_DWORD *)this + 150);
v185 = *(void (__fastcall **)(int, float *))(*(_DWORD *)v200 + 92);
v192 = *((cocos2d::CCPoint **)this + 111);
cocos2d::CCPoint::CCPoint(
(cocos2d::CCPoint *)v269,
(float)((float)(v202 * 0.5) + 220.0) - 10.0,
(float)((float)(v203 * 0.5) - 145.0) + 10.0);
cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)v270, v192);
v185(v200, v270);
(*(void (__fastcall **)(_DWORD, _DWORD))(**((_DWORD **)this + 150) + 172))(*((_DWORD *)this + 150), 0);
(*(void (__fastcall **)(_DWORD, _DWORD))(**((_DWORD **)this + 150) + 528))(*((_DWORD *)this + 150), 0);
}
}
}
LABEL_139:
InfoLayer::updateCommentModeButtons(this);
v154 = 6.0;
if ( !v138 )
v154 = 0.0;
cocos2d::CCPoint::CCPoint(
(cocos2d::CCPoint *)v204,
(float)(v202 * 0.5) - 195.0,
(float)((float)((float)(v203 * 0.5) + 145.0) - 110.0) + v154);
(*(void (__fastcall **)(cocos2d::CCMenu *, _BYTE *))(*(_DWORD *)v136 + 92))(v136, v204);
cocos2d::CCMenu::alignItemsVerticallyWithPadding(v136, 4.0);
v155 = ButtonSprite::create(
(ButtonSprite *)"Load Comments",
(const char *)off_DC,
0,
0.6,
0,
"bigFont.fnt",
"GJ_button_01.png",
(const char *)0x41C80000,
*(float *)&v189);
v232[1] = 0.0;
LODWORD(v232[0]) = InfoLayer::onGetComments;
v156 = CCMenuItemSpriteExtra::create((int)v155, 0, (int)this, (int)InfoLayer::onGetComments, 0);
*((_DWORD *)this + 152) = v156;
(*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 111) + 228))(*((_DWORD *)this + 111), v156);
CCMenuItemSpriteExtra::setSizeMult(*((_DWORD *)this + 152), 2.0);
v157 = *((_DWORD *)this + 152);
v158 = *((const cocos2d::CCPoint **)this + 111);
v159 = *(int (__fastcall **)(int, float *))(*(_DWORD *)v157 + 92);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v269, v202 * 0.5, v12 + (float)(v203 * 0.5));
cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)v270, v158);
v160 = (PlatformToolbox *)v159(v157, v270);
if ( PlatformToolbox::isNetworkAvailable(v160) )
v162 = "No comments";
else
v162 = "No Internet connection!";
v163 = cocos2d::CCLabelBMFont::create((cocos2d::CCLabelBMFont *)v162, "goldFont.fnt", v161);
*((_DWORD *)this + 143) = v163;
(*(void (__fastcall **)(_DWORD, int, int))(**((_DWORD **)this + 115) + 232))(*((_DWORD *)this + 115), v163, 10);
v164 = *((_DWORD *)this + 143);
v165 = *(void (__fastcall **)(int, float *))(*(_DWORD *)v164 + 92);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v270, v202 * 0.5, v12 + (float)(v203 * 0.5));
v165(v164, v270);
(*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 143) + 80))(*((_DWORD *)this + 143), 1061997773);
v166 = (PlatformToolbox *)(*(int (__fastcall **)(_DWORD, _DWORD))(**((_DWORD **)this + 143) + 172))(
*((_DWORD *)this + 143),
0);
isNetworkAvailable = (GameLevelManager *)PlatformToolbox::isNetworkAvailable(v166);
if ( !isNetworkAvailable )
{
(*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 143) + 172))(*((_DWORD *)this + 143), 1);
isNetworkAvailable = (GameLevelManager *)(*(int (__fastcall **)(_DWORD, _DWORD))(**((_DWORD **)this + 152) + 172))(
*((_DWORD *)this + 152),
0);
}
v168 = GameLevelManager::sharedState(isNetworkAvailable);
ID = (GameManager *)InfoLayer::getID(this);
v170 = (GameManager *)GameManager::sharedState(ID);
v171 = GameManager::getGameVariable(v170, "0069");
CommentKey = GameLevelManager::getCommentKey(v267, v168, (const char *)ID, 0, v171, *((_DWORD *)this + 159));
if ( !v190
&& ((v173 = (GameLevelManager *)GameLevelManager::sharedState((GameLevelManager *)CommentKey), (v267[0] & 1) != 0)
? (v174 = v268)
: (v174 = (char *)v267 + 1),
GameLevelManager::getStoredLevelComments(v173, v174)
|| (v175 = (GameManager *)GameManager::sharedState(nullptr), GameManager::getGameVariable(v175, "0090"))) )
{
InfoLayer::loadPage(this, nullptr, 0);
}
else
{
InfoLayer::setupCommentsBrowser(this, nullptr);
}
if ( !*((_DWORD *)this + 135) )
{
v186 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_infoIcon_001.png", v176);
v269[1] = 0.0;
LODWORD(v269[0]) = InfoLayer::onLevelInfo;
v187 = CCMenuItemSpriteExtra::create(v186, 0, (int)this, (int)InfoLayer::onLevelInfo, 0);
CCMenuItemSpriteExtra::setSizeMult(v187, 2.0);
(*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 111) + 228))(*((_DWORD *)this + 111), v187);
v188 = *(void (__fastcall **)(int, float *))(*(_DWORD *)v187 + 92);
v193 = *((cocos2d::CCPoint **)this + 111);
cocos2d::CCPoint::CCPoint(
(cocos2d::CCPoint *)v206,
(float)((float)(v202 * 0.5) + 220.0) - 17.0,
(float)((float)(v203 * 0.5) + 145.0) - 17.0);
cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)v270, v193);
v188(v187, v270);
}
v177 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_updateBtn_001.png", v176);
(*(void (__fastcall **)(int, int))(*(_DWORD *)v177 + 80))(v177, 1058642330);
v270[1] = 0.0;
LODWORD(v270[0]) = InfoLayer::onRefreshComments;
v178 = CCMenuItemSpriteExtra::create(v177, 0, (int)this, (int)InfoLayer::onRefreshComments, 0);
*((_DWORD *)this + 153) = v178;
CCMenuItemSpriteExtra::setSizeMult(v178, 1.5);
(*(void (__fastcall **)(_DWORD, _DWORD))(**((_DWORD **)this + 111) + 228))(
*((_DWORD *)this + 111),
*((_DWORD *)this + 153));
v179 = *((_DWORD *)this + 153);
v180 = *((const cocos2d::CCPoint **)this + 111);
v181 = *(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v179 + 92);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v205, (float)(v202 * 0.5) + 195.0, (float)(v203 * 0.5) + 0.0);
cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)v206, v180);
v181(v179, v206);
if ( v190 )
{
(*(void (__fastcall **)(_DWORD, _DWORD))(**((_DWORD **)this + 153) + 172))(*((_DWORD *)this + 153), 0);
(*(void (__fastcall **)(_DWORD, _DWORD))(**((_DWORD **)this + 153) + 528))(*((_DWORD *)this + 153), 0);
(*(void (__fastcall **)(_DWORD, _DWORD))(**((_DWORD **)this + 143) + 172))(*((_DWORD *)this + 143), 0);
(*(void (__fastcall **)(_DWORD, _DWORD))(**((_DWORD **)this + 152) + 172))(*((_DWORD *)this + 152), 0);
(*(void (__fastcall **)(_DWORD, _DWORD))(**((_DWORD **)this + 147) + 172))(*((_DWORD *)this + 147), 0);
(*(void (__fastcall **)(_DWORD, _DWORD))(**((_DWORD **)this + 147) + 528))(*((_DWORD *)this + 147), 0);
(*(void (__fastcall **)(_DWORD, _DWORD))(**((_DWORD **)this + 148) + 172))(*((_DWORD *)this + 148), 0);
(*(void (__fastcall **)(_DWORD, _DWORD))(**((_DWORD **)this + 148) + 528))(*((_DWORD *)this + 148), 0);
}
InfoLayer::setupBulkUI((const cocos2d::CCPoint **)this);
std::string::~string((int)v267);
return v194;
}