// // LevelBrowserLayer::init from 0x100480690 to 0x1004824a3 (7699 bytes) // // 1 xrefs: // > LevelBrowserLayer::create @ 0x100480649 // // 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 12:30:41 +0000 // __int64 __fastcall LevelBrowserLayer::init(__int64 a1, __int64 a2, double a3) { __int64 v3; // r14 char v5; // al char *v6; // r13 __int64 v7; // rax __int64 v8; // rax bool v9; // zf int v10; // eax _DWORD *v11; // rdi __int64 v12; // rax __int64 v13; // rax __int64 v14; // rax _DWORD *v15; // rdi char v16; // al __int64 v17; // rsi const char *v18; // rax char *v19; // r15 __int64 v20; // r15 double v21; // xmm0_8 __int64 v22; // rax char *v23; // r12 __int64 v24; // rax __int64 v25; // rax float v26; // xmm1_4 double v27; // xmm0_8 unsigned __int8 *v28; // r15 __int64 v29; // rax __int64 v30; // rax float v31; // xmm1_4 char *v32; // r15 int v33; // edx int v34; // ecx int v35; // r8d int v36; // r9d __int64 v37; // r15 __int64 v38; // rax __int64 v39; // rax float v40; // xmm0_4 double v41; // xmm0_8 __int64 v42; // r12 double v43; // xmm0_8 __int64 v44; // rax unsigned int v45; // r15d char v46; // al unsigned int v47; // r15d double v48; // xmm1_8 const char *v49; // rdi const char *v50; // r15 char *v51; // rax void *v52; // rax __int64 v53; // r13 __int64 v54; // rax unsigned __int8 *v55; // rax __int64 v56; // r15 void *v57; // rax __int64 v58; // r15 __int64 v59; // rax float v60; // xmm0_4 char *v61; // r15 __int64 v62; // rax __int64 v63; // r13 __int64 v64; // rax void *v65; // rax __int64 v66; // r15 __int64 v67; // rax float v68; // xmm0_4 double v69; // xmm0_8 __int64 v70; // rax __int64 v71; // rax __int64 v72; // r15 __int64 v73; // rax __int64 v74; // rax float v75; // xmm1_4 __int64 v76; // r15 char *v77; // r15 __int64 v78; // rax unsigned int v79; // r15d char *v80; // r15 __int64 v81; // rax __int64 v82; // r15 _OWORD *v83; // rax __int64 v84; // xmm0_8 __int64 v85; // rax char *v86; // r15 char *v87; // r15 void *v88; // rax __int64 v89; // rdi __int64 v90; // rax int v91; // esi unsigned int *v92; // rax __int64 v93; // rcx unsigned __int64 v94; // rax unsigned __int64 v95; // rcx _DWORD *v96; // rdi unsigned int v97; // eax unsigned int v98; // ecx int v99; // eax __int64 v100; // r15 double v101; // xmm0_8 char *v102; // r15 void *v103; // r13 __int64 v104; // rax __int64 v105; // rax float v106; // xmm1_4 float v107; // xmm2_4 double v108; // xmm0_8 __int64 v109; // rdi __int64 v110; // rax __int64 v111; // rax char *v112; // rax void *v113; // r15 __int64 v114; // rax __int64 v115; // rax float v116; // xmm1_4 char *v117; // rax void *v118; // r15 __int64 v119; // rax __int64 v120; // rax float v121; // xmm1_4 double v122; // xmm0_8 char *v123; // rax void *v124; // r15 __int64 v125; // rax __int64 v126; // rax float v127; // xmm1_4 _DWORD *v128; // rax __int64 v129; // rax const char *v130; // rdi char *v131; // r15 void *v132; // r15 unsigned __int64 *v133; // r13 int v134; // ecx __int64 v135; // r15 double v136; // xmm0_8 char *v137; // r13 void *v138; // rax __int64 v139; // rax __int64 v140; // rax char v141; // r14 __int64 v142; // r15 double v143; // xmm0_8 char *v144; // rax void *v145; // r13 __int64 v146; // rax __int64 v147; // rax float v148; // xmm1_4 __int64 v149; // rax unsigned int v150; // r15d __int64 v151; // rax char v152; // al int v153; // ecx __int64 v154; // r13 __int64 v155; // rax float v156; // xmm0_4 __int64 v157; // rax void *v158; // r15 __int64 v159; // rax void *v160; // r15 __int64 v161; // rax void *v162; // r15 char *v163; // r15 __int64 v164; // rax __int64 v165; // r13 __int64 v166; // rax void *v167; // rax __int64 v168; // r15 unsigned __int64 *v169; // r13 unsigned __int8 *v170; // r15 double v171; // xmm0_8 unsigned __int8 *v172; // r13 void *v173; // rax __int64 v174; // r15 unsigned __int64 *v175; // r13 double v176; // xmm0_8 char *v177; // rax void *v178; // r15 double v179; // xmm0_8 char *v180; // rax void *v181; // rax __int64 v182; // r12 unsigned __int64 *v183; // r15 int v185; // eax char *v186; // r15 char *v187; // r15 __int64 v188; // r15 double v189; // xmm0_8 char *v190; // r15 __int64 (__fastcall *v191)(); // rcx void *v192; // r13 __int64 v193; // rax __int64 v194; // rax float v195; // xmm1_4 float v196; // xmm2_4 double v197; // xmm0_8 __int64 v198; // rdi const char *v199; // rdi char *v200; // r15 void *v201; // r15 unsigned __int64 *v202; // r13 const char *v203; // rdi char v204; // r15 char *v205; // rax __int64 (__fastcall *v206)(); // rcx void *v207; // rax __int64 v208; // r13 void *v209; // r15 __int64 v210; // rax float v211; // xmm1_4 unsigned __int64 v212; // [rsp+0h] [rbp-B0h] BYREF __int128 v213; // [rsp+8h] [rbp-A8h] BYREF void *__p; // [rsp+18h] [rbp-98h] __int64 v215; // [rsp+20h] [rbp-90h] void *v216; // [rsp+28h] [rbp-88h] _BYTE v217[24]; // [rsp+30h] [rbp-80h] BYREF float v218; // [rsp+4Ch] [rbp-64h] char *v219; // [rsp+50h] [rbp-60h] unsigned __int8 v220; // [rsp+5Bh] [rbp-55h] float v221; // [rsp+5Ch] [rbp-54h] __int64 v222; // [rsp+60h] [rbp-50h] BYREF __int64 v223; // [rsp+68h] [rbp-48h] float v224; // [rsp+70h] [rbp-40h] unsigned __int64 v225; // [rsp+74h] [rbp-3Ch] BYREF char isControllerConnected; // [rsp+7Fh] [rbp-31h] double v227[6]; // [rsp+80h] [rbp-30h] BYREF v3 = a2; if ( a2 ) { v5 = *(_BYTE *)(a2 + 430); v6 = (char *)(a1 + 748); *(_BYTE *)(a1 + 748) = v5; if ( v5 == 1 ) { v7 = cocos2d::CCDirector::sharedDirector(); v8 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v7 + 160LL))(v7); cocos2d::CCTouchDispatcher::registerForcePrio(v8, a1, 2, 0); v5 = *(_BYTE *)(a1 + 748); } } else { v6 = (char *)(a1 + 748); *(_BYTE *)(a1 + 748) = 0; v5 = 0; } v9 = (v5 & 1) == 0; v10 = -1778384896; if ( v9 ) v10 = 0; *(_DWORD *)v217 = v10; v220 = cocos2d::CCLayerColor::initWithColor(a1, v217); if ( v220 ) { v11 = *(_DWORD **)(a1 + 664); if ( v11 != (_DWORD *)a2 ) { if ( a2 ) { cocos2d::CCObject::retain(a2); v11 = *(_DWORD **)(a1 + 664); } if ( v11 ) cocos2d::CCObject::release(v11); *(_QWORD *)(a1 + 664) = a2; } v12 = GameManager::sharedState(); if ( GameManager::onlyCuratedLevels(v12) ) { if ( *(_QWORD *)(a1 + 664) ) { v13 = GameLevelManager::sharedState(a3); if ( !(unsigned __int8)sub_100558320(v13, *(unsigned int *)(*(_QWORD *)(a1 + 664) + 316LL)) ) { v14 = GJSearchObject::create_2(6); v15 = *(_DWORD **)(a1 + 664); if ( v15 == (_DWORD *)v14 ) { v3 = *(_QWORD *)(a1 + 664); v16 = *v6; if ( !v15 ) goto LABEL_26; goto LABEL_24; } v3 = v14; if ( v14 ) { cocos2d::CCObject::retain(v14); v15 = *(_DWORD **)(a1 + 664); } if ( v15 ) cocos2d::CCObject::release(v15); *(_QWORD *)(a1 + 664) = v3; } } } v16 = *v6; if ( !v3 ) goto LABEL_26; LABEL_24: if ( (v16 & 1) == 0 ) { *(_DWORD *)(GameLevelManager::sharedState(a3) + 1480) = *(_DWORD *)(v3 + 316); v16 = *v6; } LABEL_26: if ( (v16 & 1) != 0 ) (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)a1 + 1000LL))(a1, 1); (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)a1 + 1072LL))(a1, 1); (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)a1 + 1088LL))(a1, 1); v17 = cocos2d::CCDirector::sharedDirector(); cocos2d::CCDirector::getWinSize(&v222, v17); v9 = *(_BYTE *)(a1 + 748) == 0; v215 = v3; if ( v9 ) { v19 = cocos2d::CCSprite::create_1((__int64)"GJ_gradientBG.png"); *(_QWORD *)(a1 + 800) = v19; sub_100278250((float *)v217, 0.0, 0.0); (*(void (__fastcall **)(char *, _BYTE *))(*(_QWORD *)v19 + 296LL))(v19, v217); (*(void (__fastcall **)(__int64, _QWORD, __int64))(*(_QWORD *)a1 + 464LL))( a1, *(_QWORD *)(a1 + 800), 4294967294LL); (*(void (__fastcall **)(_QWORD, float))(**(_QWORD **)(a1 + 800) + 128LL))( *(_QWORD *)(a1 + 800), (float)(*(float *)&v222 + 10.0) / *(float *)(*(_QWORD *)(a1 + 800) + 432LL)); (*(void (__fastcall **)(_QWORD, float))(**(_QWORD **)(a1 + 800) + 144LL))( *(_QWORD *)(a1 + 800), (float)(*((float *)&v222 + 1) + 10.0) / *(float *)(*(_QWORD *)(a1 + 800) + 436LL)); v20 = *(_QWORD *)(a1 + 800); *(_QWORD *)&v21 = 3231711232LL; sub_100278250((float *)v217, -5.0, -5.0); (*(void (__fastcall **)(__int64, _BYTE *))(*(_QWORD *)v20 + 184LL))(v20, v217); if ( *(_QWORD *)(a1 + 800) ) { BYTE2(v227[0]) = -1; LOWORD(v227[0]) = 26112; v22 = *(_QWORD *)(a1 + 664); if ( v22 && (unsigned __int8)GameLevelManager::vaultTimedType(*(unsigned int *)(v22 + 316), v217) ) { if ( *(_DWORD *)v217 == 1 ) { memset(v227, 51, 3); } else if ( *(_DWORD *)v217 == 2 ) { BYTE2(v227[0]) = 126; LOWORD(v227[0]) = 6243; } } v21 = (*(double (__fastcall **)(_QWORD, double *))(**(_QWORD **)(a1 + 800) + 960LL))( *(_QWORD *)(a1 + 800), v227); } v23 = cocos2d::CCSprite::createWithSpriteFrameName((__int64)"GJ_sideArt_001.png", v21); sub_100278250((float *)v217, 0.0, 0.0); (*(void (__fastcall **)(char *, _BYTE *))(*(_QWORD *)v23 + 296LL))(v23, v217); v24 = cocos2d::CCDirector::sharedDirector(); v224 = sub_100479760(v24) + -1.0; v25 = cocos2d::CCDirector::sharedDirector(); v26 = sub_100479750(v25) + -1.0; sub_100278250((float *)v217, v224, v26); (*(void (__fastcall **)(char *, _BYTE *))(*(_QWORD *)v23 + 184LL))(v23, v217); v27 = (*(double (__fastcall **)(__int64, char *, __int64))(*(_QWORD *)a1 + 464LL))(a1, v23, 1); v28 = (unsigned __int8 *)cocos2d::CCSprite::createWithSpriteFrameName((__int64)"GJ_sideArt_001.png", v27); sub_100278250((float *)v217, 1.0, 0.0); (*(void (__fastcall **)(unsigned __int8 *, _BYTE *))(*(_QWORD *)v28 + 296LL))(v28, v217); v29 = cocos2d::CCDirector::sharedDirector(); v224 = sub_100479770(v29) + 1.0; v30 = cocos2d::CCDirector::sharedDirector(); v31 = sub_100479750(v30) + -1.0; sub_100278250((float *)v217, v224, v31); (*(void (__fastcall **)(unsigned __int8 *, _BYTE *))(*(_QWORD *)v28 + 184LL))(v28, v217); cocos2d::CCSprite::setFlipX(v28, 1u); (*(void (__fastcall **)(__int64, unsigned __int8 *, __int64))(*(_QWORD *)a1 + 464LL))(a1, v28, 1); v18 = "GJ_arrow_01_001.png"; if ( (*(_BYTE *)(a1 + 748) & 1) != 0 ) v18 = "GJ_closeBtn_001.png"; v3 = v215; } else { v18 = "GJ_closeBtn_001.png"; } v217[0] = 38; *(_OWORD *)&v217[1] = *(_OWORD *)v18; *(_DWORD *)&v217[16] = *(_DWORD *)(v18 + 15); v217[20] = 0; v32 = cocos2d::CCSprite::createWithSpriteFrameName((__int64)&v217[1], *(double *)&v217[1]); if ( *v6 == 1 ) (*(void (__fastcall **)(char *, float))(*(_QWORD *)v32 + 160LL))(v32, 0.89999998); v216 = CCMenuItemSpriteExtra::create((__int64)v32, 0, a1, 1329, 0); CCMenuItemSpriteExtra::setSizeMult((__int64)v216, 1.6); v37 = sub_1008735E0((_DWORD)v216, 0, v33, v34, v35, v36); (*(void (__fastcall **)(__int64, __int64, __int64))(*(_QWORD *)a1 + 464LL))(a1, v37, 1); v38 = cocos2d::CCDirector::sharedDirector(); v224 = sub_100479760(v38); v39 = cocos2d::CCDirector::sharedDirector(); v40 = sub_100479740(v39); sub_100278250((float *)v227, v224 + 24.0, v40 + -23.0); v41 = (*(double (__fastcall **)(__int64, double *))(*(_QWORD *)v37 + 184LL))(v37, v227); isControllerConnected = PlatformToolbox::isControllerConnected(v41); v42 = cocos2d::CCMenu::create(); (*(void (__fastcall **)(__int64, __int64, __int64))(*(_QWORD *)a1 + 464LL))(a1, v42, 10); *(_QWORD *)&v43 = HIDWORD(v222); *(float *)&v43 = *((float *)&v222 + 1) * 0.5; v224 = *((float *)&v222 + 1) * 0.5; v44 = *(_QWORD *)(a1 + 664); if ( v44 ) { v45 = *(_DWORD *)(v44 + 316); v46 = GameLevelManager::vaultTimedType(v45, v227); v47 = v45 - 21; HIDWORD(v43) = 0; *(float *)&v43 = v224 + -30.0; v48 = v43; if ( (v46 & 1) == 0 ) *(_QWORD *)&v48 = LODWORD(v224); if ( v47 >= 3 ) v43 = v48; v224 = *(float *)&v43; } v219 = v6; v49 = "controllerBtn_DPad_Left_001.png"; v50 = "GJ_arrow_03_001.png"; if ( !isControllerConnected ) v49 = "GJ_arrow_03_001.png"; v51 = cocos2d::CCSprite::createWithSpriteFrameName((__int64)v49, v43); v52 = CCMenuItemSpriteExtra::create((__int64)v51, 0, a1, (__int64)sub_1004827B0, 0); *(_QWORD *)(a1 + 624) = v52; (*(void (__fastcall **)(__int64, void *))(*(_QWORD *)v42 + 456LL))(v42, v52); v53 = *(_QWORD *)(a1 + 624); v54 = cocos2d::CCDirector::sharedDirector(); *(float *)&v43 = sub_100479760(v54) + 24.0; sub_100278250((float *)&v225, *(float *)&v43, v224); cocos2d::CCNode::convertToNodeSpace(v227, v42, (unsigned int *)&v225); (*(void (__fastcall **)(__int64, double *))(*(_QWORD *)v53 + 184LL))(v53, v227); if ( isControllerConnected ) v50 = "controllerBtn_DPad_Right_001.png"; v55 = (unsigned __int8 *)cocos2d::CCSprite::createWithSpriteFrameName((__int64)v50, v43); v56 = (__int64)v55; if ( !isControllerConnected ) cocos2d::CCSprite::setFlipX(v55, 1u); v57 = CCMenuItemSpriteExtra::create(v56, 0, a1, (__int64)sub_100482800, 0); *(_QWORD *)(a1 + 616) = v57; (*(void (__fastcall **)(__int64, void *))(*(_QWORD *)v42 + 456LL))(v42, v57); v58 = *(_QWORD *)(a1 + 616); v59 = cocos2d::CCDirector::sharedDirector(); v60 = sub_100479770(v59); sub_100278250((float *)&v225, v60 + -24.0, v224); cocos2d::CCNode::convertToNodeSpace(v227, v42, (unsigned int *)&v225); (*(void (__fastcall **)(__int64, double *))(*(_QWORD *)v58 + 184LL))(v58, v227); v61 = cocos2d::CCSprite::create_1((__int64)"GJ_button_02.png"); v62 = cocos2d::CCLabelBMFont::create_3("1", "bigFont.fnt"); *(_QWORD *)(a1 + 680) = v62; (*(void (__fastcall **)(char *, __int64, __int64))(*(_QWORD *)v61 + 464LL))(v61, v62, 1); v63 = *(_QWORD *)(a1 + 680); LODWORD(v223) = *(_DWORD *)(*(__int64 (__fastcall **)(char *))(*(_QWORD *)v61 + 328LL))(v61); v64 = (*(__int64 (__fastcall **)(char *))(*(_QWORD *)v61 + 328LL))(v61); sub_100278250((float *)v227, *(float *)&v223 * 0.5, (float)(0.5 * *(float *)(v64 + 4)) + 1.0); (*(void (__fastcall **)(__int64, double *))(*(_QWORD *)v63 + 184LL))(v63, v227); LevelBrowserLayer::updatePageLabel(a1); (*(void (__fastcall **)(char *, float))(*(_QWORD *)v61 + 160LL))(v61, 0.69999999); v65 = CCMenuItemSpriteExtra::create((__int64)v61, 0, a1, (__int64)LevelBrowserLayer::onGoToPage, 0); *(_QWORD *)(a1 + 688) = v65; (*(void (__fastcall **)(__int64, void *))(*(_QWORD *)v42 + 456LL))(v42, v65); v66 = *(_QWORD *)(a1 + 688); v67 = cocos2d::CCDirector::sharedDirector(); v68 = sub_100479770(v67); v224 = v224 + 122.0; sub_100278250((float *)&v225, (float)(v68 + -24.0) + 1.0, v224); cocos2d::CCNode::convertToNodeSpace(v227, v42, (unsigned int *)&v225); (*(void (__fastcall **)(__int64, double *))(*(_QWORD *)v66 + 184LL))(v66, v227); (*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(a1 + 624) + 344LL))(*(_QWORD *)(a1 + 624), 0); (*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(a1 + 616) + 344LL))(*(_QWORD *)(a1 + 616), 0); v69 = (*(double (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(a1 + 688) + 344LL))(*(_QWORD *)(a1 + 688), 0); v70 = LoadingCircle::create(v69); *(_QWORD *)(a1 + 736) = v70; *(_QWORD *)(v70 + 552) = a1; *(_BYTE *)(v70 + 560) = 0; cocos2d::CCObject::retain(v70); LoadingCircle::show(*(_QWORD *)(a1 + 736)); (*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(a1 + 736) + 344LL))(*(_QWORD *)(a1 + 736), 0); v71 = cocos2d::CCLabelBMFont::create_3(" ", "goldFont.fnt"); *(_QWORD *)(a1 + 672) = v71; (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)a1 + 456LL))(a1, v71); v72 = *(_QWORD *)(a1 + 672); v73 = cocos2d::CCDirector::sharedDirector(); LODWORD(v223) = sub_100479770(v73); v74 = cocos2d::CCDirector::sharedDirector(); v75 = sub_100479740(v74); sub_100278250((float *)v227, *(float *)&v223 + -7.0, v75 + -3.0); (*(void (__fastcall **)(__int64, double *))(*(_QWORD *)v72 + 184LL))(v72, v227); v76 = *(_QWORD *)(a1 + 672); sub_100278250((float *)v227, 1.0, 1.0); (*(void (__fastcall **)(__int64, double *))(*(_QWORD *)v76 + 296LL))(v76, v227); (*(void (__fastcall **)(_QWORD, float))(**(_QWORD **)(a1 + 672) + 160LL))(*(_QWORD *)(a1 + 672), 0.60000002); __p = operator new(0x20u); *(_QWORD *)&v213 = 33; *((_QWORD *)&v213 + 1) = 31; strcpy((char *)__p, "No Internet connection!"); sub_100278250((float *)v227, 0.5, 1.0); v77 = TextArea::create(&v213, (__int64)"bigFont.fnt", v227, 0, 0, 1.0, 600.0, 20.0); *(_QWORD *)(a1 + 600) = v77; if ( (v213 & 1) != 0 ) { operator delete(__p); v77 = *(char **)(a1 + 600); } sub_100278250((float *)v227, *(float *)&v222 * 0.5, (float)(*((float *)&v222 + 1) * 0.5) + 10.0); (*(void (__fastcall **)(char *, double *))(*(_QWORD *)v77 + 184LL))(v77, v227); (*(void (__fastcall **)(_QWORD, float))(**(_QWORD **)(a1 + 600) + 160LL))(*(_QWORD *)(a1 + 600), 0.60000002); (*(void (__fastcall **)(__int64, _QWORD, __int64))(*(_QWORD *)a1 + 464LL))(a1, *(_QWORD *)(a1 + 600), 2); (*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(a1 + 600) + 344LL))(*(_QWORD *)(a1 + 600), 0); v78 = *(_QWORD *)(a1 + 664); if ( !v78 ) goto LABEL_97; v79 = *(_DWORD *)(v78 + 316); if ( ((v79 - 21 >= 3) & (unsigned __int8)~(unsigned __int8)GameLevelManager::vaultTimedType(v79, v227)) != 0 ) { v85 = *(_QWORD *)(a1 + 664); if ( !v85 ) goto LABEL_97; switch ( *(_DWORD *)(v85 + 316) ) { case 6: if ( *(_DWORD *)(v85 + 432) != 1 ) goto LABEL_71; v86 = cocos2d::CCSprite::createWithSpriteFrameName( (__int64)"topListsLabel_001.png", COERCE_DOUBLE(1058642330)); (*(void (__fastcall **)(__int64, char *, __int64))(*(_QWORD *)a1 + 464LL))(a1, v86, 2); sub_100278250( (float *)v227, *(float *)&v222 * 0.5, (float)((float)(*((float *)&v222 + 1) * 0.5) + 110.0) + 24.0); (*(void (__fastcall **)(char *, double *))(*(_QWORD *)v86 + 184LL))(v86, v227); break; case 0x11: LABEL_71: v87 = cocos2d::CCSprite::createWithSpriteFrameName( (__int64)"featuredLabel_001.png", COERCE_DOUBLE(1058642330)); (*(void (__fastcall **)(__int64, char *, __int64))(*(_QWORD *)a1 + 464LL))(a1, v87, 2); sub_100278250( (float *)v227, *(float *)&v222 * 0.5, (float)((float)(*((float *)&v222 + 1) * 0.5) + 110.0) + 24.0); (*(void (__fastcall **)(char *, double *))(*(_QWORD *)v87 + 184LL))(v87, v227); break; case 0x1C: v186 = cocos2d::CCSprite::createWithSpriteFrameName( (__int64)"weeklyLevelsLabel_001.png", COERCE_DOUBLE(1058642330)); (*(void (__fastcall **)(__int64, char *, __int64))(*(_QWORD *)a1 + 464LL))(a1, v186, 2); sub_100278250( (float *)v227, *(float *)&v222 * 0.5, (float)((float)(*((float *)&v222 + 1) * 0.5) + 110.0) + 24.0); (*(void (__fastcall **)(char *, double *))(*(_QWORD *)v186 + 184LL))(v186, v227); break; case 0x1D: v187 = cocos2d::CCSprite::createWithSpriteFrameName( (__int64)"bonusLevelsLabel_001.png", COERCE_DOUBLE(1058642330)); (*(void (__fastcall **)(__int64, char *, __int64))(*(_QWORD *)a1 + 464LL))(a1, v187, 2); sub_100278250( (float *)v227, *(float *)&v222 * 0.5, (float)((float)(*((float *)&v222 + 1) * 0.5) + 110.0) + 24.0); (*(void (__fastcall **)(char *, double *))(*(_QWORD *)v187 + 184LL))(v187, v227); break; default: break; } } else { v80 = cocos2d::CCSprite::createWithSpriteFrameName((__int64)"theSafeLabel_001.png", COERCE_DOUBLE(1058642330)); (*(void (__fastcall **)(__int64, char *, __int64))(*(_QWORD *)a1 + 464LL))(a1, v80, 2); sub_100278250( (float *)v227, (float)(*(float *)&v222 * 0.5) + 13.0, (float)((float)(*((float *)&v222 + 1) * 0.5) + 110.0) + 24.0); (*(void (__fastcall **)(char *, double *))(*(_QWORD *)v80 + 184LL))(v80, v227); } v81 = *(_QWORD *)(a1 + 664); if ( v81 ) { if ( (unsigned int)(*(_DWORD *)(v81 + 316) - 98) > 2 || *(_BYTE *)(v81 + 430) ) goto LABEL_81; v82 = cocos2d::CCMenu::create(); (*(void (__fastcall **)(__int64, __int64, __int64))(*(_QWORD *)a1 + 464LL))(a1, v82, 2); sub_100278250( (float *)v227, (float)(*(float *)&v222 * 0.5) + -150.0, (float)(*((float *)&v222 + 1) * 0.5) + -121.5); sub_1002782D0(&v225, v227); v83 = sub_10029C750(v82, a1, &v225, a1, (__int64)sub_100482A80, 0, 0.71499997); *(_QWORD *)(a1 + 712) = v83; GJSelectionStrip::addCountLabel((__int64)v83, 0xAu, 27.0); if ( *(_DWORD *)(*(_QWORD *)(a1 + 664) + 316LL) == 98 ) { sub_10029CD80( *(_QWORD *)(a1 + 712), (__int64)"threadBtn_export_001.png", (__int64)LevelBrowserLayer::onExportSelected, 0, COERCE_DOUBLE(1112801280), 1.4); v84 = 1117650944; } else { v84 = 1112801280; } v88 = sub_10029CD80( *(_QWORD *)(a1 + 712), (__int64)"threadBtn_delete_001.png", (__int64)LevelBrowserLayer::onProcessSelected, 0, *(double *)&v84, 1.2); (*(void (__fastcall **)(void *, __int64))(*(_QWORD *)v88 + 72LL))(v88, 5); v89 = *(_QWORD *)(a1 + 712); if ( v89 ) { v90 = *(_QWORD *)(a1 + 656); v91 = 0; if ( v90 ) { v92 = *(unsigned int **)(v90 + 56); v93 = *v92; if ( *v92 ) { v94 = *((_QWORD *)v92 + 2); v95 = v94 + 8 * v93 - 8; v91 = 0; do { if ( !*(_QWORD *)v94 ) break; v91 += *(unsigned __int8 *)(*(_QWORD *)v94 + 771LL); v94 += 8LL; } while ( v94 <= v95 ); } } sub_10029CC00(v89, v91); } v96 = cocos2d::CCNotificationCenter::sharedNotificationCenter(); cocos2d::CCNotificationCenter::addObserver( (__int64)v96, a1, (__int64)sub_100482EB0, 0, "LevelSelectionChangedNotification", 0); v81 = *(_QWORD *)(a1 + 664); if ( v81 ) { LABEL_81: v97 = *(_DWORD *)(v81 + 316); v98 = v97 - 98; if ( v97 - 98 <= 5 ) { v99 = 25; if ( _bittest(&v99, v98) ) { v100 = cocos2d::CCMenu::create(); v101 = (*(double (__fastcall **)(__int64, __int64, __int64))(*(_QWORD *)a1 + 464LL))(a1, v100, 2); v223 = v100; v102 = cocos2d::CCSprite::createWithSpriteFrameName((__int64)"GJ_newBtn_001.png", v101); v103 = CCMenuItemSpriteExtra::create((__int64)v102, 0, a1, (__int64)LevelBrowserLayer::onNew, 0); (*(void (__fastcall **)(__int64, void *))(*(_QWORD *)v223 + 456LL))(v223, v103); sub_100278250( (float *)v227, *(float *)&v222 * 0.5, (float)((float)(*((float *)&v222 + 1) + -220.0) * 0.5) + -4.0); (*(void (__fastcall **)(__int64, double *))(*(_QWORD *)v223 + 184LL))(v223, v227); v221 = *((float *)v102 + 108); v104 = cocos2d::CCDirector::sharedDirector(); v218 = sub_100479770(v104); v105 = cocos2d::CCDirector::sharedDirector(); v106 = sub_100479750(v105); v107 = (float)(v221 * 0.5) + 4.0; *(_QWORD *)&v108 = LODWORD(v218); *(float *)&v108 = v218 - v107; v221 = v107; sub_100278250((float *)v227, v218 - v107, v106 + v107); (*(void (__fastcall **)(__int64, double *))(*(_QWORD *)v223 + 184LL))(v223, v227); if ( !*v219 ) { v109 = GameManager::sharedState(); if ( !GameManager::onlyCuratedLevels(v109) ) { v110 = GameManager::sharedState(); if ( *(_DWORD *)(v110 + 660) != *(_DWORD *)(v110 + 664) || (v111 = GJAccountManager::sharedState(v109, (__int64)v227), *(_DWORD *)(v111 + 352) != *(_DWORD *)(v111 + 356)) ) { v112 = cocos2d::CCSprite::createWithSpriteFrameName((__int64)"GJ_myServerBtn_001.png", v108); v113 = CCMenuItemSpriteExtra::create( (__int64)v112, 0, a1, (__int64)LevelBrowserLayer::onMyOnlineLevels, 0); (*(void (__fastcall **)(__int64, void *))(*(_QWORD *)v223 + 456LL))(v223, v113); v114 = cocos2d::CCDirector::sharedDirector(); LODWORD(v219) = sub_100479760(v114); v115 = cocos2d::CCDirector::sharedDirector(); v116 = sub_100479750(v115); *(_QWORD *)&v108 = (unsigned int)v219; *(float *)&v108 = *(float *)&v219 + v221; sub_100278250((float *)&v225, *(float *)&v219 + v221, v116 + v221); cocos2d::CCNode::convertToNodeSpace(v227, v223, (unsigned int *)&v225); (*(void (__fastcall **)(void *, double *))(*(_QWORD *)v113 + 184LL))(v113, v227); } } if ( *(_DWORD *)(*(_QWORD *)(a1 + 664) + 316LL) == 98 ) { v117 = cocos2d::CCSprite::createWithSpriteFrameName((__int64)"GJ_importBtn_001.png", v108); v118 = CCMenuItemSpriteExtra::create((__int64)v117, 0, a1, (__int64)sub_1004832B0, 0); (*(void (__fastcall **)(__int64, void *))(*(_QWORD *)v223 + 456LL))(v223, v118); v119 = cocos2d::CCDirector::sharedDirector(); LODWORD(v219) = sub_100479760(v119); v120 = cocos2d::CCDirector::sharedDirector(); v121 = sub_100479750(v120); sub_100278250((float *)&v225, (float)(*(float *)&v219 + v221) + -5.0, (float)(v121 + v221) + 46.0); cocos2d::CCNode::convertToNodeSpace(v227, v223, (unsigned int *)&v225); v122 = (*(double (__fastcall **)(void *, double *))(*(_QWORD *)v118 + 184LL))(v118, v227); v123 = cocos2d::CCSprite::createWithSpriteFrameName((__int64)"GJ_manageBackupBtn_001.png", v122); v124 = CCMenuItemSpriteExtra::create((__int64)v123, 0, a1, (__int64)sub_1004832F0, 0); (*(void (__fastcall **)(__int64, void *))(*(_QWORD *)v223 + 456LL))(v223, v124); v125 = cocos2d::CCDirector::sharedDirector(); LODWORD(v219) = sub_100479760(v125); v126 = cocos2d::CCDirector::sharedDirector(); v127 = sub_100479750(v126); *(_QWORD *)&v108 = (unsigned int)v219; *(float *)&v108 = (float)(*(float *)&v219 + v221) + -5.0; sub_100278250((float *)&v225, *(float *)&v108, (float)(v127 + v221) + 82.0); cocos2d::CCNode::convertToNodeSpace(v227, v223, (unsigned int *)&v225); (*(void (__fastcall **)(void *, double *))(*(_QWORD *)v124 + 184LL))(v124, v227); v128 = cocos2d::CCNotificationCenter::sharedNotificationCenter(); cocos2d::CCNotificationCenter::addObserver( (__int64)v128, a1, (__int64)LevelBrowserLayer::onLevelsImported, 0, "LevelsImportedNotification", 0); } v129 = GameManager::sharedState(); if ( !GameManager::onlyCuratedLevels(v129) ) { v130 = "GJ_viewLevelsBtn_001.png"; if ( *(_DWORD *)(*(_QWORD *)(a1 + 664) + 316LL) == 98 ) v130 = "GJ_viewListsBtn_001.png"; v131 = cocos2d::CCSprite::createWithSpriteFrameName((__int64)v130, v108); (*(void (__fastcall **)(char *, float))(*(_QWORD *)v131 + 160LL))(v131, 0.80000001); v132 = CCMenuItemSpriteExtra::create((__int64)v131, 0, a1, (__int64)LevelBrowserLayer::onLocalMode, 0); (*(void (__fastcall **)(__int64, void *))(*(_QWORD *)v223 + 456LL))(v223, v132); v133 = (unsigned __int64 *)(*(__int64 (__fastcall **)(void *))(*(_QWORD *)v103 + 192LL))(v103); *(_QWORD *)&v108 = 0x40000000; sub_100278250((float *)&v225, 2.0, 52.0); sub_100278350(v227, v133, &v225); (*(void (__fastcall **)(void *, double *))(*(_QWORD *)v132 + 184LL))(v132, v227); } } LABEL_106: if ( (unsigned __int8)GJSearchObject::isLevelSearchObject(*(_QWORD *)(a1 + 664)) ) { v163 = cocos2d::CCSprite::createWithSpriteFrameName((__int64)"gj_folderBtn_001.png", v108); v164 = cocos2d::CCLabelBMFont::create_3("0", "bigFont.fnt"); *(_QWORD *)(a1 + 696) = v164; (*(void (__fastcall **)(char *, __int64, __int64))(*(_QWORD *)v163 + 464LL))(v163, v164, 1); v165 = *(_QWORD *)(a1 + 696); LODWORD(v223) = *(_DWORD *)(*(__int64 (__fastcall **)(char *))(*(_QWORD *)v163 + 328LL))(v163); v166 = (*(__int64 (__fastcall **)(char *))(*(_QWORD *)v163 + 328LL))(v163); sub_100278250((float *)v227, *(float *)&v223 * 0.5, (float)(*(float *)(v166 + 4) * 0.5) + 0.5); (*(void (__fastcall **)(__int64, double *))(*(_QWORD *)v165 + 184LL))(v165, v227); v167 = CCMenuItemSpriteExtra::create((__int64)v163, 0, a1, (__int64)LevelBrowserLayer::onGoToFolder, 0); *(_QWORD *)(a1 + 704) = v167; (*(void (__fastcall **)(__int64, void *))(*(_QWORD *)v42 + 456LL))(v42, v167); v168 = *(_QWORD *)(a1 + 704); v169 = (unsigned __int64 *)(*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 688) + 192LL))(*(_QWORD *)(a1 + 688)); sub_100278250((float *)&v225, 0.0, -35.0); sub_100278350(v227, v169, &v225); v108 = (*(double (__fastcall **)(__int64, double *))(*(_QWORD *)v168 + 184LL))(v168, v227); } v170 = (unsigned __int8 *)cocos2d::CCSprite::createWithSpriteFrameName((__int64)"GJ_arrow_02_001.png", v108); v171 = (*(double (__fastcall **)(unsigned __int8 *, float))(*(_QWORD *)v170 + 160LL))(v170, 0.40000001); v172 = (unsigned __int8 *)cocos2d::CCSprite::createWithSpriteFrameName((__int64)"GJ_arrow_02_001.png", v171); (*(void (__fastcall **)(unsigned __int8 *, unsigned __int8 *, __int64))(*(_QWORD *)v170 + 464LL))( v170, v172, 1); cocos2d::CCNode::convertToNodeSpace((double *)&v225, (__int64)v170, (unsigned int *)&unk_100BE3E28); sub_100278250((float *)&v212, 15.0, 0.0); sub_100278350(v227, &v225, &v212); (*(void (__fastcall **)(unsigned __int8 *, double *))(*(_QWORD *)v172 + 184LL))(v172, v227); cocos2d::CCSprite::setFlipX(v172, 1u); cocos2d::CCSprite::setFlipX(v170, 1u); v173 = CCMenuItemSpriteExtra::create((__int64)v170, 0, a1, (__int64)sub_100484100, 0); *(_QWORD *)(a1 + 632) = v173; CCMenuItemSpriteExtra::setSizeMult((__int64)v173, 1.2); (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v42 + 456LL))(v42, *(_QWORD *)(a1 + 632)); v174 = *(_QWORD *)(a1 + 632); v175 = (unsigned __int64 *)(*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 688) + 192LL))(*(_QWORD *)(a1 + 688)); sub_100278250((float *)&v225, -2.0, -65.0); sub_100278350(v227, v175, &v225); v176 = (*(double (__fastcall **)(__int64, double *))(*(_QWORD *)v174 + 184LL))(v174, v227); v177 = cocos2d::CCSprite::createWithSpriteFrameName((__int64)"gj_findBtn_001.png", v176); v178 = CCMenuItemSpriteExtra::create((__int64)v177, 0, a1, (__int64)LevelBrowserLayer::onSearch, 0); (*(void (__fastcall **)(__int64, void *))(*(_QWORD *)v42 + 456LL))(v42, v178); sub_100278250((float *)&v225, 24.0, v224 + -30.0); cocos2d::CCNode::convertToNodeSpace(v227, v42, (unsigned int *)&v225); v179 = (*(double (__fastcall **)(void *, double *))(*(_QWORD *)v178 + 184LL))(v178, v227); v180 = cocos2d::CCSprite::createWithSpriteFrameName((__int64)"gj_findBtnOff_001.png", v179); v181 = CCMenuItemSpriteExtra::create((__int64)v180, 0, a1, (__int64)LevelBrowserLayer::onClearSearch, 0); *(_QWORD *)(a1 + 640) = v181; (*(void (__fastcall **)(__int64, void *))(*(_QWORD *)v42 + 456LL))(v42, v181); v182 = *(_QWORD *)(a1 + 640); v183 = (unsigned __int64 *)(*(__int64 (__fastcall **)(void *))(*(_QWORD *)v178 + 192LL))(v178); sub_100278250((float *)&v225, 0.0, -35.0); sub_100278350(v227, v183, &v225); (*(void (__fastcall **)(__int64, double *))(*(_QWORD *)v182 + 184LL))(v182, v227); (*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(a1 + 640) + 344LL))(*(_QWORD *)(a1 + 640), 0); LABEL_109: if ( isControllerConnected ) { GameToolbox::addBackButton(a1, v216); GameToolbox::addRThumbScrollButton(a1); } LevelBrowserLayer::loadPage(a1, v3); if ( (v217[0] & 1) != 0 ) operator delete(*(void **)&v217[16]); return v220; } v185 = 34; if ( _bittest(&v185, v98) ) LOBYTE(v221) = *(_DWORD *)(v3 + 316) == 103; else LOBYTE(v221) = 1; v188 = cocos2d::CCMenu::create(); v189 = (*(double (__fastcall **)(__int64, __int64, __int64))(*(_QWORD *)a1 + 464LL))(a1, v188, 2); v223 = v188; v190 = cocos2d::CCSprite::createWithSpriteFrameName((__int64)"GJ_deleteBtn_001.png", v189); v191 = LevelBrowserLayer::onDeleteAll; if ( LOBYTE(v221) ) v191 = LevelBrowserLayer::onRemoveAllFavorites; v192 = CCMenuItemSpriteExtra::create((__int64)v190, 0, a1, (__int64)v191, 0); (*(void (__fastcall **)(__int64, void *))(*(_QWORD *)v223 + 456LL))(v223, v192); LODWORD(v219) = *((_DWORD *)v190 + 108); v193 = cocos2d::CCDirector::sharedDirector(); v218 = sub_100479770(v193); v194 = cocos2d::CCDirector::sharedDirector(); v195 = sub_100479750(v194); v196 = (float)(*(float *)&v219 * 0.5) + 4.0; *(_QWORD *)&v197 = LODWORD(v218); *(float *)&v197 = v218 - v196; *(float *)&v219 = v196; sub_100278250((float *)v227, v218 - v196, v195 + v196); (*(void (__fastcall **)(__int64, double *))(*(_QWORD *)v223 + 184LL))(v223, v227); v198 = GameManager::sharedState(); if ( !GameManager::onlyCuratedLevels(v198) ) { v199 = "GJ_viewListsBtn_001.png"; if ( *(_DWORD *)(*(_QWORD *)(a1 + 664) + 316LL) == 103 ) v199 = "GJ_viewLevelsBtn_001.png"; v200 = cocos2d::CCSprite::createWithSpriteFrameName((__int64)v199, v197); (*(void (__fastcall **)(char *, float))(*(_QWORD *)v200 + 160LL))(v200, 0.80000001); v201 = CCMenuItemSpriteExtra::create((__int64)v200, 0, a1, (__int64)LevelBrowserLayer::onSavedMode, 0); (*(void (__fastcall **)(__int64, void *))(*(_QWORD *)v223 + 456LL))(v223, v201); v202 = (unsigned __int64 *)(*(__int64 (__fastcall **)(void *))(*(_QWORD *)v192 + 192LL))(v192); *(_QWORD *)&v197 = 0x40000000; sub_100278250((float *)&v225, 2.0, 52.0); sub_100278350(v227, v202, &v225); (*(void (__fastcall **)(void *, double *))(*(_QWORD *)v201 + 184LL))(v201, v227); } v141 = 1; if ( *(_DWORD *)(*(_QWORD *)(a1 + 664) + 316LL) != 103 ) { v203 = "gj_heartOn_001.png"; v204 = LOBYTE(v221); if ( LOBYTE(v221) ) v203 = "gj_heartOff_001.png"; v205 = cocos2d::CCSprite::createWithSpriteFrameName((__int64)v203, v197); v206 = sub_100483800; if ( v204 ) v206 = sub_1004836E0; v207 = CCMenuItemSpriteExtra::create((__int64)v205, 0, a1, (__int64)v206, 0); v208 = v223; v209 = v207; CCMenuItemSpriteExtra::setSizeMult((__int64)v207, 1.1); (*(void (__fastcall **)(__int64, void *, __int64))(*(_QWORD *)v208 + 464LL))(v208, v209, 100); v210 = cocos2d::CCDirector::sharedDirector(); v211 = sub_100479750(v210); sub_100278250((float *)&v225, *(float *)&v219, (float)(v211 + *(float *)&v219) + 50.0); cocos2d::CCNode::convertToNodeSpace(v227, v208, (unsigned int *)&v225); (*(void (__fastcall **)(void *, double *))(*(_QWORD *)v209 + 184LL))(v209, v227); } LABEL_98: v142 = cocos2d::CCMenu::create(); v143 = (*(double (__fastcall **)(__int64, __int64, __int64))(*(_QWORD *)a1 + 464LL))(a1, v142, 2); v144 = cocos2d::CCSprite::createWithSpriteFrameName((__int64)"GJ_infoIcon_001.png", v143); v145 = CCMenuItemSpriteExtra::create((__int64)v144, 0, a1, (__int64)LevelBrowserLayer::onInfo, 0); CCMenuItemSpriteExtra::setSizeMult((__int64)v145, 2.0); (*(void (__fastcall **)(__int64, void *))(*(_QWORD *)v142 + 456LL))(v142, v145); v146 = cocos2d::CCDirector::sharedDirector(); LODWORD(v223) = sub_100479760(v146); v147 = cocos2d::CCDirector::sharedDirector(); v148 = sub_100479750(v147); *(_QWORD *)&v108 = (unsigned int)v223; *(float *)&v108 = *(float *)&v223 + 30.0; sub_100278250((float *)v227, *(float *)&v223 + 30.0, v148 + 30.0); (*(void (__fastcall **)(__int64, double *))(*(_QWORD *)v142 + 184LL))(v142, v227); v149 = *(_QWORD *)(a1 + 664); if ( v149 ) { v150 = *(_DWORD *)(v149 + 316); if ( ((v150 - 21 >= 3) & (unsigned __int8)~(unsigned __int8)GameLevelManager::vaultTimedType(v150, v227)) == 0 ) { v151 = *(_QWORD *)(a1 + 664); if ( v151 ) { v152 = GameLevelManager::vaultTimedType(*(unsigned int *)(v151 + 316), v227); v153 = 2; if ( v152 ) v153 = *(unsigned __int8 *)(*(_QWORD *)(a1 + 664) + 404LL); } else { v153 = 2; } dword_100BDEB30 = v153; v154 = cocos2d::CCMenu::create(); (*(void (__fastcall **)(__int64, __int64, __int64))(*(_QWORD *)a1 + 464LL))(a1, v154, 2); v155 = cocos2d::CCDirector::sharedDirector(); v156 = sub_100479760(v155); sub_100278250((float *)v227, v156 + 30.0, *((float *)&v222 + 1) * 0.5); (*(void (__fastcall **)(__int64, double *))(*(_QWORD *)v154 + 184LL))(v154, v227); v157 = sub_1004E8E80("threadBtn_vaultOn_001.png"); *(_QWORD *)(a1 + 808) = v157; v158 = CCMenuItemSpriteExtra::create(v157, 0, a1, (__int64)sub_100483EF0, 0); CCMenuItemSpriteExtra::setSizeMult((__int64)v158, 1.2); (*(void (__fastcall **)(void *, _QWORD))(*(_QWORD *)v158 + 72LL))(v158, 0); (*(void (__fastcall **)(__int64, void *))(*(_QWORD *)v154 + 456LL))(v154, v158); sub_100278250((float *)v227, 0.0, 90.0); (*(void (__fastcall **)(void *, double *))(*(_QWORD *)v158 + 184LL))(v158, v227); v159 = sub_1004E8E80("threadBtn_uncompletedOn_001.png"); *(_QWORD *)(a1 + 816) = v159; v160 = CCMenuItemSpriteExtra::create(v159, 0, a1, (__int64)sub_100483EF0, 0); CCMenuItemSpriteExtra::setSizeMult((__int64)v160, 1.2); (*(void (__fastcall **)(void *, __int64))(*(_QWORD *)v160 + 72LL))(v160, 1); (*(void (__fastcall **)(__int64, void *))(*(_QWORD *)v154 + 456LL))(v154, v160); sub_100278250((float *)v227, 0.0, 55.0); (*(void (__fastcall **)(void *, double *))(*(_QWORD *)v160 + 184LL))(v160, v227); v161 = sub_1004E8E80("threadBtn_timeOn_001.png"); *(_QWORD *)(a1 + 824) = v161; v162 = CCMenuItemSpriteExtra::create(v161, 0, a1, (__int64)sub_100483EF0, 0); CCMenuItemSpriteExtra::setSizeMult((__int64)v162, 1.2); (*(void (__fastcall **)(void *, __int64))(*(_QWORD *)v162 + 72LL))(v162, 2); (*(void (__fastcall **)(__int64, void *))(*(_QWORD *)v154 + 456LL))(v154, v162); v108 = 0.0; sub_100278250((float *)v227, 0.0, 20.0); (*(void (__fastcall **)(void *, double *))(*(_QWORD *)v162 + 184LL))(v162, v227); } } v9 = v141 == 0; v3 = v215; if ( v9 ) goto LABEL_109; goto LABEL_106; } if ( v97 > 0xE || (v134 = 17920, !_bittest(&v134, v97)) ) { v135 = cocos2d::CCMenu::create(); v136 = (*(double (__fastcall **)(__int64, __int64, __int64))(*(_QWORD *)a1 + 464LL))(a1, v135, 2); v137 = cocos2d::CCSprite::createWithSpriteFrameName((__int64)"GJ_updateBtn_001.png", v136); v138 = CCMenuItemSpriteExtra::create((__int64)v137, 0, a1, (__int64)LevelBrowserLayer::onRefresh, 0); *(_QWORD *)(a1 + 648) = v138; (*(void (__fastcall **)(__int64, void *))(*(_QWORD *)v135 + 456LL))(v135, v138); (*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(a1 + 648) + 344LL))(*(_QWORD *)(a1 + 648), 0); LODWORD(v223) = *((_DWORD *)v137 + 108); v139 = cocos2d::CCDirector::sharedDirector(); LODWORD(v219) = sub_100479770(v139); v140 = cocos2d::CCDirector::sharedDirector(); *(float *)&v136 = sub_100479750(v140); sub_100278250( (float *)v227, *(float *)&v219 - (float)((float)(*(float *)&v223 * 0.5) + 4.0), (float)((float)(*(float *)&v223 * 0.5) + 4.0) + *(float *)&v136); (*(void (__fastcall **)(__int64, double *))(*(_QWORD *)v135 + 184LL))(v135, v227); } } } LABEL_97: v141 = 0; goto LABEL_98; } return v220; }
GD Web Decomp Icon

GD Web Decomp

Raw Source