//
// LevelInfoLayer::init from 0x1002a9ea0 to 0x1002ac39b (9467 bytes)
//
// 1 xrefs:
// > LevelInfoLayer::create @ 0x1002a9e37
//
// 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:27:59 +0000
//
__int64 __fastcall LevelInfoLayer::init(__int64 a1, _DWORD *a2, char a3)
{
__int64 result; // rax
__int64 v7; // rax
__int64 v8; // rdi
__int64 v9; // rdx
double v10; // xmm0_8
__int64 v11; // rax
__int64 v12; // rax
__int64 v13; // rax
__int64 v14; // rax
__int64 v15; // rsi
__int64 v16; // rax
__int64 v17; // rax
int v18; // r13d
int v19; // r13d
char v20; // r12
float *v21; // r14
char v22; // r15
const char *v23; // r14
char *v24; // r12
__int64 v25; // rdi
__int64 v26; // rax
double v27; // xmm0_8
__int64 v28; // rbx
double v29; // xmm0_8
unsigned __int8 *v30; // r14
__int64 v31; // rdi
__int64 v32; // rax
double v33; // xmm0_8
char v34; // r15
const char *v35; // rdi
__int64 v36; // rax
__int128 *v37; // rax
__int64 v38; // r14
_QWORD *v39; // rbx
__int64 v40; // rdi
__int64 v41; // rax
double v42; // xmm0_8
int v43; // r15d
int v44; // r12d
int v45; // ecx
double v46; // xmm0_8
const std::string::value_type *v47; // rsi
std::string::pointer data; // rdi
__int64 v49; // r12
unsigned __int64 *v50; // r13
float v51; // xmm0_4
double v52; // xmm2_8
__int64 v53; // rax
__int64 v54; // rax
__int64 v55; // rax
__int64 CString; // r15
__int64 v57; // r13
__int64 v58; // rax
void *v59; // r15
_QWORD *v60; // r14
__int64 v61; // rbx
std::string *v62; // rsi
_DWORD *v63; // rax
double v64; // xmm0_8
__int64 v65; // rdx
int v66; // ebx
__int64 v67; // rax
char GameVariable; // al
__int64 v69; // rbx
char *v70; // r14
_QWORD *v71; // r12
char *v72; // r14
bool v73; // cc
char *v74; // r14
char *v75; // rax
void *v76; // r14
__int128 v77; // xmm0
__int64 v78; // rdx
__int64 v79; // rax
char *v80; // r15
void *v81; // rax
__int64 v82; // r15
unsigned __int64 *v83; // r14
unsigned __int64 *v84; // rsi
__int64 v85; // rax
_DWORD *v86; // r14
__int64 v87; // r13
__int128 *v88; // rax
unsigned int v89; // eax
bool v90; // bl
bool v91; // zf
__int64 v92; // rdi
__int64 v93; // rdi
__int64 v94; // rax
double v95; // xmm0_8
float v96; // xmm1_4
double v97; // xmm0_8
__int64 v98; // rax
double *v99; // rsi
__int64 v100; // rdi
__int64 v101; // rdx
char *v102; // rax
void *v103; // r14
double v104; // xmm0_8
__int64 v105; // rax
char *v106; // rax
void *v107; // r14
char *v108; // rax
void *v109; // r14
_QWORD *v110; // rsi
__int64 v111; // rdx
double v112; // xmm0_8
__int64 v113; // rax
char *v114; // rax
void *v115; // r14
_QWORD *v116; // rax
char *v117; // rax
void *v118; // rax
__int64 v119; // r14
_QWORD *v120; // rsi
__int64 v121; // rdx
_DWORD *v122; // rax
char *v123; // rax
void *v124; // rax
__int64 v125; // r14
_QWORD *v126; // rax
__int64 v127; // rdx
unsigned __int64 v128; // xmm0_8
__int64 v129; // rax
__int64 v130; // rax
std::string::pointer v131; // rdi
__int64 v132; // rax
__int128 *v133; // rax
char *v134; // rax
void *v135; // rax
__int64 v136; // r14
__int64 v137; // rdi
__int64 v138; // rdx
__int64 v139; // rax
__int64 v140; // rdx
bool v141; // r15
bool v142; // r12
__int64 v143; // rax
__int64 v144; // rax
__int64 v145; // rdx
__int64 v146; // rax
unsigned int v147; // r14d
bool v148; // bl
__int64 v149; // rax
__int64 v150; // rdx
__int64 v151; // rax
__int64 v152; // rax
double v153; // xmm0_8
char *v154; // r14
void *v155; // r14
bool v156; // r13
__int64 v157; // rbx
__int64 v158; // rsi
__int64 v159; // r13
char *v160; // r14
void *v161; // r14
const char *v162; // rdi
char *v163; // r14
double v164; // xmm0_8
__int64 *v165; // r12
void *v166; // rax
__int64 v167; // r14
__int64 v168; // r14
unsigned __int8 v169; // al
char *v170; // r14
void *v171; // r14
char *v172; // r14
void *v173; // r14
char *v174; // rax
void *v175; // r14
int v176; // edx
int v177; // ecx
int v178; // r8d
int v179; // r9d
__int64 v180; // rsi
__int64 v181; // rdi
__int64 v182; // rax
double v183; // xmm0_8
float v184; // xmm1_4
__m128 v185; // xmm0
__int64 v186; // rdi
_DWORD *v187; // rax
__int64 v188; // rdi
__int64 v189; // rdi
__int64 v190; // rbx
char *v191; // rax
void *v192; // r14
__int64 v193; // rdi
__int64 v194; // rax
double v195; // xmm0_8
__int64 v196; // r14
double v197; // xmm0_8
char *v198; // rax
char *v199; // r15
const char *v200; // rdi
char *v201; // rax
_QWORD *v202; // r12
unsigned __int64 *v203; // r14
__int64 v204; // rax
double v205; // xmm0_8
char *v206; // r15
__int64 *v207; // r13
double v208; // xmm0_8
unsigned __int8 *v209; // r14
_QWORD *v210; // r12
__int64 v211; // rax
unsigned __int64 *v212; // r14
__int64 v213; // rax
_QWORD *v214; // rdi
__int64 v215; // r12
__int64 v216; // rax
unsigned int v217; // r13d
__int64 SongObject; // rax
__int64 v219; // r14
__int64 v220; // rax
__int64 v221; // rsi
__int64 v222; // r15
__int64 v223; // rax
double v224; // xmm0_8
__int64 v225; // rax
void *v226; // r14
void *v227; // rdi
__int64 v228; // r14
__int64 v229; // rdi
__int64 v230; // rax
double v231; // xmm0_8
double v232; // xmm0_8
char *v233; // r15
void *v234; // r15
__int64 v235; // rbx
double v236; // xmm0_8
char *v237; // r14
__int64 v238; // rax
__int64 v239; // rax
__int64 v240; // rax
__int64 v241; // r13
__int64 v242; // rax
void *v243; // r13
__int64 v244; // r12
double v245; // xmm0_8
char *v246; // r14
void *v247; // r14
__int64 v248; // r15
double v249; // xmm0_8
unsigned __int64 *v250; // rsi
_DWORD *v251; // r15
__int64 v252; // rdi
unsigned __int64 *v253; // rsi
__int64 *v254; // rbx
_QWORD *v255; // rbx
_QWORD *v256; // rbx
__int64 v257; // rdx
__int64 v258; // rbx
__int64 v259; // rax
__int64 v260; // rbx
char *v261; // r14
__int64 v262; // rax
__int64 v263; // rax
__int64 v264; // rax
__int64 v265; // rax
__int64 v266; // rax
std::string::size_type size; // rbx
__int64 v268; // rax
int v269; // ebx
__int64 v270; // rax
char v271; // [rsp+0h] [rbp-170h]
char v272; // [rsp+0h] [rbp-170h]
unsigned __int64 v273; // [rsp+28h] [rbp-148h] BYREF
unsigned __int64 v274; // [rsp+30h] [rbp-140h] BYREF
void *v275; // [rsp+38h] [rbp-138h]
__int128 v276; // [rsp+40h] [rbp-130h] BYREF
void *v277; // [rsp+50h] [rbp-120h]
__int128 v278; // [rsp+60h] [rbp-110h] BYREF
void *v279; // [rsp+70h] [rbp-100h]
unsigned __int64 v280; // [rsp+80h] [rbp-F0h] BYREF
unsigned __int64 v281; // [rsp+88h] [rbp-E8h] BYREF
unsigned __int64 v282; // [rsp+90h] [rbp-E0h] BYREF
unsigned __int64 v283; // [rsp+98h] [rbp-D8h] BYREF
_DWORD *v284; // [rsp+A0h] [rbp-D0h]
_QWORD *v285; // [rsp+A8h] [rbp-C8h]
double v286; // [rsp+B0h] [rbp-C0h] BYREF
unsigned __int64 v287; // [rsp+B8h] [rbp-B8h] BYREF
__int128 v288; // [rsp+C0h] [rbp-B0h] BYREF
void *__p; // [rsp+D0h] [rbp-A0h]
unsigned __int64 v290; // [rsp+E0h] [rbp-90h] BYREF
__int64 *v291; // [rsp+E8h] [rbp-88h]
float v292; // [rsp+F4h] [rbp-7Ch] BYREF
float v293; // [rsp+F8h] [rbp-78h]
unsigned __int8 v294; // [rsp+FFh] [rbp-71h]
_QWORD *v295; // [rsp+100h] [rbp-70h]
__int64 v296; // [rsp+108h] [rbp-68h]
__int64 v297; // [rsp+110h] [rbp-60h]
unsigned __int64 v298; // [rsp+118h] [rbp-58h] BYREF
std::string v299; // [rsp+120h] [rbp-50h] BYREF
int v300; // [rsp+144h] [rbp-2Ch]
result = cocos2d::CCLayer::init(a1);
if ( (_BYTE)result )
{
v294 = result;
*(_QWORD *)(a1 + 504) = a2;
cocos2d::CCObject::retain(a2);
*(_BYTE *)(a1 + 704) = a3;
v7 = sub_1007FE900(a2);
*(_QWORD *)(a1 + 512) = v7;
v8 = v7;
cocos2d::CCObject::retain(v7);
*(_BYTE *)(*(_QWORD *)(a1 + 504) + 1105LL) = 0;
*(_DWORD *)(a1 + 640) = a2[285];
*(_QWORD *)&v10 = GameManager::sharedState(v8, a2, v9).u64[0];
*(_DWORD *)(v11 + 964) = *(_DWORD *)(*(_QWORD *)(a1 + 504) + 328LL) - *(_DWORD *)(*(_QWORD *)(a1 + 504) + 332LL);
v12 = LoadingCircle::create(v10);
*(_QWORD *)(a1 + 648) = v12;
*(_QWORD *)(v12 + 552) = a1;
*(_BYTE *)(v12 + 560) = 0;
cocos2d::CCObject::retain(v12);
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);
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)a1 + 1088LL))(a1, 1);
v13 = cocos2d::CCDirector::sharedDirector(a1, 1);
cocos2d::CCDirector::getWinSize(&v292, v13);
v14 = cocos2d::CCMenu::create();
*(_QWORD *)(a1 + 496) = v14;
(*(void (__fastcall **)(__int64, __int64, __int64))(*(_QWORD *)a1 + 464LL))(a1, v14, 3);
v15 = cocos2d::CCMenu::create();
v16 = *(_QWORD *)a1;
v296 = v15;
(*(void (__fastcall **)(__int64, __int64, __int64))(v16 + 464))(a1, v15, 2);
v17 = *(_QWORD *)(a1 + 504);
LODWORD(v295) = *(_DWORD *)(v17 + 920);
LODWORD(v291) = *(_DWORD *)(v17 + 924);
v18 = a2[230];
v284 = a2;
v19 = v18 - a2[231];
LODWORD(v285) = v19 - 100001;
v20 = *(_BYTE *)(v17 + 649) | ((unsigned int)(v19 - 100001) < 0x186A0);
v21 = (float *)cocos2d::CCSprite::create_1((__int64)"GJ_gradientBG.png");
sub_100278250((float *)&v288, 0.0, 0.0);
(*(void (__fastcall **)(float *, __int128 *))(*(_QWORD *)v21 + 296LL))(v21, &v288);
(*(void (__fastcall **)(__int64, float *, __int64))(*(_QWORD *)a1 + 464LL))(a1, v21, 4294967294LL);
(*(void (__fastcall **)(float *, float))(*(_QWORD *)v21 + 128LL))(v21, (float)(v292 + 10.0) / v21[108]);
(*(void (__fastcall **)(float *, float))(*(_QWORD *)v21 + 144LL))(v21, (float)(v293 + 10.0) / v21[109]);
sub_100278250((float *)&v288, -5.0, -5.0);
(*(void (__fastcall **)(float *, __int128 *))(*(_QWORD *)v21 + 184LL))(v21, &v288);
BYTE2(v288) = -1;
LOWORD(v288) = 26112;
(*(void (__fastcall **)(float *, __int128 *))(*(_QWORD *)v21 + 960LL))(v21, &v288);
v297 = a1;
if ( v20 )
{
v22 = 1;
if ( v19 < 200001 )
goto LABEL_10;
}
else
{
v22 = *(_BYTE *)(a1 + 704);
if ( v19 <= 200000 )
{
if ( v22 )
{
LABEL_10:
memset(&v288, 51, 3);
(*(void (__fastcall **)(float *, __int128 *))(*(_QWORD *)v21 + 960LL))(v21, &v288);
v23 = "gauntletCorner_001.png";
goto LABEL_12;
}
v23 = "GJ_sideArt_001.png";
LABEL_12:
v24 = cocos2d::CCSprite::createWithSpriteFrameName((__int64)v23, COERCE_DOUBLE(3231711232LL));
sub_100278250((float *)&v288, 0.0, 0.0);
(*(void (__fastcall **)(char *, __int128 *))(*(_QWORD *)v24 + 296LL))(v24, &v288);
v25 = cocos2d::CCDirector::sharedDirector(v24, &v288);
*(float *)&v300 = sub_100479760(v25) + -1.0;
v26 = cocos2d::CCDirector::sharedDirector(v25, &v288);
v27 = sub_100479750(v26);
sub_100278250((float *)&v288, *(float *)&v300, *(float *)&v27 + -1.0);
(*(void (__fastcall **)(char *, __int128 *))(*(_QWORD *)v24 + 184LL))(v24, &v288);
v28 = v297;
v29 = (*(double (__fastcall **)(__int64, char *, __int64))(*(_QWORD *)v297 + 464LL))(v297, v24, 1);
v30 = (unsigned __int8 *)cocos2d::CCSprite::createWithSpriteFrameName((__int64)v23, v29);
sub_100278250((float *)&v288, 1.0, 0.0);
(*(void (__fastcall **)(unsigned __int8 *, __int128 *))(*(_QWORD *)v30 + 296LL))(v30, &v288);
v31 = cocos2d::CCDirector::sharedDirector(v30, &v288);
*(float *)&v300 = sub_100479770(v31) + 1.0;
v32 = cocos2d::CCDirector::sharedDirector(v31, &v288);
v33 = sub_100479750(v32);
sub_100278250((float *)&v288, *(float *)&v300, *(float *)&v33 + -1.0);
(*(void (__fastcall **)(unsigned __int8 *, __int128 *))(*(_QWORD *)v30 + 184LL))(v30, &v288);
cocos2d::CCSprite::setFlipX(v30, 1u);
(*(void (__fastcall **)(__int64, unsigned __int8 *, __int64))(*(_QWORD *)v28 + 464LL))(v28, v30, 1);
v34 = *(_BYTE *)(v28 + 704);
if ( v34 )
{
v35 = "Challenge";
LABEL_19:
v38 = cocos2d::CCLabelBMFont::create_3(v35, "bigFont.fnt");
if ( !v34 && (v288 & 1) != 0 )
operator delete(__p);
v39 = (_QWORD *)v297;
v40 = v297;
(*(void (__fastcall **)(__int64, __int64, __int64))(*(_QWORD *)v297 + 464LL))(v297, v38, 20);
*(float *)&v300 = v292 * 0.5;
v41 = cocos2d::CCDirector::sharedDirector(v40, v38);
v42 = sub_100479740(v41);
sub_100278250((float *)&v299, *(float *)&v300, *(float *)&v42 + -17.0);
(*(void (__fastcall **)(__int64, std::string *))(*(_QWORD *)v38 + 184LL))(v38, &v299);
v43 = (int)v295;
v44 = (int)v291;
v45 = 300;
if ( (int)v295 > (int)v291 )
v45 = 260;
HIDWORD(v46) = 0;
*(float *)&v46 = (float)v45;
cocos2d::CCLabelBMFont::limitLabelWidth(v38, (float)v45, 0.80000001, 0.0);
if ( v43 > v44 )
{
v299.__r_.__value_.__s.0 = (std::string::__short::$7162EEB0FEF29CC674EFA33D0008C7E0)14;
strcpy(v299.__r_.__value_.__s.__data_, "(Daily)");
if ( v19 > 100000 )
{
v47 = "(Event)";
if ( (unsigned int)v285 < 0x186A0 )
v47 = "(Weekly)";
std::string::assign(&v299, v47);
}
if ( (*(_BYTE *)&v299.__r_.__value_.__s.0 & 1) != 0 )
data = v299.__r_.__value_.__l.__data_;
else
data = v299.__r_.__value_.__s.__data_;
v49 = cocos2d::CCLabelBMFont::create_3(data, "goldFont.fnt");
(*(void (__fastcall **)(__int64, float))(*(_QWORD *)v49 + 160LL))(v49, 0.60000002);
(*(void (__fastcall **)(_QWORD *, __int64, __int64))(*v39 + 464LL))(v39, v49, 20);
sub_100278250((float *)&v290, 0.0, 0.5);
(*(void (__fastcall **)(__int64, unsigned __int64 *))(*(_QWORD *)v49 + 296LL))(v49, &v290);
v50 = (unsigned __int64 *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v38 + 192LL))(v38);
v300 = *(int *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v38 + 328LL))(v38);
v51 = (*(float (__fastcall **)(__int64))(*(_QWORD *)v38 + 168LL))(v38);
*(_QWORD *)&v52 = (unsigned int)v300;
*(float *)&v52 = (float)((float)(*(float *)&v300 * 0.5) * v51) + 3.0;
v46 = v52;
sub_100278250((float *)&v282, *(float *)&v52, -0.5);
sub_100278350((double *)&v290, v50, &v282);
(*(void (__fastcall **)(__int64, unsigned __int64 *))(*(_QWORD *)v49 + 184LL))(v49, &v290);
if ( (*(_BYTE *)&v299.__r_.__value_.__s.0 & 1) != 0 )
operator delete(v299.__r_.__value_.__l.__data_);
}
v53 = v39[63];
v300 = *(_DWORD *)(v53 + 588) - *(_DWORD *)(v53 + 592);
if ( *(float *)&v300 == 0.0 )
{
v54 = GameLevelManager::sharedState(v46);
v300 = GameLevelManager::accountIDForUserID(
v54,
(unsigned int)(*(_DWORD *)(v39[63] + 576LL) - *(_DWORD *)(v39[63] + 580LL)));
v53 = v39[63];
if ( (*(_BYTE *)(v53 + 416) & 1) == 0 )
goto LABEL_36;
}
else if ( (*(_BYTE *)(v53 + 416) & 1) == 0 )
{
LABEL_36:
v299 = *(std::string *)(v53 + 416);
goto LABEL_39;
}
sub_10001AD30(&v299, *(const void **)(v53 + 432), *(_QWORD *)(v53 + 424));
LABEL_39:
v55 = sub_10088E820("By %s", v271);
CString = cocos2d::CCString::getCString(v55);
if ( (*(_BYTE *)&v299.__r_.__value_.__s.0 & 1) != 0 )
operator delete(v299.__r_.__value_.__l.__data_);
v57 = cocos2d::CCLabelBMFont::create_3(CString, "goldFont.fnt");
*(float *)&v295 = v292 * 0.5;
v58 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v38 + 192LL))(v38);
sub_100278250((float *)&v290, *(float *)&v295, *(float *)(v58 + 4) + -26.0);
cocos2d::CCLabelBMFont::limitLabelWidth(v57, 300.0, 0.80000001, 0.0);
v59 = CCMenuItemSpriteExtra::create(v57, 0, (__int64)v39, (__int64)LevelInfoLayer::onViewProfile, 0);
v60 = v39;
v61 = v296;
(*(void (__fastcall **)(__int64, void *))(*(_QWORD *)v296 + 456LL))(v296, v59);
cocos2d::CCNode::convertToNodeSpace((double *)&v299, v61, (unsigned int *)&v290);
v62 = &v299;
(*(void (__fastcall **)(void *, std::string *))(*(_QWORD *)v59 + 184LL))(v59, &v299);
if ( *(float *)&v300 == 0.0 )
{
v299.__r_.__value_.__s.__data_[1] = -1;
*(_WORD *)&v299.__r_.__value_.__l.0 = -166;
(*(void (__fastcall **)(__int64, std::string *))(*(_QWORD *)v57 + 1072LL))(v57, &v299);
v62 = nullptr;
(*(void (__fastcall **)(void *, _QWORD))(*(_QWORD *)v59 + 1056LL))(v59, 0);
}
LODWORD(v295) = v290;
v63 = (_DWORD *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v57 + 328LL))(v57);
*(_QWORD *)&v64 = (unsigned int)*v63;
LODWORD(v291) = *v63;
*(float *)&v64 = (*(float (__fastcall **)(__int64))(*(_QWORD *)v57 + 168LL))(v57);
*(float *)&v64 = (float)((float)((float)(*(float *)&v64 * *(float *)&v291) * 0.5) + *(float *)&v295) + 6.0;
sub_100278250((float *)&v282, *(float *)&v64, *((float *)&v290 + 1) + -1.0);
if ( *((_BYTE *)v60 + 704) == 1 )
{
(*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v57 + 344LL))(v57, 0);
v62 = (std::string *)&v290;
sub_100278300(&v282, &v290);
}
v66 = *(_DWORD *)(v60[63] + 620LL) - *(_DWORD *)(v60[63] + 624LL);
if ( v284[247] == v284[248] )
{
if ( v66 <= 40000 && v300 > 0 )
{
*(_QWORD *)&v64 = GameManager::sharedState(&v282, v62, v65).u64[0];
GameVariable = GameManager::getGameVariable(v67, "0047");
v69 = v297;
if ( !GameVariable && !*(_BYTE *)(v297 + 704) )
{
v70 = cocos2d::CCSprite::createWithSpriteFrameName((__int64)"GJ_viewProfileTxt_001.png", v64);
(*(void (__fastcall **)(__int64, char *, __int64))(*(_QWORD *)v69 + 464LL))(v69, v70, 2);
*(_QWORD *)&v64 = *(unsigned int *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v57 + 328LL))(v57);
*(float *)&v300 = *(float *)&v64 * 0.5;
*(float *)&v64 = (*(float (__fastcall **)(__int64))(*(_QWORD *)v57 + 168LL))(v57);
*(float *)&v64 = (float)(*(float *)&v64 * *(float *)&v300) + 48.0;
sub_100278250((float *)&v281, *(float *)&v64, -1.0);
sub_100278350((double *)&v299, &v290, &v281);
(*(void (__fastcall **)(char *, std::string *))(*(_QWORD *)v70 + 184LL))(v70, &v299);
}
goto LABEL_54;
}
}
else
{
v71 = v60;
v72 = cocos2d::CCSprite::createWithSpriteFrameName((__int64)"collaborationIcon_001.png", v64);
sub_100278250((float *)&v299, 0.0, 0.5);
(*(void (__fastcall **)(char *, std::string *))(*(_QWORD *)v72 + 296LL))(v72, &v299);
(*(void (__fastcall **)(_QWORD *, char *))(*v71 + 456LL))(v71, v72);
(*(void (__fastcall **)(char *, unsigned __int64 *))(*(_QWORD *)v72 + 184LL))(v72, &v282);
*(_QWORD *)&v64 = 1099956224;
sub_100278250((float *)&v281, 18.0, 0.0);
sub_100278350((double *)&v299, &v282, &v281);
sub_100278300(&v282, &v299);
}
v73 = v66 < 40001;
v69 = v297;
if ( !v73 )
{
v74 = cocos2d::CCSprite::createWithSpriteFrameName((__int64)"highObjectIcon_001.png", v64);
sub_100278250((float *)&v299, 0.0, 0.5);
(*(void (__fastcall **)(char *, std::string *))(*(_QWORD *)v74 + 296LL))(v74, &v299);
(*(void (__fastcall **)(__int64, char *, __int64))(*(_QWORD *)v69 + 464LL))(v69, v74, 10);
(*(void (__fastcall **)(char *, unsigned __int64 *))(*(_QWORD *)v74 + 184LL))(v74, &v282);
*(_QWORD *)&v64 = 1099956224;
sub_100278250((float *)&v281, 18.0, 0.0);
sub_100278350((double *)&v299, &v282, &v281);
sub_100278300(&v282, &v299);
}
LABEL_54:
v75 = cocos2d::CCSprite::createWithSpriteFrameName((__int64)"GJ_playBtn2_001.png", v64);
*(_QWORD *)(v69 + 720) = v75;
v76 = CCMenuItemSpriteExtra::create((__int64)v75, 0, v69, (__int64)LevelInfoLayer::onPlay, 0);
(*(void (__fastcall **)(_QWORD, void *))(**(_QWORD **)(v69 + 496) + 456LL))(*(_QWORD *)(v69 + 496), v76);
*(_QWORD *)&v77 = LODWORD(v292);
*(float *)&v77 = v292 * 0.5;
sub_100278250((float *)&v281, v292 * 0.5, (float)(v293 * 0.5) + 51.0);
cocos2d::CCNode::convertToNodeSpace((double *)&v299, *(_QWORD *)(v69 + 496), (unsigned int *)&v281);
(*(void (__fastcall **)(void *, std::string *))(*(_QWORD *)v76 + 184LL))(v76, &v299);
if ( !*(_BYTE *)(v69 + 704) )
{
*(_QWORD *)&v77 = GameManager::sharedState(v76, &v299, v78).u64[0];
if ( *(_DWORD *)(v79 + 1032) - *(_DWORD *)(v79 + 1036) >= 2 )
{
v80 = cocos2d::CCSprite::createWithSpriteFrameName((__int64)"GJ_editBtn_001.png", *(double *)&v77);
(*(void (__fastcall **)(char *, float))(*(_QWORD *)v80 + 160LL))(v80, 0.40000001);
(*(void (__fastcall **)(char *, __int64))(*(_QWORD *)v80 + 912LL))(v80, 175);
v81 = CCMenuItemSpriteExtra::create((__int64)v80, 0, v69, (__int64)LevelInfoLayer::onEdit, 0);
*(_QWORD *)(v69 + 552) = v81;
(*(void (__fastcall **)(_QWORD, void *))(**(_QWORD **)(v69 + 496) + 456LL))(*(_QWORD *)(v69 + 496), v81);
v82 = *(_QWORD *)(v69 + 552);
v83 = (unsigned __int64 *)(*(__int64 (__fastcall **)(void *))(*(_QWORD *)v76 + 192LL))(v76);
*(_QWORD *)&v77 = 3261595648LL;
sub_100278250((float *)&v274, -58.0, -34.0);
sub_100278350((double *)&v299, v83, &v274);
(*(void (__fastcall **)(__int64, std::string *))(*(_QWORD *)v82 + 184LL))(v82, &v299);
}
}
v84 = &v281;
(*(void (__fastcall **)(_QWORD, unsigned __int64 *))(**(_QWORD **)(*(_QWORD *)(v69 + 648) + 544LL) + 184LL))(
*(_QWORD *)(*(_QWORD *)(v69 + 648) + 544LL),
&v281);
v85 = *(_QWORD *)(v69 + 504);
v86 = v284;
v87 = v296;
if ( *(_DWORD *)(v85 + 1140) == 4 )
goto LABEL_68;
if ( (*(_BYTE *)(v85 + 392) & 1) != 0 )
{
v84 = *(unsigned __int64 **)(v85 + 408);
sub_10001AD30(&v299, v84, *(_QWORD *)(v85 + 400));
v89 = (unsigned int)v299.__r_.__value_.__l.0;
if ( (*(_BYTE *)&v299.__r_.__value_.__s.0 & 1) == 0 )
{
LABEL_60:
if ( v89 >> 1 )
goto LABEL_65;
LABEL_64:
if ( *(_DWORD *)(GameLevelManager::sharedState(*(double *)&v77) + 1480) != 99 )
{
v90 = *(_DWORD *)(GameLevelManager::sharedState(*(double *)&v77) + 1480) != 100;
if ( (*(_BYTE *)&v299.__r_.__value_.__s.0 & 1) == 0 )
{
LABEL_67:
v91 = !v90;
v69 = v297;
if ( !v91 )
{
LABEL_68:
LevelInfoLayer::downloadLevel(v69);
goto LABEL_69;
}
v132 = *(_QWORD *)(v297 + 504);
if ( (*(_BYTE *)(v132 + 392) & 1) != 0 )
{
v84 = *(unsigned __int64 **)(v132 + 408);
sub_10001AD30(&v299, v84, *(_QWORD *)(v132 + 400));
}
else
{
v133 = (__int128 *)(v132 + 392);
v299.__r_.__value_.__r.__words[2] = *((_QWORD *)v133 + 2);
v77 = *v133;
*(_OWORD *)&v299.__r_.__value_.__l.0 = *v133;
}
if ( (*(_BYTE *)&v299.__r_.__value_.__s.0 & 1) != 0 )
{
size = v299.__r_.__value_.__l.__size_;
operator delete(v299.__r_.__value_.__l.__data_);
v91 = size == 0;
v69 = v297;
if ( !v91 )
goto LABEL_69;
}
else
{
v69 = v297;
if ( *(_BYTE *)&v299.__r_.__value_.__l.0 >> 1 )
goto LABEL_69;
}
*(_BYTE *)(v69 + 644) = 1;
(*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(v69 + 496) + 344LL))(*(_QWORD *)(v69 + 496), 0);
*(double *)&v77 = (*(double (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(v69 + 648) + 344LL))(
*(_QWORD *)(v69 + 648),
1);
*(_QWORD *)(GameLevelManager::sharedState(*(double *)&v77) + 1288) = v69 + 416;
v268 = *(_QWORD *)(v69 + 504);
v269 = *(_DWORD *)(v268 + 788);
*(_DWORD *)(v268 + 788) = -1;
v270 = GameLevelManager::sharedState(*(double *)&v77);
v84 = *(unsigned __int64 **)(v297 + 504);
GameLevelManager::updateLevel(v270, v84);
v86[197] = v269;
v69 = v297;
LABEL_69:
v92 = v69;
LevelInfoLayer::setupLevelInfo(v69);
if ( !*(_BYTE *)(v69 + 704) )
{
v92 = v69;
if ( (unsigned __int8)GJGameLevel::isPlatformer(*(_QWORD *)(v69 + 504), *(double *)&v77) )
LevelInfoLayer::setupPlatformerStats(v69);
else
LevelInfoLayer::setupProgressBars(v69);
}
*(float *)&v300 = v293;
v93 = cocos2d::CCDirector::sharedDirector(v92, v84);
*(float *)&v295 = sub_100479770(v93) + -30.0;
v94 = cocos2d::CCDirector::sharedDirector(v93, v84);
v95 = sub_100479740(v94);
v96 = *(float *)&v95 + -30.0;
*(_QWORD *)&v97 = (unsigned int)v295;
sub_100278250((float *)&v274, *(float *)&v295, v96);
cocos2d::CCNode::convertToNodeSpace(&v286, v87, (unsigned int *)&v274);
if ( *(_DWORD *)(*(_QWORD *)(v69 + 504) + 920LL) <= *(_DWORD *)(*(_QWORD *)(v69 + 504) + 924LL)
|| (v98 = GameLevelManager::sharedState(v97),
v99 = *(double **)(v69 + 504),
v100 = v98,
(unsigned __int8)GameLevelManager::isPastDailyCopy(v98, v99)) )
{
v102 = cocos2d::CCSprite::createWithSpriteFrameName((__int64)"GJ_deleteBtn_001.png", v97);
v103 = CCMenuItemSpriteExtra::create(
(__int64)v102,
0,
v69,
(__int64)LevelInfoLayer::confirmDelete,
0);
(*(void (__fastcall **)(__int64, void *))(*(_QWORD *)v87 + 456LL))(v87, v103);
v99 = &v286;
v100 = (__int64)v103;
(*(void (__fastcall **)(void *, double *))(*(_QWORD *)v103 + 184LL))(v103, &v286);
*((float *)&v286 + 1) = *((float *)&v286 + 1) + -50.0;
}
*(_QWORD *)&v104 = GameManager::sharedState(v100, v99, v101).u64[0];
if ( !(unsigned __int8)GameManager::offlineModeEnabled(v105, v104) )
{
v106 = cocos2d::CCSprite::createWithSpriteFrameName((__int64)"GJ_updateBtn_001.png", v104);
v107 = CCMenuItemSpriteExtra::create((__int64)v106, 0, v69, (__int64)LevelInfoLayer::onUpdate, 0);
(*(void (__fastcall **)(__int64, void *))(*(_QWORD *)v87 + 456LL))(v87, v107);
(*(void (__fastcall **)(void *, double *))(*(_QWORD *)v107 + 184LL))(v107, &v286);
*(_QWORD *)&v104 = HIDWORD(v286);
*(float *)&v104 = *((float *)&v286 + 1) + -50.0;
*((float *)&v286 + 1) = *((float *)&v286 + 1) + -50.0;
}
v108 = cocos2d::CCSprite::createWithSpriteFrameName((__int64)"GJ_infoBtn_001.png", v104);
v109 = CCMenuItemSpriteExtra::create((__int64)v108, 0, v69, (__int64)LevelInfoLayer::onInfo, 0);
(*(void (__fastcall **)(__int64, void *))(*(_QWORD *)v87 + 456LL))(v87, v109);
(*(void (__fastcall **)(void *, double *))(*(_QWORD *)v109 + 184LL))(v109, &v286);
v110 = (_QWORD *)(*(__int64 (__fastcall **)(void *))(*(_QWORD *)v109 + 192LL))(v109);
sub_1002782D0(&v280, v110);
*(_QWORD *)&v112 = GameManager::sharedState(&v280, v110, v111).u64[0];
if ( !(unsigned __int8)GameManager::offlineModeEnabled(v113, v112) )
{
v114 = cocos2d::CCSprite::createWithSpriteFrameName((__int64)"GJ_levelLeaderboardBtn_001.png", v112);
v115 = CCMenuItemSpriteExtra::create(
(__int64)v114,
0,
v69,
(__int64)LevelInfoLayer::onLevelLeaderboard,
0);
(*(void (__fastcall **)(__int64, void *))(*(_QWORD *)v87 + 456LL))(v87, v115);
v112 = 0.0;
sub_100278250((float *)&v283, 0.0, -50.0);
sub_100278350((double *)&v299, &v280, &v283);
(*(void (__fastcall **)(void *, std::string *))(*(_QWORD *)v115 + 184LL))(v115, &v299);
v116 = (_QWORD *)(*(__int64 (__fastcall **)(void *))(*(_QWORD *)v115 + 192LL))(v115);
v87 = v296;
sub_100278300(&v280, v116);
}
v117 = cocos2d::CCSprite::createWithSpriteFrameName((__int64)"GJ_like2Btn_001.png", v112);
v118 = CCMenuItemSpriteExtra::create((__int64)v117, 0, v69, (__int64)LevelInfoLayer::onLike, 0);
*(_QWORD *)(v69 + 520) = v118;
(*(void (__fastcall **)(__int64, void *))(*(_QWORD *)v87 + 456LL))(v87, v118);
v119 = *(_QWORD *)(v69 + 520);
sub_100278250((float *)&v283, 0.0, -50.0);
sub_100278350((double *)&v299, &v280, &v283);
(*(void (__fastcall **)(__int64, std::string *))(*(_QWORD *)v119 + 184LL))(v119, &v299);
v120 = (_QWORD *)(*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(v69 + 520) + 192LL))(*(_QWORD *)(v69 + 520));
sub_1002782D0(&v283, v120);
v122 = *(_DWORD **)(v69 + 504);
if ( v122[237] == v122[238] )
{
v123 = cocos2d::CCSprite::createWithSpriteFrameName((__int64)"GJ_starBtn_001.png", 0.0);
v124 = CCMenuItemSpriteExtra::create((__int64)v123, 0, v69, (__int64)LevelInfoLayer::onRateStars, 0);
*(_QWORD *)(v69 + 528) = v124;
(*(void (__fastcall **)(__int64, void *))(*(_QWORD *)v87 + 456LL))(v87, v124);
v125 = *(_QWORD *)(v69 + 528);
sub_100278250((float *)&v298, 0.0, -50.0);
sub_100278350((double *)&v299, &v283, &v298);
(*(void (__fastcall **)(__int64, std::string *))(*(_QWORD *)v125 + 184LL))(v125, &v299);
v126 = (_QWORD *)(*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(v69 + 528) + 192LL))(*(_QWORD *)(v69 + 528));
v87 = v296;
v120 = v126;
sub_100278300(&v283, v126);
v122 = *(_DWORD **)(v69 + 504);
}
if ( v122[233] - v122[234] == 1 )
{
strcpy((char *)&v299, ",GJ_rateDiffBtn_001.png");
v128 = GameManager::sharedState(&v283, v120, v121).u64[0];
if ( (unsigned int)(*(_DWORD *)(v129 + 1036) - *(_DWORD *)(v129 + 1032)) > 0xFFFFFFFD
|| (v128 = GameManager::sharedState(&v283, v120, v127).u64[0], *(_BYTE *)(v130 + 1044) == 1) )
{
std::string::assign(&v299, "GJ_rateDiffBtnMod_001.png");
}
if ( (*(_BYTE *)&v299.__r_.__value_.__s.0 & 1) != 0 )
v131 = v299.__r_.__value_.__l.__data_;
else
v131 = v299.__r_.__value_.__s.__data_;
v134 = cocos2d::CCSprite::createWithSpriteFrameName((__int64)v131, *(double *)&v128);
v135 = CCMenuItemSpriteExtra::create((__int64)v134, 0, v69, (__int64)LevelInfoLayer::onRateDemon, 0);
*(_QWORD *)(v69 + 536) = v135;
(*(void (__fastcall **)(__int64, void *))(*(_QWORD *)v87 + 456LL))(v87, v135);
v136 = *(_QWORD *)(v69 + 536);
sub_100278250((float *)&v287, 0.0, -50.0);
sub_100278350((double *)&v298, &v283, &v287);
(*(void (__fastcall **)(__int64, unsigned __int64 *))(*(_QWORD *)v136 + 184LL))(v136, &v298);
v120 = (_QWORD *)(*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(v69 + 536) + 192LL))(*(_QWORD *)(v69 + 536));
sub_100278300(&v283, v120);
if ( (*(_BYTE *)&v299.__r_.__value_.__s.0 & 1) != 0 )
operator delete(v299.__r_.__value_.__l.__data_);
}
if ( *(_BYTE *)(v69 + 704) == 1 )
{
v120 = nullptr;
(*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v87 + 344LL))(v87, 0);
}
v137 = v69;
LevelInfoLayer::updateSideButtons(v69);
GameManager::sharedState(v69, v120, v138);
v140 = (unsigned int)(*(_DWORD *)(*(_QWORD *)(v69 + 504) + 576LL)
- *(_DWORD *)(*(_QWORD *)(v69 + 504) + 580LL));
v141 = 1;
v142 = 1;
if ( *(_DWORD *)(v139 + 660) - *(_DWORD *)(v139 + 664) != (_DWORD)v140 )
{
v143 = GJAccountManager::sharedState(v69, (__int64)v120);
if ( *(_DWORD *)(v143 + 352) == *(_DWORD *)(v143 + 356) )
{
v142 = 0;
}
else
{
v144 = GJAccountManager::sharedState(v69, (__int64)v120);
v140 = (unsigned int)(*(_DWORD *)(*(_QWORD *)(v69 + 504) + 588LL)
- *(_DWORD *)(*(_QWORD *)(v69 + 504) + 592LL));
v142 = *(_DWORD *)(v144 + 352) - *(_DWORD *)(v144 + 356) == (_DWORD)v140;
}
}
*(float *)&v300 = *(float *)&v300 + -51.0;
GameManager::sharedState(v69, v120, v140);
v147 = *(_DWORD *)(v146 + 1036) - *(_DWORD *)(v146 + 1032);
v148 = 1;
if ( !v142 )
{
GameManager::sharedState(v137, v120, v145);
v141 = *(_DWORD *)(v149 + 1032) - *(_DWORD *)(v149 + 1036) >= 2;
GameManager::sharedState(v137, v120, v150);
v148 = *(_DWORD *)(v151 + 1032) > *(_DWORD *)(v151 + 1036);
}
HIDWORD(v153) = 0;
*(float *)&v285 = (float)(v141 - ((v147 < 0xFFFFFFFE) + !v142 - 1) + 1);
LODWORD(v295) = fminf(
(float)(*(float *)&v300 + -92.0) / (float)((float)(*(float *)&v285 * 50.0) + 48.0),
1.0);
*(float *)&v291 = 50.0 * *(float *)&v295;
v152 = cocos2d::CCDirector::sharedDirector(v137, v120);
*(float *)&v153 = sub_100479760(v152) + 30.0;
sub_100278250(
(float *)&v299,
*(float *)&v153,
(float)((float)(*(float *)&v285 * *(float *)&v291) * 0.5)
+ (float)((float)(*(float *)&v300 + 92.0) * 0.5));
if ( v147 < 0xFFFFFFFE )
{
v159 = v296;
if ( !v141 )
{
LABEL_103:
if ( v142 )
goto LABEL_104;
goto LABEL_110;
}
}
else
{
v154 = cocos2d::CCSprite::createWithSpriteFrameName((__int64)"GJ_starBtnMod_001.png", v153);
(*(void (__fastcall **)(char *, float))(*(_QWORD *)v154 + 160LL))(v154, *(float *)&v295);
v155 = CCMenuItemSpriteExtra::create(
(__int64)v154,
0,
v297,
(__int64)LevelInfoLayer::onRateStarsMod,
0);
v156 = v148;
v157 = v296;
(*(void (__fastcall **)(__int64, void *))(*(_QWORD *)v296 + 456LL))(v296, v155);
v158 = v157;
v148 = v156;
cocos2d::CCNode::convertToNodeSpace((double *)&v298, v158, (unsigned int *)&v299);
(*(void (__fastcall **)(void *, unsigned __int64 *))(*(_QWORD *)v155 + 184LL))(v155, &v298);
*(_QWORD *)&v153 = HIDWORD(v299.__r_.__value_.__r.__words[0]);
*(float *)&v153 = *((float *)v299.__r_.__value_.__r.__words + 1) - *(float *)&v291;
*((float *)v299.__r_.__value_.__r.__words + 1) = *((float *)v299.__r_.__value_.__r.__words + 1)
- *(float *)&v291;
v159 = v296;
if ( !v141 )
goto LABEL_103;
}
v170 = cocos2d::CCSprite::createWithSpriteFrameName((__int64)"GJ_deleteServerBtn_001.png", v153);
(*(void (__fastcall **)(char *, float))(*(_QWORD *)v170 + 160LL))(v170, *(float *)&v295);
v171 = CCMenuItemSpriteExtra::create(
(__int64)v170,
0,
v297,
(__int64)LevelInfoLayer::confirmOwnerDelete,
0);
(*(void (__fastcall **)(__int64, void *))(*(_QWORD *)v159 + 456LL))(v159, v171);
cocos2d::CCNode::convertToNodeSpace((double *)&v298, v159, (unsigned int *)&v299);
(*(void (__fastcall **)(void *, unsigned __int64 *))(*(_QWORD *)v171 + 184LL))(v171, &v298);
*(_QWORD *)&v153 = HIDWORD(v299.__r_.__value_.__r.__words[0]);
*(float *)&v153 = *((float *)v299.__r_.__value_.__r.__words + 1) - *(float *)&v291;
*((float *)v299.__r_.__value_.__r.__words + 1) = *((float *)v299.__r_.__value_.__r.__words + 1)
- *(float *)&v291;
if ( v142 )
{
LABEL_104:
v160 = cocos2d::CCSprite::createWithSpriteFrameName((__int64)"GJ_updateBtn_001.png", v153);
(*(void (__fastcall **)(char *, float))(*(_QWORD *)v160 + 160LL))(v160, *(float *)&v295);
v161 = CCMenuItemSpriteExtra::create(
(__int64)v160,
0,
v297,
(__int64)LevelInfoLayer::onCreatorSettings,
0);
(*(void (__fastcall **)(__int64, void *))(*(_QWORD *)v159 + 456LL))(v159, v161);
cocos2d::CCNode::convertToNodeSpace((double *)&v298, v159, (unsigned int *)&v299);
(*(void (__fastcall **)(void *, unsigned __int64 *))(*(_QWORD *)v161 + 184LL))(v161, &v298);
*(_QWORD *)&v153 = HIDWORD(v299.__r_.__value_.__r.__words[0]);
*(float *)&v153 = *((float *)v299.__r_.__value_.__r.__words + 1) - *(float *)&v291;
*((float *)v299.__r_.__value_.__r.__words + 1) = *((float *)v299.__r_.__value_.__r.__words + 1)
- *(float *)&v291;
if ( !v148 )
{
LABEL_105:
v162 = "GJ_duplicateLockedBtn_001.png";
if ( v284[245] - v284[246] == 1 )
v162 = "GJ_duplicateBtn_001.png";
v163 = cocos2d::CCSprite::createWithSpriteFrameName((__int64)v162, v153);
*(_QWORD *)&v164 = (unsigned int)v295;
(*(void (__fastcall **)(char *, float))(*(_QWORD *)v163 + 160LL))(v163, *(float *)&v295);
v165 = (__int64 *)v297;
v166 = CCMenuItemSpriteExtra::create(
(__int64)v163,
0,
v297,
(__int64)LevelInfoLayer::tryCloneLevel,
0);
v165[76] = (__int64)v166;
(*(void (__fastcall **)(__int64, void *))(*(_QWORD *)v159 + 456LL))(v159, v166);
v167 = v165[76];
cocos2d::CCNode::convertToNodeSpace((double *)&v298, v159, (unsigned int *)&v299);
(*(void (__fastcall **)(__int64, unsigned __int64 *))(*(_QWORD *)v167 + 184LL))(v167, &v298);
(*(void (__fastcall **)(__int64, bool))(*(_QWORD *)v165[76] + 344LL))(
v165[76],
*(_DWORD *)(v165[63] + 980) != *(_DWORD *)(v165[63] + 984));
v168 = v165[76];
v169 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v168 + 352LL))(v168);
(*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v168 + 1056LL))(v168, v169);
LABEL_112:
v174 = cocos2d::CCSprite::createWithSpriteFrameName((__int64)"GJ_arrow_01_001.png", v164);
v175 = CCMenuItemSpriteExtra::create(
(__int64)v174,
0,
(__int64)v165,
(__int64)LevelInfoLayer::onBack,
0);
CCMenuItemSpriteExtra::setSizeMult((__int64)v175, 1.6);
v275 = v175;
v180 = sub_1008735E0((_DWORD)v175, 0, v176, v177, v178, v179);
(*(void (__fastcall **)(__int64 *, __int64, __int64))(*v165 + 464))(v165, v180, 1);
v181 = cocos2d::CCDirector::sharedDirector(v165, v180);
*(float *)&v296 = sub_100479760(v181) + 24.0;
v182 = cocos2d::CCDirector::sharedDirector(v181, v180);
v183 = sub_100479740(v182);
v184 = *(float *)&v183 + -23.0;
v185 = (__m128)(unsigned int)v296;
sub_100278250((float *)&v298, *(float *)&v296, v184);
(*(void (__fastcall **)(__int64, unsigned __int64 *))(*(_QWORD *)v180 + 184LL))(v180, &v298);
if ( *(_DWORD *)(v165[63] + 920) <= *(_DWORD *)(v165[63] + 924) )
{
v186 = GameStatsManager::sharedState();
if ( GameStatsManager::hasCompletedLevel(v186, v165[63]) )
{
v187 = (_DWORD *)v165[63];
if ( v187[233] - v187[234] == 1 )
{
v188 = GameStatsManager::sharedState();
GameStatsManager::completedDemonLevel(v188, v165[63], v185);
v187 = (_DWORD *)v165[63];
}
if ( v187[237] > v187[238] )
{
v189 = GameStatsManager::sharedState();
GameStatsManager::completedStarLevel(v189, v165[63], v185);
}
}
}
v190 = cocos2d::CCMenu::create();
v191 = cocos2d::CCSprite::createWithSpriteFrameName(
(__int64)"GJ_infoIcon_001.png",
*(double *)v185.i64);
v192 = CCMenuItemSpriteExtra::create(
(__int64)v191,
0,
(__int64)v165,
(__int64)LevelInfoLayer::onLevelInfo,
0);
CCMenuItemSpriteExtra::setSizeMult((__int64)v192, 1.2);
(*(void (__fastcall **)(__int64, void *))(*(_QWORD *)v190 + 456LL))(v190, v192);
v193 = cocos2d::CCDirector::sharedDirector(v190, v192);
*(float *)&v296 = sub_100479760(v193) + 30.0;
v194 = cocos2d::CCDirector::sharedDirector(v193, v192);
v195 = sub_100479750(v194);
sub_100278250((float *)&v298, *(float *)&v296, *(float *)&v195 + 30.0);
(*(void (__fastcall **)(__int64, unsigned __int64 *))(*(_QWORD *)v190 + 184LL))(v190, &v298);
(*(void (__fastcall **)(__int64 *, __int64, __int64))(*v165 + 464))(v165, v190, 2);
v196 = cocos2d::CCMenu::create();
(*(void (__fastcall **)(__int64 *, __int64, __int64))(*v165 + 464))(v165, v196, 21);
sub_100278250((float *)&v298, v292 + -85.0, v293 + -25.0);
v197 = (*(double (__fastcall **)(__int64, unsigned __int64 *))(*(_QWORD *)v196 + 184LL))(
v196,
&v298);
v198 = cocos2d::CCSprite::createWithSpriteFrameName((__int64)"garageRope_001.png", v197);
v199 = (char *)CCMenuItemSpriteExtra::create(
(__int64)v198,
0,
(__int64)v165,
(__int64)LevelInfoLayer::onGarage,
0);
CCMenuItemSpriteExtra::setSizeMult((__int64)v199, 1.2);
CCMenuItemSpriteExtra::useAnimationType(v199, 1);
sub_100278250((float *)&v298, 0.0, -8.0);
sub_100278300(v199 + 468, &v298);
*(_QWORD *)(v199 + 476) = 0x3E4CCCCD3E4CCCCDLL;
(*(void (__fastcall **)(__int64, char *))(*(_QWORD *)v196 + 456LL))(v196, v199);
v200 = "gj_heartOff_001.png";
if ( *(_BYTE *)(v165[63] + 912) )
v200 = "gj_heartOn_001.png";
v201 = cocos2d::CCSprite::createWithSpriteFrameName((__int64)v200, 0.00000001341104822472072);
v202 = CCMenuItemSpriteExtra::create(
(__int64)v201,
0,
(__int64)v165,
(__int64)LevelInfoLayer::onFavorite,
0);
CCMenuItemSpriteExtra::setSizeMult((__int64)v202, 1.1);
(*(void (__fastcall **)(__int64, _QWORD *, __int64))(*(_QWORD *)v190 + 464LL))(v190, v202, 100);
v203 = (unsigned __int64 *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v190 + 192LL))(v190);
sub_100278250((float *)&v273, 38.0, 0.0);
sub_100278350((double *)&v287, v203, &v273);
cocos2d::CCNode::convertToNodeSpace((double *)&v298, v190, (unsigned int *)&v287);
v204 = *v202;
v295 = v202;
v205 = (*(double (__fastcall **)(_QWORD *, unsigned __int64 *))(v204 + 184))(v202, &v298);
v206 = cocos2d::CCSprite::createWithSpriteFrameName((__int64)"edit_leftBtn_001.png", v205);
(*(void (__fastcall **)(char *, float))(*(_QWORD *)v206 + 160LL))(v206, 0.89999998);
(*(void (__fastcall **)(char *, float))(*(_QWORD *)v206 + 360LL))(v206, 90.0);
v207 = (__int64 *)CCMenuItemSpriteExtra::create(
(__int64)v206,
0,
v297,
(__int64)LevelInfoLayer::confirmMoveToTop,
0);
CCMenuItemSpriteExtra::setSizeMult((__int64)v207, 1.1);
(*(void (__fastcall **)(__int64, __int64 *, __int64))(*(_QWORD *)v190 + 464LL))(v190, v207, 100);
sub_100278250((float *)&v287, v292 + -73.0, 55.0);
cocos2d::CCNode::convertToNodeSpace((double *)&v298, v190, (unsigned int *)&v287);
v208 = (*(double (__fastcall **)(__int64 *, unsigned __int64 *))(*v207 + 184))(v207, &v298);
v209 = (unsigned __int8 *)cocos2d::CCSprite::createWithSpriteFrameName(
(__int64)"edit_leftBtn_001.png",
v208);
(*(void (__fastcall **)(unsigned __int8 *, float))(*(_QWORD *)v209 + 160LL))(v209, 0.89999998);
cocos2d::CCSprite::setFlipY(v209, 1u);
(*(void (__fastcall **)(unsigned __int8 *, float))(*(_QWORD *)v209 + 360LL))(v209, -90.0);
v210 = CCMenuItemSpriteExtra::create(
(__int64)v209,
0,
v297,
(__int64)LevelInfoLayer::confirmMoveToBottom,
0);
CCMenuItemSpriteExtra::setSizeMult((__int64)v210, 1.1);
(*(void (__fastcall **)(__int64, _QWORD *, __int64))(*(_QWORD *)v190 + 464LL))(v190, v210, 100);
v211 = *v207;
v291 = v207;
v212 = (unsigned __int64 *)(*(__int64 (__fastcall **)(__int64 *))(v211 + 192))(v207);
sub_100278250((float *)&v287, 0.0, -30.0);
sub_100278350((double *)&v298, v212, &v287);
v213 = *v210;
v285 = v210;
v214 = v210;
v215 = v297;
(*(void (__fastcall **)(_QWORD *, unsigned __int64 *))(v213 + 184))(v214, &v298);
if ( *(_BYTE *)(v215 + 704) == 1 )
(*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v190 + 344LL))(v190, 0);
v216 = *(_QWORD *)(v215 + 504);
v217 = *(_DWORD *)(v216 + 608);
if ( v217 )
SongObject = SongInfoObject::create_1(v217);
else
SongObject = LevelTools::getSongObject(*(unsigned int *)(v216 + 604));
v219 = SongObject;
v220 = CustomSongWidget::create(SongObject, 0, 0, 0, 1, v217 == 0, 0, 0, 0, 0, 1);
*(_QWORD *)(v215 + 736) = v220;
v221 = v220;
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v215 + 456LL))(v215, v220);
v222 = *(_QWORD *)(v215 + 736);
*(float *)&v296 = v292 * 0.5;
v223 = cocos2d::CCDirector::sharedDirector(v215, v221);
v224 = sub_100479750(v223);
sub_100278250((float *)&v298, *(float *)&v296, *(float *)&v224 + 45.0);
(*(void (__fastcall **)(__int64, unsigned __int64 *))(*(_QWORD *)v222 + 184LL))(v222, &v298);
if ( *(_BYTE *)(v219 + 432) == 1 )
CustomSongWidget::onGetSongInfo(*(_QWORD *)(v215 + 736), 0);
v225 = *(_QWORD *)(v215 + 504);
v226 = *(void **)(v215 + 736);
if ( (*(_BYTE *)(v225 + 1240) & 1) != 0 )
{
sub_10001AD30(&v276, *(const void **)(v225 + 1256), *(_QWORD *)(v225 + 1248));
v225 = *(_QWORD *)(v215 + 504);
if ( (*(_BYTE *)(v225 + 1264) & 1) != 0 )
goto LABEL_129;
}
else
{
v277 = *(void **)(v225 + 1256);
v276 = *(_OWORD *)(v225 + 1240);
if ( (*(_BYTE *)(v225 + 1264) & 1) != 0 )
{
LABEL_129:
sub_10001AD30(&v278, *(const void **)(v225 + 1280), *(_QWORD *)(v225 + 1272));
v225 = *(_QWORD *)(v215 + 504);
goto LABEL_132;
}
}
v279 = *(void **)(v225 + 1280);
v278 = *(_OWORD *)(v225 + 1264);
LABEL_132:
v227 = v226;
CustomSongWidget::updateWithMultiAssets(v226, &v276, &v278, *(unsigned int *)(v225 + 1288));
if ( (v278 & 1) != 0 )
{
v227 = v279;
operator delete(v279);
}
v296 = v190;
if ( (v276 & 1) != 0 )
{
v227 = v277;
operator delete(v277);
}
v228 = cocos2d::CCMenu::create();
v229 = cocos2d::CCDirector::sharedDirector(v227, &v276);
*(float *)&v300 = sub_100479760(v229) + 30.0;
v230 = cocos2d::CCDirector::sharedDirector(v229, &v276);
v231 = sub_100479750(v230);
sub_100278250((float *)&v298, *(float *)&v300, *(float *)&v231 + 30.0);
(*(void (__fastcall **)(__int64, unsigned __int64 *))(*(_QWORD *)v228 + 184LL))(v228, &v298);
v232 = (*(double (__fastcall **)(__int64, __int64, __int64))(*(_QWORD *)v215 + 464LL))(
v215,
v228,
2);
v233 = cocos2d::CCSprite::createWithSpriteFrameName((__int64)"GJ_optionsBtn_001.png", v232);
(*(void (__fastcall **)(char *, float))(*(_QWORD *)v233 + 160LL))(v233, 0.60000002);
v234 = CCMenuItemSpriteExtra::create(
(__int64)v233,
0,
v215,
(__int64)LevelInfoLayer::onLevelOptions,
0);
(*(void (__fastcall **)(__int64, void *))(*(_QWORD *)v228 + 456LL))(v228, v234);
sub_100278250((float *)&v287, 30.0, 70.0);
v235 = v215;
cocos2d::CCNode::convertToNodeSpace((double *)&v298, v228, (unsigned int *)&v287);
v236 = (*(double (__fastcall **)(void *, unsigned __int64 *))(*(_QWORD *)v234 + 184LL))(
v234,
&v298);
v237 = cocos2d::CCSprite::createWithSpriteFrameName((__int64)"gj_folderBtn_001.png", v236);
v238 = sub_10088E820("%i", v272);
v239 = cocos2d::CCString::getCString(v238);
v240 = cocos2d::CCLabelBMFont::create_3(v239, "bigFont.fnt");
*(_QWORD *)(v215 + 600) = v240;
(*(void (__fastcall **)(char *, __int64, __int64))(*(_QWORD *)v237 + 464LL))(v237, v240, 1);
v241 = *(_QWORD *)(v215 + 600);
*(float *)&v300 = *(float *)(*(__int64 (__fastcall **)(char *))(*(_QWORD *)v237 + 328LL))(v237)
* 0.5;
v242 = (*(__int64 (__fastcall **)(char *))(*(_QWORD *)v237 + 328LL))(v237);
sub_100278250((float *)&v298, *(float *)&v300, (float)(*(float *)(v242 + 4) * 0.5) + 1.0);
(*(void (__fastcall **)(__int64, unsigned __int64 *))(*(_QWORD *)v241 + 184LL))(v241, &v298);
cocos2d::CCLabelBMFont::limitLabelWidth(*(_QWORD *)(v215 + 600), 24.0, 0.55000001, 0.0);
(*(void (__fastcall **)(char *, float))(*(_QWORD *)v237 + 160LL))(v237, 0.80000001);
v243 = CCMenuItemSpriteExtra::create(
(__int64)v237,
0,
v215,
(__int64)LevelInfoLayer::onSetFolder,
0);
v244 = v296;
(*(void (__fastcall **)(__int64, void *))(*(_QWORD *)v296 + 456LL))(v296, v243);
sub_100278250((float *)&v287, v292 + -73.0, 80.0);
cocos2d::CCNode::convertToNodeSpace((double *)&v298, v244, (unsigned int *)&v287);
v245 = (*(double (__fastcall **)(void *, unsigned __int64 *))(*(_QWORD *)v243 + 184LL))(
v243,
&v298);
v246 = cocos2d::CCSprite::createWithSpriteFrameName((__int64)"GJ_listAddBtn_001.png", v245);
(*(void (__fastcall **)(char *, float))(*(_QWORD *)v246 + 160LL))(v246, 0.89999998);
v247 = CCMenuItemSpriteExtra::create(
(__int64)v246,
0,
v235,
(__int64)LevelInfoLayer::onAddToList,
0);
(*(void (__fastcall **)(__int64, void *))(*(_QWORD *)v244 + 456LL))(v244, v247);
v248 = (*(__int64 (__fastcall **)(void *))(*(_QWORD *)v243 + 192LL))(v243);
v249 = 0.0;
sub_100278250((float *)&v287, 0.0, 35.0);
v250 = (unsigned __int64 *)v248;
v251 = v284;
sub_100278350((double *)&v298, v250, &v287);
v252 = (__int64)v247;
v253 = &v298;
(*(void (__fastcall **)(void *, unsigned __int64 *))(*(_QWORD *)v247 + 184LL))(v247, &v298);
if ( v251[230] > v251[231] || *((_BYTE *)v251 + 649) == 1 )
{
(*(void (__fastcall **)(void *, _QWORD))(*(_QWORD *)v243 + 344LL))(v243, 0);
(*(void (__fastcall **)(void *, _QWORD))(*(_QWORD *)v243 + 1056LL))(v243, 0);
v254 = v291;
(*(void (__fastcall **)(__int64 *, _QWORD))(*v291 + 344))(v291, 0);
(*(void (__fastcall **)(__int64 *, _QWORD))(*v254 + 1056))(v254, 0);
v255 = v285;
(*(void (__fastcall **)(_QWORD *, _QWORD))(*v285 + 344LL))(v285, 0);
(*(void (__fastcall **)(_QWORD *, _QWORD))(*v255 + 1056LL))(v255, 0);
v256 = v295;
(*(void (__fastcall **)(_QWORD *, _QWORD))(*v295 + 344LL))(v295, 0);
(*(void (__fastcall **)(_QWORD *, _QWORD))(*v256 + 1056LL))(v256, 0);
(*(void (__fastcall **)(void *, _QWORD))(*(_QWORD *)v247 + 344LL))(v247, 0);
v252 = (__int64)v247;
v253 = nullptr;
v249 = (*(double (__fastcall **)(void *, _QWORD))(*(_QWORD *)v247 + 1056LL))(v247, 0);
if ( !(unsigned __int8)PlatformToolbox::isControllerConnected(v249) )
goto LABEL_139;
}
else if ( !(unsigned __int8)PlatformToolbox::isControllerConnected(0.0) )
{
LABEL_139:
v258 = v297;
v259 = *(_QWORD *)(v297 + 504);
if ( *(_BYTE *)(v259 + 1432) )
goto LABEL_144;
LABEL_143:
if ( *(_BYTE *)(v259 + 1433) != 1 )
{
LABEL_151:
GameManager::sharedState(v252, v253, v257);
*(_BYTE *)(v266 + 1064) = 0;
return v294;
}
LABEL_144:
if ( *(_DWORD *)(v259 + 1140) != 2
&& *(_DWORD *)(v259 + 932) - *(_DWORD *)(v259 + 936) == 1
&& (unsigned __int8)PlatformToolbox::isNetworkAvailable() )
{
v263 = *(_QWORD *)(v258 + 504);
if ( *(_BYTE *)(v263 + 1432) == 1 )
{
v264 = GameLevelManager::sharedState(v249);
v253 = *(unsigned __int64 **)(v258 + 504);
v252 = v264;
GameLevelManager::getLevelLeaderboard(v264, v253, 4, 0);
v263 = *(_QWORD *)(v258 + 504);
}
if ( *(_BYTE *)(v263 + 1433) == 1 )
{
v265 = GameLevelManager::sharedState(v249);
v253 = *(unsigned __int64 **)(v258 + 504);
v252 = v265;
GameLevelManager::getLevelLeaderboard(v265, v253, 4, 1);
}
}
goto LABEL_151;
}
v260 = v297;
GameToolbox::addBackButton(v297, v275);
v261 = cocos2d::CCSprite::createWithSpriteFrameName((__int64)"controllerBtn_Start_001.png", v249);
(*(void (__fastcall **)(_QWORD, char *))(**(_QWORD **)(v260 + 720) + 456LL))(
*(_QWORD *)(v260 + 720),
v261);
*(float *)&v296 = *(float *)(*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(v260 + 720) + 328LL))(*(_QWORD *)(v260 + 720))
* 0.5;
v262 = (*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(v260 + 720) + 328LL))(*(_QWORD *)(v260 + 720));
*(_QWORD *)&v249 = (unsigned int)v296;
sub_100278250((float *)&v298, *(float *)&v296, (float)(0.5 * *(float *)(v262 + 4)) + -40.0);
v252 = (__int64)v261;
v253 = &v298;
(*(void (__fastcall **)(char *, unsigned __int64 *))(*(_QWORD *)v261 + 184LL))(v261, &v298);
v258 = v297;
v259 = *(_QWORD *)(v297 + 504);
if ( *(_BYTE *)(v259 + 1432) )
goto LABEL_144;
goto LABEL_143;
}
LABEL_111:
v172 = cocos2d::CCSprite::createWithSpriteFrameName((__int64)"GJ_duplicateBtn_001.png", v153);
(*(void (__fastcall **)(char *, float))(*(_QWORD *)v172 + 160LL))(v172, *(float *)&v295);
v165 = (__int64 *)v297;
v173 = CCMenuItemSpriteExtra::create(
(__int64)v172,
0,
v297,
(__int64)LevelInfoLayer::confirmClone,
0);
(*(void (__fastcall **)(__int64, void *))(*(_QWORD *)v159 + 456LL))(v159, v173);
cocos2d::CCNode::convertToNodeSpace((double *)&v298, v159, (unsigned int *)&v299);
v164 = (*(double (__fastcall **)(void *, unsigned __int64 *))(*(_QWORD *)v173 + 184LL))(v173, &v298);
goto LABEL_112;
}
LABEL_110:
if ( !v148 )
goto LABEL_105;
goto LABEL_111;
}
LABEL_66:
operator delete(v299.__r_.__value_.__l.__data_);
goto LABEL_67;
}
LABEL_65:
v90 = 0;
if ( (*(_BYTE *)&v299.__r_.__value_.__s.0 & 1) == 0 )
goto LABEL_67;
goto LABEL_66;
}
}
else
{
v88 = (__int128 *)(v85 + 392);
v299.__r_.__value_.__r.__words[2] = *((_QWORD *)v88 + 2);
v77 = *v88;
*(_OWORD *)&v299.__r_.__value_.__l.0 = *v88;
v89 = (unsigned int)v299.__r_.__value_.__l.0;
if ( (*(_BYTE *)&v299.__r_.__value_.__s.0 & 1) == 0 )
goto LABEL_60;
}
if ( v299.__r_.__value_.__l.__size_ )
goto LABEL_65;
goto LABEL_64;
}
v36 = *(_QWORD *)(v28 + 504);
if ( (*(_BYTE *)(v36 + 344) & 1) != 0 )
{
sub_10001AD30(&v288, *(const void **)(v36 + 360), *(_QWORD *)(v36 + 352));
if ( (v288 & 1) != 0 )
goto LABEL_16;
}
else
{
v37 = (__int128 *)(v36 + 344);
__p = *((void **)v37 + 2);
v288 = *v37;
if ( (v288 & 1) != 0 )
{
LABEL_16:
v35 = (const char *)__p;
goto LABEL_19;
}
}
v35 = (char *)&v288 + 1;
goto LABEL_19;
}
}
BYTE2(v288) = 126;
LOWORD(v288) = 6243;
(*(void (__fastcall **)(float *, __int128 *))(*(_QWORD *)v21 + 960LL))(v21, &v288);
v23 = "GJ_sideArt_001.png";
if ( (v22 & 1) != 0 )
v23 = "gauntletCorner_001.png";
goto LABEL_12;
}
return result;
}