//
// InfoLayer::init from 0x90b120 to 0x90cf2c (7692 bytes)
//
// 2 xrefs:
// > InfoLayer::create @ 0x90d188
// > ??> @ 0xc2980
//
// 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 12:57:14 +0000
//
__int64 __fastcall InfoLayer::init(
InfoLayer *this,
GJGameLevel *a2,
GJUserScore *a3,
GJLevelList *a4,
GJEditorSoundConfig *a5)
{
unsigned __int8 v7; // w0
unsigned int v8; // w25
GameManager *v9; // x0
unsigned int v10; // w24
GameManager *v11; // x0
GameLevelManager *v12; // x0
float v13; // s9
cocos2d::CCDirector *v14; // x0
cocos2d::CCDirector *v15; // x0
__int64 v16; // x22
void (__fastcall *v17)(__int64, __int64 *); // x26
__int64 (__fastcall *v18)(__int64, __int64 *); // x26
cocos2d::CCMenu *v19; // x0
__int64 v20; // x0
__int64 v21; // x26
void (__fastcall *v22)(__int64, __int64 *); // x27
const char *v23; // x1
__int64 v24; // x0
__int64 v25; // x26
cocos2d::CCNode *v26; // x28
__int64 (__fastcall *v27)(__int64, __int64 *); // x27
LoadingCircle *v28; // x0
__int64 v29; // x0
__int64 v30; // x26
__int64 (__fastcall *v31)(__int64, __int64 *); // x27
cocos2d::CCMenu *v32; // x0
cocos2d::CCNode *v33; // x26
float v34; // s15
const char *v35; // x1
__int64 v36; // x28
__int64 v37; // x0
__int64 v38; // x28
const char *v39; // x1
cocos2d::CCSprite *v40; // x27
__int64 v41; // x0
__int64 v42; // x27
void (__fastcall *v43)(__int64, __int64 *); // x28
const char *v44; // x2
__int64 v45; // x0
cocos2d::CCDirector **v46; // x26
void (__fastcall *v47)(cocos2d::CCDirector **, __int64 *); // x27
cocos2d::CCDirector *v48; // x0
cocos2d::CCDirector *ScreenRight; // x0
float v50; // s0
float v51; // s8
cocos2d::CCDirector *v52; // x0
float v53; // s0
__int64 v54; // x26
void (__fastcall *v55)(__int64, __int64 *); // x27
cocos2d::CCMenu *v56; // x0
cocos2d::CCMenu *v57; // x26
float v58; // s8
int v59; // w27
float *SpriteButton; // x0
float *v61; // x0
__int64 v62; // x0
GameManager *v63; // x0
__int64 v64; // x0
const char *v65; // x1
__int64 v66; // x0
__int64 v67; // x0
__int64 v68; // x28
float v69; // s2
const char *v70; // x6
__int64 v71; // x0
__int64 v72; // x0
__int64 v73; // x26
cocos2d::CCNode *v74; // x28
__int64 (__fastcall *v75)(__int64, __int64 *); // x27
PlatformToolbox *v76; // x0
const char *v77; // x2
char *v78; // x0
__int64 v79; // x0
__int64 v80; // x26
void (__fastcall *v81)(__int64, __int64 *); // x27
PlatformToolbox *v82; // x0
GameLevelManager *isNetworkAvailable; // x0
GameManager *ID; // x0
unsigned int v85; // w26
GameManager *v86; // x0
__int64 *CommentKey; // x0
const char *v88; // x1
__int64 v89; // x26
__int64 v90; // x0
__int64 v91; // x26
cocos2d::CCNode *v92; // x27
void (__fastcall *v93)(__int64, __int64 *); // x21
__int64 v95; // x0
char v96; // w1
__int64 v97; // x2
__int64 v98; // x0
__int64 v99; // x1
char *v100; // x2
cocos2d::CCLabelBMFont *v101; // x0
cocos2d::CCLabelBMFont *v102; // x27
void (__fastcall *v103)(cocos2d::CCLabelBMFont *, __int64 *); // x22
float v104; // s1
float v105; // s12
float v106; // s1
__int64 v107; // x0
char v108; // w1
__int64 *v109; // x2
__int64 v110; // x0
__int64 v111; // x1
__int64 v112; // x0
char *v113; // x1
cocos2d::CCString *v114; // x0
cocos2d::CCLabelBMFont *CString; // x0
const char *v116; // x2
float v117; // s8
__int64 v118; // x0
float v119; // s1
long double v120; // q0
float v121; // s8
float v122; // s8
float v123; // s8
__int64 v124; // x0
float v125; // s8
__int64 v126; // x27
void (__fastcall *v127)(__int64, __int64 *); // x22
void (__fastcall *v128)(cocos2d::CCLabelBMFont *, __int64 *); // x3
__int64 v129; // x22
void (__fastcall *v130)(__int64, __int64 *); // x2
GJEditorSoundConfig *v131; // x0
_BOOL4 v132; // w22
char *v133; // x1
int *v134; // x22
bool v135; // cc
int v136; // w0
float v137; // s8
const char *v138; // x1
size_t v139; // x0
__int64 v140; // x28
void (__fastcall *v141)(__int64, __int64 *); // x22
const char *v142; // x1
__int64 v143; // x0
GameManager *v144; // x0
GameManager *v145; // x0
const char *v146; // x6
__int64 v147; // x0
__int64 v148; // x28
void (__fastcall *v149)(__int64, __int64 *); // x27
const char *v150; // x1
__int64 v151; // x0
__int64 v152; // x0
__int64 v153; // x27
GameLevelManager *v154; // x0
char *v155; // x1
__int64 v156; // x0
__int64 v157; // x26
cocos2d::CCNode *v158; // x28
void (__fastcall *v159)(__int64, __int64 *); // x27
float *v160; // x0
GameManager *v161; // x28
GameManager *v162; // x0
const char *v163; // x1
float *v164; // x0
ButtonSprite *v165; // x0
unsigned int *v166; // x0
__int64 v167; // x22
__int64 v168; // x28
__int64 v169; // x27
float v170; // s8
float v171; // s0
GJLevelList *v172; // x0
__int64 v173; // x0
char v174; // w1
__int64 *v175; // x2
__int64 v176; // x0
__int64 v177; // x1
__int64 v178; // x22
__int64 v179; // x1
float *v180; // x0
ButtonSprite *v181; // x0
GameManager *v182; // x0
GameLevelManager *v183; // x0
cocos2d::CCDictionary **v184; // x0
__int64 v185; // x0
__int64 v186; // x1
__int64 v187; // x0
__int64 v188; // x1
__int64 v189; // [xsp+A8h] [xbp+A8h]
char *v190; // [xsp+A8h] [xbp+A8h]
void (__fastcall *v191)(cocos2d::CCLabelBMFont *, __int64 *); // [xsp+B0h] [xbp+B0h]
int v192; // [xsp+B0h] [xbp+B0h]
cocos2d::CCNode *v193; // [xsp+B8h] [xbp+B8h]
int v194; // [xsp+B8h] [xbp+B8h]
cocos2d::CCNode *v195; // [xsp+B8h] [xbp+B8h]
cocos2d::CCNode *v196; // [xsp+B8h] [xbp+B8h]
cocos2d::CCLabelBMFont *v197; // [xsp+C0h] [xbp+C0h]
cocos2d::CCLabelBMFont *v198; // [xsp+C0h] [xbp+C0h]
cocos2d::CCLabelBMFont *v199; // [xsp+C0h] [xbp+C0h]
cocos2d::CCNode *v200; // [xsp+C0h] [xbp+C0h]
cocos2d::CCLabelBMFont *v201; // [xsp+C0h] [xbp+C0h]
int v205; // [xsp+D8h] [xbp+D8h]
__int64 v206; // [xsp+E0h] [xbp+E0h] BYREF
char v207[8]; // [xsp+E8h] [xbp+E8h] BYREF
char v208[8]; // [xsp+F0h] [xbp+F0h] BYREF
__int64 v209; // [xsp+F8h] [xbp+F8h] BYREF
__int64 v210; // [xsp+100h] [xbp+100h] BYREF
float v211[4]; // [xsp+108h] [xbp+108h] BYREF
__int64 v212[2]; // [xsp+118h] [xbp+118h] BYREF
__int64 v213; // [xsp+128h] [xbp+128h] BYREF
__int64 v214; // [xsp+130h] [xbp+130h]
char *v215; // [xsp+138h] [xbp+138h]
__int64 v216; // [xsp+140h] [xbp+140h] BYREF
__int64 v217; // [xsp+148h] [xbp+148h]
char *v218; // [xsp+150h] [xbp+150h]
__int64 v219; // [xsp+158h] [xbp+158h] BYREF
__int64 v220; // [xsp+160h] [xbp+160h]
char *v221; // [xsp+168h] [xbp+168h]
__int64 v222; // [xsp+170h] [xbp+170h] BYREF
__int64 v223; // [xsp+178h] [xbp+178h]
char *v224; // [xsp+180h] [xbp+180h]
__int64 v225; // [xsp+188h] [xbp+188h] BYREF
__int64 v226; // [xsp+190h] [xbp+190h]
char *v227; // [xsp+198h] [xbp+198h]
__int64 v228; // [xsp+1A0h] [xbp+1A0h] BYREF
__int64 v229; // [xsp+1A8h] [xbp+1A8h]
void *v230; // [xsp+1B0h] [xbp+1B0h]
__int64 v231; // [xsp+1B8h] [xbp+1B8h] BYREF
__int64 v232; // [xsp+1C0h] [xbp+1C0h]
char *v233; // [xsp+1C8h] [xbp+1C8h]
__int64 v234[3]; // [xsp+1D0h] [xbp+1D0h] BYREF
__int64 v235[3]; // [xsp+1E8h] [xbp+1E8h] BYREF
__int64 v236[3]; // [xsp+200h] [xbp+200h] BYREF
__int64 v237[2]; // [xsp+218h] [xbp+218h] BYREF
void *v238; // [xsp+228h] [xbp+228h]
__int64 v239[2]; // [xsp+230h] [xbp+230h] BYREF
char *v240; // [xsp+240h] [xbp+240h]
v7 = FLAlertLayer::init(this, 150);
v8 = v7;
if ( !v7 )
return v8;
if ( a3 )
{
*((_QWORD *)this + 88) = a3;
cocos2d::CCObject::retain(a3);
*((_DWORD *)this + 219) = 1;
}
else if ( a4 )
{
*((_QWORD *)this + 89) = a4;
cocos2d::CCObject::retain(a4);
*((_DWORD *)this + 219) = 2;
}
else if ( a5 )
{
*((_QWORD *)this + 90) = a5;
cocos2d::CCObject::retain(a5);
*((_DWORD *)this + 219) = 3;
}
else
{
*((_QWORD *)this + 87) = a2;
cocos2d::CCObject::retain(a2);
*((_DWORD *)this + 219) = 0;
}
v9 = InfoLayer::parentalCommentsDisabled(this);
v10 = (unsigned __int8)v9;
v11 = (GameManager *)GameManager::sharedState(v9);
if ( v10 < (unsigned __int8)GameManager::getGameVariable(v11, "0089")
|| (v12 = *((GameLevelManager **)this + 88)) != nullptr )
{
v12 = (GameLevelManager *)((char *)&dword_0 + 1);
v205 = (unsigned int)&dword_0 + 1;
v13 = -4.0;
}
else
{
v205 = 0;
v13 = -53.0;
}
v14 = (cocos2d::CCDirector *)GameLevelManager::sharedState(v12);
*((_QWORD *)v14 + 156) = (char *)this + 672;
v15 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v14);
cocos2d::CCDirector::getWinSize(&v206, v15);
cocos2d::CCRect::CCRect((cocos2d::CCRect *)v212, 0.0, 0.0, 80.0, 80.0);
v16 = cocos2d::extension::CCScale9Sprite::create("GJ_square01.png", v212);
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v16 + 912LL))(v16, 0xFFFFFFFFLL);
v17 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v16 + 320LL);
cocos2d::CCSize::CCSize((cocos2d::CCSize *)v212, 440.0, 290.0);
v17(v16, v212);
(*(void (__fastcall **)(_QWORD, __int64, __int64))(**((_QWORD **)this + 73) + 464LL))(
*((_QWORD *)this + 73),
v16,
0xFFFFFFFFLL);
v18 = *(__int64 (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v16 + 184LL);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v212, *(float *)&v206 * 0.5, *((float *)&v206 + 1) * 0.5);
v19 = (cocos2d::CCMenu *)v18(v16, v212);
v20 = cocos2d::CCMenu::create(v19);
*((_QWORD *)this + 69) = v20;
(*(void (__fastcall **)(_QWORD, __int64, __int64))(**((_QWORD **)this + 73) + 464LL))(*((_QWORD *)this + 73), v20, 10);
if ( *((_QWORD *)this + 88) )
{
v21 = cocos2d::CCLabelBMFont::create((cocos2d::CCLabelBMFont *)&byte_11B8890, "bigFont.fnt", "Path of Light Rank 1");
*((_QWORD *)this + 111) = v21;
v22 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v21 + 184LL);
cocos2d::CCPoint::CCPoint(
(cocos2d::CCPoint *)v212,
*(float *)&v206 * 0.5,
(float)((float)(*((float *)&v206 + 1) * 0.5) + 145.0) - 16.0);
v22(v21, v212);
(*(void (__fastcall **)(_QWORD, _QWORD))(**((_QWORD **)this + 73) + 456LL))(
*((_QWORD *)this + 73),
*((_QWORD *)this + 111));
InfoLayer::refreshUserTitle(this);
goto LABEL_9;
}
v95 = *((_QWORD *)this + 90);
v213 = 0;
v214 = 0;
v215 = nullptr;
if ( v95 )
{
v96 = *(_BYTE *)(v95 + 376);
v218 = nullptr;
v97 = v95 + 376;
v216 = 0;
v217 = 0;
if ( (v96 & 1) != 0 )
{
std::string::__init(&v216, *(void **)(v95 + 392), *(_QWORD *)(v95 + 384));
}
else
{
v98 = *(_QWORD *)v97;
v99 = *(_QWORD *)(v97 + 8);
v218 = *(char **)(v97 + 16);
v216 = v98;
v217 = v99;
}
if ( (v213 & 1) != 0 )
{
*v215 = 0;
v214 = 0;
}
else
{
LOWORD(v213) = 0;
}
std::string::reserve(&v213, 0);
v100 = v218;
v215 = v218;
v213 = v216;
v214 = v217;
}
else
{
v173 = *((_QWORD *)this + 89);
if ( v173 )
{
v174 = *(_BYTE *)(v173 + 432);
v219 = 0;
v175 = (__int64 *)(v173 + 432);
v220 = 0;
v221 = nullptr;
if ( (v174 & 1) != 0 )
{
std::string::__init(&v219, *(void **)(v173 + 448), *(_QWORD *)(v173 + 440));
}
else
{
v176 = *v175;
v177 = v175[1];
v221 = (char *)v175[2];
v219 = v176;
v220 = v177;
}
if ( (v213 & 1) != 0 )
{
*v215 = 0;
v214 = 0;
}
else
{
LOWORD(v213) = 0;
}
std::string::reserve(&v213, 0);
v100 = v221;
v215 = v221;
v213 = v219;
v214 = v220;
}
else
{
v187 = *((_QWORD *)this + 87);
v222 = 0;
v223 = 0;
v224 = nullptr;
if ( (*(_BYTE *)(v187 + 344) & 1) != 0 )
{
std::string::__init(&v222, *(void **)(v187 + 360), *(_QWORD *)(v187 + 352));
}
else
{
v188 = *(_QWORD *)(v187 + 352);
v222 = *(_QWORD *)(v187 + 344);
v223 = v188;
v224 = *(char **)(v187 + 360);
}
if ( (v213 & 1) != 0 )
{
*v215 = 0;
v214 = 0;
}
else
{
LOWORD(v213) = 0;
}
std::string::reserve(&v213, 0);
v215 = v224;
v213 = v222;
v214 = v223;
}
}
v101 = (cocos2d::CCLabelBMFont *)((char *)&v213 + 1);
if ( (v213 & 1) != 0 )
v101 = (cocos2d::CCLabelBMFont *)v215;
v102 = (cocos2d::CCLabelBMFont *)cocos2d::CCLabelBMFont::create(v101, "bigFont.fnt", v100);
v103 = *(void (__fastcall **)(cocos2d::CCLabelBMFont *, __int64 *))(*(_QWORD *)v102 + 184LL);
if ( v205 )
v104 = 16.0;
else
v104 = 20.0;
cocos2d::CCPoint::CCPoint(
(cocos2d::CCPoint *)v212,
*(float *)&v206 * 0.5,
(float)((float)(*((float *)&v206 + 1) * 0.5) + 145.0) - v104);
v103(v102, v212);
if ( v205 )
{
v105 = 150.0;
v106 = 0.6;
}
else
{
v105 = 300.0;
v106 = 1.0;
}
cocos2d::CCLabelBMFont::limitLabelWidth(v102, v105, v106, 0.0);
v107 = *((_QWORD *)this + 90);
if ( !v107 )
{
v178 = *((_QWORD *)this + 89);
if ( v178 )
{
v194 = *(_DWORD *)(v178 + 364);
}
else
{
v183 = (GameLevelManager *)(unsigned int)(*(_DWORD *)(*((_QWORD *)this + 87) + 588LL)
- *(_DWORD *)(*((_QWORD *)this + 87) + 592LL));
v194 = (int)v183;
if ( !(_DWORD)v183 )
{
v184 = (cocos2d::CCDictionary **)GameLevelManager::sharedState(v183);
v194 = GameLevelManager::accountIDForUserID(
v184,
*(_DWORD *)(*((_QWORD *)this + 87) + 576LL) - *(_DWORD *)(*((_QWORD *)this + 87) + 580LL));
v107 = *((_QWORD *)this + 90);
v222 = 0;
v223 = 0;
v224 = nullptr;
if ( v107 )
goto LABEL_47;
v178 = *((_QWORD *)this + 89);
LABEL_142:
if ( v178 )
{
v228 = 0;
v229 = 0;
v230 = nullptr;
if ( (*(_BYTE *)(v178 + 408) & 1) != 0 )
{
std::string::__init(&v228, *(void **)(v178 + 424), *(_QWORD *)(v178 + 416));
}
else
{
v179 = *(_QWORD *)(v178 + 416);
v228 = *(_QWORD *)(v178 + 408);
v229 = v179;
v230 = *(void **)(v178 + 424);
}
if ( (v222 & 1) != 0 )
{
*v224 = 0;
v223 = 0;
}
else
{
LOWORD(v222) = 0;
}
std::string::reserve(&v222, 0);
v222 = v228;
v223 = v229;
v224 = (char *)v230;
}
else
{
v185 = *((_QWORD *)this + 87);
v231 = 0;
v232 = 0;
v233 = nullptr;
if ( (*(_BYTE *)(v185 + 416) & 1) != 0 )
{
std::string::__init(&v231, *(void **)(v185 + 432), *(_QWORD *)(v185 + 424));
}
else
{
v186 = *(_QWORD *)(v185 + 424);
v231 = *(_QWORD *)(v185 + 416);
v232 = v186;
v233 = *(char **)(v185 + 432);
}
if ( (v222 & 1) != 0 )
{
*v224 = 0;
v223 = 0;
}
else
{
LOWORD(v222) = 0;
}
std::string::reserve(&v222, 0);
v224 = v233;
v222 = v231;
v223 = v232;
}
goto LABEL_52;
}
}
v222 = 0;
v223 = 0;
v224 = nullptr;
goto LABEL_142;
}
v194 = *(_DWORD *)(v107 + 340);
v222 = 0;
v223 = 0;
v224 = nullptr;
LABEL_47:
v108 = *(_BYTE *)(v107 + 448);
v225 = 0;
v109 = (__int64 *)(v107 + 448);
v226 = 0;
v227 = nullptr;
if ( (v108 & 1) != 0 )
{
std::string::__init(&v225, *(void **)(v107 + 464), *(_QWORD *)(v107 + 456));
}
else
{
v110 = *v109;
v111 = v109[1];
v227 = (char *)v109[2];
v225 = v110;
v226 = v111;
}
if ( (v222 & 1) != 0 )
{
*v224 = 0;
v223 = 0;
}
else
{
LOWORD(v222) = 0;
}
std::string::reserve(&v222, 0);
v224 = v227;
v222 = v225;
v223 = v226;
LABEL_52:
v112 = *((_QWORD *)this + 87);
if ( v112 && *(_DWORD *)(v112 + 1140) == 1 )
{
std::string::assign(&v222, "RobTop");
v194 = 71;
}
v113 = (char *)&v222 + 1;
if ( (v222 & 1) != 0 )
v113 = v224;
v114 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"By %s", v113);
CString = (cocos2d::CCLabelBMFont *)cocos2d::CCString::getCString(v114);
v199 = (cocos2d::CCLabelBMFont *)cocos2d::CCLabelBMFont::create(CString, "goldFont.fnt", v116);
v117 = *(float *)&v206 * 0.5;
v118 = (*(__int64 (__fastcall **)(cocos2d::CCLabelBMFont *))(*(_QWORD *)v102 + 192LL))(v102);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v207, v117, *(float *)(v118 + 4) - 26.0);
if ( v205 )
v119 = 0.5;
else
v119 = 0.8;
cocos2d::CCLabelBMFont::limitLabelWidth(v199, v105, v119, 0.0);
if ( v205 )
{
(*(void (__fastcall **)(float *__return_ptr, cocos2d::CCLabelBMFont *))(*(_QWORD *)v102 + 336LL))(v211, v102);
v121 = v211[0];
(*(void (__fastcall **)(__int64 *__return_ptr))(*(_QWORD *)v199 + 336LL))(v212);
v191 = *(void (__fastcall **)(cocos2d::CCLabelBMFont *, __int64 *))(*(_QWORD *)v102 + 184LL);
v122 = -(float)((float)((float)((float)(v121 + *(float *)v212) + 15.0) * 0.5) - (float)(*(float *)&v206 * 0.5));
(*(void (__fastcall **)(float *__return_ptr, cocos2d::CCLabelBMFont *))(*(_QWORD *)v102 + 336LL))(v211, v102);
v123 = v122 + (float)(v211[0] * 0.5);
v124 = (*(__int64 (__fastcall **)(cocos2d::CCLabelBMFont *))(*(_QWORD *)v102 + 192LL))(v102);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v212, v123, *(float *)(v124 + 4));
v191(v102, v212);
v189 = (*(__int64 (__fastcall **)(cocos2d::CCLabelBMFont *))(*(_QWORD *)v102 + 192LL))(v102);
(*(void (__fastcall **)(__int64 *__return_ptr, cocos2d::CCLabelBMFont *))(*(_QWORD *)v102 + 336LL))(&v209, v102);
v125 = *(float *)&v209 * 0.5;
(*(void (__fastcall **)(__int64 *__return_ptr, cocos2d::CCLabelBMFont *))(*(_QWORD *)v199 + 336LL))(&v210, v199);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v211, (float)(v125 + (float)(*(float *)&v210 * 0.5)) + 15.0, 0.0);
cocos2d::CCPoint::operator+(v212, v189);
*(__n128 *)&v120 = cocos2d::CCPoint::operator=(v207, v212);
}
(*(void (__fastcall **)(_QWORD, cocos2d::CCLabelBMFont *, __int64, long double))(**((_QWORD **)this + 73) + 464LL))(
*((_QWORD *)this + 73),
v102,
20,
v120);
v126 = CCMenuItemSpriteExtra::create((__int64)v199, 0, (__int64)this, (__int64)InfoLayer::onMore, 0);
(*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 69) + 456LL))(*((_QWORD *)this + 69), v126);
v127 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v126 + 184LL);
cocos2d::CCNode::convertToNodeSpace(v212, *((cocos2d::CCNode **)this + 69), (const cocos2d::CCPoint *)v207);
v127(v126, v212);
if ( !v194 )
{
v128 = *(void (__fastcall **)(cocos2d::CCLabelBMFont *, __int64 *))(*(_QWORD *)v199 + 1072LL);
LOWORD(v212[0]) = -166;
BYTE2(v212[0]) = -1;
v128(v199, v212);
(*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v126 + 1056LL))(v126, 0);
}
cocos2d::CCPoint::CCPoint(
(cocos2d::CCPoint *)v208,
*(float *)&v206 * 0.5,
(float)(*((float *)&v206 + 1) * 0.5) + 52.0);
if ( !v205 )
{
cocos2d::CCRect::CCRect((cocos2d::CCRect *)v211, 0.0, 0.0, 80.0, 80.0);
cocos2d::CCRect::CCRect((cocos2d::CCRect *)v212, (const cocos2d::CCRect *)v211);
v129 = cocos2d::extension::CCScale9Sprite::create("square02b_001.png", v212);
cocos2d::CCSize::CCSize((cocos2d::CCSize *)&v209, 340.0, 55.0);
(*(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v129 + 320LL))(v129, &v209);
(*(void (__fastcall **)(_QWORD, __int64, __int64))(**((_QWORD **)this + 73) + 464LL))(
*((_QWORD *)this + 73),
v129,
0xFFFFFFFFLL);
(*(void (__fastcall **)(__int64, char *))(*(_QWORD *)v129 + 184LL))(v129, v208);
v130 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v129 + 960LL);
LOWORD(v212[0]) = 16514;
BYTE2(v212[0]) = 33;
v130(v129, v212);
v228 = 0;
v229 = 0;
v230 = nullptr;
std::string::__init(&v228, "(No description provided)", 0x19u);
v131 = *((GJEditorSoundConfig **)this + 90);
v231 = 0;
v232 = 0;
v233 = nullptr;
if ( v131 )
{
GJEditorSoundConfig::getUnpackedSoundDesc(v234, v131);
if ( (v231 & 1) != 0 )
{
*v233 = 0;
v232 = 0;
}
else
{
LOWORD(v231) = 0;
}
std::string::reserve(&v231, 0);
v231 = v234[0];
v232 = v234[1];
v233 = (char *)v234[2];
}
else
{
v172 = *((GJLevelList **)this + 89);
if ( v172 )
{
GJLevelList::getUnpackedDescription(v172, v235);
if ( (v231 & 1) != 0 )
{
*v233 = 0;
v232 = 0;
}
else
{
LOWORD(v231) = 0;
}
std::string::reserve(&v231, 0);
v231 = v235[0];
v232 = v235[1];
v233 = (char *)v235[2];
}
else
{
GJGameLevel::getUnpackedLevelDescription(*((GJGameLevel **)this + 87), v236);
if ( (v231 & 1) != 0 )
{
*v233 = 0;
v232 = 0;
}
else
{
LOWORD(v231) = 0;
}
std::string::reserve(&v231, 0);
v231 = v236[0];
v232 = v236[1];
v233 = (char *)v236[2];
}
}
v237[0] = 0;
v237[1] = 0;
v238 = nullptr;
std::string::__init(v237, &byte_11B8890, 0);
v132 = sub_906E80((__int64)&v231, (__int64)v237);
if ( (v237[0] & 1) != 0 )
operator delete(v238);
if ( !v132 )
{
v133 = (char *)&v231 + 1;
if ( (v231 & 1) != 0 )
v133 = v233;
std::string::assign(&v228, v133);
}
GameToolbox::stripNonBreakingSpaces((unsigned __int8 *)&v228);
if ( *((_QWORD *)this + 89) )
LODWORD(v134) = 280;
else
v134 = &dword_B4;
v192 = EmoteSprite::maxEmotesComment((EmoteSprite *)&dword_B4);
v135 = (int)v134 < (int)EmoteSprite::effectiveLength((char *)&v228, v192);
v136 = (int)v134;
if ( v135 || (v136 = EmoteSprite::effectiveLength((char *)&v228, v192), v136 > 70) )
v137 = (float)((float)((float)(180 - v136) / (float)(int)v134) * 0.3) + 0.7;
else
v137 = 1.0;
v138 = (char *)&v228 + 1;
if ( (v228 & 1) != 0 )
v138 = (const char *)v230;
v190 = (char *)v138;
v239[0] = 0;
v239[1] = 0;
v240 = nullptr;
v139 = strlen(v138);
std::string::__init(v239, v190, v139);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v212, 0.5, 0.5);
v140 = TextArea::create(
(char *)v239,
"chatFont.fnt",
(const cocos2d::CCPoint *)v212,
1,
v192,
1.0,
324.5 / v137,
20.0);
if ( (v239[0] & 1) != 0 )
operator delete(v240);
(*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 73) + 456LL))(*((_QWORD *)this + 73), v140);
v141 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v140 + 184LL);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v210, 0.0, 1.0);
cocos2d::CCPoint::operator+(v212, v208);
v141(v140, v212);
(*(void (__fastcall **)(__int64, float))(*(_QWORD *)v140 + 160LL))(v140, v137);
if ( (v231 & 1) != 0 )
operator delete(v233);
if ( (v228 & 1) != 0 )
operator delete(v230);
}
InfoLayer::setupLevelInfo(this);
if ( !v205 )
{
v143 = *((_QWORD *)this + 87);
if ( v143 )
{
v142 = (const char *)*(unsigned int *)(v143 + 988);
v144 = (GameManager *)*(unsigned int *)(v143 + 992);
if ( (_DWORD)v142 != (_DWORD)v144 )
{
v145 = (GameManager *)GameManager::sharedState(v144);
if ( !(unsigned __int8)GameManager::onlyCuratedLevels(v145) )
{
v166 = *((unsigned int **)this + 87);
v142 = (const char *)v166[82];
if ( v166[247] - v166[248] != (_DWORD)v142 - v166[83] )
{
v167 = ButtonSprite::create(
(ButtonSprite *)"Original",
(const char *)&qword_D8 + 4,
0,
0,
0.45,
"bigFont.fnt",
"GJ_button_01.png",
v146,
25.0);
(*(void (__fastcall **)(__int64, float))(*(_QWORD *)v167 + 160LL))(v167, 0.8);
v168 = CCMenuItemSpriteExtra::create(v167, 0, (__int64)this, (__int64)InfoLayer::onOriginal, 0);
(*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 69) + 456LL))(*((_QWORD *)this + 69), v168);
CCMenuItemSpriteExtra::setSizeMult(v168, 1.2);
v196 = *(cocos2d::CCNode **)(*(_QWORD *)v168 + 184LL);
v169 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v126 + 192LL))(v126);
v170 = *(float *)(*(__int64 (__fastcall **)(cocos2d::CCLabelBMFont *))(*(_QWORD *)v199 + 328LL))(v199) * 0.5;
v171 = (*(float (__fastcall **)(cocos2d::CCLabelBMFont *))(*(_QWORD *)v199 + 168LL))(v199);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v211, (float)(v170 * v171) + 70.0, 0.0);
cocos2d::CCPoint::operator+(v212, v169);
((void (__fastcall *)(__int64, __int64 *))v196)(v168, v212);
}
}
}
}
}
v147 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_chatBtn_001.png", v142);
v148 = CCMenuItemSpriteExtra::create(v147, 0, (__int64)this, (__int64)InfoLayer::onComment, 0);
CCMenuItemSpriteExtra::setSizeMult(v148, 1.5);
(*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 69) + 456LL))(*((_QWORD *)this + 69), v148);
v149 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v148 + 184LL);
v200 = *((cocos2d::CCNode **)this + 69);
cocos2d::CCPoint::CCPoint(
(cocos2d::CCPoint *)v211,
(float)((float)(*(float *)&v206 * 0.5) + 220.0) - 10.0,
(float)((float)(*((float *)&v206 + 1) * 0.5) + -145.0) + 10.0);
cocos2d::CCNode::convertToNodeSpace(v212, v200, (const cocos2d::CCPoint *)v211);
v149(v148, v212);
v151 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_reportBtn_001.png", v150);
v152 = CCMenuItemSpriteExtra::create(v151, 0, (__int64)this, (__int64)InfoLayer::confirmReport, 0);
*((_QWORD *)this + 104) = v152;
CCMenuItemSpriteExtra::setSizeMult(v152, 1.5);
(*(void (__fastcall **)(_QWORD, _QWORD))(**((_QWORD **)this + 69) + 456LL))(
*((_QWORD *)this + 69),
*((_QWORD *)this + 104));
v153 = *((_QWORD *)this + 104);
v195 = *((cocos2d::CCNode **)this + 69);
v201 = *(cocos2d::CCLabelBMFont **)(*(_QWORD *)v153 + 184LL);
cocos2d::CCPoint::CCPoint(
(cocos2d::CCPoint *)v211,
(float)((float)(*(float *)&v206 * 0.5) + -220.0) + 10.0,
(float)((float)(*((float *)&v206 + 1) * 0.5) + -145.0) + 10.0);
cocos2d::CCNode::convertToNodeSpace(v212, v195, (const cocos2d::CCPoint *)v211);
((void (__fastcall *)(__int64, __int64 *))v201)(v153, v212);
if ( v10 )
{
(*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v148 + 344LL))(v148, 0);
(*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v148 + 1056LL))(v148, 0);
}
if ( (v222 & 1) != 0 )
operator delete(v224);
if ( (v213 & 1) != 0 )
operator delete(v215);
LABEL_9:
v24 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_closeBtn_001.png", v23);
v25 = CCMenuItemSpriteExtra::create(v24, 0, (__int64)this, (__int64)InfoLayer::onClose, 0);
(*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 69) + 456LL))(*((_QWORD *)this + 69), v25);
CCMenuItemSpriteExtra::setSizeMult(v25, 1.6);
v26 = *((cocos2d::CCNode **)this + 69);
v27 = *(__int64 (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v25 + 184LL);
cocos2d::CCPoint::CCPoint(
(cocos2d::CCPoint *)v211,
(float)((float)(*(float *)&v206 * 0.5) + -220.0) + 10.0,
(float)((float)(*((float *)&v206 + 1) * 0.5) + 145.0) - 10.0);
cocos2d::CCNode::convertToNodeSpace(v212, v26, (const cocos2d::CCPoint *)v211);
v28 = (LoadingCircle *)v27(v25, v212);
v29 = LoadingCircle::create(v28);
*((_QWORD *)this + 94) = v29;
*(_QWORD *)(v29 + 552) = *((_QWORD *)this + 73);
*(_BYTE *)(*((_QWORD *)this + 94) + 560LL) = 0;
cocos2d::CCObject::retain(*((cocos2d::CCObject **)this + 94));
LoadingCircle::show(*((cocos2d::CCNode ***)this + 94));
(*(void (__fastcall **)(_QWORD, _QWORD))(**((_QWORD **)this + 94) + 344LL))(*((_QWORD *)this + 94), 0);
v30 = *(_QWORD *)(*((_QWORD *)this + 94) + 544LL);
v31 = *(__int64 (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v30 + 184LL);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v212, *(float *)&v206 * 0.5, v13 + (float)(*((float *)&v206 + 1) * 0.5));
v32 = (cocos2d::CCMenu *)v31(v30, v212);
v33 = (cocos2d::CCNode *)cocos2d::CCMenu::create(v32);
(*(void (__fastcall **)(_QWORD, cocos2d::CCNode *, __int64))(**((_QWORD **)this + 73) + 464LL))(
*((_QWORD *)this + 73),
v33,
10);
v34 = (float)(*((float *)&v206 + 1) * 0.5) + -53.0;
v36 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_arrow_01_001.png", v35);
(*(void (__fastcall **)(__int64, float))(*(_QWORD *)v36 + 160LL))(v36, 0.8);
v37 = CCMenuItemSpriteExtra::create(v36, 0, (__int64)this, (__int64)InfoLayer::onPrevPage, 0);
*((_QWORD *)this + 99) = v37;
(*(void (__fastcall **)(cocos2d::CCNode *, __int64))(*(_QWORD *)v33 + 456LL))(v33, v37);
v38 = *((_QWORD *)this + 99);
v197 = *(cocos2d::CCLabelBMFont **)(*(_QWORD *)v38 + 184LL);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v211, (float)(*(float *)&v206 * 0.5) + -195.0, v34);
cocos2d::CCNode::convertToNodeSpace(v212, v33, (const cocos2d::CCPoint *)v211);
((void (__fastcall *)(__int64, __int64 *))v197)(v38, v212);
CCMenuItemSpriteExtra::setSizeMult(*((_QWORD *)this + 99), 2.0);
v40 = (cocos2d::CCSprite *)cocos2d::CCSprite::createWithSpriteFrameName(
(cocos2d::CCSprite *)"GJ_arrow_01_001.png",
v39);
cocos2d::CCSprite::setFlipX(v40, 1);
(*(void (__fastcall **)(cocos2d::CCSprite *, float))(*(_QWORD *)v40 + 160LL))(v40, 0.8);
v41 = CCMenuItemSpriteExtra::create((__int64)v40, 0, (__int64)this, (__int64)InfoLayer::onNextPage, 0);
*((_QWORD *)this + 98) = v41;
(*(void (__fastcall **)(cocos2d::CCNode *, __int64))(*(_QWORD *)v33 + 456LL))(v33, v41);
v42 = *((_QWORD *)this + 98);
v43 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v42 + 184LL);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v211, (float)(*(float *)&v206 * 0.5) + 195.0, v34);
cocos2d::CCNode::convertToNodeSpace(v212, v33, (const cocos2d::CCPoint *)v211);
v43(v42, v212);
CCMenuItemSpriteExtra::setSizeMult(*((_QWORD *)this + 98), 2.0);
(*(void (__fastcall **)(_QWORD, _QWORD))(**((_QWORD **)this + 99) + 344LL))(*((_QWORD *)this + 99), 0);
(*(void (__fastcall **)(_QWORD, _QWORD))(**((_QWORD **)this + 98) + 344LL))(*((_QWORD *)this + 98), 0);
v45 = cocos2d::CCLabelBMFont::create((cocos2d::CCLabelBMFont *)&byte_11E1A70, "goldFont.fnt", v44);
*((_QWORD *)this + 95) = v45;
(*(void (__fastcall **)(_QWORD, __int64, __int64))(**((_QWORD **)this + 73) + 464LL))(*((_QWORD *)this + 73), v45, 10);
v46 = *((cocos2d::CCDirector ***)this + 95);
v47 = *((void (__fastcall **)(cocos2d::CCDirector **, __int64 *))*v46 + 23);
v48 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(*v46);
ScreenRight = (cocos2d::CCDirector *)cocos2d::CCDirector::getScreenRight(v48);
v51 = v50;
v52 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(ScreenRight);
cocos2d::CCDirector::getScreenTop(v52);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v212, v51 - 7.0, v53 - 2.0);
v47(v46, v212);
v54 = *((_QWORD *)this + 95);
v55 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v54 + 296LL);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v212, 1.0, 1.0);
v55(v54, v212);
v56 = (cocos2d::CCMenu *)(*(__int64 (__fastcall **)(_QWORD, float))(**((_QWORD **)this + 95) + 160LL))(
*((_QWORD *)this + 95),
0.4);
v57 = (cocos2d::CCMenu *)cocos2d::CCMenu::create(v56);
(*(void (__fastcall **)(_QWORD, cocos2d::CCMenu *, __int64))(**((_QWORD **)this + 73) + 464LL))(
*((_QWORD *)this + 73),
v57,
10);
if ( v10 || !(unsigned __int8)InfoLayer::canToggleModRoom(this) )
{
v58 = 0.7;
v59 = 0;
}
else
{
v58 = 0.56;
v59 = 1;
}
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v212, 0.0, -0.5);
SpriteButton = InfoLayer::getSpriteButton(
(__int64)this,
(cocos2d::CCSprite *)"GJ_likesIcon_001.png",
(__int64)InfoLayer::toggleCommentMode,
0,
(__int64)v57,
(const cocos2d::CCPoint *)v212,
v58);
*((_QWORD *)this + 100) = SpriteButton;
(*(void (__fastcall **)(float *, _QWORD))(*(_QWORD *)SpriteButton + 72LL))(SpriteButton, 0);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v212, 0.0, -1.0);
v61 = InfoLayer::getSpriteButton(
(__int64)this,
(cocos2d::CCSprite *)"GJ_timeIcon_001.png",
(__int64)InfoLayer::toggleCommentMode,
0,
(__int64)v57,
(const cocos2d::CCPoint *)v212,
v58);
*((_QWORD *)this + 101) = v61;
(*(void (__fastcall **)(float *, __int64))(*(_QWORD *)v61 + 72LL))(v61, 1);
v62 = *((_QWORD *)this + 88);
if ( !v62 )
{
if ( v10 )
{
if ( !v59 )
goto LABEL_17;
goto LABEL_112;
}
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v212, 0.0, -1.0);
v180 = InfoLayer::getSpriteButton(
(__int64)this,
(cocos2d::CCSprite *)"GJ_extendedIcon_001.png",
(__int64)InfoLayer::toggleExtendedMode,
0,
(__int64)v57,
(const cocos2d::CCPoint *)v212,
v58);
v181 = (ButtonSprite *)(*(__int64 (__fastcall **)(float *))(*(_QWORD *)v180 + 1072LL))(v180);
if ( v205 )
ButtonSprite::updateBGImage(v181, "GJ_button_02.png");
else
ButtonSprite::updateBGImage(v181, "GJ_button_01.png");
goto LABEL_105;
}
if ( !v10 )
{
LABEL_105:
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v212, 0.0, -1.5);
v160 = InfoLayer::getSpriteButton(
(__int64)this,
(cocos2d::CCSprite *)"GJ_smallModeIcon_001.png",
(__int64)InfoLayer::toggleSmallCommentMode,
0,
(__int64)v57,
(const cocos2d::CCPoint *)v212,
v58);
v161 = (GameManager *)(*(__int64 (__fastcall **)(float *))(*(_QWORD *)v160 + 1072LL))(v160);
v162 = (GameManager *)GameManager::sharedState(v161);
if ( (unsigned __int8)GameManager::getGameVariable(v162, "0088") )
v163 = "GJ_button_02.png";
else
v163 = "GJ_button_01.png";
ButtonSprite::updateBGImage(v161, v163);
if ( !v59 )
{
LABEL_108:
v62 = *((_QWORD *)this + 88);
if ( !v62 )
goto LABEL_17;
goto LABEL_14;
}
LABEL_112:
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v212, 0.0, -2.0);
v164 = InfoLayer::getSpriteButton(
(__int64)this,
(cocos2d::CCSprite *)"modBadge_01_001.png",
(__int64)InfoLayer::toggleModRoom,
0,
(__int64)v57,
(const cocos2d::CCPoint *)v212,
v58);
*((_QWORD *)this + 102) = v164;
v165 = (ButtonSprite *)(*(__int64 (__fastcall **)(float *))(*(_QWORD *)v164 + 1072LL))(v164);
ButtonSprite::updateBGImage(v165, "GJ_button_01.png");
goto LABEL_108;
}
if ( v59 )
goto LABEL_112;
LABEL_14:
v63 = (GameManager *)*(unsigned int *)(v62 + 376);
if ( (int)v63 > 0 )
{
v64 = GameManager::sharedState(v63);
v65 = (const char *)*(unsigned int *)(v64 + 1032);
if ( (int)v65 - *(_DWORD *)(v64 + 1036) > 0 )
{
v66 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_chatBtn_001.png", v65);
v67 = CCMenuItemSpriteExtra::create(v66, 0, (__int64)this, (__int64)InfoLayer::onComment, 0);
*((_QWORD *)this + 103) = v67;
CCMenuItemSpriteExtra::setSizeMult(v67, 1.5);
(*(void (__fastcall **)(_QWORD, _QWORD))(**((_QWORD **)this + 69) + 456LL))(
*((_QWORD *)this + 69),
*((_QWORD *)this + 103));
v68 = *((_QWORD *)this + 103);
v193 = *((cocos2d::CCNode **)this + 69);
v198 = *(cocos2d::CCLabelBMFont **)(*(_QWORD *)v68 + 184LL);
cocos2d::CCPoint::CCPoint(
(cocos2d::CCPoint *)v211,
(float)((float)(*(float *)&v206 * 0.5) + 220.0) - 10.0,
(float)((float)(*((float *)&v206 + 1) * 0.5) + -145.0) + 10.0);
cocos2d::CCNode::convertToNodeSpace(v212, v193, (const cocos2d::CCPoint *)v211);
((void (__fastcall *)(__int64, __int64 *))v198)(v68, v212);
(*(void (__fastcall **)(_QWORD, _QWORD))(**((_QWORD **)this + 103) + 344LL))(*((_QWORD *)this + 103), 0);
(*(void (__fastcall **)(_QWORD, _QWORD))(**((_QWORD **)this + 103) + 1056LL))(*((_QWORD *)this + 103), 0);
}
}
LABEL_17:
InfoLayer::updateCommentModeButtons(this);
v69 = 0.0;
if ( v59 )
v69 = 6.0;
cocos2d::CCPoint::CCPoint(
(cocos2d::CCPoint *)&v210,
(float)(*(float *)&v206 * 0.5) + -195.0,
(float)((float)((float)(*((float *)&v206 + 1) * 0.5) + 145.0) - 110.0) + v69);
(*(void (__fastcall **)(cocos2d::CCMenu *, __int64 *))(*(_QWORD *)v57 + 184LL))(v57, &v210);
cocos2d::CCMenu::alignItemsVerticallyWithPadding(v57, 4.0);
v71 = ButtonSprite::create(
(ButtonSprite *)"Load Comments",
(const char *)&qword_D8 + 4,
0,
0,
0.6,
"bigFont.fnt",
"GJ_button_01.png",
v70,
25.0);
v72 = CCMenuItemSpriteExtra::create(v71, 0, (__int64)this, (__int64)InfoLayer::onGetComments, 0);
*((_QWORD *)this + 105) = v72;
(*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 69) + 456LL))(*((_QWORD *)this + 69), v72);
CCMenuItemSpriteExtra::setSizeMult(*((_QWORD *)this + 105), 2.0);
v73 = *((_QWORD *)this + 105);
v74 = *((cocos2d::CCNode **)this + 69);
v75 = *(__int64 (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v73 + 184LL);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v211, *(float *)&v206 * 0.5, v13 + (float)(*((float *)&v206 + 1) * 0.5));
cocos2d::CCNode::convertToNodeSpace(v212, v74, (const cocos2d::CCPoint *)v211);
v76 = (PlatformToolbox *)v75(v73, v212);
if ( PlatformToolbox::isNetworkAvailable(v76) )
v78 = "No comments";
else
v78 = "No Internet connection!";
v79 = cocos2d::CCLabelBMFont::create((cocos2d::CCLabelBMFont *)v78, "goldFont.fnt", v77);
*((_QWORD *)this + 96) = v79;
(*(void (__fastcall **)(_QWORD, __int64, __int64))(**((_QWORD **)this + 73) + 464LL))(*((_QWORD *)this + 73), v79, 10);
v80 = *((_QWORD *)this + 96);
v81 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v80 + 184LL);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v212, *(float *)&v206 * 0.5, v13 + (float)(*((float *)&v206 + 1) * 0.5));
v81(v80, v212);
(*(void (__fastcall **)(_QWORD, float))(**((_QWORD **)this + 96) + 160LL))(*((_QWORD *)this + 96), 0.8);
v82 = (PlatformToolbox *)(*(__int64 (__fastcall **)(_QWORD, _QWORD))(**((_QWORD **)this + 96) + 344LL))(
*((_QWORD *)this + 96),
0);
isNetworkAvailable = (GameLevelManager *)PlatformToolbox::isNetworkAvailable(v82);
if ( !(_BYTE)isNetworkAvailable )
{
(*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 96) + 344LL))(*((_QWORD *)this + 96), 1);
isNetworkAvailable = (GameLevelManager *)(*(__int64 (__fastcall **)(_QWORD, _QWORD))(**((_QWORD **)this + 105)
+ 344LL))(
*((_QWORD *)this + 105),
0);
}
GameLevelManager::sharedState(isNetworkAvailable);
ID = (GameManager *)InfoLayer::getID(this);
v85 = (unsigned int)ID;
v86 = (GameManager *)GameManager::sharedState(ID);
GameManager::getGameVariable(v86, "0069");
CommentKey = GameLevelManager::getCommentKey((const char *)v85, v239);
if ( !v10 )
{
v154 = (GameLevelManager *)GameLevelManager::sharedState((GameLevelManager *)CommentKey);
v155 = (char *)v239 + 1;
if ( (v239[0] & 1) != 0 )
v155 = v240;
if ( GameLevelManager::getStoredLevelComments(v154, v155)
|| (v182 = (GameManager *)GameManager::sharedState(nullptr),
(unsigned __int8)GameManager::getGameVariable(v182, "0090")) )
{
InfoLayer::loadPage(this, 0, 0);
if ( *((_QWORD *)this + 88) )
goto LABEL_25;
LABEL_104:
v156 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_infoIcon_001.png", v88);
v157 = CCMenuItemSpriteExtra::create(v156, 0, (__int64)this, (__int64)InfoLayer::onLevelInfo, 0);
CCMenuItemSpriteExtra::setSizeMult(v157, 2.0);
(*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 69) + 456LL))(*((_QWORD *)this + 69), v157);
v158 = *((cocos2d::CCNode **)this + 69);
v159 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v157 + 184LL);
cocos2d::CCPoint::CCPoint(
(cocos2d::CCPoint *)v211,
(float)((float)(*(float *)&v206 * 0.5) + 220.0) - 17.0,
(float)((float)(*((float *)&v206 + 1) * 0.5) + 145.0) - 17.0);
cocos2d::CCNode::convertToNodeSpace(v212, v158, (const cocos2d::CCPoint *)v211);
v159(v157, v212);
goto LABEL_25;
}
}
InfoLayer::setupCommentsBrowser(this, nullptr);
if ( !*((_QWORD *)this + 88) )
goto LABEL_104;
LABEL_25:
v89 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_updateBtn_001.png", v88);
(*(void (__fastcall **)(__int64, float))(*(_QWORD *)v89 + 160LL))(v89, 0.6);
v90 = CCMenuItemSpriteExtra::create(v89, 0, (__int64)this, (__int64)InfoLayer::onRefreshComments, 0);
*((_QWORD *)this + 106) = v90;
CCMenuItemSpriteExtra::setSizeMult(v90, 1.5);
(*(void (__fastcall **)(_QWORD, _QWORD))(**((_QWORD **)this + 69) + 456LL))(
*((_QWORD *)this + 69),
*((_QWORD *)this + 106));
v91 = *((_QWORD *)this + 106);
v92 = *((cocos2d::CCNode **)this + 69);
v93 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v91 + 184LL);
cocos2d::CCPoint::CCPoint(
(cocos2d::CCPoint *)v211,
(float)(*(float *)&v206 * 0.5) + 195.0,
(float)(*((float *)&v206 + 1) * 0.5) + 0.0);
cocos2d::CCNode::convertToNodeSpace(v212, v92, (const cocos2d::CCPoint *)v211);
v93(v91, v212);
if ( v10 )
{
(*(void (__fastcall **)(_QWORD, _QWORD))(**((_QWORD **)this + 106) + 344LL))(*((_QWORD *)this + 106), 0);
(*(void (__fastcall **)(_QWORD, _QWORD))(**((_QWORD **)this + 106) + 1056LL))(*((_QWORD *)this + 106), 0);
(*(void (__fastcall **)(_QWORD, _QWORD))(**((_QWORD **)this + 96) + 344LL))(*((_QWORD *)this + 96), 0);
(*(void (__fastcall **)(_QWORD, _QWORD))(**((_QWORD **)this + 105) + 344LL))(*((_QWORD *)this + 105), 0);
(*(void (__fastcall **)(_QWORD, _QWORD))(**((_QWORD **)this + 100) + 344LL))(*((_QWORD *)this + 100), 0);
(*(void (__fastcall **)(_QWORD, _QWORD))(**((_QWORD **)this + 100) + 1056LL))(*((_QWORD *)this + 100), 0);
(*(void (__fastcall **)(_QWORD, _QWORD))(**((_QWORD **)this + 101) + 344LL))(*((_QWORD *)this + 101), 0);
(*(void (__fastcall **)(_QWORD, _QWORD))(**((_QWORD **)this + 101) + 1056LL))(*((_QWORD *)this + 101), 0);
}
InfoLayer::setupBulkUI(this);
if ( (v239[0] & 1) != 0 )
operator delete(v240);
return v8;
}