//
// LevelListLayer::init from 0x14042b2b0 to 0x14042cec5 (7189 bytes)
//
// 2 xrefs:
// > LevelListLayer::scene @ 0x14042b25b
// > ??> @ 0x140926b1c
//
// This function is hookable on this platform (idp: pc, 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 11:32:13 +0000
//
// Hidden C++ exception states: #wind=8
bool __fastcall LevelListLayer::init(__int64 a1, unsigned int *a2)
{
bool result; // al
__int64 v5; // rdx
__int64 v6; // rcx
__int64 v7; // rax
int v8; // ebx
__int64 v9; // rax
cocos2d::CCObject *v10; // rax
__int64 v11; // rax
__int64 v12; // r13
int v13; // r12d
void **v14; // rdx
bool v15; // bl
__int64 v16; // rdx
void **v17; // rcx
void **v18; // rdx
void **v19; // rcx
void **v20; // rax
void **v21; // rbx
void *v22; // rdx
cocos2d::CCObject *v23; // rcx
__int64 v24; // rcx
__int64 v25; // rdx
__int64 v26; // rcx
__int64 v27; // rax
struct cocos2d::CCSprite *v28; // rdi
__int64 v29; // rbx
__int64 v30; // rax
__int64 v31; // rbx
__int64 v32; // rax
struct cocos2d::CCSprite *v33; // rdi
__int64 v34; // rbx
__int64 v35; // rax
__int64 v36; // rbx
__int64 v37; // rcx
cocos2d::CCDirector *v38; // rax
float v39; // xmm6_4
__int64 v40; // rcx
cocos2d::CCDirector *v41; // rax
float v42; // xmm0_4
__int64 v43; // rax
struct cocos2d::CCSprite *v44; // rdi
__int64 v45; // rbx
__int64 v46; // rax
__int64 v47; // rbx
__int64 v48; // rcx
cocos2d::CCDirector *v49; // rax
float v50; // xmm6_4
__int64 v51; // rcx
cocos2d::CCDirector *v52; // rax
float v53; // xmm0_4
__int64 v54; // rax
int v55; // eax
cocos2d::CCObject *v56; // rax
struct cocos2d::CCMenu *v57; // rax
__int64 *v58; // rcx
__int64 v59; // rdi
cocos2d::CCDirector *v60; // rax
float v61; // xmm6_4
__int64 v62; // rcx
cocos2d::CCDirector *v63; // rax
float v64; // xmm0_4
__int64 v65; // rbx
__int64 v66; // rax
unsigned int v67; // edx
cocos2d::CCString *v68; // rax
const char *CString; // rax
size_t v70; // r8
void **v71; // rcx
void *v72; // rcx
__int64 v73; // rcx
cocos2d::CCDirector *v74; // rax
float v75; // xmm0_4
__int64 v76; // rax
_QWORD *v77; // rbx
__int64 v78; // rdx
__int64 v79; // rcx
__int64 v80; // rdx
char *v81; // rax
bool v82; // bl
__int64 v83; // rcx
__int64 v84; // rcx
__int64 v85; // rcx
void **v86; // rcx
struct cocos2d::CCLabelBMFont *v87; // rbx
void **v88; // rcx
struct cocos2d::CCLabelBMFont *v89; // r14
__int64 v90; // rbx
__int64 v91; // rcx
cocos2d::CCDirector *v92; // rax
float v93; // xmm0_4
__int64 v94; // rax
const char *v95; // rcx
cocos2d::CCLabelBMFont *v96; // rdi
float v97; // xmm6_4
double v98; // xmm0_8
float v99; // xmm7_4
float v100; // xmm6_4
double v101; // xmm0_8
__int64 v102; // rax
__int64 v103; // rbx
__int64 v104; // rax
cocos2d::CCObject *v105; // rsi
__int64 v106; // rbx
__int64 v107; // rax
float v108; // xmm6_4
double v109; // xmm0_8
float v110; // xmm9_4
float v111; // xmm6_4
double v112; // xmm0_8
float v113; // xmm7_4
float v114; // xmm6_4
double v115; // xmm0_8
float v116; // xmm8_4
float v117; // xmm6_4
float v118; // xmm8_4
__int64 v119; // rax
__int64 v120; // rbx
__int64 v121; // rax
__int64 v122; // rax
__int64 v123; // rbx
__int64 v124; // rax
float v125; // xmm6_4
double v126; // xmm0_8
__int64 v127; // rax
__int64 v128; // rbx
__int64 v129; // rax
double v130; // xmm0_8
__int64 v131; // rax
__int64 v132; // rbx
__int64 v133; // rax
cocos2d::CCDirector *v134; // rax
float v135; // xmm7_4
__int64 v136; // rcx
cocos2d::CCDirector *v137; // rax
float ScreenRight; // xmm0_4
struct cocos2d::CCSprite *v139; // rax
int v140; // ebx
cocos2d::CCObject *v141; // rax
__int64 v142; // rdi
__int64 v143; // rbx
__int64 v144; // rax
__int64 v145; // rax
__int64 v146; // rbx
__int64 v147; // rax
struct cocos2d::CCSprite *v148; // rax
cocos2d::CCObject *v149; // rbx
const struct cocos2d::CCPoint *v150; // rax
struct cocos2d::CCSprite *v151; // rax
cocos2d::CCObject *v152; // rax
__int64 v153; // rax
__int64 v154; // rax
struct cocos2d::CCSprite *v155; // rax
cocos2d::CCObject *v156; // rbx
__int64 v157; // rax
__int64 v158; // rax
const char *v159; // rcx
int v160; // eax
cocos2d::CCObject *v161; // rbx
__int64 v162; // rax
__int64 v163; // rax
__int64 v164; // rax
__int64 v165; // rcx
struct cocos2d::CCSprite *v166; // rax
int v167; // ebx
cocos2d::CCObject *v168; // rbx
struct cocos2d::CCSprite *v169; // rax
int v170; // ebx
cocos2d::CCObject *v171; // rdi
__int64 v172; // rbx
__int64 v173; // rax
__int64 v174; // rax
__int64 v175; // rbx
__int64 v176; // rax
struct cocos2d::CCSprite *v177; // r14
cocos2d::CCObject *v178; // rax
const struct cocos2d::CCPoint *v179; // rax
struct cocos2d::CCSprite *v180; // rax
cocos2d::CCObject *v181; // rbx
__int64 v182; // rax
__int64 v183; // rax
struct cocos2d::CCSprite *v184; // rax
cocos2d::CCObject *v185; // rbx
__int64 v186; // rax
__int64 v187; // rax
struct cocos2d::CCSprite *v188; // rsi
__int64 v189; // rdi
float v190; // xmm6_4
float *v191; // rax
__int64 v192; // rbx
__int64 v193; // rax
__int64 v194; // rdi
__int64 v195; // rbx
__int64 v196; // rax
cocos2d::CCObject *v197; // rbx
__int64 v198; // rax
__int64 v199; // rax
struct cocos2d::CCSprite *v200; // rax
cocos2d::CCObject *v201; // rbx
__int64 v202; // rax
__int64 v203; // rax
struct cocos2d::CCSprite *v204; // rdi
__int64 v205; // rbx
__int64 v206; // rax
__int64 v207; // rax
int v208; // eax
cocos2d::CCObject *v209; // rsi
__int64 v210; // rdi
__int64 v211; // rbx
__int64 v212; // rax
__int64 v213; // rax
cocos2d::CCLayerColor *v214; // rax
const struct cocos2d::CCPoint *v215; // rax
char *v216; // rdi
__int64 v217; // rbx
__int64 v218; // rax
__int64 v219; // rcx
__int64 v220; // [rsp+48h] [rbp-C0h] BYREF
void **v221; // [rsp+50h] [rbp-B8h] BYREF
__int64 v222; // [rsp+58h] [rbp-B0h] BYREF
void **v223; // [rsp+60h] [rbp-A8h] BYREF
float v224[2]; // [rsp+68h] [rbp-A0h] BYREF
_BYTE v225[8]; // [rsp+70h] [rbp-98h] BYREF
__int64 v226; // [rsp+78h] [rbp-90h] BYREF
void *Src[4]; // [rsp+80h] [rbp-88h] BYREF
void *v228[4]; // [rsp+A0h] [rbp-68h] BYREF
void *Block[2]; // [rsp+C0h] [rbp-48h] BYREF
__int64 v230; // [rsp+D0h] [rbp-38h]
unsigned __int64 v231; // [rsp+D8h] [rbp-30h]
_QWORD v232[4]; // [rsp+E0h] [rbp-28h] BYREF
LODWORD(v220) = 0;
result = cocos2d::CCLayerColor::initWithColor((cocos2d::CCLayerColor *)a1, (const struct cocos2d::_ccColor4B *)&v220);
if ( !result )
return result;
*(_DWORD *)(a1 + 984) = 0;
v5 = *(_QWORD *)&qword_14090BFB0;
if ( !*(_QWORD *)&qword_14090BFB0 )
{
v223 = (void **)operator new(0x690u);
*(_QWORD *)&qword_14090BFB0 = GameLevelManager::GameLevelManager((__int64)v223);
(*(void (__fastcall **)(_QWORD))(**(_QWORD **)&qword_14090BFB0 + 72LL))(*(_QWORD *)&qword_14090BFB0);
v5 = *(_QWORD *)&qword_14090BFB0;
}
sub_14003F4F0((__int64)Block, v5 + 1272);
sub_140059C40(a1 + 888, (__int64)Block);
sub_14003D310((__int64)Block);
*(_QWORD *)(a1 + 920) = a2;
cocos2d::CCObject::retain((cocos2d::CCObject *)a2);
v7 = *(_QWORD *)(a1 + 920);
v8 = *(_DWORD *)(v7 + 344);
if ( v8 <= 0 )
v8 = *(_DWORD *)(v7 + 588);
v9 = qword_14090BFD0;
if ( !qword_14090BFD0 )
{
v223 = (void **)operator new(0x6E8u);
qword_14090BFD0 = GameManager::GameManager((__int64)v223);
(*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0);
v9 = qword_14090BFD0;
}
*(_DWORD *)(v9 + 1000) = v8;
v10 = (cocos2d::CCObject *)cocos2d::CCArray::create(v6);
*(_QWORD *)(a1 + 992) = v10;
cocos2d::CCObject::retain(v10);
v11 = GJSearchObject::create_2(25);
v12 = v11;
v13 = *(_DWORD *)(*(_QWORD *)(a1 + 920) + 584LL);
if ( v13 != 2 )
{
v20 = (void **)GameToolbox::intToString(Block, a2[86]);
v21 = v20;
v223 = v20;
if ( (void **)(v12 + 328) != v20 )
{
v22 = v20;
if ( (unsigned __int64)v20[3] > 0xF )
v22 = *v20;
sub_1400405A0((void **)(v12 + 328), v22, (size_t)v20[2]);
}
v19 = v21;
goto LABEL_24;
}
*(_DWORD *)(a1 + 768) = 200;
*(_DWORD *)(a1 + 772) = -1055916032;
*(_DWORD *)(v11 + 320) = 26;
*(_DWORD *)(v11 + 452) = 29;
sub_14003F4F0((__int64)Src, (__int64)(a2 + 126));
v223 = Src;
if ( (void **)(v12 + 328) != Src )
{
v14 = Src;
if ( Src[3] > (void *)0xF )
v14 = (void **)Src[0];
sub_1400405A0((void **)(v12 + 328), v14, (size_t)Src[2]);
}
sub_14003D310((__int64)Src);
sub_14003F4F0((__int64)Block, *(_QWORD *)(a1 + 920) + 440LL);
v15 = v230 != 0;
sub_14003D310((__int64)Block);
if ( v15 )
{
sub_14003F4F0((__int64)v228, *(_QWORD *)(a1 + 920) + 440LL);
v223 = v228;
v17 = (void **)(*(_QWORD *)(a1 + 920) + 472LL);
if ( v17 != v228 )
{
v18 = v228;
if ( v228[3] > (void *)0xF )
v18 = (void **)v228[0];
sub_1400405A0(v17, v18, (size_t)v228[2]);
}
v19 = v228;
LABEL_24:
sub_14003D310((__int64)v19);
}
if ( *(_QWORD *)(a1 + 664) != v12 )
{
if ( v12 )
cocos2d::CCObject::retain((cocos2d::CCObject *)v12);
v23 = *(cocos2d::CCObject **)(a1 + 664);
if ( v23 )
cocos2d::CCObject::release(v23);
*(_QWORD *)(a1 + 664) = v12;
}
v24 = *(_QWORD *)&qword_14090BFB0;
if ( !*(_QWORD *)&qword_14090BFB0 )
{
v223 = (void **)operator new(0x690u);
*(_QWORD *)&qword_14090BFB0 = GameLevelManager::GameLevelManager((__int64)v223);
(*(void (__fastcall **)(_QWORD))(**(_QWORD **)&qword_14090BFB0 + 72LL))(*(_QWORD *)&qword_14090BFB0);
v24 = *(_QWORD *)&qword_14090BFB0;
}
*(_DWORD *)(v24 + 1608) = *(_DWORD *)(v12 + 320);
LOBYTE(v16) = 1;
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)a1 + 992LL))(a1, v16);
LOBYTE(v25) = 1;
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)a1 + 1008LL))(a1, v25);
v27 = cocos2d::CCDirector::sharedDirector(v26);
cocos2d::CCDirector::getWinSize(v27, v224);
v28 = cocos2d::CCSprite::create("GJ_gradientBG.png");
v29 = *(_QWORD *)v28;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v223, 0.0, 0.0);
(*(void (__fastcall **)(struct cocos2d::CCSprite *, __int64))(v29 + 288))(v28, v30);
(*(void (__fastcall **)(__int64, struct cocos2d::CCSprite *, __int64))(*(_QWORD *)a1 + 456LL))(a1, v28, 4294967294LL);
(*(void (__fastcall **)(struct cocos2d::CCSprite *))(*(_QWORD *)v28 + 120LL))(v28);
(*(void (__fastcall **)(struct cocos2d::CCSprite *))(*(_QWORD *)v28 + 136LL))(v28);
v31 = *(_QWORD *)v28;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v223, -5.0, -5.0);
(*(void (__fastcall **)(struct cocos2d::CCSprite *, __int64))(v31 + 184))(v28, v32);
LOWORD(v220) = 26112;
BYTE2(v220) = -1;
(**((void (__fastcall ***)(__int64, __int64 *))v28 + 40))((__int64)v28 + 320, &v220);
v33 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_sideArt_001.png");
v34 = *(_QWORD *)v33;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v223, 0.0, 0.0);
(*(void (__fastcall **)(struct cocos2d::CCSprite *, __int64))(v34 + 288))(v33, v35);
v36 = *(_QWORD *)v33;
v38 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v37);
v39 = cocos2d::CCDirector::getScreenBottom(v38) - 1.0;
v41 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v40);
v42 = cocos2d::CCDirector::getScreenLeft(v41) - 1.0;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v223, v42, v39);
(*(void (__fastcall **)(struct cocos2d::CCSprite *, __int64))(v36 + 184))(v33, v43);
(*(void (__fastcall **)(__int64, struct cocos2d::CCSprite *, __int64))(*(_QWORD *)a1 + 456LL))(a1, v33, 1);
v44 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_sideArt_001.png");
v45 = *(_QWORD *)v44;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v223, 1.0, 0.0);
(*(void (__fastcall **)(struct cocos2d::CCSprite *, __int64))(v45 + 288))(v44, v46);
v47 = *(_QWORD *)v44;
v49 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v48);
v50 = cocos2d::CCDirector::getScreenBottom(v49) - 1.0;
v52 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v51);
v53 = cocos2d::CCDirector::getScreenRight(v52) + 1.0;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v223, v53, v50);
(*(void (__fastcall **)(struct cocos2d::CCSprite *, __int64))(v47 + 184))(v44, v54);
cocos2d::CCSprite::setFlipX(v44, 1);
(*(void (__fastcall **)(__int64, struct cocos2d::CCSprite *, __int64))(*(_QWORD *)a1 + 456LL))(a1, v44, 1);
v55 = (unsigned int)cocos2d::CCSprite::createWithSpriteFrameName("GJ_arrow_01_001.png");
v56 = CCMenuItemSpriteExtra::create(v55, 0, a1, (__int64)sub_1403EB6CC);
v223 = (void **)v56;
*((_DWORD *)v56 + 93) = 1070386381;
v57 = cocos2d::CCMenu::create(v56, 0);
*(_QWORD *)(a1 + 880) = v57;
(*(void (__fastcall **)(__int64, struct cocos2d::CCMenu *, __int64))(*(_QWORD *)a1 + 456LL))(a1, v57, 1);
v58 = *(__int64 **)(a1 + 880);
v59 = *v58;
v60 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v58);
v61 = cocos2d::CCDirector::getScreenTop(v60) - 23.0;
v63 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v62);
v64 = cocos2d::CCDirector::getScreenLeft(v63) + 24.0;
v65 = *(_QWORD *)(a1 + 880);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v221, v64, v61);
(*(void (__fastcall **)(__int64, __int64))(v59 + 184))(v65, v66);
v67 = *(_DWORD *)(*(_QWORD *)(a1 + 920) + 360LL);
if ( v67 )
{
if ( v67 <= 0xA )
{
if ( v67 == 6 || v67 == 7 )
{
++v67;
}
else if ( v67 == 8 )
{
v67 = 6;
}
}
else
{
v67 = 0;
}
v68 = cocos2d::CCString::createWithFormat("diffIcon_%02d_btn_001.png", v67);
CString = cocos2d::CCString::getCString(v68);
*(_OWORD *)Block = 0;
v230 = 0;
v231 = 0;
v70 = -1;
do
++v70;
while ( CString[v70] );
sub_14003D230(Block, CString, v70);
}
else
{
*(_OWORD *)Block = 0;
v230 = 0;
v231 = 0;
Block[0] = sub_14003D460(0x20u);
v230 = 25;
v231 = 31;
strcpy((char *)Block[0], "diffIcon_auto_btn_001.png");
}
v71 = Block;
if ( v231 > 0xF )
v71 = (void **)Block[0];
*(_QWORD *)(a1 + 1000) = cocos2d::CCSprite::createWithSpriteFrameName((const char *)v71);
if ( v231 > 0xF )
{
v72 = Block[0];
if ( v231 + 1 >= 0x1000 )
{
v72 = *((void **)Block[0] - 1);
if ( (unsigned __int64)((char *)Block[0] - (char *)v72 - 8) > 0x1F )
invoke_watson(nullptr, nullptr, nullptr, 0, 0);
}
j_j_free(v72);
}
*(_QWORD *)(a1 + 1008) = cocos2d::CCSprite::createWithSpriteFrameName("GJ_featuredCoin_001.png");
if ( v13 == 2 )
{
cocos2d::CCRect::CCRect((cocos2d::CCRect *)v232, 0.0, 0.0, 80.0, 80.0);
v74 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v73);
v75 = cocos2d::CCDirector::getScreenTop(v74) - 30.0;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v222, v224[0] * 0.5, v75);
cocos2d::CCRect::CCRect((cocos2d::CCRect *)Block, (const struct cocos2d::CCRect *)v232);
v77 = (_QWORD *)cocos2d::extension::CCScale9Sprite::create("square02b_001.png", v76);
LOBYTE(v78) = -1;
(*(void (__fastcall **)(_QWORD *, __int64))(v77[40] + 40LL))(v77 + 40, v78);
cocos2d::CCSize::CCSize((cocos2d::CCSize *)&v221, 365.0, 40.0);
(*(void (__fastcall **)(_QWORD *, void ***))(*v77 + 312LL))(v77, &v221);
(*(void (__fastcall **)(__int64, _QWORD *, __int64))(*(_QWORD *)a1 + 456LL))(a1, v77, 0xFFFFFFFFLL);
(*(void (__fastcall **)(_QWORD *, __int64 *))(*v77 + 184LL))(v77, &v222);
LOWORD(v220) = 14336;
BYTE2(v220) = -115;
(*(void (__fastcall **)(_QWORD *, __int64 *))v77[40])(v77 + 40, &v220);
v80 = *(_QWORD *)(a1 + 920);
if ( *(int *)(v80 + 348) > 1 || *(_BYTE *)(v80 + 395) )
{
sub_14003F4F0((__int64)Block, v80 + 440);
v86 = Block;
if ( v231 > 0xF )
v86 = (void **)Block[0];
v87 = cocos2d::CCLabelBMFont::create((const char *)v86, "goldFont.fnt");
sub_14003D310((__int64)Block);
(*(void (__fastcall **)(__int64, struct cocos2d::CCLabelBMFont *, __int64))(*(_QWORD *)a1 + 456LL))(a1, v87, 20);
(*(void (__fastcall **)(struct cocos2d::CCLabelBMFont *, __int64 *))(*(_QWORD *)v87 + 184LL))(v87, &v222);
}
else
{
v81 = CCTextInputNode::create(v79, v80, (__int64)"List Name");
*(_QWORD *)(a1 + 976) = v81;
(*(void (__fastcall **)(__int64, char *, __int64))(*(_QWORD *)a1 + 456LL))(a1, v81, 18);
*(_QWORD *)(*(_QWORD *)(a1 + 976) + 600LL) = a1 + 840;
(*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 976) + 64LL))(*(_QWORD *)(a1 + 976), 1002);
(*(void (__fastcall **)(_QWORD, __int64 *))(**(_QWORD **)(a1 + 976) + 184LL))(*(_QWORD *)(a1 + 976), &v222);
*(_DWORD *)(*(_QWORD *)(a1 + 976) + 608LL) = 25;
*(_BYTE *)(*(_QWORD *)(a1 + 976) + 624LL) = 1;
sub_14003F4F0((__int64)Block, *(_QWORD *)(a1 + 920) + 440LL);
v82 = v230 != 0;
sub_14003D310((__int64)Block);
if ( v82 )
{
sub_14003F4F0((__int64)Block, *(_QWORD *)(a1 + 920) + 440LL);
CCTextInputNode::setString(*(_QWORD **)(a1 + 976), Block);
}
LOWORD(v220) = -21896;
v83 = *(_QWORD *)(a1 + 976);
*(_WORD *)(v83 + 572) = -21896;
*(_BYTE *)(v83 + 574) = -16;
CCTextInputNode::refreshLabel(v83);
v84 = *(_QWORD *)(a1 + 976);
*(_DWORD *)(v84 + 568) = 1060320051;
CCTextInputNode::refreshLabel(v84);
}
}
else
{
sub_14003F4F0((__int64)Block, (__int64)(a2 + 110));
v88 = Block;
if ( v231 > 0xF )
v88 = (void **)Block[0];
v89 = cocos2d::CCLabelBMFont::create((const char *)v88, (const char *)&qword_140704F78);
sub_14003D310((__int64)Block);
(*(void (__fastcall **)(__int64, struct cocos2d::CCLabelBMFont *, __int64))(*(_QWORD *)a1 + 456LL))(a1, v89, 20);
v90 = *(_QWORD *)v89;
v92 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v91);
v93 = cocos2d::CCDirector::getScreenTop(v92) - 20.0;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v222, v224[0] * 0.5, v93);
(*(void (__fastcall **)(struct cocos2d::CCLabelBMFont *, __int64))(v90 + 184))(v89, v94);
cocos2d::CCLabelBMFont::limitLabelWidth(v89, 240.0, 0.80000001, 0.0);
sub_14003F4F0((__int64)v232, (__int64)(a2 + 102));
v95 = (const char *)v232;
if ( v232[3] > 0xFu )
v95 = (const char *)v232[0];
v96 = cocos2d::CCLabelBMFont::create(v95, "goldFont.fnt");
sub_14003D310((__int64)v232);
cocos2d::CCLabelBMFont::limitLabelWidth(v96, 90.0, 0.80000001, 0.0);
v97 = *(float *)(*(__int64 (__fastcall **)(cocos2d::CCLabelBMFont *))(*(_QWORD *)v96 + 320LL))(v96) * 0.5;
v98 = (*(double (__fastcall **)(cocos2d::CCLabelBMFont *))(*(_QWORD *)v96 + 168LL))(v96);
v99 = *(float *)&v98 * v97;
v100 = *(float *)(*(__int64 (__fastcall **)(struct cocos2d::CCLabelBMFont *))(*(_QWORD *)v89 + 320LL))(v89) * 0.5;
v101 = (*(double (__fastcall **)(struct cocos2d::CCLabelBMFont *))(*(_QWORD *)v89 + 168LL))(v89);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v222, (float)((float)(*(float *)&v101 * v100) + v99) + 10.0, 0.0);
v103 = v102;
v104 = (*(__int64 (__fastcall **)(struct cocos2d::CCLabelBMFont *))(*(_QWORD *)v89 + 200LL))(v89);
cocos2d::CCPoint::operator+(v104, &v221, v103);
v105 = CCMenuItemSpriteExtra::create((int)v96, 0, a1, (__int64)LevelListLayer::onViewProfile);
(*(void (__fastcall **)(_QWORD, cocos2d::CCObject *))(**(_QWORD **)(a1 + 880) + 464LL))(*(_QWORD *)(a1 + 880), v105);
v106 = *(_QWORD *)v105;
cocos2d::CCNode::convertToNodeSpace(*(_QWORD *)(a1 + 880), &v222, &v221);
(*(void (__fastcall **)(cocos2d::CCObject *, __int64))(v106 + 184))(v105, v107);
(*(void (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 1000) + 160LL))(*(_QWORD *)(a1 + 1000));
(*(void (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 1008) + 160LL))(*(_QWORD *)(a1 + 1008));
v108 = *(float *)(*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 1000) + 320LL))(*(_QWORD *)(a1 + 1000));
v109 = (*(double (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 1000) + 168LL))(*(_QWORD *)(a1 + 1000));
v110 = *(float *)&v109 * v108;
v111 = *(float *)(*(__int64 (__fastcall **)(cocos2d::CCLabelBMFont *))(*(_QWORD *)v96 + 320LL))(v96);
v112 = (*(double (__fastcall **)(cocos2d::CCLabelBMFont *))(*(_QWORD *)v96 + 168LL))(v96);
v113 = *(float *)&v112 * v111;
v114 = *(float *)(*(__int64 (__fastcall **)(struct cocos2d::CCLabelBMFont *))(*(_QWORD *)v89 + 320LL))(v89);
v115 = (*(double (__fastcall **)(struct cocos2d::CCLabelBMFont *))(*(_QWORD *)v89 + 168LL))(v89);
v116 = (float)((float)((float)((float)(*(float *)&v115 * v114) + v113) + 10.0) - v110) - 10.0;
v117 = *(float *)(*(__int64 (__fastcall **)(struct cocos2d::CCLabelBMFont *))(*(_QWORD *)v89 + 320LL))(v89);
v118 = (float)-(float)(v116
- (float)((*(float (__fastcall **)(struct cocos2d::CCLabelBMFont *))(*(_QWORD *)v89 + 168LL))(v89)
* v117))
* 0.5;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v220, v118, 0.0);
v120 = v119;
v121 = (*(__int64 (__fastcall **)(struct cocos2d::CCLabelBMFont *))(*(_QWORD *)v89 + 200LL))(v89);
cocos2d::CCPoint::operator+(v121, &v222, v120);
(*(void (__fastcall **)(struct cocos2d::CCLabelBMFont *, __int64 *))(*(_QWORD *)v89 + 184LL))(v89, &v222);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v220, v118, 0.0);
v123 = v122;
v124 = (*(__int64 (__fastcall **)(cocos2d::CCObject *))(*(_QWORD *)v105 + 200LL))(v105);
cocos2d::CCPoint::operator+(v124, &v222, v123);
(*(void (__fastcall **)(cocos2d::CCObject *, __int64 *))(*(_QWORD *)v105 + 184LL))(v105, &v222);
(*(void (__fastcall **)(__int64, _QWORD, __int64))(*(_QWORD *)a1 + 456LL))(a1, *(_QWORD *)(a1 + 1000), 2);
(*(void (__fastcall **)(__int64, _QWORD, __int64))(*(_QWORD *)a1 + 456LL))(a1, *(_QWORD *)(a1 + 1008), 1);
v125 = *(float *)(*(__int64 (__fastcall **)(struct cocos2d::CCLabelBMFont *))(*(_QWORD *)v89 + 320LL))(v89);
v126 = (*(double (__fastcall **)(struct cocos2d::CCLabelBMFont *))(*(_QWORD *)v89 + 168LL))(v89);
cocos2d::CCPoint::CCPoint(
(cocos2d::CCPoint *)&v220,
(float)((float)((float)-(float)(*(float *)&v126 * v125) * 0.5) - (float)(v110 * 0.5)) - 10.0,
-1.0);
v128 = v127;
v129 = (*(__int64 (__fastcall **)(struct cocos2d::CCLabelBMFont *))(*(_QWORD *)v89 + 200LL))(v89);
cocos2d::CCPoint::operator+(v129, &v222, v128);
(*(void (__fastcall **)(_QWORD, __int64 *))(**(_QWORD **)(a1 + 1000) + 184LL))(*(_QWORD *)(a1 + 1000), &v222);
v130 = (*(double (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 1000) + 168LL))(*(_QWORD *)(a1 + 1000));
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v220, 0.0, *(float *)&v130 * -6.0);
v132 = v131;
v133 = (*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 1000) + 200LL))(*(_QWORD *)(a1 + 1000));
cocos2d::CCPoint::operator+(v133, &v222, v132);
(*(void (__fastcall **)(_QWORD, __int64 *))(**(_QWORD **)(a1 + 1008) + 184LL))(*(_QWORD *)(a1 + 1008), &v222);
}
*(_BYTE *)(a1 + 764) = 1;
v134 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v85);
v135 = cocos2d::CCDirector::getScreenTop(v134) - 25.0;
v137 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v136);
ScreenRight = cocos2d::CCDirector::getScreenRight(v137);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v226, (float)(ScreenRight - 25.0) - 0.0, v135);
cocos2d::CCNode::convertToNodeSpace(*(_QWORD *)(a1 + 880), v225, &v226);
if ( v13 == 2 )
{
v169 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_deleteBtn_001.png");
v170 = (int)v169;
(*(void (__fastcall **)(struct cocos2d::CCSprite *))(*(_QWORD *)v169 + 160LL))(v169);
v171 = CCMenuItemSpriteExtra::create(v170, 0, a1, (__int64)LevelListLayer::confirmDelete);
(*(void (__fastcall **)(_QWORD, cocos2d::CCObject *))(**(_QWORD **)(a1 + 880) + 464LL))(*(_QWORD *)(a1 + 880), v171);
v172 = *(_QWORD *)v171;
cocos2d::CCNode::convertToNodeSpace(*(_QWORD *)(a1 + 880), &v221, &v226);
(*(void (__fastcall **)(cocos2d::CCObject *, __int64))(v172 + 184))(v171, v173);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v222, 0.0, -41.0);
v175 = v174;
v176 = (*(__int64 (__fastcall **)(cocos2d::CCObject *))(*(_QWORD *)v171 + 200LL))(v171);
cocos2d::CCPoint::operator+(v176, &v221, v175);
cocos2d::CCPoint::operator=(v225, &v221);
v177 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_updateBtn_001.png");
(*(void (__fastcall **)(struct cocos2d::CCSprite *))(*(_QWORD *)v177 + 160LL))(v177);
v178 = CCMenuItemSpriteExtra::create((int)v177, 0, a1, (__int64)LevelBrowserLayer::onRefresh);
*(_QWORD *)(a1 + 648) = v178;
(*(void (__fastcall **)(_QWORD, cocos2d::CCObject *))(**(_QWORD **)(a1 + 880) + 464LL))(*(_QWORD *)(a1 + 880), v178);
(*(void (__fastcall **)(_QWORD, _BYTE *))(**(_QWORD **)(a1 + 648) + 184LL))(*(_QWORD *)(a1 + 648), v225);
v179 = (const struct cocos2d::CCPoint *)(*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 648) + 200LL))(*(_QWORD *)(a1 + 648));
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v220, v179);
v180 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_chatBtn_001.png");
LODWORD(v175) = (_DWORD)v180;
(*(void (__fastcall **)(struct cocos2d::CCSprite *))(*(_QWORD *)v180 + 160LL))(v180);
v181 = CCMenuItemSpriteExtra::create(v175, 0, a1, (__int64)LevelListLayer::onDescription);
(*(void (__fastcall **)(_QWORD, cocos2d::CCObject *))(**(_QWORD **)(a1 + 880) + 464LL))(*(_QWORD *)(a1 + 880), v181);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v222, 0.0, -41.0);
cocos2d::CCPoint::operator+(&v220, &v221, v182);
(*(void (__fastcall **)(cocos2d::CCObject *, void ***))(*(_QWORD *)v181 + 184LL))(v181, &v221);
v183 = (*(__int64 (__fastcall **)(cocos2d::CCObject *))(*(_QWORD *)v181 + 200LL))(v181);
cocos2d::CCPoint::operator=(&v220, v183);
v184 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_editModeBtn_001.png");
LODWORD(v181) = (_DWORD)v184;
(*(void (__fastcall **)(struct cocos2d::CCSprite *))(*(_QWORD *)v184 + 160LL))(v184);
v185 = CCMenuItemSpriteExtra::create((int)v181, 0, a1, (__int64)LevelListLayer::onToggleEditMode);
(*(void (__fastcall **)(_QWORD, cocos2d::CCObject *))(**(_QWORD **)(a1 + 880) + 464LL))(*(_QWORD *)(a1 + 880), v185);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v222, 0.0, -41.0);
cocos2d::CCPoint::operator+(&v220, &v221, v186);
(*(void (__fastcall **)(cocos2d::CCObject *, void ***))(*(_QWORD *)v185 + 184LL))(v185, &v221);
v187 = (*(__int64 (__fastcall **)(cocos2d::CCObject *))(*(_QWORD *)v185 + 200LL))(v185);
cocos2d::CCPoint::operator=(&v220, v187);
v188 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_plainBtn_001.png");
(*(void (__fastcall **)(struct cocos2d::CCSprite *, _QWORD, __int64))(*(_QWORD *)v188 + 456LL))(
v188,
*(_QWORD *)(a1 + 1000),
3);
(*(void (__fastcall **)(struct cocos2d::CCSprite *, _QWORD, __int64))(*(_QWORD *)v188 + 456LL))(
v188,
*(_QWORD *)(a1 + 1008),
2);
v189 = **(_QWORD **)(a1 + 1000);
v190 = *(float *)((*(__int64 (__fastcall **)(struct cocos2d::CCSprite *))(*(_QWORD *)v188 + 320LL))(v188) + 4) * 0.5;
v191 = (float *)(*(__int64 (__fastcall **)(struct cocos2d::CCSprite *))(*(_QWORD *)v188 + 320LL))(v188);
v192 = *(_QWORD *)(a1 + 1000);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v221, *v191 * 0.5, v190);
(*(void (__fastcall **)(__int64, __int64))(v189 + 184))(v192, v193);
v194 = **(_QWORD **)(a1 + 1008);
v195 = *(_QWORD *)(a1 + 1008);
v196 = (*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 1000) + 200LL))(*(_QWORD *)(a1 + 1000));
(*(void (__fastcall **)(__int64, __int64))(v194 + 184))(v195, v196);
(*(void (__fastcall **)(struct cocos2d::CCSprite *))(*(_QWORD *)v188 + 160LL))(v188);
v197 = CCMenuItemSpriteExtra::create((int)v188, 0, a1, (__int64)LevelListLayer::onSelectIcon);
(*(void (__fastcall **)(_QWORD, cocos2d::CCObject *))(**(_QWORD **)(a1 + 880) + 464LL))(*(_QWORD *)(a1 + 880), v197);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v222, 0.0, -41.0);
cocos2d::CCPoint::operator+(&v220, &v221, v198);
(*(void (__fastcall **)(cocos2d::CCObject *, void ***))(*(_QWORD *)v197 + 184LL))(v197, &v221);
v199 = (*(__int64 (__fastcall **)(cocos2d::CCObject *))(*(_QWORD *)v197 + 200LL))(v197);
cocos2d::CCPoint::operator=(&v220, v199);
v200 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_duplicateBtn_001.png");
LODWORD(v197) = (_DWORD)v200;
(*(void (__fastcall **)(struct cocos2d::CCSprite *))(*(_QWORD *)v200 + 160LL))(v200);
v201 = CCMenuItemSpriteExtra::create((int)v197, 0, a1, (__int64)LevelListLayer::confirmClone);
(*(void (__fastcall **)(_QWORD, cocos2d::CCObject *))(**(_QWORD **)(a1 + 880) + 464LL))(*(_QWORD *)(a1 + 880), v201);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v222, 0.0, -41.0);
cocos2d::CCPoint::operator+(&v220, &v221, v202);
(*(void (__fastcall **)(cocos2d::CCObject *, void ***))(*(_QWORD *)v201 + 184LL))(v201, &v221);
v203 = (*(__int64 (__fastcall **)(cocos2d::CCObject *))(*(_QWORD *)v201 + 200LL))(v201);
cocos2d::CCPoint::operator=(&v220, v203);
v204 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_shareBtn_001.png");
v205 = *(_QWORD *)v204;
(*(__int64 (__fastcall **)(struct cocos2d::CCSprite *))(*(_QWORD *)v177 + 320LL))(v177);
(*(void (__fastcall **)(struct cocos2d::CCSprite *))(*(_QWORD *)v177 + 168LL))(v177);
(*(__int64 (__fastcall **)(struct cocos2d::CCSprite *))(*(_QWORD *)v204 + 320LL))(v204);
(*(void (__fastcall **)(struct cocos2d::CCSprite *))(v205 + 160))(v204);
v168 = CCMenuItemSpriteExtra::create((int)v204, 0, a1, (__int64)LevelListLayer::onShare);
(*(void (__fastcall **)(_QWORD, cocos2d::CCObject *))(**(_QWORD **)(a1 + 880) + 464LL))(*(_QWORD *)(a1 + 880), v168);
}
else
{
v139 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_updateBtn_001.png");
v140 = (int)v139;
(*(void (__fastcall **)(struct cocos2d::CCSprite *))(*(_QWORD *)v139 + 160LL))(v139);
v141 = CCMenuItemSpriteExtra::create(v140, 0, a1, (__int64)LevelListLayer::onRefreshLevelList);
*(_QWORD *)(a1 + 648) = v141;
(*(void (__fastcall **)(_QWORD, cocos2d::CCObject *))(**(_QWORD **)(a1 + 880) + 464LL))(*(_QWORD *)(a1 + 880), v141);
v142 = **(_QWORD **)(a1 + 648);
v143 = *(_QWORD *)(a1 + 648);
cocos2d::CCNode::convertToNodeSpace(*(_QWORD *)(a1 + 880), &v221, &v226);
(*(void (__fastcall **)(__int64, __int64))(v142 + 184))(v143, v144);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v222, 0.0, -41.0);
v146 = v145;
v147 = (*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 648) + 200LL))(*(_QWORD *)(a1 + 648));
cocos2d::CCPoint::operator+(v147, &v221, v146);
cocos2d::CCPoint::operator=(v225, &v221);
v148 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_infoBtn_001.png");
LODWORD(v146) = (_DWORD)v148;
(*(void (__fastcall **)(struct cocos2d::CCSprite *))(*(_QWORD *)v148 + 160LL))(v148);
v149 = CCMenuItemSpriteExtra::create(v146, 0, a1, (__int64)LevelListLayer::onInfo);
(*(void (__fastcall **)(_QWORD, cocos2d::CCObject *))(**(_QWORD **)(a1 + 880) + 464LL))(*(_QWORD *)(a1 + 880), v149);
(*(void (__fastcall **)(cocos2d::CCObject *, _BYTE *))(*(_QWORD *)v149 + 184LL))(v149, v225);
v150 = (const struct cocos2d::CCPoint *)(*(__int64 (__fastcall **)(cocos2d::CCObject *))(*(_QWORD *)v149 + 200LL))(v149);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v220, v150);
v151 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_like2Btn_001.png");
LODWORD(v149) = (_DWORD)v151;
(*(void (__fastcall **)(struct cocos2d::CCSprite *))(*(_QWORD *)v151 + 160LL))(v151);
v152 = CCMenuItemSpriteExtra::create((int)v149, 0, a1, (__int64)LevelListLayer::onLike);
*(_QWORD *)(a1 + 960) = v152;
(*(void (__fastcall **)(_QWORD, cocos2d::CCObject *))(**(_QWORD **)(a1 + 880) + 464LL))(*(_QWORD *)(a1 + 880), v152);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v222, 0.0, -41.0);
cocos2d::CCPoint::operator+(&v220, &v221, v153);
(*(void (__fastcall **)(_QWORD, void ***))(**(_QWORD **)(a1 + 960) + 184LL))(*(_QWORD *)(a1 + 960), &v221);
v154 = (*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 960) + 200LL))(*(_QWORD *)(a1 + 960));
cocos2d::CCPoint::operator=(&v220, v154);
v155 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_duplicateBtn_001.png");
LODWORD(v149) = (_DWORD)v155;
(*(void (__fastcall **)(struct cocos2d::CCSprite *))(*(_QWORD *)v155 + 160LL))(v155);
v156 = CCMenuItemSpriteExtra::create((int)v149, 0, a1, (__int64)LevelListLayer::confirmClone);
(*(void (__fastcall **)(_QWORD, cocos2d::CCObject *))(**(_QWORD **)(a1 + 880) + 464LL))(*(_QWORD *)(a1 + 880), v156);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v222, 0.0, -41.0);
cocos2d::CCPoint::operator+(&v220, &v221, v157);
(*(void (__fastcall **)(cocos2d::CCObject *, void ***))(*(_QWORD *)v156 + 184LL))(v156, &v221);
v158 = (*(__int64 (__fastcall **)(cocos2d::CCObject *))(*(_QWORD *)v156 + 200LL))(v156);
cocos2d::CCPoint::operator=(&v220, v158);
v159 = "gj_heartOff_001.png";
if ( *(_BYTE *)(*(_QWORD *)(a1 + 920) + 396LL) )
v159 = "gj_heartOn_001.png";
v160 = (unsigned int)cocos2d::CCSprite::createWithSpriteFrameName(v159);
v161 = CCMenuItemSpriteExtra::create(v160, 0, a1, (__int64)LevelListLayer::onFavorite);
*((_DWORD *)v161 + 93) = 1066192077;
(*(void (__fastcall **)(_QWORD, cocos2d::CCObject *, __int64))(**(_QWORD **)(a1 + 880) + 456LL))(
*(_QWORD *)(a1 + 880),
v161,
100);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v222, 0.0, -41.0);
cocos2d::CCPoint::operator+(&v220, &v221, v162);
(*(void (__fastcall **)(cocos2d::CCObject *, void ***))(*(_QWORD *)v161 + 184LL))(v161, &v221);
v163 = (*(__int64 (__fastcall **)(cocos2d::CCObject *))(*(_QWORD *)v161 + 200LL))(v161);
cocos2d::CCPoint::operator=(&v220, v163);
v164 = GJAccountManager::sharedState();
if ( *(_DWORD *)(*(_QWORD *)(a1 + 920) + 364LL) != *(_DWORD *)(v164 + 360) - *(_DWORD *)(v164 + 364) )
{
v165 = qword_14090BFD0;
if ( !qword_14090BFD0 )
{
v221 = (void **)operator new(0x6E8u);
qword_14090BFD0 = GameManager::GameManager((__int64)v221);
(*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0);
v165 = qword_14090BFD0;
}
if ( *(_DWORD *)(v165 + 1064) - *(_DWORD *)(v165 + 1068) <= 1 )
goto LABEL_76;
}
v166 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_deleteServerBtn_001.png");
v167 = (int)v166;
(*(void (__fastcall **)(struct cocos2d::CCSprite *))(*(_QWORD *)v166 + 160LL))(v166);
v168 = CCMenuItemSpriteExtra::create(v167, 0, a1, (__int64)LevelListLayer::confirmOwnerDelete);
(*(void (__fastcall **)(_QWORD, cocos2d::CCObject *))(**(_QWORD **)(a1 + 880) + 464LL))(*(_QWORD *)(a1 + 880), v168);
}
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v222, 0.0, -41.0);
cocos2d::CCPoint::operator+(&v220, &v221, v206);
(*(void (__fastcall **)(cocos2d::CCObject *, void ***))(*(_QWORD *)v168 + 184LL))(v168, &v221);
v207 = (*(__int64 (__fastcall **)(cocos2d::CCObject *))(*(_QWORD *)v168 + 200LL))(v168);
cocos2d::CCPoint::operator=(&v220, v207);
LABEL_76:
v208 = (unsigned int)cocos2d::CCSprite::createWithSpriteFrameName("GJ_infoIcon_001.png");
v209 = CCMenuItemSpriteExtra::create(v208, 0, a1, (__int64)LevelListLayer::onListInfo);
*((_DWORD *)v209 + 93) = 1067030938;
(*(void (__fastcall **)(_QWORD, cocos2d::CCObject *))(**(_QWORD **)(a1 + 880) + 464LL))(*(_QWORD *)(a1 + 880), v209);
v210 = *(_QWORD *)v209;
v211 = *(_QWORD *)(a1 + 880);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v221, 30.0, 30.0);
cocos2d::CCNode::convertToNodeSpace(v211, &v222, v212);
(*(void (__fastcall **)(cocos2d::CCObject *, __int64))(v210 + 184))(v209, v213);
v214 = LoadingCircle::create();
*(_QWORD *)(a1 + 736) = v214;
*((_QWORD *)v214 + 69) = a1;
*(_BYTE *)(*(_QWORD *)(a1 + 736) + 560LL) = 0;
cocos2d::CCObject::retain(*(cocos2d::CCObject **)(a1 + 736));
LoadingCircle::show(*(_QWORD *)(a1 + 736));
(*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(a1 + 736) + 336LL))(*(_QWORD *)(a1 + 736), 0);
v221 = Block;
*(_OWORD *)Block = 0;
v230 = 0;
v231 = 0;
Block[0] = sub_14003D460(0x20u);
v230 = 31;
v231 = 31;
strcpy((char *)Block[0], "No Internet connection!");
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v222, 0.5, 1.0);
v216 = TextArea::create((__int64)Block, &qword_140704F78, 1.0, 600.0, v215, 1101004800, 0, 0);
*(_QWORD *)(a1 + 600) = v216;
v217 = *(_QWORD *)v216;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v221, v224[0] * 0.5, (float)(v224[1] * 0.5) + 10.0);
(*(void (__fastcall **)(char *, __int64))(v217 + 184))(v216, v218);
(*(void (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 600) + 160LL))(*(_QWORD *)(a1 + 600));
(*(void (__fastcall **)(__int64, _QWORD, __int64))(*(_QWORD *)a1 + 456LL))(a1, *(_QWORD *)(a1 + 600), 2);
(*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(a1 + 600) + 336LL))(*(_QWORD *)(a1 + 600), 0);
if ( *(_BYTE *)(cocos2d::CCApplication::sharedApplication(v219) + 209) )
GameToolbox::addBackButton(a1, (__int64)v223);
LevelListLayer::updateSideButtons(a1);
LevelListLayer::updateStatsArt(a1);
if ( v13 == 2 || *(_BYTE *)(*(_QWORD *)(a1 + 920) + 398LL) )
{
*(_BYTE *)(a1 + 792) = 1;
LevelBrowserLayer::setupLevelBrowser(a1, nullptr);
}
else
{
*(_DWORD *)(v12 + 452) = 1;
*(_BYTE *)(*(_QWORD *)(a1 + 920) + 398LL) = 1;
LevelBrowserLayer::loadPage(a1, (int *)v12);
}
return 1;
}