//
// LevelListLayer::init from 0x6d8440 to 0x6d97e6 (5030 bytes)
//
// 1 xrefs:
// > LevelListLayer::create @ 0x6d9984
//
// 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:57:09 +0000
//
GameLevelManager *__fastcall LevelListLayer::init(LevelListLayer *this, GJLevelList *a2)
{
GameLevelManager *v4; // r0
int v5; // r0
bool v6; // zf
int v7; // r0
int v8; // r0
unsigned int v9; // r3
unsigned int v10; // r0
char *v11; // r0
char *v12; // r9
int v13; // r6
int v14; // r2
int v15; // r2
int v16; // r1
cocos2d::CCLabelBMFont *v17; // r2
GameManager *v18; // r0
cocos2d::CCArray *v19; // r0
int v20; // r2
int v21; // r3
cocos2d::CCObject *v22; // r0
int v23; // r0
int v24; // r3
_BOOL4 v25; // r6
unsigned __int8 *v26; // r9
int v27; // r9
int v28; // r9
GJSearchObject **v29; // r0
cocos2d::CCDirector *v30; // r0
const char *v31; // r1
float *v32; // r9
void (__fastcall *v33)(float *, _DWORD *); // r10
void (__fastcall *v34)(float *, _DWORD *); // r10
void (__fastcall *v35)(float *, _DWORD *); // r3
const char *v36; // r1
int v37; // r9
cocos2d::CCDirector *v38; // r0
cocos2d::CCDirector *v39; // r0
float v40; // s17
cocos2d::CCDirector *v41; // r0
float v42; // r0
const char *v43; // r1
cocos2d::CCSprite *v44; // r9
int (__fastcall *v45)(cocos2d::CCSprite *, _DWORD *); // r11
cocos2d::CCDirector *v46; // r0
void (__fastcall *v47)(cocos2d::CCSprite *, _DWORD *); // r11
cocos2d::CCDirector *v48; // r0
float v49; // s17
cocos2d::CCDirector *v50; // r0
float v51; // r0
const char *v52; // r1
int v53; // r0
int v54; // r0
int v55; // r3
cocos2d::CCDirector *v56; // r0
int v57; // r10
void (__fastcall *v58)(int, _DWORD *); // r9
cocos2d::CCDirector *v59; // r0
float v60; // s16
cocos2d::CCDirector *v61; // r0
float v62; // r0
const char *v63; // r1
cocos2d::CCSprite *v64; // r0
const char *v65; // r1
cocos2d::CCDirector *v66; // r0
float v67; // s16
cocos2d::CCDirector *v68; // r0
float v69; // r0
int v70; // r10
void (__fastcall *v71)(int, _DWORD *); // r3
int v72; // r1
const char *v73; // r2
cocos2d::CCLabelBMFont *v74; // r0
cocos2d::CCLabelBMFont *v75; // r5
cocos2d::CCDirector *v76; // r0
float v77; // s16
void (__fastcall *v78)(cocos2d::CCLabelBMFont *, _DWORD *); // r10
cocos2d::CCDirector *v79; // r0
float v80; // r0
const char *v81; // r2
cocos2d::CCLabelBMFont *v82; // r0
cocos2d::CCLabelBMFont *v83; // r9
int v84; // r11
float v85; // s16
float v86; // s16
float v87; // s19
float v88; // r0
int v89; // r11
float v90; // s19
float v91; // s19
float v92; // s16
float v93; // s16
float v94; // s22
float v95; // s21
float v96; // s20
float v97; // r0
float v98; // s16
int v99; // r10
int v100; // r10
int v101; // r10
int v102; // r11
float v103; // s16
float v104; // r0
int v105; // r5
int (__fastcall *v106)(int, _DWORD *); // r10
int v107; // r11
float v108; // r0
cocos2d::CCDirector *v109; // r0
cocos2d::CCDirector *v110; // r0
float v111; // s16
cocos2d::CCDirector *v112; // r0
float v113; // r0
const char *v114; // r1
int v115; // r5
int v116; // r0
int v117; // r11
void (__fastcall *v118)(int, _DWORD *); // r8
int v119; // r10
const char *v120; // r1
int v121; // r10
int v122; // r10
const cocos2d::CCPoint *v123; // r0
const char *v124; // r1
int v125; // r10
int v126; // r0
int v127; // r11
void (__fastcall *v128)(int, _DWORD *); // r10
int v129; // r0
const char *v130; // r1
int v131; // r10
int v132; // r11
void (__fastcall *v133)(int, _DWORD *); // r10
int v134; // r0
const char *v135; // r1
char *v136; // r0
int v137; // r0
int v138; // r5
void (__fastcall *v139)(int, _DWORD *); // r10
int v140; // r0
GJAccountManager *v141; // r0
int v142; // r5
GameManager *v143; // r0
const char *v144; // r1
int v145; // r0
int v146; // r8
int v147; // r11
int v148; // r11
const char *v149; // r1
int v150; // r0
const cocos2d::CCPoint *v151; // r0
const char *v152; // r1
int v153; // r11
int v154; // r11
int v155; // r0
const char *v156; // r1
int v157; // r11
int v158; // r11
int v159; // r0
const char *v160; // r1
int v161; // r11
float v162; // s16
int v163; // r0
int v164; // r0
int v165; // r11
int v166; // r0
const char *v167; // r1
int v168; // r11
int v169; // r11
int v170; // r0
const char *v171; // r1
int v172; // r10
void (__fastcall *v173)(int, _DWORD); // r11
float v174; // s16
float v175; // s16
float *v176; // r0
int v177; // r5
void (__fastcall *v178)(int, _DWORD *); // r10
int v179; // r1
_DWORD *v180; // r0
int v181; // r0
int v182; // r8
const cocos2d::CCPoint *v183; // r10
int (__fastcall *v184)(int, _BYTE *); // r9
LoadingCircle *v185; // r0
cocos2d::CCLayerColor *v186; // r0
int v187; // r7
void (__fastcall *v188)(int, _BYTE *); // r8
PlatformToolbox *v189; // r0
cocos2d::CCMenuItem *v190; // r2
cocos2d::CCLabelBMFont *v192; // r0
int v193; // r8
int *v194; // r0
int v195; // r3
int v196; // r5
int v197; // r5
int v198; // r5
int v199; // r5
void (__fastcall *v200)(int, _DWORD *); // r10
const char *v201; // [sp+8h] [bp-FCh]
GJSearchObject *v202; // [sp+10h] [bp-F4h]
int (__fastcall *v203)(int, _DWORD *); // [sp+14h] [bp-F0h]
void (__fastcall *v204)(int, _DWORD *); // [sp+14h] [bp-F0h]
void (__fastcall *v205)(int, _DWORD *); // [sp+14h] [bp-F0h]
void (__fastcall *v206)(cocos2d::CCLabelBMFont *, _DWORD *); // [sp+14h] [bp-F0h]
void (__fastcall *v207)(int, _DWORD *); // [sp+14h] [bp-F0h]
void (__fastcall *v208)(int, _DWORD *); // [sp+14h] [bp-F0h]
void (__fastcall *v209)(int, _DWORD *); // [sp+14h] [bp-F0h]
GameLevelManager *v210; // [sp+18h] [bp-ECh]
cocos2d::CCLayer *v211; // [sp+1Ch] [bp-E8h]
void (__fastcall *v212)(int, _DWORD *); // [sp+20h] [bp-E4h]
int v213; // [sp+20h] [bp-E4h]
void (__fastcall *v214)(int, _DWORD *); // [sp+20h] [bp-E4h]
void (__fastcall *v215)(int, _DWORD *); // [sp+20h] [bp-E4h]
void (__fastcall *v216)(int, _DWORD *); // [sp+20h] [bp-E4h]
void (__fastcall *v217)(int, int); // [sp+20h] [bp-E4h]
void (__fastcall *v218)(int, _DWORD *); // [sp+20h] [bp-E4h]
int v219; // [sp+28h] [bp-DCh]
int v220; // [sp+28h] [bp-DCh]
int v221; // [sp+2Ch] [bp-D8h]
int v222; // [sp+34h] [bp-D0h]
float v223; // [sp+38h] [bp-CCh] BYREF
float v224; // [sp+3Ch] [bp-C8h]
char v225[8]; // [sp+40h] [bp-C4h] BYREF
_BYTE v226[8]; // [sp+48h] [bp-BCh] BYREF
char v227[8]; // [sp+50h] [bp-B4h] BYREF
_BYTE v228[8]; // [sp+58h] [bp-ACh] BYREF
int v229; // [sp+60h] [bp-A4h]
int v230; // [sp+64h] [bp-A0h]
int (__fastcall *v231)(int, cocos2d::CCObject *, bool); // [sp+68h] [bp-9Ch]
int v232; // [sp+6Ch] [bp-98h]
_DWORD (*v233)(LevelListLayer *__hidden, cocos2d::CCObject *); // [sp+70h] [bp-94h]
int v234; // [sp+74h] [bp-90h]
int (__fastcall *v235)(GJUserScore **, cocos2d::CCObject *); // [sp+78h] [bp-8Ch]
int v236; // [sp+7Ch] [bp-88h]
GameManager *(__fastcall *v237)(GameManager *, cocos2d::CCObject *); // [sp+80h] [bp-84h]
int v238; // [sp+84h] [bp-80h]
int (__fastcall *v239)(int, cocos2d::CCObject *); // [sp+88h] [bp-7Ch]
int v240; // [sp+8Ch] [bp-78h]
_DWORD v241[2]; // [sp+90h] [bp-74h] BYREF
_DWORD v242[10]; // [sp+98h] [bp-6Ch] BYREF
_DWORD v243[2]; // [sp+C0h] [bp-44h] BYREF
_DWORD v244[2]; // [sp+C8h] [bp-3Ch] BYREF
int v245; // [sp+D0h] [bp-34h] BYREF
int v246; // [sp+D4h] [bp-30h]
cocos2d::CCLabelBMFont *v247; // [sp+D8h] [bp-2Ch]
_DWORD v248[4]; // [sp+DCh] [bp-28h] BYREF
_DWORD v249[4]; // [sp+ECh] [bp-18h] BYREF
v249[0] = 0;
v4 = (GameLevelManager *)cocos2d::CCLayerColor::initWithColor(this, v249);
v210 = v4;
if ( !v4 )
return v210;
*((_DWORD *)this + 167) = 0;
v5 = GameLevelManager::sharedState(v4);
std::string::basic_string(&v245, v5 + 784);
v6 = (*((_BYTE *)this + 628) & 1) == 0;
if ( (*((_BYTE *)this + 628) & 1) != 0 )
{
**((_BYTE **)this + 159) = 0;
}
else
{
*((_BYTE *)this + 628) = 0;
*((_BYTE *)this + 629) = 0;
}
v7 = *((unsigned __int8 *)this + 628);
if ( !v6 )
*((_DWORD *)this + 158) = 0;
if ( (v7 & 1) != 0 )
{
v8 = *((_DWORD *)this + 158);
v9 = (*((_DWORD *)this + 157) & 0xFFFFFFFE) - 1;
if ( (unsigned int)v8 <= 0xA )
{
if ( (*((_DWORD *)this + 157) & 0xFFFFFFFE) == 0xB )
goto LABEL_23;
goto LABEL_14;
}
}
else
{
v8 = v7 >> 1;
if ( v8 <= 10 )
goto LABEL_23;
v9 = 10;
}
v10 = (v8 + 16) & 0xFFFFFFF0;
if ( v10 - 1 == v9 )
goto LABEL_23;
if ( v10 != 11 )
{
v11 = (char *)operator new(v10);
v13 = *((_BYTE *)this + 628) & 1;
if ( (*((_BYTE *)this + 628) & 1) != 0 )
v12 = *((char **)this + 159);
else
v12 = (char *)this + 629;
goto LABEL_18;
}
LABEL_14:
v11 = (char *)this + 629;
v12 = *((char **)this + 159);
v13 = 1;
LABEL_18:
v14 = *((unsigned __int8 *)this + 628);
if ( (v14 & 1) != 0 )
v15 = *((_DWORD *)this + 158);
else
v15 = v14 >> 1;
std::char_traits::copy(v11, v12, v15 + 1);
if ( v13 )
operator delete(v12);
LABEL_23:
v16 = v246;
v17 = v247;
*((_DWORD *)this + 157) = v245;
*((_DWORD *)this + 158) = v16;
*((_DWORD *)this + 159) = v17;
v245 = 0;
v246 = 0;
v247 = nullptr;
std::string::~string((int)&v245);
*((_DWORD *)this + 160) = a2;
v18 = (GameManager *)cocos2d::CCObject::retain(a2);
v19 = (cocos2d::CCArray *)GameManager::sharedState(v18);
v20 = *((_DWORD *)this + 160);
v21 = *(_DWORD *)(v20 + 276);
if ( v21 <= 0 )
v21 = *(_DWORD *)(v20 + 412);
*((_DWORD *)v19 + 189) = v21;
v22 = (cocos2d::CCObject *)cocos2d::CCArray::create(v19);
*((_DWORD *)this + 168) = v22;
cocos2d::CCObject::retain(v22);
v23 = GJSearchObject::create(25);
v24 = *((_DWORD *)this + 160);
v25 = *(_DWORD *)(v24 + 408) == 2;
v202 = (GJSearchObject *)v23;
v26 = (unsigned __int8 *)(v23 + 268);
if ( *(_DWORD *)(v24 + 408) != 2 )
{
GameToolbox::intToString((GameToolbox *)&v245, *((_DWORD *)a2 + 69));
std::string::operator=(v26, (unsigned __int8 *)&v245);
goto LABEL_32;
}
*((_DWORD *)this + 141) = 200;
*((_DWORD *)this + 142) = -1055916032;
*(_DWORD *)(v23 + 264) = 26;
*(_DWORD *)(v23 + 332) = 29;
std::string::basic_string(&v245, (int)a2 + 372);
std::string::operator=(v26, (unsigned __int8 *)&v245);
std::string::~string((int)&v245);
std::string::basic_string(&v245, *((_DWORD *)this + 160) + 348);
if ( (v245 & 1) != 0 )
v27 = v246;
else
v27 = (int)(unsigned __int8)v245 >> 1;
std::string::~string((int)&v245);
if ( v27 )
{
v28 = *((_DWORD *)this + 160);
std::string::basic_string(&v245, v28 + 348);
std::string::operator=((unsigned __int8 *)(v28 + 360), (unsigned __int8 *)&v245);
LABEL_32:
std::string::~string((int)&v245);
}
v29 = LevelBrowserLayer::setSearchObject((GJSearchObject **)this, v202);
*(_DWORD *)(GameLevelManager::sharedState((GameLevelManager *)v29) + 948) = *((_DWORD *)v202 + 66);
(*(void (__fastcall **)(LevelListLayer *, int))(*(_DWORD *)this + 536))(this, 1);
v30 = (cocos2d::CCDirector *)(*(int (__fastcall **)(LevelListLayer *, int))(*(_DWORD *)this + 544))(this, 1);
cocos2d::CCDirector::sharedDirector(v30);
cocos2d::CCDirector::getWinSize((cocos2d::CCDirector *)&v223);
v32 = (float *)cocos2d::CCSprite::create((cocos2d::CCSprite *)"GJ_gradientBG.png", v31);
v33 = *(void (__fastcall **)(float *, _DWORD *))(*(_DWORD *)v32 + 148);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v249, 0.0, 0.0);
v33(v32, v249);
(*(void (__fastcall **)(LevelListLayer *, float *, int))(*(_DWORD *)this + 232))(this, v32, -2);
(*(void (__fastcall **)(float *, _DWORD))(*(_DWORD *)v32 + 64))(v32, (float)(v223 + 10.0) / v32[86]);
(*(void (__fastcall **)(float *, _DWORD))(*(_DWORD *)v32 + 72))(v32, (float)(v224 + 10.0) / v32[87]);
v34 = *(void (__fastcall **)(float *, _DWORD *))(*(_DWORD *)v32 + 92);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v249, -5.0, -5.0);
v34(v32, v249);
v35 = *(void (__fastcall **)(float *, _DWORD *))(*(_DWORD *)v32 + 480);
LOWORD(v249[0]) = 26112;
BYTE2(v249[0]) = -1;
v35(v32, v249);
v37 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_sideArt_001.png", v36);
v203 = *(int (__fastcall **)(int, _DWORD *))(*(_DWORD *)v37 + 148);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v249, 0.0, 0.0);
v38 = (cocos2d::CCDirector *)v203(v37, v249);
v204 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v37 + 92);
v39 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v38);
v40 = COERCE_FLOAT(cocos2d::CCDirector::getScreenLeft(v39));
v41 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector((cocos2d::CCDirector *)LODWORD(v40));
v42 = COERCE_FLOAT(cocos2d::CCDirector::getScreenBottom(v41));
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v249, v40 - 1.0, v42 - 1.0);
v204(v37, v249);
(*(void (__fastcall **)(LevelListLayer *, int, int))(*(_DWORD *)this + 232))(this, v37, 1);
v44 = (cocos2d::CCSprite *)cocos2d::CCSprite::createWithSpriteFrameName(
(cocos2d::CCSprite *)"GJ_sideArt_001.png",
v43);
v45 = *(int (__fastcall **)(cocos2d::CCSprite *, _DWORD *))(*(_DWORD *)v44 + 148);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v249, 1.0, 0.0);
v46 = (cocos2d::CCDirector *)v45(v44, v249);
v47 = *(void (__fastcall **)(cocos2d::CCSprite *, _DWORD *))(*(_DWORD *)v44 + 92);
v48 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v46);
v49 = COERCE_FLOAT(cocos2d::CCDirector::getScreenRight(v48));
v50 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector((cocos2d::CCDirector *)LODWORD(v49));
v51 = COERCE_FLOAT(cocos2d::CCDirector::getScreenBottom(v50));
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v249, v49 + 1.0, v51 - 1.0);
v47(v44, v249);
cocos2d::CCSprite::setFlipX(v44, 1);
(*(void (__fastcall **)(LevelListLayer *, cocos2d::CCSprite *, int))(*(_DWORD *)this + 232))(this, v44, 1);
v53 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_arrow_01_001.png", v52);
v229 = 664;
v230 = 1;
v211 = (cocos2d::CCLayer *)CCMenuItemSpriteExtra::create(v53, 0, (int)this, 664, 1);
CCMenuItemSpriteExtra::setSizeMult((int)v211, 1.6);
v54 = cocos2d::CCMenu::create(v211, nullptr);
v55 = *(_DWORD *)this;
*((_DWORD *)this + 156) = v54;
v56 = (cocos2d::CCDirector *)(*(int (__fastcall **)(LevelListLayer *, int, int))(v55 + 232))(this, v54, 1);
v57 = *((_DWORD *)this + 156);
v58 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v57 + 92);
v59 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v56);
v60 = COERCE_FLOAT(cocos2d::CCDirector::getScreenLeft(v59));
v61 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector((cocos2d::CCDirector *)LODWORD(v60));
v62 = COERCE_FLOAT(cocos2d::CCDirector::getScreenTop(v61));
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v249, v60 + 24.0, v62 - 23.0);
v58(v57, v249);
GJLevelList::frameForListDifficulty(&v245, *(const char **)(*((_DWORD *)this + 160) + 292), 2);
if ( (v245 & 1) != 0 )
v64 = v247;
else
v64 = (cocos2d::CCSprite *)((char *)&v245 + 1);
*((_DWORD *)this + 169) = cocos2d::CCSprite::createWithSpriteFrameName(v64, v63);
std::string::~string((int)&v245);
*((_DWORD *)this + 170) = cocos2d::CCSprite::createWithSpriteFrameName(
(cocos2d::CCSprite *)"GJ_featuredCoin_001.png",
v65);
if ( v25 )
{
v66 = (cocos2d::CCDirector *)cocos2d::CCRect::CCRect((cocos2d::CCRect *)v248, 0.0, 0.0, 80.0, 80.0);
v67 = v223;
v68 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v66);
v69 = COERCE_FLOAT(cocos2d::CCDirector::getScreenTop(v68));
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v244, v67 * 0.5, v69 - 30.0);
cocos2d::CCRect::CCRect((cocos2d::CCRect *)v249, (const cocos2d::CCRect *)v248);
v70 = cocos2d::extension::CCScale9Sprite::create("square02b_001.png", v249);
(*(void (__fastcall **)(int, int))(*(_DWORD *)v70 + 456))(v70, 255);
cocos2d::CCSize::CCSize((cocos2d::CCSize *)v249, 365.0, 40.0);
(*(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v70 + 160))(v70, v249);
(*(void (__fastcall **)(LevelListLayer *, int, int))(*(_DWORD *)this + 232))(this, v70, -1);
(*(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v70 + 92))(v70, v244);
v71 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v70 + 480);
LOWORD(v243[0]) = 14336;
BYTE2(v243[0]) = -115;
v71(v70, v243);
v72 = *((_DWORD *)this + 160);
if ( *(int *)(v72 + 280) > 1 || *(_BYTE *)(v72 + 327) )
{
std::string::basic_string(&v245, v72 + 348);
if ( (v245 & 1) != 0 )
v192 = v247;
else
v192 = (cocos2d::CCLabelBMFont *)((char *)&v245 + 1);
v193 = cocos2d::CCLabelBMFont::create(v192, "goldFont.fnt", (const char *)((unsigned __int8)v245 << 31));
std::string::~string((int)&v245);
(*(void (__fastcall **)(LevelListLayer *, int, int))(*(_DWORD *)this + 232))(this, v193, 20);
v109 = (cocos2d::CCDirector *)(*(int (__fastcall **)(int, _DWORD *))(*(_DWORD *)v193 + 92))(v193, v244);
}
else
{
v194 = CCTextInputNode::create(
(CCTextInputNode *)0x43960000,
50.0,
"List Name",
"Thonburi",
(const char *)&dword_18,
"bigFont.fnt",
v201);
v195 = *(_DWORD *)this;
*((_DWORD *)this + 166) = v194;
(*(void (__fastcall **)(LevelListLayer *, int *, int))(v195 + 232))(this, v194, 18);
*(_DWORD *)(*((_DWORD *)this + 166) + 420) = (char *)this + 604;
(*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 166) + 36))(*((_DWORD *)this + 166), 1002);
(*(void (__fastcall **)(_DWORD, _DWORD *))(**((_DWORD **)this + 166) + 92))(*((_DWORD *)this + 166), v244);
*(_DWORD *)(*((_DWORD *)this + 166) + 424) = 25;
*(_BYTE *)(*((_DWORD *)this + 166) + 432) = 1;
std::string::basic_string(&v245, *((_DWORD *)this + 160) + 348);
if ( (v245 & 1) != 0 )
v196 = v246;
else
v196 = (int)(unsigned __int8)v245 >> 1;
std::string::~string((int)&v245);
if ( v196 )
{
v197 = *((_DWORD *)this + 166);
std::string::basic_string(&v245, *((_DWORD *)this + 160) + 348);
CCTextInputNode::setString(v197, (int)&v245);
std::string::~string((int)&v245);
}
LOWORD(v222) = -21896;
BYTE2(v222) = -16;
CCTextInputNode::setLabelPlaceholderColor(*((_DWORD *)this + 166), v222);
v109 = (cocos2d::CCDirector *)CCTextInputNode::setLabelPlaceholderScale(*((_DWORD *)this + 166), 0.7);
}
}
else
{
std::string::basic_string(&v245, (int)a2 + 348);
if ( (v245 & 1) != 0 )
v74 = v247;
else
v74 = (cocos2d::CCLabelBMFont *)((char *)&v245 + 1);
v75 = (cocos2d::CCLabelBMFont *)cocos2d::CCLabelBMFont::create(v74, "bigFont.fnt", v73);
std::string::~string((int)&v245);
v76 = (cocos2d::CCDirector *)(*(int (__fastcall **)(LevelListLayer *, cocos2d::CCLabelBMFont *, int))(*(_DWORD *)this + 232))(
this,
v75,
20);
v77 = v223;
v78 = *(void (__fastcall **)(cocos2d::CCLabelBMFont *, _DWORD *))(*(_DWORD *)v75 + 92);
v79 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v76);
v80 = COERCE_FLOAT(cocos2d::CCDirector::getScreenTop(v79));
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v249, v77 * 0.5, v80 - 20.0);
v78(v75, v249);
cocos2d::CCLabelBMFont::limitLabelWidth(v75, 240.0, 0.8, 0.0);
std::string::basic_string(&v245, (int)a2 + 336);
if ( (v245 & 1) != 0 )
v82 = v247;
else
v82 = (cocos2d::CCLabelBMFont *)((char *)&v245 + 1);
v83 = (cocos2d::CCLabelBMFont *)cocos2d::CCLabelBMFont::create(v82, "goldFont.fnt", v81);
std::string::~string((int)&v245);
cocos2d::CCLabelBMFont::limitLabelWidth(v83, 90.0, 0.8, 0.0);
v84 = (*(int (__fastcall **)(cocos2d::CCLabelBMFont *))(*(_DWORD *)v75 + 96))(v75);
v85 = *(float *)(*(int (__fastcall **)(cocos2d::CCLabelBMFont *))(*(_DWORD *)v75 + 164))(v75);
v86 = (float)(v85 * 0.5)
* COERCE_FLOAT((*(int (__fastcall **)(cocos2d::CCLabelBMFont *))(*(_DWORD *)v75 + 84))(v75));
v87 = *(float *)(*(int (__fastcall **)(cocos2d::CCLabelBMFont *))(*(_DWORD *)v83 + 164))(v83);
v88 = (*(float (__fastcall **)(cocos2d::CCLabelBMFont *))(*(_DWORD *)v83 + 84))(v83);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v249, (float)(v86 + (float)((float)(v87 * 0.5) * v88)) + 10.0, 0.0);
cocos2d::CCPoint::operator+(v244, v84, v249);
v232 = 0;
v231 = LevelListLayer::onViewProfile;
v89 = CCMenuItemSpriteExtra::create((int)v83, 0, (int)this, (int)LevelListLayer::onViewProfile, 0);
(*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 156) + 228))(*((_DWORD *)this + 156), v89);
v205 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v89 + 92);
cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)v249, *((const cocos2d::CCPoint **)this + 156));
v205(v89, v249);
(*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 169) + 80))(*((_DWORD *)this + 169), 1061997773);
(*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 170) + 80))(*((_DWORD *)this + 170), 1061997773);
v90 = *(float *)(*(int (__fastcall **)(_DWORD))(**((_DWORD **)this + 169) + 164))(*((_DWORD *)this + 169));
v91 = v90 * COERCE_FLOAT((*(int (__fastcall **)(_DWORD))(**((_DWORD **)this + 169) + 84))(*((_DWORD *)this + 169)));
v92 = *(float *)(*(int (__fastcall **)(cocos2d::CCLabelBMFont *))(*(_DWORD *)v75 + 164))(v75);
v93 = v92 * COERCE_FLOAT((*(int (__fastcall **)(cocos2d::CCLabelBMFont *))(*(_DWORD *)v75 + 84))(v75));
v94 = *(float *)(*(int (__fastcall **)(cocos2d::CCLabelBMFont *))(*(_DWORD *)v83 + 164))(v83);
v95 = COERCE_FLOAT((*(int (__fastcall **)(cocos2d::CCLabelBMFont *))(*(_DWORD *)v83 + 84))(v83));
v96 = *(float *)(*(int (__fastcall **)(cocos2d::CCLabelBMFont *))(*(_DWORD *)v75 + 164))(v75);
v97 = COERCE_FLOAT((*(int (__fastcall **)(cocos2d::CCLabelBMFont *))(*(_DWORD *)v75 + 84))(v75));
v206 = *(void (__fastcall **)(cocos2d::CCLabelBMFont *, _DWORD *))(*(_DWORD *)v75 + 92);
v98 = -(float)((float)((float)((float)((float)((float)(v93 + (float)(v94 * v95)) + 10.0) - v91) - 10.0)
- (float)(v96 * v97))
* 0.5);
v99 = (*(int (__fastcall **)(cocos2d::CCLabelBMFont *))(*(_DWORD *)v75 + 96))(v75);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v248, v98, 0.0);
cocos2d::CCPoint::operator+(v249, v99, v248);
v206(v75, v249);
v207 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v89 + 92);
v100 = (*(int (__fastcall **)(int))(*(_DWORD *)v89 + 96))(v89);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v248, v98, 0.0);
cocos2d::CCPoint::operator+(v249, v100, v248);
v207(v89, v249);
(*(void (__fastcall **)(LevelListLayer *, _DWORD, int))(*(_DWORD *)this + 232))(this, *((_DWORD *)this + 169), 2);
(*(void (__fastcall **)(LevelListLayer *, _DWORD, int))(*(_DWORD *)this + 232))(this, *((_DWORD *)this + 170), 1);
v101 = *((_DWORD *)this + 169);
v208 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v101 + 92);
v102 = (*(int (__fastcall **)(cocos2d::CCLabelBMFont *))(*(_DWORD *)v75 + 96))(v75);
v103 = *(float *)(*(int (__fastcall **)(cocos2d::CCLabelBMFont *))(*(_DWORD *)v75 + 164))(v75);
v104 = (*(float (__fastcall **)(cocos2d::CCLabelBMFont *))(*(_DWORD *)v75 + 84))(v75);
cocos2d::CCPoint::CCPoint(
(cocos2d::CCPoint *)v248,
(float)((float)((float)-(float)(v104 * v103) * 0.5) - (float)(v91 * 0.5)) - 10.0,
-1.0);
cocos2d::CCPoint::operator+(v249, v102, v248);
v208(v101, v249);
v105 = *((_DWORD *)this + 170);
v106 = *(int (__fastcall **)(int, _DWORD *))(*(_DWORD *)v105 + 92);
v107 = (*(int (__fastcall **)(_DWORD))(**((_DWORD **)this + 169) + 96))(*((_DWORD *)this + 169));
v108 = (*(float (__fastcall **)(_DWORD))(**((_DWORD **)this + 169) + 84))(*((_DWORD *)this + 169));
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v248, 0.0, v108 * -6.0);
cocos2d::CCPoint::operator+(v249, v107, v248);
v109 = (cocos2d::CCDirector *)v106(v105, v249);
}
*((_BYTE *)this + 560) = 1;
v110 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v109);
v111 = COERCE_FLOAT(cocos2d::CCDirector::getScreenRight(v110));
v112 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector((cocos2d::CCDirector *)LODWORD(v111));
v113 = COERCE_FLOAT(cocos2d::CCDirector::getScreenTop(v112));
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v225, v111 - 25.0, v113 - 25.0);
cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)v226, *((const cocos2d::CCPoint **)this + 156));
if ( v25 )
{
v146 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_deleteBtn_001.png", v114);
(*(void (__fastcall **)(int, int))(*(_DWORD *)v146 + 80))(v146, 1061997773);
v242[3] = 0;
v242[2] = LevelListLayer::confirmDelete;
v147 = CCMenuItemSpriteExtra::create(v146, 0, (int)this, (int)LevelListLayer::confirmDelete, 0);
(*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 156) + 228))(*((_DWORD *)this + 156), v147);
v212 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v147 + 92);
cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)v249, *((const cocos2d::CCPoint **)this + 156));
v212(v147, v249);
v148 = (*(int (__fastcall **)(int))(*(_DWORD *)v147 + 96))(v147);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v248, 0.0, -41.0);
cocos2d::CCPoint::operator+(v249, v148, v248);
cocos2d::CCPoint::operator=(v226, v249);
v213 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_updateBtn_001.png", v149);
(*(void (__fastcall **)(int, int))(*(_DWORD *)v213 + 80))(v213, 1061997773);
v221 = v213;
v242[4] = LevelBrowserLayer::onRefresh;
v242[5] = 0;
v150 = CCMenuItemSpriteExtra::create(v213, 0, (int)this, (int)LevelBrowserLayer::onRefresh, 0);
*((_DWORD *)this + 123) = v150;
(*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 156) + 228))(*((_DWORD *)this + 156), v150);
(*(void (__fastcall **)(_DWORD, _BYTE *))(**((_DWORD **)this + 123) + 92))(*((_DWORD *)this + 123), v226);
v151 = (const cocos2d::CCPoint *)(*(int (__fastcall **)(_DWORD))(**((_DWORD **)this + 123) + 96))(*((_DWORD *)this + 123));
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v241, v151);
v153 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_chatBtn_001.png", v152);
(*(void (__fastcall **)(int, int))(*(_DWORD *)v153 + 80))(v153, 1061997773);
v242[7] = 0;
v242[6] = LevelListLayer::onDescription;
v154 = CCMenuItemSpriteExtra::create(v153, 0, (int)this, (int)LevelListLayer::onDescription, 0);
(*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 156) + 228))(*((_DWORD *)this + 156), v154);
v214 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v154 + 92);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v248, 0.0, -41.0);
cocos2d::CCPoint::operator+(v249, v241, v248);
v214(v154, v249);
v155 = (*(int (__fastcall **)(int))(*(_DWORD *)v154 + 96))(v154);
cocos2d::CCPoint::operator=(v241, v155);
v157 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_editModeBtn_001.png", v156);
(*(void (__fastcall **)(int, int))(*(_DWORD *)v157 + 80))(v157, 1061997773);
v242[9] = 0;
v242[8] = LevelListLayer::onToggleEditMode;
v158 = CCMenuItemSpriteExtra::create(v157, 0, (int)this, (int)LevelListLayer::onToggleEditMode, 0);
(*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 156) + 228))(*((_DWORD *)this + 156), v158);
v215 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v158 + 92);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v248, 0.0, -41.0);
cocos2d::CCPoint::operator+(v249, v241, v248);
v215(v158, v249);
v159 = (*(int (__fastcall **)(int))(*(_DWORD *)v158 + 96))(v158);
cocos2d::CCPoint::operator=(v241, v159);
v161 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_plainBtn_001.png", v160);
(*(void (__fastcall **)(int, _DWORD, int))(*(_DWORD *)v161 + 232))(v161, *((_DWORD *)this + 169), 3);
(*(void (__fastcall **)(int, _DWORD, int))(*(_DWORD *)v161 + 232))(v161, *((_DWORD *)this + 170), 2);
v219 = *((_DWORD *)this + 169);
v216 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v219 + 92);
v162 = *(float *)(*(int (__fastcall **)(int))(*(_DWORD *)v161 + 164))(v161);
v163 = (*(int (__fastcall **)(int))(*(_DWORD *)v161 + 164))(v161);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v249, v162 * 0.5, *(float *)(v163 + 4) * 0.5);
v216(v219, v249);
v220 = *((_DWORD *)this + 170);
v217 = *(void (__fastcall **)(int, int))(*(_DWORD *)v220 + 92);
v164 = (*(int (__fastcall **)(_DWORD))(**((_DWORD **)this + 169) + 96))(*((_DWORD *)this + 169));
v217(v220, v164);
(*(void (__fastcall **)(int, int))(*(_DWORD *)v161 + 80))(v161, 1061997773);
v243[1] = 0;
v243[0] = LevelListLayer::onSelectIcon;
v165 = CCMenuItemSpriteExtra::create(v161, 0, (int)this, (int)LevelListLayer::onSelectIcon, 0);
(*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 156) + 228))(*((_DWORD *)this + 156), v165);
v218 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v165 + 92);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v248, 0.0, -41.0);
cocos2d::CCPoint::operator+(v249, v241, v248);
v218(v165, v249);
v166 = (*(int (__fastcall **)(int))(*(_DWORD *)v165 + 96))(v165);
cocos2d::CCPoint::operator=(v241, v166);
v168 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_duplicateBtn_001.png", v167);
(*(void (__fastcall **)(int, int))(*(_DWORD *)v168 + 80))(v168, 1061997773);
v244[0] = LevelListLayer::confirmClone;
v244[1] = 0;
v169 = CCMenuItemSpriteExtra::create(v168, 0, (int)this, (int)LevelListLayer::confirmClone, 0);
(*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 156) + 228))(*((_DWORD *)this + 156), v169);
v209 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v169 + 92);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v248, 0.0, -41.0);
cocos2d::CCPoint::operator+(v249, v241, v248);
v209(v169, v249);
v170 = (*(int (__fastcall **)(int))(*(_DWORD *)v169 + 96))(v169);
cocos2d::CCPoint::operator=(v241, v170);
v172 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_shareBtn_001.png", v171);
v173 = *(void (__fastcall **)(int, _DWORD))(*(_DWORD *)v172 + 80);
v174 = *(float *)(*(int (__fastcall **)(int))(*(_DWORD *)v221 + 164))(v221);
v175 = v174 * COERCE_FLOAT((*(int (__fastcall **)(int))(*(_DWORD *)v221 + 84))(v221));
v176 = (float *)(*(int (__fastcall **)(int))(*(_DWORD *)v172 + 164))(v172);
v173(v172, v175 / *v176);
v248[1] = 0;
v248[0] = LevelListLayer::onShare;
v177 = CCMenuItemSpriteExtra::create(v172, 0, (int)this, (int)LevelListLayer::onShare, 0);
(*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 156) + 228))(*((_DWORD *)this + 156), v177);
v178 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v177 + 92);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v242, 0.0, -41.0);
cocos2d::CCPoint::operator+(v249, v241, v242);
v178(v177, v249);
v179 = (*(int (__fastcall **)(int))(*(_DWORD *)v177 + 96))(v177);
v180 = v241;
}
else
{
v115 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_updateBtn_001.png", v114);
(*(void (__fastcall **)(int, int))(*(_DWORD *)v115 + 80))(v115, 1061997773);
v234 = 0;
v233 = LevelListLayer::onRefreshLevelList;
v116 = CCMenuItemSpriteExtra::create(v115, 0, (int)this, (int)LevelListLayer::onRefreshLevelList, 0);
*((_DWORD *)this + 123) = v116;
(*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 156) + 228))(*((_DWORD *)this + 156), v116);
v117 = *((_DWORD *)this + 123);
v118 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v117 + 92);
cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)v249, *((const cocos2d::CCPoint **)this + 156));
v118(v117, v249);
v119 = (*(int (__fastcall **)(_DWORD))(**((_DWORD **)this + 123) + 96))(*((_DWORD *)this + 123));
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v248, 0.0, -41.0);
cocos2d::CCPoint::operator+(v249, v119, v248);
cocos2d::CCPoint::operator=(v226, v249);
v121 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_infoBtn_001.png", v120);
(*(void (__fastcall **)(int, int))(*(_DWORD *)v121 + 80))(v121, 1061997773);
v236 = 0;
v235 = LevelListLayer::onInfo;
v122 = CCMenuItemSpriteExtra::create(v121, 0, (int)this, (int)LevelListLayer::onInfo, 0);
(*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 156) + 228))(*((_DWORD *)this + 156), v122);
(*(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v122 + 92))(v122, v226);
v123 = (const cocos2d::CCPoint *)(*(int (__fastcall **)(int))(*(_DWORD *)v122 + 96))(v122);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v244, v123);
v125 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_like2Btn_001.png", v124);
(*(void (__fastcall **)(int, int))(*(_DWORD *)v125 + 80))(v125, 1061997773);
v238 = 0;
v237 = LevelListLayer::onLike;
v126 = CCMenuItemSpriteExtra::create(v125, 0, (int)this, (int)LevelListLayer::onLike, 0);
*((_DWORD *)this + 164) = v126;
(*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 156) + 228))(*((_DWORD *)this + 156), v126);
v127 = *((_DWORD *)this + 164);
v128 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v127 + 92);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v248, 0.0, -41.0);
cocos2d::CCPoint::operator+(v249, v244, v248);
v128(v127, v249);
v129 = (*(int (__fastcall **)(_DWORD))(**((_DWORD **)this + 164) + 96))(*((_DWORD *)this + 164));
cocos2d::CCPoint::operator=(v244, v129);
v131 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_duplicateBtn_001.png", v130);
(*(void (__fastcall **)(int, int))(*(_DWORD *)v131 + 80))(v131, 1061997773);
v239 = LevelListLayer::confirmClone;
v240 = 0;
v132 = CCMenuItemSpriteExtra::create(v131, 0, (int)this, (int)LevelListLayer::confirmClone, 0);
(*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 156) + 228))(*((_DWORD *)this + 156), v132);
v133 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v132 + 92);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v248, 0.0, -41.0);
cocos2d::CCPoint::operator+(v249, v244, v248);
v133(v132, v249);
v134 = (*(int (__fastcall **)(int))(*(_DWORD *)v132 + 96))(v132);
cocos2d::CCPoint::operator=(v244, v134);
if ( *(_BYTE *)(*((_DWORD *)this + 160) + 328) )
v136 = "gj_heartOn_001.png";
else
v136 = "gj_heartOff_001.png";
v137 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)v136, v135);
v241[1] = 0;
v241[0] = LevelListLayer::onFavorite;
v138 = CCMenuItemSpriteExtra::create(v137, 0, (int)this, (int)LevelListLayer::onFavorite, 0);
CCMenuItemSpriteExtra::setSizeMult(v138, 1.1);
(*(void (__fastcall **)(_DWORD, int, int))(**((_DWORD **)this + 156) + 232))(*((_DWORD *)this + 156), v138, 100);
v139 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v138 + 92);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v248, 0.0, -41.0);
cocos2d::CCPoint::operator+(v249, v244, v248);
v139(v138, v249);
v140 = (*(int (__fastcall **)(int))(*(_DWORD *)v138 + 96))(v138);
v141 = (GJAccountManager *)cocos2d::CCPoint::operator=(v244, v140);
v142 = *(_DWORD *)(*((_DWORD *)this + 160) + 296);
v143 = (GameManager *)GJAccountManager::sharedState(v141);
if ( v142 != *((_DWORD *)v143 + 70) - *((_DWORD *)v143 + 71) )
{
v145 = GameManager::sharedState(v143);
if ( *(_DWORD *)(v145 + 820) - *(_DWORD *)(v145 + 824) <= 1 )
goto LABEL_56;
}
v198 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_deleteServerBtn_001.png", v144);
(*(void (__fastcall **)(int, int))(*(_DWORD *)v198 + 80))(v198, 1061997773);
v242[1] = 0;
v242[0] = LevelListLayer::confirmOwnerDelete;
v199 = CCMenuItemSpriteExtra::create(v198, 0, (int)this, (int)LevelListLayer::confirmOwnerDelete, 0);
(*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 156) + 228))(*((_DWORD *)this + 156), v199);
v200 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v199 + 92);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v248, 0.0, -41.0);
cocos2d::CCPoint::operator+(v249, v244, v248);
v200(v199, v249);
v179 = (*(int (__fastcall **)(int))(*(_DWORD *)v199 + 96))(v199);
v180 = v244;
}
cocos2d::CCPoint::operator=(v180, v179);
LABEL_56:
v181 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_infoIcon_001.png", v144);
v249[1] = 0;
v249[0] = LevelListLayer::onListInfo;
v182 = CCMenuItemSpriteExtra::create(v181, 0, (int)this, (int)LevelListLayer::onListInfo, 0);
CCMenuItemSpriteExtra::setSizeMult(v182, 1.2);
(*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 156) + 228))(*((_DWORD *)this + 156), v182);
v183 = *((const cocos2d::CCPoint **)this + 156);
v184 = *(int (__fastcall **)(int, _BYTE *))(*(_DWORD *)v182 + 92);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v227, 30.0, 30.0);
cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)v228, v183);
v185 = (LoadingCircle *)v184(v182, v228);
v186 = LoadingCircle::create(v185);
*((_DWORD *)this + 135) = v186;
*((_DWORD *)v186 + 111) = this;
*(_BYTE *)(*((_DWORD *)this + 135) + 448) = 0;
cocos2d::CCObject::retain(*((cocos2d::CCObject **)this + 135));
LoadingCircle::show(*((cocos2d::CCNode ***)this + 135));
(*(void (__fastcall **)(_DWORD, _DWORD))(**((_DWORD **)this + 135) + 172))(*((_DWORD *)this + 135), 0);
v245 = 0;
v246 = 0;
v247 = nullptr;
std::string::__init(&v245, "No Internet connection!", 0x1Fu);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v228, 0.5, 1.0);
*((_DWORD *)this + 117) = TextArea::create(
(int)&v245,
"bigFont.fnt",
1065353216,
1142292480,
(const cocos2d::CCPoint *)v228,
1101004800,
0,
0);
std::string::~string((int)&v245);
v187 = *((_DWORD *)this + 117);
v188 = *(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v187 + 92);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v228, v223 * 0.5, (float)(v224 * 0.5) + 10.0);
v188(v187, v228);
(*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 117) + 80))(*((_DWORD *)this + 117), 1058642330);
(*(void (__fastcall **)(LevelListLayer *, _DWORD, int))(*(_DWORD *)this + 232))(this, *((_DWORD *)this + 117), 2);
v189 = (PlatformToolbox *)(*(int (__fastcall **)(_DWORD, _DWORD))(**((_DWORD **)this + 117) + 172))(
*((_DWORD *)this + 117),
0);
if ( PlatformToolbox::isControllerConnected(v189) )
GameToolbox::addBackButton(this, v211, v190);
LevelListLayer::updateSideButtons(this);
LevelListLayer::updateStatsArt(this);
if ( v25 || *(_BYTE *)(*((_DWORD *)this + 160) + 330) )
{
*((_BYTE *)this + 580) = 1;
LevelBrowserLayer::setupLevelBrowser(this, nullptr);
}
else
{
*((_DWORD *)v202 + 83) = 1;
*(_BYTE *)(*((_DWORD *)this + 160) + 330) = 1;
LevelBrowserLayer::loadPage((GJSearchObject **)this, v202);
}
return v210;
}