//
// LevelListLayer::init from 0xbae85c to 0xbb0578 (7452 bytes)
//
// 2 xrefs:
// > LevelListLayer::create @ 0xbb0760
// > ??> @ 0x7fcd8
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 13:02:55 +0000
//
__int64 __fastcall LevelListLayer::init(LevelListLayer *this, GJLevelList *a2)
{
GameLevelManager *v4; // x0
unsigned int v5; // w26
__int64 v7; // x0
size_t v8; // x1
size_t v9; // x3
GameManager *v10; // x0
cocos2d::CCArray *v11; // x0
__int64 v12; // x2
int v13; // w1
cocos2d::CCObject *v14; // x0
__int64 v15; // x27
char v16; // w0
char *v17; // x0
size_t v18; // x1
cocos2d::CCSprite *v19; // x1
size_t v20; // x2
__int64 v21; // x0
size_t v22; // x1
size_t v23; // x22
__int64 v24; // x22
size_t v25; // x1
cocos2d::CCSprite *v26; // x1
size_t v27; // x2
GameLevelManager *v28; // x0
cocos2d::CCDirector *v29; // x0
cocos2d::CCDirector *v30; // x0
const char *v31; // x1
float *v32; // x22
void (__fastcall *v33)(float *, __int64 *); // x28
void (__fastcall *v34)(float *, __int64 *); // x23
void (__fastcall *v35)(float *, __int64 *); // x2
const char *v36; // x1
cocos2d::CCDirector **v37; // x22
void (__fastcall *v38)(cocos2d::CCDirector **, __int64 *); // x28
void (__fastcall *v39)(cocos2d::CCDirector **, __int64 *); // x28
cocos2d::CCDirector *v40; // x0
cocos2d::CCDirector *ScreenLeft; // x0
float v42; // s0
float v43; // s9
cocos2d::CCDirector *v44; // x0
float v45; // s0
const char *v46; // x1
cocos2d::CCDirector **v47; // x22
void (__fastcall *v48)(cocos2d::CCDirector **, __int64 *); // x23
void (__fastcall *v49)(cocos2d::CCDirector **, __int64 *); // x23
cocos2d::CCDirector *v50; // x0
cocos2d::CCDirector *ScreenRight; // x0
float v52; // s0
float v53; // s9
cocos2d::CCDirector *v54; // x0
float v55; // s0
const char *v56; // x1
__int64 v57; // x0
__int64 v58; // x0
cocos2d::CCDirector **v59; // x22
void (__fastcall *v60)(cocos2d::CCDirector **, __int64 *); // x23
cocos2d::CCDirector *v61; // x0
cocos2d::CCDirector *v62; // x0
float v63; // s0
float v64; // s8
cocos2d::CCDirector *v65; // x0
float v66; // s0
cocos2d::CCSprite *v67; // x0
__int64 v68; // x0
const char *v69; // x1
char v70; // w0
char *v71; // x0
size_t v72; // x1
char **v73; // x2
cocos2d::CCSprite *v74; // x0
cocos2d::CCDirector **v75; // x22
char *v76; // x21
float v77; // s8
void (__fastcall *v78)(cocos2d::CCDirector **, __int64 *); // x23
cocos2d::CCDirector *v79; // x0
float v80; // s0
char v81; // w0
char **v82; // x2
size_t v83; // x1
cocos2d::CCSprite *v84; // x0
cocos2d::CCLabelBMFont *v85; // x28
float v86; // s8
float v87; // s13
float v88; // s10
float v89; // s0
float v90; // s10
float v91; // s10
float v92; // s8
float v93; // s15
float v94; // s14
float v95; // s13
float v96; // s0
float v97; // s8
float v98; // s8
float v99; // s8
float v100; // s0
__int64 v101; // x22
float v102; // s0
cocos2d::CCDirector *v103; // x0
cocos2d::CCDirector *v104; // x0
float v105; // s0
float v106; // s8
cocos2d::CCDirector *v107; // x0
float v108; // s0
const char *v109; // x1
__int64 v110; // x0
void (__fastcall *v111)(__int64, __int64 *); // x22
__int64 v112; // x22
const char *v113; // x1
__int64 v114; // x22
__int64 v115; // x22
const cocos2d::CCPoint *v116; // x0
const char *v117; // x1
__int64 v118; // x22
__int64 v119; // x0
__int64 v120; // x22
__int64 v121; // x0
const char *v122; // x1
__int64 v123; // x22
__int64 v124; // x22
__int64 v125; // x0
const char *v126; // x1
char *v127; // x0
__int64 v128; // x0
__int64 v129; // x22
__int64 v130; // x0
GJAccountManager *v131; // x0
__int64 v132; // x0
const char *v133; // x1
GameManager *v134; // x0
__int64 v135; // x0
__int64 v136; // x22
__int64 v137; // x22
__int64 v138; // x0
__int64 v139; // x0
__int64 v140; // x22
__int64 (__fastcall *v141)(__int64, __int64 *); // x23
LoadingCircle *v142; // x0
__int64 v143; // x0
__int64 v144; // x21
void (__fastcall *v145)(__int64, __int64 *); // x22
PlatformToolbox *v146; // x0
cocos2d::CCMenuItem *v147; // x2
char *v148; // x27
char *v149; // x0
int v150; // w23
__int64 v151; // x2
size_t v152; // x2
__int64 *v153; // x0
cocos2d::CCDirector *v154; // x0
float v155; // s8
cocos2d::CCDirector *v156; // x0
float v157; // s0
__int64 v158; // x28
void (__fastcall *v159)(__int64, __int64 *); // x2
const char *v160; // x4
__int64 v161; // x0
char **v162; // x2
size_t v163; // x1
cocos2d::CCSprite *v164; // x0
__int64 v165; // x28
cocos2d::CCDirector *v166; // x0
cocos2d::CCDirector *v167; // x0
float v168; // s0
float v169; // s8
cocos2d::CCDirector *v170; // x0
float v171; // s0
const char *v172; // x1
__int64 v173; // x28
__int64 v174; // x28
__int64 v175; // x28
const char *v176; // x1
__int64 v177; // x28
__int64 v178; // x0
const cocos2d::CCPoint *v179; // x0
const char *v180; // x1
__int64 v181; // x22
__int64 v182; // x22
__int64 v183; // x0
const char *v184; // x1
__int64 v185; // x22
__int64 v186; // x22
__int64 v187; // x0
const char *v188; // x1
__int64 v189; // x22
__int64 v190; // x0
__int64 v191; // x0
__int64 v192; // x22
__int64 v193; // x0
const char *v194; // x1
__int64 v195; // x22
__int64 v196; // x22
__int64 v197; // x0
const char *v198; // x1
__int64 v199; // x22
float v200; // s9
float v201; // s9
float *v202; // x0
void (__fastcall *v203)(__int64, __int64 *); // x28
__int64 v204; // x0
__int64 v205; // x0
size_t v206; // x1
size_t v207; // x28
__int64 v208; // x0
_QWORD *v209; // x28
size_t v210; // x1
unsigned __int64 v211; // x0
unsigned __int64 v212; // x0
unsigned __int8 v213; // w2
cocos2d::CCLayer *v214; // [xsp+A0h] [xbp+A0h]
__int64 v215; // [xsp+B8h] [xbp+B8h]
__int64 v216; // [xsp+B8h] [xbp+B8h]
__int64 v217; // [xsp+B8h] [xbp+B8h]
__int64 v218; // [xsp+C0h] [xbp+C0h]
__int64 v219; // [xsp+C0h] [xbp+C0h]
void (__fastcall *v220)(__int64, __int64 *); // [xsp+C0h] [xbp+C0h]
__int64 v221; // [xsp+C0h] [xbp+C0h]
__int64 v222; // [xsp+C0h] [xbp+C0h]
__int64 v223; // [xsp+C0h] [xbp+C0h]
__int64 v224; // [xsp+C0h] [xbp+C0h]
__int64 v225; // [xsp+C0h] [xbp+C0h]
__int64 v226; // [xsp+C0h] [xbp+C0h]
void (__fastcall *v227)(__int64, __int64 *); // [xsp+C0h] [xbp+C0h]
void (__fastcall *v228)(__int64, __int64 *); // [xsp+C0h] [xbp+C0h]
void (__fastcall *v229)(__int64, __int64 *); // [xsp+C0h] [xbp+C0h]
void (__fastcall *v230)(__int64, __int64 *); // [xsp+C0h] [xbp+C0h]
cocos2d::CCNode *v231; // [xsp+C0h] [xbp+C0h]
void (__fastcall *v232)(__int64, __int64 *); // [xsp+C0h] [xbp+C0h]
void (__fastcall *v233)(__int64, __int64 *); // [xsp+C0h] [xbp+C0h]
void (__fastcall *v234)(__int64, __int64 *); // [xsp+C0h] [xbp+C0h]
void (__fastcall *v235)(__int64, __int64); // [xsp+C0h] [xbp+C0h]
void (__fastcall *v236)(__int64, __int64 *); // [xsp+C0h] [xbp+C0h]
void (__fastcall *v237)(__int64, __int64 *); // [xsp+C0h] [xbp+C0h]
void (__fastcall *v238)(__int64, float); // [xsp+C0h] [xbp+C0h]
__int64 v239; // [xsp+D0h] [xbp+D0h]
void (__fastcall *v240)(cocos2d::CCDirector **, __int64 *); // [xsp+D0h] [xbp+D0h]
void (__fastcall *v241)(__int64, __int64 *); // [xsp+D0h] [xbp+D0h]
void (__fastcall *v242)(__int64, __int64 *); // [xsp+D0h] [xbp+D0h]
void (__fastcall *v243)(__int64, __int64 *); // [xsp+D0h] [xbp+D0h]
void (__fastcall *v244)(__int64, __int64 *); // [xsp+D0h] [xbp+D0h]
__int64 v245; // [xsp+D0h] [xbp+D0h]
_BOOL4 v246; // [xsp+DCh] [xbp+DCh]
int v247; // [xsp+E8h] [xbp+E8h]
__int64 v248; // [xsp+F0h] [xbp+F0h] BYREF
char v249[8]; // [xsp+F8h] [xbp+F8h] BYREF
__int64 v250; // [xsp+100h] [xbp+100h] BYREF
__int64 v251; // [xsp+108h] [xbp+108h] BYREF
_BYTE v252[16]; // [xsp+110h] [xbp+110h] BYREF
__int64 v253[2]; // [xsp+120h] [xbp+120h] BYREF
char *v254; // [xsp+130h] [xbp+130h] BYREF
size_t v255; // [xsp+138h] [xbp+138h]
cocos2d::CCSprite *v256; // [xsp+140h] [xbp+140h]
LODWORD(v253[0]) = 0;
v4 = (GameLevelManager *)(unsigned __int8)cocos2d::CCLayerColor::initWithColor(this, v253);
v5 = (unsigned __int8)v4;
if ( !(_BYTE)v4 )
return v5;
*((_DWORD *)this + 242) = 0;
v7 = GameLevelManager::sharedState(v4);
v254 = nullptr;
v255 = 0;
v256 = nullptr;
if ( (*(_BYTE *)(v7 + 1160) & 1) != 0 )
{
std::string::__init((__int64 *)&v254, *(void **)(v7 + 1176), *(_QWORD *)(v7 + 1168));
}
else
{
v8 = *(_QWORD *)(v7 + 1168);
v254 = *(char **)(v7 + 1160);
v255 = v8;
v256 = *(cocos2d::CCSprite **)(v7 + 1176);
}
if ( (*((_BYTE *)this + 888) & 1) != 0 )
{
**((_BYTE **)this + 113) = 0;
*((_QWORD *)this + 112) = 0;
if ( (*((_BYTE *)this + 888) & 1) != 0 )
{
v148 = *((char **)this + 113);
v149 = (char *)this + 889;
v150 = 1;
LABEL_62:
v151 = *((_QWORD *)this + 112);
LABEL_63:
v152 = v151 + 1;
if ( v152 )
memcpy(v149, v148, v152);
if ( v150 )
operator delete(v148);
goto LABEL_6;
}
v211 = *((_BYTE *)this + 888) >> 1;
if ( v211 <= 0x16 )
goto LABEL_6;
v212 = (v211 + 16) & 0xFFFFFFFFFFFFFFF0LL;
if ( v212 == 23 )
goto LABEL_6;
if ( v212 - 1 > 0x16 )
{
v149 = (char *)operator new(v212);
v213 = *((_BYTE *)this + 888);
v150 = v213 & 1;
if ( (v213 & 1) == 0 )
{
LABEL_111:
v148 = (char *)this + 889;
v151 = v213 >> 1;
goto LABEL_63;
}
}
else
{
v149 = (char *)operator new(v212);
v213 = *((_BYTE *)this + 888);
v150 = v213 & 1;
if ( (v213 & 1) == 0 )
goto LABEL_111;
}
v148 = *((char **)this + 113);
goto LABEL_62;
}
LABEL_6:
*((_QWORD *)this + 113) = v256;
v9 = v255;
*((_QWORD *)this + 111) = v254;
*((_QWORD *)this + 112) = v9;
*((_QWORD *)this + 114) = a2;
v10 = (GameManager *)cocos2d::CCObject::retain(a2);
v11 = (cocos2d::CCArray *)GameManager::sharedState(v10);
v12 = *((_QWORD *)this + 114);
v13 = *(_DWORD *)(v12 + 344);
if ( v13 <= 0 )
v13 = *(_DWORD *)(v12 + 548);
*((_DWORD *)v11 + 242) = v13;
v14 = (cocos2d::CCObject *)cocos2d::CCArray::create(v11);
*((_QWORD *)this + 122) = v14;
cocos2d::CCObject::retain(v14);
v15 = GJSearchObject::create(25);
v246 = *(_DWORD *)(*((_QWORD *)this + 114) + 544LL) == 2;
if ( *(_DWORD *)(*((_QWORD *)this + 114) + 544LL) != 2 )
{
GameToolbox::intToString((unsigned __int64 *)&v254, (GameToolbox *)*((unsigned int *)a2 + 86));
v153 = (__int64 *)(v15 + 320);
if ( (char **)(v15 + 320) != &v254 )
{
if ( ((unsigned __int8)v254 & 1) != 0 )
std::string::assign(v153, v256, v255);
else
std::string::assign(v153, (char *)&v254 + 1, (unsigned __int8)v254 >> 1);
}
goto LABEL_28;
}
*((_DWORD *)this + 192) = 200;
*((float *)this + 193) = -9.0;
*(_DWORD *)(v15 + 316) = 26;
*(_DWORD *)(v15 + 420) = 29;
v254 = nullptr;
v16 = *((_BYTE *)a2 + 480);
v255 = 0;
v256 = nullptr;
if ( (v16 & 1) != 0 )
{
std::string::__init((__int64 *)&v254, *((void **)a2 + 62), *((_QWORD *)a2 + 61));
}
else
{
v17 = *((char **)a2 + 60);
v18 = *((_QWORD *)a2 + 61);
v256 = *((cocos2d::CCSprite **)a2 + 62);
v254 = v17;
v255 = v18;
}
if ( (char **)(v15 + 320) != &v254 )
{
if ( ((unsigned __int8)v254 & 1) != 0 )
{
v19 = v256;
v20 = v255;
}
else
{
v20 = (unsigned __int8)v254 >> 1;
v19 = (cocos2d::CCSprite *)((char *)&v254 + 1);
}
std::string::assign((__int64 *)(v15 + 320), v19, v20);
}
if ( ((unsigned __int8)v254 & 1) != 0 )
operator delete(v256);
v21 = *((_QWORD *)this + 114);
v254 = nullptr;
v255 = 0;
v256 = nullptr;
if ( (*(_BYTE *)(v21 + 432) & 1) != 0 )
{
std::string::__init((__int64 *)&v254, *(void **)(v21 + 448), *(_QWORD *)(v21 + 440));
}
else
{
v22 = *(_QWORD *)(v21 + 440);
v254 = *(char **)(v21 + 432);
v255 = v22;
v256 = *(cocos2d::CCSprite **)(v21 + 448);
}
v23 = (unsigned __int8)v254 >> 1;
if ( ((unsigned __int8)v254 & 1) != 0 )
{
v23 = v255;
operator delete(v256);
}
if ( v23 )
{
v24 = *((_QWORD *)this + 114);
v254 = nullptr;
v255 = 0;
v256 = nullptr;
if ( (*(_BYTE *)(v24 + 432) & 1) != 0 )
{
std::string::__init((__int64 *)&v254, *(void **)(v24 + 448), *(_QWORD *)(v24 + 440));
}
else
{
v25 = *(_QWORD *)(v24 + 440);
v254 = *(char **)(v24 + 432);
v255 = v25;
v256 = *(cocos2d::CCSprite **)(v24 + 448);
}
if ( (char **)(v24 + 456) != &v254 )
{
if ( ((unsigned __int8)v254 & 1) != 0 )
{
v26 = v256;
v27 = v255;
}
else
{
v27 = (unsigned __int8)v254 >> 1;
v26 = (cocos2d::CCSprite *)((char *)&v254 + 1);
}
std::string::assign((__int64 *)(v24 + 456), v26, v27);
}
LABEL_28:
if ( ((unsigned __int8)v254 & 1) != 0 )
operator delete(v256);
}
v28 = (GameLevelManager *)LevelBrowserLayer::setSearchObject((__int64)this, (GJSearchObject *)v15);
*(_DWORD *)(GameLevelManager::sharedState(v28) + 1480) = *(_DWORD *)(v15 + 316);
(*(void (__fastcall **)(LevelListLayer *, __int64))(*(_QWORD *)this + 1072LL))(this, 1);
v29 = (cocos2d::CCDirector *)(*(__int64 (__fastcall **)(LevelListLayer *, __int64))(*(_QWORD *)this + 1088LL))(
this,
1);
v30 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v29);
cocos2d::CCDirector::getWinSize(&v248, v30);
v32 = (float *)cocos2d::CCSprite::create((cocos2d::CCSprite *)"GJ_gradientBG.png", v31);
v33 = *(void (__fastcall **)(float *, __int64 *))(*(_QWORD *)v32 + 296LL);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v253, 0.0, 0.0);
v33(v32, v253);
(*(void (__fastcall **)(LevelListLayer *, float *, __int64))(*(_QWORD *)this + 464LL))(this, v32, 4294967294LL);
(*(void (__fastcall **)(float *, float))(*(_QWORD *)v32 + 128LL))(v32, (float)(*(float *)&v248 + 10.0) / v32[108]);
(*(void (__fastcall **)(float *, float))(*(_QWORD *)v32 + 144LL))(
v32,
(float)(*((float *)&v248 + 1) + 10.0) / v32[109]);
v34 = *(void (__fastcall **)(float *, __int64 *))(*(_QWORD *)v32 + 184LL);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v253, -5.0, -5.0);
v34(v32, v253);
v35 = *(void (__fastcall **)(float *, __int64 *))(*(_QWORD *)v32 + 960LL);
LOWORD(v253[0]) = 26112;
BYTE2(v253[0]) = -1;
v35(v32, v253);
v37 = (cocos2d::CCDirector **)cocos2d::CCSprite::createWithSpriteFrameName(
(cocos2d::CCSprite *)"GJ_sideArt_001.png",
v36);
v38 = *((void (__fastcall **)(cocos2d::CCDirector **, __int64 *))*v37 + 37);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v253, 0.0, 0.0);
v38(v37, v253);
v39 = *((void (__fastcall **)(cocos2d::CCDirector **, __int64 *))*v37 + 23);
v40 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(*v37);
ScreenLeft = (cocos2d::CCDirector *)cocos2d::CCDirector::getScreenLeft(v40);
v43 = v42;
v44 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(ScreenLeft);
cocos2d::CCDirector::getScreenBottom(v44);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v253, v43 - 1.0, v45 - 1.0);
v39(v37, v253);
(*(void (__fastcall **)(LevelListLayer *, cocos2d::CCDirector **, __int64))(*(_QWORD *)this + 464LL))(this, v37, 1);
v47 = (cocos2d::CCDirector **)cocos2d::CCSprite::createWithSpriteFrameName(
(cocos2d::CCSprite *)"GJ_sideArt_001.png",
v46);
v48 = *((void (__fastcall **)(cocos2d::CCDirector **, __int64 *))*v47 + 37);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v253, 1.0, 0.0);
v48(v47, v253);
v49 = *((void (__fastcall **)(cocos2d::CCDirector **, __int64 *))*v47 + 23);
v50 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(*v47);
ScreenRight = (cocos2d::CCDirector *)cocos2d::CCDirector::getScreenRight(v50);
v53 = v52;
v54 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(ScreenRight);
cocos2d::CCDirector::getScreenBottom(v54);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v253, v53 + 1.0, v55 - 1.0);
v49(v47, v253);
cocos2d::CCSprite::setFlipX((cocos2d::CCSprite *)v47, 1);
(*(void (__fastcall **)(LevelListLayer *, cocos2d::CCDirector **, __int64))(*(_QWORD *)this + 464LL))(this, v47, 1);
v57 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_arrow_01_001.png", v56);
v214 = (cocos2d::CCLayer *)CCMenuItemSpriteExtra::create(v57, 0, (__int64)this, 1328, 1);
CCMenuItemSpriteExtra::setSizeMult((__int64)v214, 1.6);
v58 = cocos2d::CCMenu::create(v214, nullptr);
*((_QWORD *)this + 110) = v58;
(*(void (__fastcall **)(LevelListLayer *, __int64, __int64))(*(_QWORD *)this + 464LL))(this, v58, 1);
v59 = *((cocos2d::CCDirector ***)this + 110);
v60 = *((void (__fastcall **)(cocos2d::CCDirector **, __int64 *))*v59 + 23);
v61 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(*v59);
v62 = (cocos2d::CCDirector *)cocos2d::CCDirector::getScreenLeft(v61);
v64 = v63;
v65 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v62);
cocos2d::CCDirector::getScreenTop(v65);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v253, v64 + 24.0, v66 - 23.0);
v60(v59, v253);
GJLevelList::frameForListDifficulty(*(_DWORD *)(*((_QWORD *)this + 114) + 360LL), 2, (__int64 *)&v254);
v67 = (cocos2d::CCSprite *)((char *)&v254 + 1);
if ( ((unsigned __int8)v254 & 1) != 0 )
v67 = v256;
v68 = cocos2d::CCSprite::createWithSpriteFrameName(v67, (const char *)(unsigned __int8)v254);
v69 = (const char *)(unsigned __int8)v254;
*((_QWORD *)this + 123) = v68;
if ( ((unsigned __int8)v69 & 1) != 0 )
operator delete(v256);
*((_QWORD *)this + 124) = cocos2d::CCSprite::createWithSpriteFrameName(
(cocos2d::CCSprite *)"GJ_featuredCoin_001.png",
v69);
if ( v246 )
{
v154 = (cocos2d::CCDirector *)cocos2d::CCRect::CCRect((cocos2d::CCRect *)v252, 0.0, 0.0, 80.0, 80.0);
v155 = *(float *)&v248 * 0.5;
v156 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v154);
cocos2d::CCDirector::getScreenTop(v156);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v251, v155, v157 - 30.0);
cocos2d::CCRect::CCRect((cocos2d::CCRect *)v253, (const cocos2d::CCRect *)v252);
v158 = cocos2d::extension::CCScale9Sprite::create("square02b_001.png", v253);
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v158 + 912LL))(v158, 0xFFFFFFFFLL);
cocos2d::CCSize::CCSize((cocos2d::CCSize *)v253, 365.0, 40.0);
(*(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v158 + 320LL))(v158, v253);
(*(void (__fastcall **)(LevelListLayer *, __int64, __int64))(*(_QWORD *)this + 464LL))(this, v158, 0xFFFFFFFFLL);
(*(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v158 + 184LL))(v158, &v251);
v159 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v158 + 960LL);
LOWORD(v250) = 14336;
BYTE2(v250) = -115;
v159(v158, &v250);
v161 = *((_QWORD *)this + 114);
if ( *(int *)(v161 + 348) > 1 || *(_BYTE *)(v161 + 395) )
{
v254 = nullptr;
v162 = (char **)(v161 + 432);
v255 = 0;
v256 = nullptr;
if ( (*(_BYTE *)(v161 + 432) & 1) != 0 )
{
std::string::__init((__int64 *)&v254, *(void **)(v161 + 448), *(_QWORD *)(v161 + 440));
}
else
{
v163 = *(_QWORD *)(v161 + 440);
v254 = *v162;
v255 = v163;
v256 = *(cocos2d::CCSprite **)(v161 + 448);
}
v164 = (cocos2d::CCSprite *)((char *)&v254 + 1);
if ( ((unsigned __int8)v254 & 1) != 0 )
v164 = v256;
v165 = cocos2d::CCLabelBMFont::create(v164, "goldFont.fnt", (const char *)v162);
if ( ((unsigned __int8)v254 & 1) != 0 )
operator delete(v256);
(*(void (__fastcall **)(LevelListLayer *, __int64, __int64))(*(_QWORD *)this + 464LL))(this, v165, 20);
(*(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v165 + 184LL))(v165, &v251);
}
else
{
v204 = CCTextInputNode::create(
(CCTextInputNode *)"List Name",
300.0,
50.0,
"Thonburi",
(const char *)&off_18,
"bigFont.fnt",
v160);
*((_QWORD *)this + 120) = v204;
(*(void (__fastcall **)(LevelListLayer *, __int64, __int64))(*(_QWORD *)this + 464LL))(this, v204, 18);
*(_QWORD *)(*((_QWORD *)this + 120) + 584LL) = (char *)this + 840;
(*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 120) + 72LL))(*((_QWORD *)this + 120), 1002);
(*(void (__fastcall **)(_QWORD, __int64 *))(**((_QWORD **)this + 120) + 184LL))(*((_QWORD *)this + 120), &v251);
*(_DWORD *)(*((_QWORD *)this + 120) + 592LL) = 25;
*(_BYTE *)(*((_QWORD *)this + 120) + 608LL) = 1;
v254 = nullptr;
v205 = *((_QWORD *)this + 114);
v255 = 0;
v256 = nullptr;
if ( (*(_BYTE *)(v205 + 432) & 1) != 0 )
{
std::string::__init((__int64 *)&v254, *(void **)(v205 + 448), *(_QWORD *)(v205 + 440));
}
else
{
v206 = *(_QWORD *)(v205 + 440);
v254 = *(char **)(v205 + 432);
v255 = v206;
v256 = *(cocos2d::CCSprite **)(v205 + 448);
}
v207 = (unsigned __int8)v254 >> 1;
if ( ((unsigned __int8)v254 & 1) != 0 )
{
v207 = v255;
operator delete(v256);
}
if ( v207 )
{
v208 = *((_QWORD *)this + 114);
v254 = nullptr;
v255 = 0;
v256 = nullptr;
v209 = *((_QWORD **)this + 120);
if ( (*(_BYTE *)(v208 + 432) & 1) != 0 )
{
std::string::__init((__int64 *)&v254, *(void **)(v208 + 448), *(_QWORD *)(v208 + 440));
}
else
{
v210 = *(_QWORD *)(v208 + 440);
v254 = *(char **)(v208 + 432);
v255 = v210;
v256 = *(cocos2d::CCSprite **)(v208 + 448);
}
CCTextInputNode::setString(v209, (char *)&v254);
if ( ((unsigned __int8)v254 & 1) != 0 )
operator delete(v256);
}
LOWORD(v247) = -21896;
BYTE2(v247) = -16;
CCTextInputNode::setLabelPlaceholderColor(*((_QWORD *)this + 120), v247);
CCTextInputNode::setLabelPlaceholderScale(*((CCTextInputNode **)this + 120), 0.7);
}
*((_BYTE *)this + 764) = (unsigned __int8)&dword_0 + 1;
v166 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector((cocos2d::CCDirector *)((char *)&dword_0 + 1));
v167 = (cocos2d::CCDirector *)cocos2d::CCDirector::getScreenRight(v166);
v169 = v168;
v170 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v167);
cocos2d::CCDirector::getScreenTop(v170);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v249, v169 - 25.0, v171 - 25.0);
cocos2d::CCNode::convertToNodeSpace(&v250, *((cocos2d::CCNode **)this + 110), (const cocos2d::CCPoint *)v249);
v173 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_deleteBtn_001.png", v172);
(*(void (__fastcall **)(__int64, float))(*(_QWORD *)v173 + 160LL))(v173, 0.8);
v174 = CCMenuItemSpriteExtra::create(v173, 0, (__int64)this, (__int64)LevelListLayer::confirmDelete, 0);
(*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 110) + 456LL))(*((_QWORD *)this + 110), v174);
v232 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v174 + 184LL);
cocos2d::CCNode::convertToNodeSpace(v253, *((cocos2d::CCNode **)this + 110), (const cocos2d::CCPoint *)v249);
v232(v174, v253);
v175 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v174 + 192LL))(v174);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v252, 0.0, -41.0);
cocos2d::CCPoint::operator+(v253, v175);
cocos2d::CCPoint::operator=(&v250, v253);
v177 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_updateBtn_001.png", v176);
(*(void (__fastcall **)(__int64, float))(*(_QWORD *)v177 + 160LL))(v177, 0.8);
v178 = CCMenuItemSpriteExtra::create(v177, 0, (__int64)this, (__int64)LevelBrowserLayer::onRefresh, 0);
*((_QWORD *)this + 81) = v178;
(*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 110) + 456LL))(*((_QWORD *)this + 110), v178);
(*(void (__fastcall **)(_QWORD, __int64 *))(**((_QWORD **)this + 81) + 184LL))(*((_QWORD *)this + 81), &v250);
v179 = (const cocos2d::CCPoint *)(*(__int64 (__fastcall **)(_QWORD))(**((_QWORD **)this + 81) + 192LL))(*((_QWORD *)this + 81));
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v251, v179);
v181 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_chatBtn_001.png", v180);
(*(void (__fastcall **)(__int64, float))(*(_QWORD *)v181 + 160LL))(v181, 0.8);
v182 = CCMenuItemSpriteExtra::create(v181, 0, (__int64)this, (__int64)LevelListLayer::onDescription, 0);
(*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 110) + 456LL))(*((_QWORD *)this + 110), v182);
v233 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v182 + 184LL);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v252, 0.0, -41.0);
cocos2d::CCPoint::operator+(v253, &v251);
v233(v182, v253);
v183 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v182 + 192LL))(v182);
cocos2d::CCPoint::operator=(&v251, v183);
v185 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_editModeBtn_001.png", v184);
(*(void (__fastcall **)(__int64, float))(*(_QWORD *)v185 + 160LL))(v185, 0.8);
v186 = CCMenuItemSpriteExtra::create(v185, 0, (__int64)this, (__int64)LevelListLayer::onToggleEditMode, 0);
(*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 110) + 456LL))(*((_QWORD *)this + 110), v186);
v234 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v186 + 184LL);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v252, 0.0, -41.0);
cocos2d::CCPoint::operator+(v253, &v251);
v234(v186, v253);
v187 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v186 + 192LL))(v186);
cocos2d::CCPoint::operator=(&v251, v187);
v189 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_plainBtn_001.png", v188);
(*(void (__fastcall **)(__int64, _QWORD, __int64))(*(_QWORD *)v189 + 464LL))(v189, *((_QWORD *)this + 123), 3);
(*(void (__fastcall **)(__int64, _QWORD, __int64))(*(_QWORD *)v189 + 464LL))(v189, *((_QWORD *)this + 124), 2);
v217 = *((_QWORD *)this + 123);
v244 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v217 + 184LL);
*(float *)&v234 = *(float *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v189 + 328LL))(v189) * 0.5;
v190 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v189 + 328LL))(v189);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v253, *(float *)&v234, *(float *)(v190 + 4) * 0.5);
v244(v217, v253);
v245 = *((_QWORD *)this + 124);
v235 = *(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v245 + 184LL);
v191 = (*(__int64 (__fastcall **)(_QWORD))(**((_QWORD **)this + 123) + 192LL))(*((_QWORD *)this + 123));
v235(v245, v191);
(*(void (__fastcall **)(__int64, float))(*(_QWORD *)v189 + 160LL))(v189, 0.8);
v192 = CCMenuItemSpriteExtra::create(v189, 0, (__int64)this, (__int64)LevelListLayer::onSelectIcon, 0);
(*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 110) + 456LL))(*((_QWORD *)this + 110), v192);
v236 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v192 + 184LL);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v252, 0.0, -41.0);
cocos2d::CCPoint::operator+(v253, &v251);
v236(v192, v253);
v193 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v192 + 192LL))(v192);
cocos2d::CCPoint::operator=(&v251, v193);
v195 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_duplicateBtn_001.png", v194);
(*(void (__fastcall **)(__int64, float))(*(_QWORD *)v195 + 160LL))(v195, 0.8);
v196 = CCMenuItemSpriteExtra::create(v195, 0, (__int64)this, (__int64)LevelListLayer::confirmClone, 0);
(*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 110) + 456LL))(*((_QWORD *)this + 110), v196);
v237 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v196 + 184LL);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v252, 0.0, -41.0);
cocos2d::CCPoint::operator+(v253, &v251);
v237(v196, v253);
v197 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v196 + 192LL))(v196);
cocos2d::CCPoint::operator=(&v251, v197);
v199 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_shareBtn_001.png", v198);
v238 = *(void (__fastcall **)(__int64, float))(*(_QWORD *)v199 + 160LL);
v200 = *(float *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v177 + 328LL))(v177);
v201 = v200 * (*(float (__fastcall **)(__int64))(*(_QWORD *)v177 + 168LL))(v177);
v202 = (float *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v199 + 328LL))(v199);
v238(v199, v201 / *v202);
v137 = CCMenuItemSpriteExtra::create(v199, 0, (__int64)this, (__int64)LevelListLayer::onShare, 0);
(*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 110) + 456LL))(*((_QWORD *)this + 110), v137);
v203 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v137 + 184LL);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v252, 0.0, -41.0);
cocos2d::CCPoint::operator+(v253, &v251);
v203(v137, v253);
}
else
{
v70 = *((_BYTE *)a2 + 432);
v254 = nullptr;
v255 = 0;
v256 = nullptr;
if ( (v70 & 1) != 0 )
{
std::string::__init((__int64 *)&v254, *((void **)a2 + 56), *((_QWORD *)a2 + 55));
}
else
{
v71 = *((char **)a2 + 54);
v72 = *((_QWORD *)a2 + 55);
v256 = *((cocos2d::CCSprite **)a2 + 56);
v73 = &v254;
v254 = v71;
v255 = v72;
}
v74 = (cocos2d::CCSprite *)((char *)&v254 + 1);
if ( ((unsigned __int8)v254 & 1) != 0 )
v74 = v256;
v75 = (cocos2d::CCDirector **)cocos2d::CCLabelBMFont::create(v74, "bigFont.fnt", (const char *)v73);
if ( ((unsigned __int8)v254 & 1) != 0 )
operator delete(v256);
v76 = (char *)a2 + 408;
(*(void (__fastcall **)(LevelListLayer *, cocos2d::CCDirector **, __int64))(*(_QWORD *)this + 464LL))(this, v75, 20);
v77 = *(float *)&v248 * 0.5;
v78 = *((void (__fastcall **)(cocos2d::CCDirector **, __int64 *))*v75 + 23);
v79 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(*v75);
cocos2d::CCDirector::getScreenTop(v79);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v253, v77, v80 - 20.0);
v78(v75, v253);
cocos2d::CCLabelBMFont::limitLabelWidth((cocos2d::CCLabelBMFont *)v75, 240.0, 0.8, 0.0);
v254 = nullptr;
v81 = *v76;
v255 = 0;
v256 = nullptr;
if ( (v81 & 1) != 0 )
{
std::string::__init((__int64 *)&v254, *((void **)v76 + 2), *((_QWORD *)v76 + 1));
}
else
{
v256 = *((cocos2d::CCSprite **)v76 + 2);
v82 = &v254;
v83 = *((_QWORD *)v76 + 1);
v254 = *(char **)v76;
v255 = v83;
}
v84 = (cocos2d::CCSprite *)((char *)&v254 + 1);
if ( ((unsigned __int8)v254 & 1) != 0 )
v84 = v256;
v85 = (cocos2d::CCLabelBMFont *)cocos2d::CCLabelBMFont::create(v84, "goldFont.fnt", (const char *)v82);
if ( ((unsigned __int8)v254 & 1) != 0 )
operator delete(v256);
cocos2d::CCLabelBMFont::limitLabelWidth(v85, 90.0, 0.8, 0.0);
v218 = (*((__int64 (__fastcall **)(cocos2d::CCDirector **))*v75 + 24))(v75);
v86 = *(float *)(*((__int64 (__fastcall **)(cocos2d::CCDirector **))*v75 + 41))(v75);
v87 = (*((float (__fastcall **)(cocos2d::CCDirector **))*v75 + 21))(v75);
v88 = *(float *)(*(__int64 (__fastcall **)(cocos2d::CCLabelBMFont *))(*(_QWORD *)v85 + 328LL))(v85);
v89 = (*(float (__fastcall **)(cocos2d::CCLabelBMFont *))(*(_QWORD *)v85 + 168LL))(v85);
cocos2d::CCPoint::CCPoint(
(cocos2d::CCPoint *)v253,
(float)((float)((float)(v88 * 0.5) * v89) + (float)((float)(v86 * 0.5) * v87)) + 10.0,
0.0);
cocos2d::CCPoint::operator+(&v251, v218);
v219 = CCMenuItemSpriteExtra::create((__int64)v85, 0, (__int64)this, (__int64)LevelListLayer::onViewProfile, 0);
(*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 110) + 456LL))(*((_QWORD *)this + 110), v219);
v239 = v219;
v220 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v219 + 184LL);
cocos2d::CCNode::convertToNodeSpace(v253, *((cocos2d::CCNode **)this + 110), (const cocos2d::CCPoint *)&v251);
v215 = v239;
v220(v239, v253);
(*(void (__fastcall **)(_QWORD, float))(**((_QWORD **)this + 123) + 160LL))(*((_QWORD *)this + 123), 0.8);
(*(void (__fastcall **)(_QWORD, float))(**((_QWORD **)this + 124) + 160LL))(*((_QWORD *)this + 124), 0.8);
v90 = *(float *)(*(__int64 (__fastcall **)(_QWORD))(**((_QWORD **)this + 123) + 328LL))(*((_QWORD *)this + 123));
v91 = v90 * (*(float (__fastcall **)(_QWORD))(**((_QWORD **)this + 123) + 168LL))(*((_QWORD *)this + 123));
v92 = *(float *)(*((__int64 (__fastcall **)(cocos2d::CCDirector **))*v75 + 41))(v75);
v93 = (*((float (__fastcall **)(cocos2d::CCDirector **))*v75 + 21))(v75);
v94 = *(float *)(*(__int64 (__fastcall **)(cocos2d::CCLabelBMFont *))(*(_QWORD *)v85 + 328LL))(v85);
LODWORD(v220) = (*(float (__fastcall **)(cocos2d::CCLabelBMFont *))(*(_QWORD *)v85 + 168LL))(v85);
v95 = *(float *)(*((__int64 (__fastcall **)(cocos2d::CCDirector **))*v75 + 41))(v75);
v96 = (*((float (__fastcall **)(cocos2d::CCDirector **))*v75 + 21))(v75);
v240 = *((void (__fastcall **)(cocos2d::CCDirector **, __int64 *))*v75 + 23);
v97 = (float)((float)((float)((float)((float)(v94 * *(float *)&v220) + (float)(v92 * v93)) + 10.0) - v91) - 10.0)
- (float)(v95 * v96);
v221 = (*((__int64 (__fastcall **)(cocos2d::CCDirector **))*v75 + 24))(v75);
v98 = (float)-v97 * 0.5;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v252, v98, 0.0);
cocos2d::CCPoint::operator+(v253, v221);
v240(v75, v253);
v241 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v215 + 184LL);
v222 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v215 + 192LL))(v215);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v252, v98, 0.0);
cocos2d::CCPoint::operator+(v253, v222);
v241(v215, v253);
(*(void (__fastcall **)(LevelListLayer *, _QWORD, __int64))(*(_QWORD *)this + 464LL))(
this,
*((_QWORD *)this + 123),
2);
(*(void (__fastcall **)(LevelListLayer *, _QWORD, __int64))(*(_QWORD *)this + 464LL))(
this,
*((_QWORD *)this + 124),
1);
v216 = *((_QWORD *)this + 123);
v242 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v216 + 184LL);
v223 = (*((__int64 (__fastcall **)(cocos2d::CCDirector **))*v75 + 24))(v75);
v99 = *(float *)(*((__int64 (__fastcall **)(cocos2d::CCDirector **))*v75 + 41))(v75);
v100 = (*((float (__fastcall **)(cocos2d::CCDirector **))*v75 + 21))(v75);
cocos2d::CCPoint::CCPoint(
(cocos2d::CCPoint *)v252,
(float)-(float)((float)(v91 * 0.5) + (float)((float)(v99 * v100) * 0.5)) - 10.0,
-1.0);
cocos2d::CCPoint::operator+(v253, v223);
v242(v216, v253);
v101 = *((_QWORD *)this + 124);
v243 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v101 + 184LL);
v224 = (*(__int64 (__fastcall **)(_QWORD))(**((_QWORD **)this + 123) + 192LL))(*((_QWORD *)this + 123));
v102 = (*(float (__fastcall **)(_QWORD))(**((_QWORD **)this + 123) + 168LL))(*((_QWORD *)this + 123));
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v252, 0.0, v102 * -6.0);
cocos2d::CCPoint::operator+(v253, v224);
v243(v101, v253);
*((_BYTE *)this + 764) = (unsigned __int8)&dword_0 + 1;
v103 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector((cocos2d::CCDirector *)((char *)&dword_0 + 1));
v104 = (cocos2d::CCDirector *)cocos2d::CCDirector::getScreenRight(v103);
v106 = v105;
v107 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v104);
cocos2d::CCDirector::getScreenTop(v107);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v249, v106 - 25.0, v108 - 25.0);
cocos2d::CCNode::convertToNodeSpace(&v250, *((cocos2d::CCNode **)this + 110), (const cocos2d::CCPoint *)v249);
v225 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_updateBtn_001.png", v109);
(*(void (__fastcall **)(float))(*(_QWORD *)v225 + 160LL))(0.8);
v110 = CCMenuItemSpriteExtra::create(v225, 0, (__int64)this, (__int64)LevelListLayer::onRefreshLevelList, 0);
*((_QWORD *)this + 81) = v110;
(*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 110) + 456LL))(*((_QWORD *)this + 110), v110);
v226 = *((_QWORD *)this + 81);
v111 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v226 + 184LL);
cocos2d::CCNode::convertToNodeSpace(v253, *((cocos2d::CCNode **)this + 110), (const cocos2d::CCPoint *)v249);
v111(v226, v253);
v112 = (*(__int64 (__fastcall **)(_QWORD))(**((_QWORD **)this + 81) + 192LL))(*((_QWORD *)this + 81));
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v252, 0.0, -41.0);
cocos2d::CCPoint::operator+(v253, v112);
cocos2d::CCPoint::operator=(&v250, v253);
v114 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_infoBtn_001.png", v113);
(*(void (__fastcall **)(__int64, float))(*(_QWORD *)v114 + 160LL))(v114, 0.8);
v115 = CCMenuItemSpriteExtra::create(v114, 0, (__int64)this, (__int64)LevelListLayer::onInfo, 0);
(*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 110) + 456LL))(*((_QWORD *)this + 110), v115);
(*(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v115 + 184LL))(v115, &v250);
v116 = (const cocos2d::CCPoint *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v115 + 192LL))(v115);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v251, v116);
v118 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_like2Btn_001.png", v117);
(*(void (__fastcall **)(__int64, float))(*(_QWORD *)v118 + 160LL))(v118, 0.8);
v119 = CCMenuItemSpriteExtra::create(v118, 0, (__int64)this, (__int64)LevelListLayer::onLike, 0);
*((_QWORD *)this + 118) = v119;
(*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 110) + 456LL))(*((_QWORD *)this + 110), v119);
v120 = *((_QWORD *)this + 118);
v227 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v120 + 184LL);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v252, 0.0, -41.0);
cocos2d::CCPoint::operator+(v253, &v251);
v227(v120, v253);
v121 = (*(__int64 (__fastcall **)(_QWORD))(**((_QWORD **)this + 118) + 192LL))(*((_QWORD *)this + 118));
cocos2d::CCPoint::operator=(&v251, v121);
v123 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_duplicateBtn_001.png", v122);
(*(void (__fastcall **)(__int64, float))(*(_QWORD *)v123 + 160LL))(v123, 0.8);
v124 = CCMenuItemSpriteExtra::create(v123, 0, (__int64)this, (__int64)LevelListLayer::confirmClone, 0);
(*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 110) + 456LL))(*((_QWORD *)this + 110), v124);
v228 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v124 + 184LL);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v252, 0.0, -41.0);
cocos2d::CCPoint::operator+(v253, &v251);
v228(v124, v253);
v125 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v124 + 192LL))(v124);
cocos2d::CCPoint::operator=(&v251, v125);
if ( *(_BYTE *)(*((_QWORD *)this + 114) + 396LL) )
v127 = "gj_heartOn_001.png";
else
v127 = "gj_heartOff_001.png";
v128 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)v127, v126);
v129 = CCMenuItemSpriteExtra::create(v128, 0, (__int64)this, (__int64)LevelListLayer::onFavorite, 0);
CCMenuItemSpriteExtra::setSizeMult(v129, 1.1);
(*(void (__fastcall **)(_QWORD, __int64, __int64))(**((_QWORD **)this + 110) + 464LL))(
*((_QWORD *)this + 110),
v129,
100);
v229 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v129 + 184LL);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v252, 0.0, -41.0);
cocos2d::CCPoint::operator+(v253, &v251);
v229(v129, v253);
v130 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v129 + 192LL))(v129);
cocos2d::CCPoint::operator=(&v251, v130);
v131 = *((GJAccountManager **)this + 114);
LODWORD(v129) = *((_DWORD *)v131 + 91);
v132 = GJAccountManager::sharedState(v131);
v133 = (const char *)*(unsigned int *)(v132 + 352);
v134 = (GameManager *)(unsigned int)((_DWORD)v133 - *(_DWORD *)(v132 + 356));
if ( (_DWORD)v134 != (_DWORD)v129 )
{
v135 = GameManager::sharedState(v134);
v133 = (const char *)*(unsigned int *)(v135 + 1032);
if ( (int)v133 - *(_DWORD *)(v135 + 1036) <= 1 )
goto LABEL_53;
}
v136 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_deleteServerBtn_001.png", v133);
(*(void (__fastcall **)(__int64, float))(*(_QWORD *)v136 + 160LL))(v136, 0.8);
v137 = CCMenuItemSpriteExtra::create(v136, 0, (__int64)this, (__int64)LevelListLayer::confirmOwnerDelete, 0);
(*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 110) + 456LL))(*((_QWORD *)this + 110), v137);
v230 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v137 + 184LL);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v252, 0.0, -41.0);
cocos2d::CCPoint::operator+(v253, &v251);
v230(v137, v253);
}
v138 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v137 + 192LL))(v137);
cocos2d::CCPoint::operator=(&v251, v138);
LABEL_53:
v139 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_infoIcon_001.png", v133);
v140 = CCMenuItemSpriteExtra::create(v139, 0, (__int64)this, (__int64)LevelListLayer::onListInfo, 0);
CCMenuItemSpriteExtra::setSizeMult(v140, 1.2);
(*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 110) + 456LL))(*((_QWORD *)this + 110), v140);
v231 = *((cocos2d::CCNode **)this + 110);
v141 = *(__int64 (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v140 + 184LL);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v252, 30.0, 30.0);
cocos2d::CCNode::convertToNodeSpace(v253, v231, (const cocos2d::CCPoint *)v252);
v142 = (LoadingCircle *)v141(v140, v253);
v143 = LoadingCircle::create(v142);
*((_QWORD *)this + 92) = v143;
*(_QWORD *)(v143 + 552) = this;
*(_BYTE *)(*((_QWORD *)this + 92) + 560LL) = 0;
cocos2d::CCObject::retain(*((cocos2d::CCObject **)this + 92));
LoadingCircle::show(*((cocos2d::CCNode ***)this + 92));
(*(void (__fastcall **)(_QWORD, _QWORD))(**((_QWORD **)this + 92) + 344LL))(*((_QWORD *)this + 92), 0);
v254 = nullptr;
v255 = 0;
v256 = nullptr;
std::string::__init((__int64 *)&v254, "No Internet connection!", 0x1Fu);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v253, 0.5, 1.0);
v144 = TextArea::create((char *)&v254, "bigFont.fnt", (const cocos2d::CCPoint *)v253, 0, 0, 1.0, 600.0, 20.0);
*((_QWORD *)this + 75) = v144;
if ( ((unsigned __int8)v254 & 1) != 0 )
{
operator delete(v256);
v144 = *((_QWORD *)this + 75);
}
v145 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v144 + 184LL);
cocos2d::CCPoint::CCPoint(
(cocos2d::CCPoint *)v253,
*(float *)&v248 * 0.5,
(float)(*((float *)&v248 + 1) * 0.5) + 10.0);
v145(v144, v253);
(*(void (__fastcall **)(_QWORD, float))(**((_QWORD **)this + 75) + 160LL))(*((_QWORD *)this + 75), 0.6);
(*(void (__fastcall **)(LevelListLayer *, _QWORD, __int64))(*(_QWORD *)this + 464LL))(this, *((_QWORD *)this + 75), 2);
v146 = (PlatformToolbox *)(*(__int64 (__fastcall **)(_QWORD, _QWORD))(**((_QWORD **)this + 75) + 344LL))(
*((_QWORD *)this + 75),
0);
if ( (unsigned __int8)PlatformToolbox::isControllerConnected(v146) )
GameToolbox::addBackButton(this, v214, v147);
LevelListLayer::updateSideButtons((__int64)this);
LevelListLayer::updateStatsArt(this);
if ( v246 || *(_BYTE *)(*((_QWORD *)this + 114) + 398LL) )
{
*((_BYTE *)this + 792) = 1;
LevelBrowserLayer::setupLevelBrowser(this, nullptr);
}
else
{
*(_DWORD *)(v15 + 420) = 1;
*(_BYTE *)(*((_QWORD *)this + 114) + 398LL) = 1;
LevelBrowserLayer::loadPage((GJSearchObject **)this, (GJSearchObject *)v15);
}
return v5;
}