//
// LevelInfoLayer::init from 0x100027920 to 0x100029bc0 (8864 bytes)
//
// 1 xrefs:
// > LevelInfoLayer::create @ 0x1000278d0
//
// 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 10:57:27 +0000
//
__int64 __fastcall LevelInfoLayer::init(__int64 a1, __int64 a2, char a3)
{
__int64 result; // x0
__int64 v7; // x0
__int64 v8; // x0
__int64 v9; // x0
__int64 v10; // x0
__int64 v11; // x0
__int64 v12; // x0
_QWORD *WinSize; // x0
__int64 v14; // x0
__int64 v15; // x0
__int64 v16; // x22
__int64 v17; // x8
int v18; // w28
int v19; // w19
int v20; // w27
unsigned int v21; // w26
char v22; // w24
float *v23; // x23
char v24; // w24
const char *v25; // x23
__int64 v26; // x24
__int64 v27; // x0
__int64 v28; // x0
__int64 v29; // x0
float v30; // s0
float v31; // s8
__int64 v32; // x0
float v33; // s0
__int64 v34; // x23
__int64 v35; // x0
__int64 v36; // x0
__int64 v37; // x0
float v38; // s0
float v39; // s8
__int64 v40; // x0
float v41; // s0
char v42; // w24
const char *p_dst; // x0
__int64 v44; // x8
__int128 *v45; // x8
__int64 v46; // x23
__int64 v47; // x0
float v48; // s8
__int64 v49; // x0
float v50; // s0
unsigned int v51; // w8
__int64 v52; // x0
const std::string::value_type *v53; // x1
std::string *v54; // x0
__int64 v55; // x24
float32x2_t *v56; // x25
float v57; // s9
float v58; // s0
double v59; // d0
__int64 v60; // x8
int v61; // w9
int v62; // w10
int v63; // w24
__int64 v64; // x0
std::string *v65; // x8
__int64 v66; // x0
__int64 CString; // x25
__int64 v68; // x25
float v69; // s9
__int64 v70; // x0
__int64 v71; // x23
__n128 v72; // q0
float v73; // s9
float v74; // s11
float v75; // s0
float *v76; // x0
int v77; // w19
__int64 v78; // x0
__int64 v79; // x23
float v80; // s9
float v81; // s0
double v82; // d0
__int64 v83; // x23
__int64 v84; // x23
__int64 v85; // x0
__int64 v86; // x23
__n128 v87; // q0
__int64 v88; // x0
__int64 v89; // x0
__int64 v90; // x24
__int64 v91; // x0
__int64 v92; // x24
float32x2_t *v93; // x23
double v94; // d0
__int64 v95; // x8
_BOOL8 v96; // x0
__int64 v97; // x0
_BOOL4 v98; // w19
__int64 v99; // x0
float v100; // s10
__int64 v101; // x0
__int64 v102; // x0
float v103; // s0
float v104; // s9
__int64 v105; // x0
float v106; // s0
float v107; // s9
__int64 v108; // x0
float v109; // s0
__n128 v110; // q0
_QWORD *v111; // x0
__int64 v112; // x0
__int64 v113; // x0
__int64 v114; // x0
__int64 v115; // x23
__int64 v116; // x0
__int64 v117; // x0
__int64 v118; // x23
__int64 v119; // x0
__int64 v120; // x23
double *v121; // x0
__int64 v122; // x0
__int64 v123; // x0
__int64 v124; // x0
__int64 v125; // x23
double v126; // d0
double *v127; // x0
__int64 v128; // x0
__int64 v129; // x0
__int64 v130; // x23
double v131; // d0
double *v132; // x0
__n128 v133; // q0
_DWORD *v134; // x8
__int64 v135; // x0
__int64 v136; // x0
__int64 v137; // x23
double v138; // d0
double *v139; // x0
_QWORD *v140; // x0
__int64 v141; // x0
std::string *v142; // x0
__int64 v143; // x0
__int64 v144; // x23
double v145; // d0
double *v146; // x0
__int64 updated; // x0
_DWORD *v148; // x0
_BOOL4 v149; // w24
float v150; // s11
__int64 v151; // x0
unsigned int v152; // w23
_BOOL4 v153; // w25
_BOOL4 v154; // w19
__int64 v155; // x0
int v156; // w8
float v157; // s12
float v158; // s9
float v159; // s10
__int64 v160; // x0
__int64 v161; // x0
float v162; // s0
float v163; // s13
__int64 v164; // x0
float v165; // s0
__int64 v166; // x23
__int64 v167; // x23
__n128 v168; // q0
__int64 v169; // x23
__int64 v170; // x23
__n128 v171; // q0
__int64 v172; // x23
__int64 v173; // x23
__n128 v174; // q0
__int64 v175; // x23
__int64 v176; // x23
__n128 v177; // q0
const char *v178; // x0
__int64 v179; // x23
__int64 v180; // x0
__n128 v181; // q0
__int64 v182; // x23
__int64 v183; // x22
__int64 v184; // x0
__int64 v185; // x0
__int64 v186; // x22
__int64 v187; // x23
__int64 v188; // x0
__int64 v189; // x0
__int64 v190; // x0
float v191; // s0
float v192; // s9
__int64 v193; // x0
float v194; // s0
__int64 hasCompletedLevel; // x0
__int64 v196; // x0
_DWORD *v197; // x8
__int64 v198; // x0
__int64 v199; // x0
__int64 v200; // x23
__int64 v201; // x0
__int64 v202; // x24
__int64 v203; // x0
__int64 v204; // x0
__int64 v205; // x0
float v206; // s0
float v207; // s10
__int64 v208; // x0
float v209; // s0
__int64 v210; // x0
__int64 v211; // x24
__int64 v212; // x0
float v213; // s10
float v214; // s0
__int64 v215; // x0
__int64 v216; // x25
double v217; // d0
const char *v218; // x0
__int64 v219; // x0
__int64 v220; // x24
float32x2_t *v221; // x25
__n128 v222; // q0
__int64 v223; // x25
__int64 v224; // x25
__int64 v225; // x0
float v226; // s14
float v227; // s0
__n128 v228; // q0
__int64 v229; // x26
__int64 v230; // x26
float32x2_t *v231; // x27
double v232; // d0
__int64 v233; // x8
int v234; // w28
__int64 SongObject; // x0
__int64 v236; // x27
__int64 v237; // x0
__int64 v238; // x0
__int64 v239; // x28
float v240; // s11
__int64 v241; // x0
float v242; // s0
__int64 v243; // x27
__int64 v244; // x8
__int64 v245; // x0
__int64 v246; // x27
__int64 v247; // x0
__int64 v248; // x0
float v249; // s0
float v250; // s11
__int64 v251; // x0
float v252; // s0
__int64 v253; // x28
__int64 v254; // x28
__int64 v255; // x0
__int64 v256; // x0
float v257; // s0
__n128 v258; // q0
__int64 v259; // x27
__int64 v260; // x0
__int64 v261; // x0
__int64 v262; // x0
__int64 v263; // x28
float v264; // s11
__int64 v265; // x0
__int64 v266; // x27
__int64 v267; // x0
float v268; // s8
__int64 v269; // x0
float v270; // s0
__n128 v271; // q0
__int64 v272; // x28
__int64 v273; // x28
float32x2_t *v274; // x23
double v275; // d0
__int64 v276; // x0
__int64 isControllerConnected; // x0
__int64 v278; // x21
float v279; // s8
__int64 v280; // x0
__int64 v281; // x8
__int64 v282; // x8
__int64 v283; // x0
__int64 v284; // x0
__int64 v285; // x8
_BOOL4 v286; // w23
__int64 v287; // x0
__int64 v288; // x0
__int64 v289; // x8
int v290; // w19
__int64 v291; // x0
__int64 v292; // [xsp+0h] [xbp-190h]
unsigned int v293; // [xsp+Ch] [xbp-184h]
void *v294[2]; // [xsp+10h] [xbp-180h] BYREF
__int64 v295; // [xsp+20h] [xbp-170h]
void *v296[2]; // [xsp+30h] [xbp-160h] BYREF
__int64 v297; // [xsp+40h] [xbp-150h]
float32x2_t v298; // [xsp+50h] [xbp-140h] BYREF
float32x2_t v299; // [xsp+58h] [xbp-138h] BYREF
float32x2_t v300; // [xsp+60h] [xbp-130h] BYREF
float32x2_t v301; // [xsp+68h] [xbp-128h] BYREF
float32x2_t v302; // [xsp+70h] [xbp-120h] BYREF
__int64 v303; // [xsp+78h] [xbp-118h] BYREF
void *__p[2]; // [xsp+80h] [xbp-110h] BYREF
char v305; // [xsp+97h] [xbp-F9h]
float v306; // [xsp+98h] [xbp-F8h] BYREF
float32x2_t v307; // [xsp+A0h] [xbp-F0h] BYREF
float32x2_t v308; // [xsp+A8h] [xbp-E8h] BYREF
std::string v309; // [xsp+B0h] [xbp-E0h] BYREF
__int128 __dst; // [xsp+D0h] [xbp-C0h] BYREF
__int64 v311; // [xsp+E0h] [xbp-B0h]
__int64 v312; // [xsp+F0h] [xbp-A0h] BYREF
result = cocos2d::CCLayer::init();
if ( !(_DWORD)result )
return result;
v293 = result;
*(_QWORD *)(a1 + 504) = a2;
v7 = cocos2d::CCObject::retain(a2);
*(_BYTE *)(a1 + 704) = a3;
v8 = sub_1002E736C(v7);
*(_QWORD *)(a1 + 512) = v8;
v9 = cocos2d::CCObject::retain(v8);
*(_BYTE *)(*(_QWORD *)(a1 + 504) + 1105LL) = 0;
*(_DWORD *)(a1 + 640) = *(_DWORD *)(a2 + 1140);
*(_DWORD *)(GameManager::sharedState(v9) + 964) = *(_DWORD *)(*(_QWORD *)(a1 + 504) + 328LL)
- *(_DWORD *)(*(_QWORD *)(a1 + 504) + 332LL);
v10 = LoadingCircle::create();
*(_QWORD *)(a1 + 648) = v10;
*(_QWORD *)(v10 + 552) = a1;
*(_BYTE *)(v10 + 560) = 0;
cocos2d::CCObject::retain(v10);
LoadingCircle::show(*(_QWORD *)(a1 + 648));
(*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(a1 + 648) + 344LL))(*(_QWORD *)(a1 + 648), 0);
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)a1 + 1072LL))(a1, 1);
v11 = (*(__int64 (__fastcall **)(__int64, __int64))(*(_QWORD *)a1 + 1088LL))(a1, 1);
v12 = cocos2d::CCDirector::sharedDirector(v11);
WinSize = cocos2d::CCDirector::getWinSize(&v312, v12);
v14 = cocos2d::CCMenu::create(WinSize);
*(_QWORD *)(a1 + 496) = v14;
v15 = (*(__int64 (__fastcall **)(__int64, __int64, __int64))(*(_QWORD *)a1 + 464LL))(a1, v14, 3);
v16 = cocos2d::CCMenu::create(v15);
(*(void (__fastcall **)(__int64, __int64, __int64))(*(_QWORD *)a1 + 464LL))(a1, v16, 2);
v17 = *(_QWORD *)(a1 + 504);
v18 = *(_DWORD *)(v17 + 920);
v19 = *(_DWORD *)(v17 + 924);
v20 = *(_DWORD *)(a2 + 920) - *(_DWORD *)(a2 + 924);
v21 = v20 - 100001;
v22 = *(_BYTE *)(v17 + 649);
v23 = (float *)cocos2d::CCSprite::create("GJ_gradientBG.png");
sub_1000262BC((float *)&__dst, 0.0, 0.0);
(*(void (__fastcall **)(float *, __int128 *))(*(_QWORD *)v23 + 296LL))(v23, &__dst);
(*(void (__fastcall **)(__int64, float *, __int64))(*(_QWORD *)a1 + 464LL))(a1, v23, 4294967294LL);
(*(void (__fastcall **)(float *, float))(*(_QWORD *)v23 + 128LL))(v23, (float)(*(float *)&v312 + 10.0) / v23[108]);
(*(void (__fastcall **)(float *, float))(*(_QWORD *)v23 + 144LL))(
v23,
(float)(*((float *)&v312 + 1) + 10.0) / v23[109]);
sub_1000262BC((float *)&__dst, -5.0, -5.0);
(*(void (__fastcall **)(float *, __int128 *))(*(_QWORD *)v23 + 184LL))(v23, &__dst);
BYTE2(__dst) = -1;
LOWORD(__dst) = 26112;
(*(void (__fastcall **)(float *, __int128 *))(*(_QWORD *)v23 + 960LL))(v23, &__dst);
if ( (v22 & 1) != 0 || v21 < 0x186A0 )
{
if ( v20 < 200001 )
{
LABEL_12:
memset(&__dst, 51, 3);
(*(void (__fastcall **)(float *, __int128 *))(*(_QWORD *)v23 + 960LL))(v23, &__dst);
v25 = "gauntletCorner_001.png";
goto LABEL_13;
}
v24 = 1;
}
else
{
v24 = *(_BYTE *)(a1 + 704);
if ( v20 <= 200000 )
{
if ( !*(_BYTE *)(a1 + 704) )
{
v25 = "GJ_sideArt_001.png";
goto LABEL_13;
}
goto LABEL_12;
}
}
BYTE2(__dst) = 126;
LOWORD(__dst) = 6243;
(*(void (__fastcall **)(float *, __int128 *))(*(_QWORD *)v23 + 960LL))(v23, &__dst);
if ( (v24 & 1) != 0 )
v25 = "gauntletCorner_001.png";
else
v25 = "GJ_sideArt_001.png";
LABEL_13:
v26 = cocos2d::CCSprite::createWithSpriteFrameName(v25);
sub_1000262BC((float *)&__dst, 0.0, 0.0);
v27 = (*(__int64 (__fastcall **)(__int64, __int128 *))(*(_QWORD *)v26 + 296LL))(v26, &__dst);
v28 = cocos2d::CCDirector::sharedDirector(v27);
v29 = sub_100207EA8(v28);
v31 = v30 + -1.0;
v32 = cocos2d::CCDirector::sharedDirector(v29);
v33 = sub_100207EA0(v32);
sub_1000262BC((float *)&__dst, v31, v33 + -1.0);
(*(void (__fastcall **)(__int64, __int128 *))(*(_QWORD *)v26 + 184LL))(v26, &__dst);
(*(void (__fastcall **)(__int64, __int64, __int64))(*(_QWORD *)a1 + 464LL))(a1, v26, 1);
v34 = cocos2d::CCSprite::createWithSpriteFrameName(v25);
sub_1000262BC((float *)&__dst, 1.0, 0.0);
v35 = (*(__int64 (__fastcall **)(__int64, __int128 *))(*(_QWORD *)v34 + 296LL))(v34, &__dst);
v36 = cocos2d::CCDirector::sharedDirector(v35);
v37 = sub_100207EB0(v36);
v39 = v38 + 1.0;
v40 = cocos2d::CCDirector::sharedDirector(v37);
v41 = sub_100207EA0(v40);
sub_1000262BC((float *)&__dst, v39, v41 + -1.0);
(*(void (__fastcall **)(__int64, __int128 *))(*(_QWORD *)v34 + 184LL))(v34, &__dst);
cocos2d::CCSprite::setFlipX(v34, 1);
(*(void (__fastcall **)(__int64, __int64, __int64))(*(_QWORD *)a1 + 464LL))(a1, v34, 1);
v42 = *(_BYTE *)(a1 + 704);
if ( (v42 & 1) != 0 )
{
p_dst = "Challenge";
}
else
{
v44 = *(_QWORD *)(a1 + 504);
if ( *(char *)(v44 + 367) < 0 )
{
sub_1000097D0(&__dst, *(void **)(v44 + 344), *(_QWORD *)(v44 + 352));
}
else
{
v45 = (__int128 *)(v44 + 344);
__dst = *v45;
v311 = *((_QWORD *)v45 + 2);
}
if ( v311 >= 0 )
p_dst = (const char *)&__dst;
else
p_dst = (const char *)__dst;
}
v46 = cocos2d::CCLabelBMFont::create_1(p_dst, "bigFont.fnt");
if ( (v42 & 1) == 0 && SHIBYTE(v311) < 0 )
operator delete((void *)__dst);
v47 = (*(__int64 (__fastcall **)(__int64, __int64, __int64))(*(_QWORD *)a1 + 464LL))(a1, v46, 20);
v48 = *(float *)&v312 * 0.5;
v49 = cocos2d::CCDirector::sharedDirector(v47);
v50 = sub_100207E98(v49);
sub_1000262BC((float *)&v309, v48, v50 + -17.0);
(*(void (__fastcall **)(__int64, std::string *))(*(_QWORD *)v46 + 184LL))(v46, &v309);
if ( v18 <= v19 )
v51 = 300;
else
v51 = 260;
v52 = cocos2d::CCLabelBMFont::limitLabelWidth(v46, (float)v51, 0.8, 0.0);
if ( v18 > v19 )
{
sub_100009900(&v309, "(Daily)");
if ( v20 > 100000 )
{
if ( v21 >= 0x186A0 )
v53 = "(Event)";
else
v53 = "(Weekly)";
std::string::assign(&v309, v53);
}
if ( (v309.__r_.__value_.__r.__words[2] & 0x8000000000000000LL) == 0LL )
v54 = &v309;
else
v54 = (std::string *)v309.__r_.__value_.__r.__words[0];
v55 = cocos2d::CCLabelBMFont::create_1(v54, "goldFont.fnt");
(*(void (__fastcall **)(__int64, float))(*(_QWORD *)v55 + 160LL))(v55, 0.6);
(*(void (__fastcall **)(__int64, __int64, __int64))(*(_QWORD *)a1 + 464LL))(a1, v55, 20);
sub_1000262BC((float *)__p, 0.0, 0.5);
(*(void (__fastcall **)(__int64, void **))(*(_QWORD *)v55 + 296LL))(v55, __p);
v56 = (float32x2_t *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v46 + 192LL))(v46);
v57 = *(float *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v46 + 328LL))(v46);
v58 = (*(float (__fastcall **)(__int64))(*(_QWORD *)v46 + 168LL))(v46);
sub_1000262BC((float *)&v308, (float)((float)(v57 * 0.5) * v58) + 3.0, -0.5);
*(float32x2_t *)&v59 = sub_100026318(v56, &v308, (float32x2_t *)__p);
v52 = (*(__int64 (__fastcall **)(__int64, void **, double))(*(_QWORD *)v55 + 184LL))(v55, __p, v59);
if ( SHIBYTE(v309.__r_.__value_.__r.__words[2]) < 0 )
operator delete(v309.__r_.__value_.__l.__data_);
}
v60 = *(_QWORD *)(a1 + 504);
v61 = *(_DWORD *)(v60 + 588);
v62 = *(_DWORD *)(v60 + 592);
v63 = v61 - v62;
if ( v61 == v62 )
{
v64 = GameLevelManager::sharedState(v52);
v63 = sub_1000A78EC(
v64,
(unsigned int)(*(_DWORD *)(*(_QWORD *)(a1 + 504) + 576LL) - *(_DWORD *)(*(_QWORD *)(a1 + 504) + 580LL)));
v60 = *(_QWORD *)(a1 + 504);
}
if ( *(char *)(v60 + 439) < 0 )
sub_1000097D0(&v309, *(void **)(v60 + 416), *(_QWORD *)(v60 + 424));
else
v309 = *(std::string *)(v60 + 416);
v65 = &v309;
if ( (v309.__r_.__value_.__r.__words[2] & 0x8000000000000000LL) != 0LL )
v65 = (std::string *)v309.__r_.__value_.__r.__words[0];
v66 = sub_1003065B0("By %s", (const char *)v65);
CString = cocos2d::CCString::getCString(v66);
if ( SHIBYTE(v309.__r_.__value_.__r.__words[2]) < 0 )
operator delete(v309.__r_.__value_.__l.__data_);
v68 = cocos2d::CCLabelBMFont::create_1(CString, "goldFont.fnt");
v69 = *(float *)&v312 * 0.5;
v70 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v46 + 192LL))(v46);
sub_1000262BC((float *)&v308, v69, *(float *)(v70 + 4) + -26.0);
cocos2d::CCLabelBMFont::limitLabelWidth(v68, 300.0, 0.8, 0.0);
v71 = CCMenuItemSpriteExtra::create(v68, 0, a1, LevelInfoLayer::onViewProfile, 0);
v72.n128_f64[0] = (*(double (__fastcall **)(__int64, __int64))(*(_QWORD *)v16 + 456LL))(v16, v71);
cocos2d::CCNode::convertToNodeSpace(&v309, v16, &v308, v72);
(*(void (__fastcall **)(__int64, std::string *))(*(_QWORD *)v71 + 184LL))(v71, &v309);
if ( !v63 )
{
v309.__r_.__value_.__s.__data_[2] = -1;
LOWORD(v309.__r_.__value_.__l.__data_) = -166;
(*(void (__fastcall **)(__int64, std::string *))(*(_QWORD *)v68 + 1072LL))(v68, &v309);
(*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v71 + 1056LL))(v71, 0);
}
v73 = v308.f32[0];
v74 = *(float *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v68 + 328LL))(v68);
v75 = (*(float (__fastcall **)(__int64))(*(_QWORD *)v68 + 168LL))(v68);
v76 = sub_1000262BC((float *)&v307, (float)(v73 + (float)((float)(v74 * v75) * 0.5)) + 6.0, v308.f32[1] + -1.0);
if ( *(_BYTE *)(a1 + 704) == 1 )
{
(*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v68 + 344LL))(v68, 0);
sub_10002630C(&v307, (double *)&v308);
}
v77 = *(_DWORD *)(*(_QWORD *)(a1 + 504) + 620LL) - *(_DWORD *)(*(_QWORD *)(a1 + 504) + 624LL);
if ( *(_DWORD *)(a2 + 988) == *(_DWORD *)(a2 + 992) )
{
if ( v77 <= 40000 && v63 >= 1 )
{
v78 = GameManager::sharedState(v76);
if ( (GameManager::getGameVariable(v78, "0047") & 1) == 0 && (*(_BYTE *)(a1 + 704) & 1) == 0 )
{
v79 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_viewProfileTxt_001.png");
(*(void (__fastcall **)(__int64, __int64, __int64))(*(_QWORD *)a1 + 464LL))(a1, v79, 2);
v80 = *(float *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v68 + 328LL))(v68) * 0.5;
v81 = (*(float (__fastcall **)(__int64))(*(_QWORD *)v68 + 168LL))(v68);
sub_1000262BC((float *)__p, (float)(v80 * v81) + 48.0, -1.0);
*(float32x2_t *)&v82 = sub_100026318(&v308, (float32x2_t *)__p, (float32x2_t *)&v309);
(*(void (__fastcall **)(__int64, std::string *, double))(*(_QWORD *)v79 + 184LL))(v79, &v309, v82);
}
goto LABEL_60;
}
}
else
{
v83 = cocos2d::CCSprite::createWithSpriteFrameName("collaborationIcon_001.png");
sub_1000262BC((float *)&v309, 0.0, 0.5);
(*(void (__fastcall **)(__int64, std::string *))(*(_QWORD *)v83 + 296LL))(v83, &v309);
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)a1 + 456LL))(a1, v83);
(*(void (__fastcall **)(__int64, float32x2_t *))(*(_QWORD *)v83 + 184LL))(v83, &v307);
sub_1000262BC((float *)__p, 18.0, 0.0);
sub_100026318(&v307, (float32x2_t *)__p, (float32x2_t *)&v309);
sub_10002630C(&v307, (double *)&v309);
}
if ( v77 >= 40001 )
{
v84 = cocos2d::CCSprite::createWithSpriteFrameName("highObjectIcon_001.png");
sub_1000262BC((float *)&v309, 0.0, 0.5);
(*(void (__fastcall **)(__int64, std::string *))(*(_QWORD *)v84 + 296LL))(v84, &v309);
(*(void (__fastcall **)(__int64, __int64, __int64))(*(_QWORD *)a1 + 464LL))(a1, v84, 10);
(*(void (__fastcall **)(__int64, float32x2_t *))(*(_QWORD *)v84 + 184LL))(v84, &v307);
sub_1000262BC((float *)__p, 18.0, 0.0);
sub_100026318(&v307, (float32x2_t *)__p, (float32x2_t *)&v309);
sub_10002630C(&v307, (double *)&v309);
}
LABEL_60:
v85 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_playBtn2_001.png");
*(_QWORD *)(a1 + 720) = v85;
v86 = CCMenuItemSpriteExtra::create(v85, 0, a1, LevelInfoLayer::onPlay, 0);
(*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 496) + 456LL))(*(_QWORD *)(a1 + 496), v86);
sub_1000262BC(&v306, *(float *)&v312 * 0.5, (float)(*((float *)&v312 + 1) * 0.5) + 51.0);
cocos2d::CCNode::convertToNodeSpace(&v309, *(_QWORD *)(a1 + 496), &v306, v87);
v88 = (*(__int64 (__fastcall **)(__int64, std::string *))(*(_QWORD *)v86 + 184LL))(v86, &v309);
if ( (*(_BYTE *)(a1 + 704) & 1) == 0 )
{
v89 = GameManager::sharedState(v88);
if ( *(_DWORD *)(v89 + 1032) - *(_DWORD *)(v89 + 1036) >= 2 )
{
v90 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_editBtn_001.png");
(*(void (__fastcall **)(__int64, float))(*(_QWORD *)v90 + 160LL))(v90, 0.4);
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v90 + 912LL))(v90, 175);
v91 = CCMenuItemSpriteExtra::create(v90, 0, a1, sub_10002A588, 0);
*(_QWORD *)(a1 + 552) = v91;
(*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 496) + 456LL))(*(_QWORD *)(a1 + 496), v91);
v92 = *(_QWORD *)(a1 + 552);
v93 = (float32x2_t *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v86 + 192LL))(v86);
sub_1000262BC((float *)__p, -58.0, -34.0);
*(float32x2_t *)&v94 = sub_100026318(v93, (float32x2_t *)__p, (float32x2_t *)&v309);
(*(void (__fastcall **)(__int64, std::string *, double))(*(_QWORD *)v92 + 184LL))(v92, &v309, v94);
}
}
(*(void (__fastcall **)(_QWORD, float *))(**(_QWORD **)(*(_QWORD *)(a1 + 648) + 544LL) + 184LL))(
*(_QWORD *)(*(_QWORD *)(a1 + 648) + 544LL),
&v306);
v95 = *(_QWORD *)(a1 + 504);
if ( *(_DWORD *)(v95 + 1140) == 4 )
goto LABEL_75;
if ( *(char *)(v95 + 415) < 0 )
sub_1000097D0(&v309, *(void **)(v95 + 392), *(_QWORD *)(v95 + 400));
else
v309 = *(std::string *)(v95 + 392);
sub_100009900(__p, "");
v96 = sub_1000045BC(&v309, __p);
v98 = v96
&& (v97 = GameLevelManager::sharedState(v96), *(_DWORD *)(v97 + 1480) != 99)
&& *(_DWORD *)(GameLevelManager::sharedState(v97) + 1480) != 100;
if ( v305 < 0 )
operator delete(__p[0]);
if ( SHIBYTE(v309.__r_.__value_.__r.__words[2]) < 0 )
{
operator delete(v309.__r_.__value_.__l.__data_);
if ( v98 )
goto LABEL_75;
}
else if ( v98 )
{
LABEL_75:
LevelInfoLayer::downloadLevel(a1);
goto LABEL_76;
}
v285 = *(_QWORD *)(a1 + 504);
if ( *(char *)(v285 + 415) < 0 )
sub_1000097D0(&v309, *(void **)(v285 + 392), *(_QWORD *)(v285 + 400));
else
v309 = *(std::string *)(v285 + 392);
sub_100009900(__p, "");
v286 = sub_1000045BC(&v309, __p);
if ( v305 < 0 )
operator delete(__p[0]);
if ( SHIBYTE(v309.__r_.__value_.__r.__words[2]) < 0 )
operator delete(v309.__r_.__value_.__l.__data_);
if ( v286 )
{
*(_BYTE *)(a1 + 644) = 1;
(*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(a1 + 496) + 344LL))(*(_QWORD *)(a1 + 496), 0);
v287 = (*(__int64 (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 648) + 344LL))(*(_QWORD *)(a1 + 648), 1);
v288 = GameLevelManager::sharedState(v287);
*(_QWORD *)(v288 + 1288) = a1 + 416;
v289 = *(_QWORD *)(a1 + 504);
v290 = *(_DWORD *)(v289 + 788);
*(_DWORD *)(v289 + 788) = -1;
v291 = GameLevelManager::sharedState(v288);
GameLevelManager::updateLevel(v291, *(_QWORD *)(a1 + 504));
*(_DWORD *)(a2 + 788) = v290;
}
LABEL_76:
v99 = sub_10002A788(a1);
if ( (*(_BYTE *)(a1 + 704) & 1) == 0 )
{
if ( (unsigned int)GJGameLevel::isPlatformer(*(_QWORD *)(a1 + 504)) )
v99 = LevelInfoLayer::setupPlatformerStats(a1);
else
v99 = LevelInfoLayer::setupProgressBars(a1);
}
v100 = *((float *)&v312 + 1);
v101 = cocos2d::CCDirector::sharedDirector(v99);
v102 = sub_100207EB0(v101);
v104 = v103 + -30.0;
v105 = AppDelegate::get(v102);
v106 = 0.0;
if ( *(_BYTE *)(v105 + 37) )
v106 = 25.0;
v107 = v104 - v106;
v108 = cocos2d::CCDirector::sharedDirector(v105);
v109 = sub_100207E98(v108);
sub_1000262BC((float *)__p, v107, v109 + -30.0);
v111 = cocos2d::CCNode::convertToNodeSpace(&v303, v16, __p, v110);
if ( *(_DWORD *)(*(_QWORD *)(a1 + 504) + 920LL) <= *(_DWORD *)(*(_QWORD *)(a1 + 504) + 924LL)
|| (v112 = GameLevelManager::sharedState(v111), v113 = sub_1000AE644(v112, *(_QWORD *)(a1 + 504)), (_DWORD)v113) )
{
v114 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_deleteBtn_001.png");
v115 = CCMenuItemSpriteExtra::create(v114, 0, a1, sub_10002B8D4, 0);
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v16 + 456LL))(v16, v115);
v113 = (*(__int64 (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v115 + 184LL))(v115, &v303);
*((float *)&v303 + 1) = *((float *)&v303 + 1) + -50.0;
}
v116 = GameManager::sharedState(v113);
if ( (GameManager::offlineModeEnabled(v116) & 1) == 0 )
{
v117 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_updateBtn_001.png");
v118 = CCMenuItemSpriteExtra::create(v117, 0, a1, LevelInfoLayer::onUpdate, 0);
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v16 + 456LL))(v16, v118);
(*(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v118 + 184LL))(v118, &v303);
*((float *)&v303 + 1) = *((float *)&v303 + 1) + -50.0;
}
v119 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_infoBtn_001.png");
v120 = CCMenuItemSpriteExtra::create(v119, 0, a1, sub_10002BA40, 0);
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v16 + 456LL))(v16, v120);
(*(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v120 + 184LL))(v120, &v303);
v121 = (double *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v120 + 192LL))(v120);
sub_1000262F4(&v302, v121);
v123 = GameManager::sharedState(v122);
if ( (GameManager::offlineModeEnabled(v123) & 1) == 0 )
{
v124 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_levelLeaderboardBtn_001.png");
v125 = CCMenuItemSpriteExtra::create(v124, 0, a1, sub_10002BA78, 0);
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v16 + 456LL))(v16, v125);
sub_1000262BC((float *)&v301, 0.0, -50.0);
*(float32x2_t *)&v126 = sub_100026318(&v302, &v301, (float32x2_t *)&v309);
(*(void (__fastcall **)(__int64, std::string *, double))(*(_QWORD *)v125 + 184LL))(v125, &v309, v126);
v127 = (double *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v125 + 192LL))(v125);
sub_10002630C(&v302, v127);
}
v128 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_like2Btn_001.png");
v129 = CCMenuItemSpriteExtra::create(v128, 0, a1, sub_10002BADC, 0);
*(_QWORD *)(a1 + 520) = v129;
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v16 + 456LL))(v16, v129);
v130 = *(_QWORD *)(a1 + 520);
sub_1000262BC((float *)&v301, 0.0, -50.0);
*(float32x2_t *)&v131 = sub_100026318(&v302, &v301, (float32x2_t *)&v309);
(*(void (__fastcall **)(__int64, std::string *, double))(*(_QWORD *)v130 + 184LL))(v130, &v309, v131);
v132 = (double *)(*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 520) + 192LL))(*(_QWORD *)(a1 + 520));
v133.n128_f64[0] = sub_1000262F4(&v301, v132);
v134 = *(_DWORD **)(a1 + 504);
if ( v134[237] == v134[238] )
{
v135 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_starBtn_001.png");
v136 = CCMenuItemSpriteExtra::create(v135, 0, a1, LevelInfoLayer::onRateStars, 0);
*(_QWORD *)(a1 + 528) = v136;
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v16 + 456LL))(v16, v136);
v137 = *(_QWORD *)(a1 + 528);
sub_1000262BC((float *)&v300, 0.0, -50.0);
*(float32x2_t *)&v138 = sub_100026318(&v301, &v300, (float32x2_t *)&v309);
(*(void (__fastcall **)(__int64, std::string *, double))(*(_QWORD *)v137 + 184LL))(v137, &v309, v138);
v139 = (double *)(*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 528) + 192LL))(*(_QWORD *)(a1 + 528));
v133.n128_f64[0] = sub_10002630C(&v301, v139);
v134 = *(_DWORD **)(a1 + 504);
}
if ( v134[233] - v134[234] == 1 )
{
v140 = sub_100009900(&v309, "GJ_rateDiffBtn_001.png");
v141 = GameManager::sharedState(v140);
if ( (unsigned int)(*(_DWORD *)(v141 + 1036) - *(_DWORD *)(v141 + 1032)) > 0xFFFFFFFD
|| *(_BYTE *)(GameManager::sharedState(v141) + 1044) == 1 )
{
std::string::assign(&v309, "GJ_rateDiffBtnMod_001.png");
}
if ( (v309.__r_.__value_.__r.__words[2] & 0x8000000000000000LL) == 0LL )
v142 = &v309;
else
v142 = (std::string *)v309.__r_.__value_.__r.__words[0];
v143 = cocos2d::CCSprite::createWithSpriteFrameName(v142);
*(_QWORD *)(a1 + 536) = CCMenuItemSpriteExtra::create(v143, 0, a1, sub_10002BC7C, 0);
(*(void (__fastcall **)(__int64))(*(_QWORD *)v16 + 456LL))(v16);
v144 = *(_QWORD *)(a1 + 536);
sub_1000262BC((float *)&v299, 0.0, -50.0);
*(float32x2_t *)&v145 = sub_100026318(&v301, &v299, &v300);
(*(void (__fastcall **)(__int64, float32x2_t *, double))(*(_QWORD *)v144 + 184LL))(v144, &v300, v145);
v146 = (double *)(*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 536) + 192LL))(*(_QWORD *)(a1 + 536));
v133.n128_f64[0] = sub_10002630C(&v301, v146);
if ( SHIBYTE(v309.__r_.__value_.__r.__words[2]) < 0 )
operator delete(v309.__r_.__value_.__l.__data_);
}
if ( *(_BYTE *)(a1 + 704) == 1 )
(*(void (__fastcall **)(__int64, _QWORD, __n128))(*(_QWORD *)v16 + 344LL))(v16, 0, v133);
updated = LevelInfoLayer::updateSideButtons(a1);
v148 = (_DWORD *)GameManager::sharedState(updated);
if ( v148[165] - v148[166] == *(_DWORD *)(*(_QWORD *)(a1 + 504) + 576LL) - *(_DWORD *)(*(_QWORD *)(a1 + 504) + 580LL) )
{
v149 = 1;
}
else
{
v148 = (_DWORD *)GJAccountManager::sharedState();
if ( v148[88] == v148[89] )
{
v149 = 0;
}
else
{
v148 = (_DWORD *)GJAccountManager::sharedState();
v149 = v148[88] - v148[89] == *(_DWORD *)(*(_QWORD *)(a1 + 504) + 588LL)
- *(_DWORD *)(*(_QWORD *)(a1 + 504) + 592LL);
}
}
v150 = v100 + -51.0;
v151 = GameManager::sharedState(v148);
v152 = *(_DWORD *)(v151 + 1036) - *(_DWORD *)(v151 + 1032);
v153 = 1;
v154 = 1;
if ( !v149 )
{
v155 = GameManager::sharedState(v151);
v153 = *(_DWORD *)(v155 + 1032) - *(_DWORD *)(v155 + 1036) > 1;
v151 = GameManager::sharedState(v155);
v154 = *(_DWORD *)(v151 + 1032) > *(_DWORD *)(v151 + 1036);
}
if ( v152 <= 0xFFFFFFFD )
v156 = 1;
else
v156 = 2;
v157 = (float)(v156 - !v149 + v153);
v158 = fminf((float)(v150 + -92.0) / (float)((float)(v157 * 50.0) + 48.0), 1.0);
v159 = v158 * 50.0;
v160 = cocos2d::CCDirector::sharedDirector(v151);
v161 = sub_100207EA8(v160);
v163 = v162 + 30.0;
v164 = AppDelegate::get(v161);
v165 = 0.0;
if ( *(_BYTE *)(v164 + 37) )
v165 = 25.0;
sub_1000262BC((float *)&v309, v163 + v165, (float)((float)(v150 + 92.0) * 0.5) + (float)((float)(v159 * v157) * 0.5));
if ( v152 >= 0xFFFFFFFE )
{
v169 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_starBtnMod_001.png");
(*(void (__fastcall **)(__int64, float))(*(_QWORD *)v169 + 160LL))(v169, v158);
v170 = CCMenuItemSpriteExtra::create(v169, 0, a1, sub_10002BE60, 0);
v171.n128_f64[0] = (*(double (__fastcall **)(__int64, __int64))(*(_QWORD *)v16 + 456LL))(v16, v170);
cocos2d::CCNode::convertToNodeSpace(&v300, v16, &v309, v171);
(*(void (__fastcall **)(__int64, float32x2_t *))(*(_QWORD *)v170 + 184LL))(v170, &v300);
*((float *)v309.__r_.__value_.__r.__words + 1) = *((float *)v309.__r_.__value_.__r.__words + 1) - v159;
if ( !v153 )
{
LABEL_116:
if ( !v149 )
goto LABEL_117;
LABEL_121:
v175 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_updateBtn_001.png");
(*(void (__fastcall **)(__int64, float))(*(_QWORD *)v175 + 160LL))(v175, v158);
v176 = CCMenuItemSpriteExtra::create(v175, 0, a1, LevelInfoLayer::onCreatorSettings, 0);
v177.n128_f64[0] = (*(double (__fastcall **)(__int64, __int64))(*(_QWORD *)v16 + 456LL))(v16, v176);
cocos2d::CCNode::convertToNodeSpace(&v300, v16, &v309, v177);
(*(void (__fastcall **)(__int64, float32x2_t *))(*(_QWORD *)v176 + 184LL))(v176, &v300);
*((float *)v309.__r_.__value_.__r.__words + 1) = *((float *)v309.__r_.__value_.__r.__words + 1) - v159;
if ( v154 )
goto LABEL_118;
LABEL_122:
if ( *(_DWORD *)(a2 + 980) - *(_DWORD *)(a2 + 984) == 1 )
v178 = "GJ_duplicateBtn_001.png";
else
v178 = "GJ_duplicateLockedBtn_001.png";
v179 = cocos2d::CCSprite::createWithSpriteFrameName(v178);
(*(void (__fastcall **)(__int64, float))(*(_QWORD *)v179 + 160LL))(v179, v158);
v180 = CCMenuItemSpriteExtra::create(v179, 0, a1, LevelInfoLayer::tryCloneLevel, 0);
*(_QWORD *)(a1 + 608) = v180;
v181.n128_f64[0] = (*(double (__fastcall **)(__int64, __int64))(*(_QWORD *)v16 + 456LL))(v16, v180);
v182 = *(_QWORD *)(a1 + 608);
cocos2d::CCNode::convertToNodeSpace(&v300, v16, &v309, v181);
(*(void (__fastcall **)(__int64, float32x2_t *))(*(_QWORD *)v182 + 184LL))(v182, &v300);
(*(void (__fastcall **)(_QWORD, bool))(**(_QWORD **)(a1 + 608) + 344LL))(
*(_QWORD *)(a1 + 608),
*(_DWORD *)(*(_QWORD *)(a1 + 504) + 980LL) != *(_DWORD *)(*(_QWORD *)(a1 + 504) + 984LL));
v183 = *(_QWORD *)(a1 + 608);
v184 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v183 + 352LL))(v183);
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v183 + 1056LL))(v183, v184);
goto LABEL_126;
}
}
else if ( !v153 )
{
goto LABEL_116;
}
v172 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_deleteServerBtn_001.png");
(*(void (__fastcall **)(__int64, float))(*(_QWORD *)v172 + 160LL))(v172, v158);
v173 = CCMenuItemSpriteExtra::create(v172, 0, a1, sub_10002BEC8, 0);
v174.n128_f64[0] = (*(double (__fastcall **)(__int64, __int64))(*(_QWORD *)v16 + 456LL))(v16, v173);
cocos2d::CCNode::convertToNodeSpace(&v300, v16, &v309, v174);
(*(void (__fastcall **)(__int64, float32x2_t *))(*(_QWORD *)v173 + 184LL))(v173, &v300);
*((float *)v309.__r_.__value_.__r.__words + 1) = *((float *)v309.__r_.__value_.__r.__words + 1) - v159;
if ( v149 )
goto LABEL_121;
LABEL_117:
if ( !v154 )
goto LABEL_122;
LABEL_118:
v166 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_duplicateBtn_001.png");
(*(void (__fastcall **)(__int64, float))(*(_QWORD *)v166 + 160LL))(v166, v158);
v167 = CCMenuItemSpriteExtra::create(v166, 0, a1, LevelInfoLayer::confirmClone, 0);
v168.n128_f64[0] = (*(double (__fastcall **)(__int64, __int64))(*(_QWORD *)v16 + 456LL))(v16, v167);
cocos2d::CCNode::convertToNodeSpace(&v300, v16, &v309, v168);
(*(void (__fastcall **)(__int64, float32x2_t *))(*(_QWORD *)v167 + 184LL))(v167, &v300);
LABEL_126:
v185 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_arrow_01_001.png");
v186 = CCMenuItemSpriteExtra::create(v185, 0, a1, LevelInfoLayer::onBack, 0);
CCMenuItemSpriteExtra::setSizeMult(1.6);
HIWORD(v292) = 0;
v187 = sub_100270434(v186);
v188 = (*(__int64 (__fastcall **)(__int64, __int64, __int64))(*(_QWORD *)a1 + 464LL))(a1, v187, 1);
v189 = cocos2d::CCDirector::sharedDirector(v188);
v190 = sub_100207EA8(v189);
v192 = v191 + 24.0;
v193 = cocos2d::CCDirector::sharedDirector(v190);
v194 = sub_100207E98(v193);
sub_1000262BC((float *)&v300, v192, v194 + -23.0);
hasCompletedLevel = (*(__int64 (__fastcall **)(__int64, float32x2_t *))(*(_QWORD *)v187 + 184LL))(v187, &v300);
if ( *(_DWORD *)(*(_QWORD *)(a1 + 504) + 920LL) <= *(_DWORD *)(*(_QWORD *)(a1 + 504) + 924LL) )
{
v196 = GameStatsManager::sharedState(hasCompletedLevel);
hasCompletedLevel = GameStatsManager::hasCompletedLevel(v196, *(_QWORD *)(a1 + 504));
if ( (_DWORD)hasCompletedLevel )
{
v197 = *(_DWORD **)(a1 + 504);
if ( v197[233] - v197[234] == 1 )
{
v198 = GameStatsManager::sharedState(hasCompletedLevel);
hasCompletedLevel = sub_1003CEDF4(v198, *(_QWORD *)(a1 + 504));
v197 = *(_DWORD **)(a1 + 504);
}
if ( v197[237] > v197[238] )
{
v199 = GameStatsManager::sharedState(hasCompletedLevel);
hasCompletedLevel = sub_1003CEEC0(v199, *(_QWORD *)(a1 + 504));
}
}
}
v200 = cocos2d::CCMenu::create(hasCompletedLevel);
v201 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_infoIcon_001.png");
v202 = CCMenuItemSpriteExtra::create(v201, 0, a1, LevelInfoLayer::onLevelInfo, 0);
CCMenuItemSpriteExtra::setSizeMult(1.2);
v203 = (*(__int64 (__fastcall **)(__int64, __int64))(*(_QWORD *)v200 + 456LL))(v200, v202);
v204 = cocos2d::CCDirector::sharedDirector(v203);
v205 = sub_100207EA8(v204);
v207 = v206 + 30.0;
v208 = cocos2d::CCDirector::sharedDirector(v205);
v209 = sub_100207EA0(v208);
sub_1000262BC((float *)&v300, v207, v209 + 30.0);
(*(void (__fastcall **)(__int64, float32x2_t *))(*(_QWORD *)v200 + 184LL))(v200, &v300);
v210 = (*(__int64 (__fastcall **)(__int64, __int64, __int64))(*(_QWORD *)a1 + 464LL))(a1, v200, 2);
v211 = cocos2d::CCMenu::create(v210);
v212 = (*(__int64 (__fastcall **)(__int64, __int64, __int64))(*(_QWORD *)a1 + 464LL))(a1, v211, 21);
v213 = *(float *)&v312 + -85.0;
if ( *(_BYTE *)(AppDelegate::get(v212) + 37) )
v214 = 25.0;
else
v214 = 0.0;
sub_1000262BC((float *)&v300, v213 - v214, *((float *)&v312 + 1) + -25.0);
(*(void (__fastcall **)(__int64, float32x2_t *))(*(_QWORD *)v211 + 184LL))(v211, &v300);
v215 = cocos2d::CCSprite::createWithSpriteFrameName("garageRope_001.png");
v216 = CCMenuItemSpriteExtra::create(v215, 0, a1, LevelInfoLayer::onGarage, 0);
CCMenuItemSpriteExtra::setSizeMult(1.2);
sub_1002B0300(v216, 1);
sub_1000262BC((float *)&v300, 0.0, -8.0);
v217 = sub_10002630C((_QWORD *)(v216 + 468), (double *)&v300);
*(_QWORD *)(v216 + 476) = 0x3E4CCCCD3E4CCCCDLL;
(*(void (__fastcall **)(__int64, __int64, double))(*(_QWORD *)v211 + 456LL))(v211, v216, v217);
if ( *(_BYTE *)(*(_QWORD *)(a1 + 504) + 912LL) )
v218 = "gj_heartOn_001.png";
else
v218 = "gj_heartOff_001.png";
v219 = cocos2d::CCSprite::createWithSpriteFrameName(v218);
v220 = CCMenuItemSpriteExtra::create(v219, 0, a1, sub_10002C3F8, 0);
CCMenuItemSpriteExtra::setSizeMult(1.1);
(*(void (__fastcall **)(__int64, __int64, __int64))(*(_QWORD *)v200 + 464LL))(v200, v220, 100);
v221 = (float32x2_t *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v200 + 192LL))(v200);
sub_1000262BC((float *)&v298, 38.0, 0.0);
v222.n128_u64[0] = (unsigned __int64)sub_100026318(v221, &v298, &v299);
cocos2d::CCNode::convertToNodeSpace(&v300, v200, &v299, v222);
(*(void (__fastcall **)(__int64, float32x2_t *))(*(_QWORD *)v220 + 184LL))(v220, &v300);
v223 = cocos2d::CCSprite::createWithSpriteFrameName("edit_leftBtn_001.png");
(*(void (__fastcall **)(__int64, float))(*(_QWORD *)v223 + 160LL))(v223, 0.9);
(*(void (__fastcall **)(__int64, float))(*(_QWORD *)v223 + 360LL))(v223, 90.0);
v224 = CCMenuItemSpriteExtra::create(v223, 0, a1, sub_10002C470, 0);
CCMenuItemSpriteExtra::setSizeMult(1.1);
v225 = (*(__int64 (__fastcall **)(__int64, __int64, __int64))(*(_QWORD *)v200 + 464LL))(v200, v224, 100);
v226 = *(float *)&v312 + -73.0;
if ( *(_BYTE *)(AppDelegate::get(v225) + 37) )
v227 = 25.0;
else
v227 = 0.0;
sub_1000262BC((float *)&v299, v226 - v227, 55.0);
cocos2d::CCNode::convertToNodeSpace(&v300, v200, &v299, v228);
(*(void (__fastcall **)(__int64, float32x2_t *))(*(_QWORD *)v224 + 184LL))(v224, &v300);
v229 = cocos2d::CCSprite::createWithSpriteFrameName("edit_leftBtn_001.png");
(*(void (__fastcall **)(__int64, float))(*(_QWORD *)v229 + 160LL))(v229, 0.9);
cocos2d::CCSprite::setFlipY(v229, 1);
(*(void (__fastcall **)(__int64, float))(*(_QWORD *)v229 + 360LL))(v229, -90.0);
v230 = CCMenuItemSpriteExtra::create(v229, 0, a1, sub_10002C52C, 0);
CCMenuItemSpriteExtra::setSizeMult(1.1);
(*(void (__fastcall **)(__int64, __int64, __int64))(*(_QWORD *)v200 + 464LL))(v200, v230, 100);
v231 = (float32x2_t *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v224 + 192LL))(v224);
sub_1000262BC((float *)&v299, 0.0, -30.0);
*(float32x2_t *)&v232 = sub_100026318(v231, &v299, &v300);
(*(void (__fastcall **)(__int64, float32x2_t *, double))(*(_QWORD *)v230 + 184LL))(v230, &v300, v232);
if ( *(_BYTE *)(a1 + 704) == 1 )
(*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v200 + 344LL))(v200, 0);
v233 = *(_QWORD *)(a1 + 504);
v234 = *(_DWORD *)(v233 + 608);
if ( v234 )
SongObject = SongInfoObject::create_1(*(unsigned int *)(v233 + 608));
else
SongObject = LevelTools::getSongObject(*(unsigned int *)(v233 + 604));
v236 = SongObject;
WORD2(v292) = 256;
LODWORD(v292) = 0;
v237 = CustomSongWidget::create(SongObject, 0, 0, 0, 1, v234 == 0, 0, 0, v292);
*(_QWORD *)(a1 + 736) = v237;
v238 = (*(__int64 (__fastcall **)(__int64, __int64))(*(_QWORD *)a1 + 456LL))(a1, v237);
v239 = *(_QWORD *)(a1 + 736);
v240 = *(float *)&v312 * 0.5;
v241 = cocos2d::CCDirector::sharedDirector(v238);
v242 = sub_100207EA0(v241);
sub_1000262BC((float *)&v300, v240, v242 + 45.0);
(*(void (__fastcall **)(__int64, float32x2_t *))(*(_QWORD *)v239 + 184LL))(v239, &v300);
if ( *(_BYTE *)(v236 + 432) == 1 )
sub_10011F884(*(_QWORD *)(a1 + 736), 0);
v243 = *(_QWORD *)(a1 + 736);
v244 = *(_QWORD *)(a1 + 504);
if ( *(char *)(v244 + 1263) < 0 )
{
sub_1000097D0(v296, *(void **)(v244 + 1240), *(_QWORD *)(v244 + 1248));
v244 = *(_QWORD *)(a1 + 504);
}
else
{
*(_OWORD *)v296 = *(_OWORD *)(v244 + 1240);
v297 = *(_QWORD *)(v244 + 1256);
}
if ( *(char *)(v244 + 1287) < 0 )
{
sub_1000097D0(v294, *(void **)(v244 + 1264), *(_QWORD *)(v244 + 1272));
v244 = *(_QWORD *)(a1 + 504);
}
else
{
*(_OWORD *)v294 = *(_OWORD *)(v244 + 1264);
v295 = *(_QWORD *)(v244 + 1280);
}
v245 = CustomSongWidget::updateWithMultiAssets(v243, v296, v294, *(unsigned int *)(v244 + 1288));
if ( SHIBYTE(v295) < 0 )
operator delete(v294[0]);
if ( SHIBYTE(v297) < 0 )
operator delete(v296[0]);
v246 = cocos2d::CCMenu::create(v245);
v247 = cocos2d::CCDirector::sharedDirector(v246);
v248 = sub_100207EA8(v247);
v250 = v249 + 30.0;
v251 = cocos2d::CCDirector::sharedDirector(v248);
v252 = sub_100207EA0(v251);
sub_1000262BC((float *)&v300, v250, v252 + 30.0);
(*(void (__fastcall **)(__int64, float32x2_t *))(*(_QWORD *)v246 + 184LL))(v246, &v300);
(*(void (__fastcall **)(__int64, __int64, __int64))(*(_QWORD *)a1 + 464LL))(a1, v246, 2);
v253 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_optionsBtn_001.png");
(*(void (__fastcall **)(__int64, float))(*(_QWORD *)v253 + 160LL))(v253, 0.6);
v254 = CCMenuItemSpriteExtra::create(v253, 0, a1, sub_10002C5E8, 0);
v255 = (*(__int64 (__fastcall **)(__int64, __int64))(*(_QWORD *)v246 + 456LL))(v246, v254);
v256 = AppDelegate::get(v255);
v257 = 40.0;
if ( !*(_BYTE *)(v256 + 37) )
v257 = 30.0;
sub_1000262BC((float *)&v299, v257, 70.0);
cocos2d::CCNode::convertToNodeSpace(&v300, v246, &v299, v258);
(*(void (__fastcall **)(__int64, float32x2_t *))(*(_QWORD *)v254 + 184LL))(v254, &v300);
v259 = cocos2d::CCSprite::createWithSpriteFrameName("gj_folderBtn_001.png");
v260 = sub_1003065B0("%i", *(_DWORD *)(a2 + 916));
v261 = cocos2d::CCString::getCString(v260);
v262 = cocos2d::CCLabelBMFont::create_1(v261, "bigFont.fnt");
*(_QWORD *)(a1 + 600) = v262;
(*(void (__fastcall **)(__int64, __int64, __int64))(*(_QWORD *)v259 + 464LL))(v259, v262, 1);
v263 = *(_QWORD *)(a1 + 600);
v264 = *(float *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v259 + 328LL))(v259) * 0.5;
v265 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v259 + 328LL))(v259);
sub_1000262BC((float *)&v300, v264, (float)(*(float *)(v265 + 4) * 0.5) + 1.0);
(*(void (__fastcall **)(__int64, float32x2_t *))(*(_QWORD *)v263 + 184LL))(v263, &v300);
cocos2d::CCLabelBMFont::limitLabelWidth(*(_QWORD *)(a1 + 600), 24.0, 0.55, 0.0);
(*(void (__fastcall **)(__int64, float))(*(_QWORD *)v259 + 160LL))(v259, 0.8);
v266 = CCMenuItemSpriteExtra::create(v259, 0, a1, sub_10002C684, 0);
CCMenuItemSpriteExtra::setSizeMult(1.2);
v267 = (*(__int64 (__fastcall **)(__int64, __int64))(*(_QWORD *)v200 + 456LL))(v200, v266);
v268 = *(float *)&v312 + -73.0;
v269 = AppDelegate::get(v267);
v270 = 25.0;
if ( !*(_BYTE *)(v269 + 37) )
v270 = 0.0;
sub_1000262BC((float *)&v299, v268 - v270, 80.0);
cocos2d::CCNode::convertToNodeSpace(&v300, v200, &v299, v271);
(*(void (__fastcall **)(__int64, float32x2_t *))(*(_QWORD *)v266 + 184LL))(v266, &v300);
v272 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_listAddBtn_001.png");
(*(void (__fastcall **)(__int64, float))(*(_QWORD *)v272 + 160LL))(v272, 0.9);
v273 = CCMenuItemSpriteExtra::create(v272, 0, a1, sub_10002C724, 0);
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v200 + 456LL))(v200, v273);
v274 = (float32x2_t *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v266 + 192LL))(v266);
sub_1000262BC((float *)&v299, 0.0, 35.0);
*(float32x2_t *)&v275 = sub_100026318(v274, &v299, &v300);
v276 = (*(__int64 (__fastcall **)(__int64, float32x2_t *, double))(*(_QWORD *)v273 + 184LL))(v273, &v300, v275);
if ( *(_DWORD *)(a2 + 920) > *(_DWORD *)(a2 + 924) || *(_BYTE *)(a2 + 649) == 1 )
{
(*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v266 + 344LL))(v266, 0);
(*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v266 + 1056LL))(v266, 0);
(*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v224 + 344LL))(v224, 0);
(*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v224 + 1056LL))(v224, 0);
(*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v230 + 344LL))(v230, 0);
(*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v230 + 1056LL))(v230, 0);
(*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v220 + 344LL))(v220, 0);
(*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v220 + 1056LL))(v220, 0);
(*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v273 + 344LL))(v273, 0);
v276 = (*(__int64 (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v273 + 1056LL))(v273, 0);
}
isControllerConnected = PlatformToolbox::isControllerConnected(v276);
if ( (_DWORD)isControllerConnected )
{
GameToolbox::addBackButton(a1, v186);
v278 = cocos2d::CCSprite::createWithSpriteFrameName("controllerBtn_Start_001.png");
(*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 720) + 456LL))(*(_QWORD *)(a1 + 720), v278);
v279 = *(float *)(*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 720) + 328LL))(*(_QWORD *)(a1 + 720)) * 0.5;
v280 = (*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 720) + 328LL))(*(_QWORD *)(a1 + 720));
sub_1000262BC((float *)&v300, v279, (float)(*(float *)(v280 + 4) * 0.5) + -40.0);
isControllerConnected = (*(__int64 (__fastcall **)(__int64, float32x2_t *))(*(_QWORD *)v278 + 184LL))(v278, &v300);
}
v281 = *(_QWORD *)(a1 + 504);
if ( ((*(_BYTE *)(v281 + 1432) & 1) != 0 || *(_BYTE *)(v281 + 1433) == 1)
&& *(_DWORD *)(v281 + 1140) != 2
&& *(_DWORD *)(v281 + 932) - *(_DWORD *)(v281 + 936) == 1 )
{
isControllerConnected = sub_1001F91E0(isControllerConnected);
if ( (_DWORD)isControllerConnected )
{
v282 = *(_QWORD *)(a1 + 504);
if ( *(_BYTE *)(v282 + 1432) == 1 )
{
v283 = GameLevelManager::sharedState(isControllerConnected);
isControllerConnected = sub_1000BD74C(v283, *(_QWORD *)(a1 + 504), 4, 0);
v282 = *(_QWORD *)(a1 + 504);
}
if ( *(_BYTE *)(v282 + 1433) == 1 )
{
v284 = GameLevelManager::sharedState(isControllerConnected);
isControllerConnected = sub_1000BD74C(v284, *(_QWORD *)(a1 + 504), 4, 1);
}
}
}
*(_BYTE *)(GameManager::sharedState(isControllerConnected) + 1064) = 0;
return v293;
}