//
// LevelCell::loadCustomLevelCell from 0x10013362c to 0x100136094 (10856 bytes)
//
// 1 xrefs:
// > LevelCell::loadFromLevel @ 0x100127e48
//
// 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:59:27 +0000
//
void __fastcall LevelCell::loadCustomLevelCell(__int64 a1)
{
__int64 v1; // x8
int v2; // w28
int v3; // w21
int v4; // w9
std::string *p_dst; // x0
__int64 v6; // x20
float v7; // s8
std::string *v8; // x0
__int64 v9; // x20
float v10; // s0
float v11; // s1
__n128 v12; // q0
__int64 v13; // x0
__int64 hasCompletedDailyStars; // x0
int v15; // w19
__int64 v16; // x0
__int64 v17; // x0
int v18; // w25
__int64 v19; // x8
_BOOL4 v20; // w20
__int64 v21; // x20
const char *v22; // x5
void *v23; // x24
__int64 v24; // x21
__int64 v25; // x2
float v26; // s9
int v27; // w0
__int64 v28; // x0
__int64 CString; // x0
__int64 v30; // x21
__int64 v31; // x24
__int64 v32; // x0
__int64 v33; // x26
float v34; // s10
float v35; // s8
float v36; // s11
float v37; // s9
float v38; // s12
float v39; // s8
float v40; // s9
__int64 v41; // x21
float32x2_t *v42; // x21
double v43; // d0
__int64 v44; // x8
std::string *v45; // x0
__int64 v46; // x1
__int64 v47; // x0
float v48; // s0
__n128 v49; // q0
float *v50; // x0
__int64 v51; // x21
float v52; // s8
__int64 v53; // x0
__int64 v54; // x21
__int64 v55; // x23
__n128 v56; // q0
__int64 v57; // x19
__int64 v58; // x0
void *v59; // x21
__int64 v60; // x21
float32x2_t *v61; // x23
double v62; // d0
__int64 v63; // x0
void *v64; // x21
__int64 v65; // x21
float32x2_t *v66; // x23
double v67; // d0
__int64 v68; // x0
void *v69; // x21
__int64 v70; // x21
float32x2_t *v71; // x23
double v72; // d0
void *v73; // x0
__int64 v74; // x21
__int64 v75; // x23
__int64 v76; // x24
__n128 v77; // q0
_BOOL4 v78; // w24
__int64 v79; // x0
__int64 v80; // x8
std::string *p_p; // x1
std::string::size_type size; // x2
std::string *v83; // x0
__int64 v84; // x22
__n128 v85; // q0
float32x2_t *v86; // x21
float v87; // s9
float v88; // s8
float v89; // s10
float v90; // s0
__n128 v91; // q0
float v92; // s8
float v93; // s0
__int64 v94; // x21
__int64 v95; // x23
__n128 v96; // q0
float *v97; // x0
__int64 v98; // x0
float v99; // s8
float v100; // s9
float *v101; // x0
__int64 v102; // x0
__int64 SongInfoObject; // x0
__int64 v104; // x24
int v105; // w8
const char *v106; // x0
__int64 v107; // x21
float v108; // s0
float v109; // s10
std::string *v110; // x0
__int64 v111; // x26
__n128 v112; // q0
int AverageDifficulty; // w0
_DWORD *v114; // x8
unsigned int v115; // w24
__int64 v116; // x0
__int64 v117; // x0
__int64 v118; // x27
float32x2_t *v119; // x21
float v120; // s0
double v121; // d0
double v122; // d0
__int64 v123; // x8
char v124; // w9
int v125; // w10
int v126; // w11
bool v127; // cc
bool v128; // w10
__int64 v129; // x0
__int64 v130; // x21
__int64 v131; // x0
__int64 v132; // x0
int v133; // w0
int v134; // w21
char *v135; // x0
__int64 v136; // x24
double v137; // d0
__int64 v138; // x0
__int64 v139; // x0
__int64 v140; // x25
float32x2_t *v141; // x23
double v142; // d0
__int64 v143; // x28
__int64 v144; // x0
__int64 v145; // x0
__int64 BaseDiamonds; // x24
__int64 v147; // x0
int AwardedDiamondsForLevel; // w21
__int64 v149; // x0
const std::string::value_type *v150; // x0
std::string *v151; // x0
__int64 v152; // x25
float v153; // s8
float v154; // s0
double v155; // d0
float32x2_t *v156; // x23
double v157; // d0
_DWORD *v158; // x0
int v159; // w8
float v160; // s8
unsigned int v161; // w20
int v162; // w22
int v163; // w19
float v164; // s10
int v165; // w24
char *CoinKey_1; // x1
_QWORD *v167; // x0
__int64 v168; // x0
std::string *v169; // x1
__int64 hasUserCoin; // x0
int hasPendingUserCoin; // w25
__int64 v172; // x0
std::string *v173; // x1
__int64 v174; // x21
float32x2_t *v175; // x23
float v176; // s15
float v177; // s11
float v178; // s0
double v179; // d0
int v180; // w8
float v181; // s8
float v182; // s9
float v183; // s11
float v184; // s14
float v185; // s10
__int64 v186; // x24
__int64 v187; // x27
float32x2_t *v188; // x21
double v189; // d0
__int64 v190; // x26
float32x2_t *v191; // x21
double v192; // d0
unsigned int *v193; // x9
unsigned int v194; // w10
float v195; // s9
float v196; // s13
std::string *v197; // x0
__int64 v198; // x21
float32x2_t *v199; // x23
double v200; // d0
__n128 v201; // q0
float v202; // s8
float v203; // s14
float v204; // s12
__int64 v205; // x0
std::string *v206; // x0
__int64 v207; // x21
float32x2_t *v208; // x23
double v209; // d0
__int64 v210; // x0
__int64 v211; // x8
int v212; // w9
__int64 v213; // x24
__int64 v214; // x0
const char *v215; // x1
__int64 v216; // x0
float v217; // s8
float v218; // s14
float v219; // s12
__int64 v220; // x0
std::string *v221; // x0
__int64 v222; // x27
float32x2_t *v223; // x21
double v224; // d0
__n128 v225; // q0
float v226; // s8
float v227; // s14
__int64 isDailyRecall; // x0
float v229; // s12
__int64 v230; // x0
__int64 v231; // x21
__int64 v232; // x0
__int64 v233; // x0
__int64 v234; // x1
char v235; // w1
__int64 v236; // x22
float32x2_t *v237; // x21
double v238; // d0
float v239; // s8
float v240; // s11
float v241; // s10
__int64 v242; // x0
__int64 v243; // x0
float v244; // s10
const std::string::value_type *v245; // x0
std::string *v246; // x0
__int64 v247; // x21
float32x2_t *v248; // x22
double v249; // d0
__n128 v250; // q0
float v251; // s8
float v252; // s10
float v253; // s9
float32x2_t *v254; // x21
double v255; // d0
float v256; // s8
float v257; // s11
float v258; // s9
__int64 v259; // x0
__int64 v260; // x20
__n128 v261; // q0
int NormalPercent; // w0
__int64 v263; // x0
__int64 v264; // x0
__int64 v265; // x20
__n128 v266; // q0
unsigned int v267; // w8
double v268; // d0
float v269; // s8
float v270; // s9
float v271; // s10
float v272; // s0
_DWORD *v273; // x8
__int64 v274; // x20
__int64 v275; // x20
int v276; // [xsp+14h] [xbp-16Ch]
__int64 SavedLevel; // [xsp+18h] [xbp-168h]
int hasCompletedLevel; // [xsp+24h] [xbp-15Ch]
__int64 v279; // [xsp+28h] [xbp-158h]
__int64 v280; // [xsp+30h] [xbp-150h]
int v281; // [xsp+3Ch] [xbp-144h]
float v282; // [xsp+3Ch] [xbp-144h]
unsigned int v283; // [xsp+40h] [xbp-140h]
int v284; // [xsp+44h] [xbp-13Ch]
float32x2_t v286; // [xsp+50h] [xbp-130h] BYREF
float32x2_t v287; // [xsp+58h] [xbp-128h] BYREF
__int64 v288; // [xsp+60h] [xbp-120h] BYREF
char v289; // [xsp+68h] [xbp-118h]
float32x2_t v290; // [xsp+70h] [xbp-110h] BYREF
float32x2_t v291; // [xsp+78h] [xbp-108h] BYREF
float32x2_t v292; // [xsp+80h] [xbp-100h] BYREF
float32x2_t v293; // [xsp+88h] [xbp-F8h] BYREF
std::string __p; // [xsp+90h] [xbp-F0h] BYREF
std::string v295; // [xsp+B0h] [xbp-D0h] BYREF
std::string __dst; // [xsp+D0h] [xbp-B0h] BYREF
v1 = *(_QWORD *)(a1 + 560);
v281 = *(_DWORD *)(v1 + 920);
v2 = *(_DWORD *)(v1 + 924);
v3 = *(_DWORD *)(v1 + 900);
if ( *(_BYTE *)(a1 + 600) == 1 )
{
if ( (*(_BYTE *)(a1 + 569) & 1) != 0 )
{
v4 = 1110704128;
}
else
{
GameToolbox::intToString(*(unsigned int *)(v1 + 1236), &__dst);
if ( (__dst.__r_.__value_.__r.__words[2] & 0x8000000000000000LL) == 0LL )
p_dst = &__dst;
else
p_dst = (std::string *)__dst.__r_.__value_.__r.__words[0];
v6 = cocos2d::CCLabelBMFont::create_1(p_dst, "bigFont.fnt");
(*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 536) + 456LL))(*(_QWORD *)(a1 + 536), v6);
cocos2d::CCLabelBMFont::limitLabelWidth(v6, 20.0, 0.45, 0.0);
sub_1000262BC((float *)&v295, 16.0, *(float *)(a1 + 524) * 0.5);
(*(void (__fastcall **)(__int64, std::string *))(*(_QWORD *)v6 + 184LL))(v6, &v295);
if ( SHIBYTE(__dst.__r_.__value_.__r.__words[2]) < 0 )
operator delete(__dst.__r_.__value_.__l.__data_);
v1 = *(_QWORD *)(a1 + 560);
v4 = 1115815936;
}
}
else
{
v4 = 1112014848;
}
v7 = *(float *)&v4;
if ( *(char *)(v1 + 367) < 0 )
sub_1000097D0(&__dst, *(void **)(v1 + 344), *(_QWORD *)(v1 + 352));
else
__dst = *(std::string *)(v1 + 344);
if ( (__dst.__r_.__value_.__r.__words[2] & 0x8000000000000000LL) == 0LL )
v8 = &__dst;
else
v8 = (std::string *)__dst.__r_.__value_.__r.__words[0];
v9 = cocos2d::CCLabelBMFont::create_1(v8, "bigFont.fnt");
v276 = v3;
if ( SHIBYTE(__dst.__r_.__value_.__r.__words[2]) < 0 )
operator delete(__dst.__r_.__value_.__l.__data_);
(*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 536) + 456LL))(*(_QWORD *)(a1 + 536), v9);
sub_1000262BC((float *)&__dst, 0.0, 0.5);
(*(void (__fastcall **)(__int64, std::string *))(*(_QWORD *)v9 + 296LL))(v9, &__dst);
(*(void (__fastcall **)(__int64, float))(*(_QWORD *)v9 + 160LL))(v9, 1.0);
if ( (*(_BYTE *)(a1 + 600) & 1) != 0 )
{
sub_1000262BC((float *)&__dst, v7, (float)(*(float *)(a1 + 524) * 0.5) + 16.0);
(*(void (__fastcall **)(__int64, std::string *))(*(_QWORD *)v9 + 184LL))(v9, &__dst);
v10 = 120.0;
v11 = 0.5;
}
else
{
sub_1000262BC((float *)&__dst, 50.0, (float)(*(float *)(a1 + 524) * 0.5) + 30.0);
(*(void (__fastcall **)(__int64, std::string *))(*(_QWORD *)v9 + 184LL))(v9, &__dst);
v10 = 190.0;
v11 = 0.8;
}
v12 = cocos2d::CCLabelBMFont::limitLabelWidth(v9, v10, v11, 0.0);
memset(&__dst, 0, sizeof(__dst));
v284 = *(_DWORD *)(*(_QWORD *)(a1 + 560) + 1292LL);
v280 = v9;
if ( v284 < 1 )
{
v16 = GameLevelManager::sharedState();
if ( v281 <= v2 )
SavedLevel = GameLevelManager::getSavedLevel(
v16,
*(_DWORD *)(*(_QWORD *)(a1 + 560) + 328LL) - *(_DWORD *)(*(_QWORD *)(a1 + 560) + 332LL));
else
SavedLevel = GameLevelManager::getSavedDailyLevel(
v16,
*(_DWORD *)(*(_QWORD *)(a1 + 560) + 920LL) - *(_DWORD *)(*(_QWORD *)(a1 + 560) + 924LL));
v283 = 0;
v18 = 0;
v15 = 0;
}
else
{
SavedLevel = LevelCell::recallSavedLevel(a1, v12);
v13 = GameStatsManager::sharedState(SavedLevel);
hasCompletedDailyStars = GameStatsManager::hasCompletedDailyStars(v13, (unsigned int)v284);
if ( (hasCompletedDailyStars & 1) != 0 )
{
v15 = 0;
}
else
{
v17 = GameStatsManager::sharedState(hasCompletedDailyStars);
v15 = GameStatsManager::isDailyRecall(v17, (unsigned int)v284) ^ 1;
}
v18 = LevelCell::recallChestReady(a1);
v283 = v284;
}
v19 = *(_QWORD *)(a1 + 560);
if ( *(_DWORD *)(v19 + 1140) == 2 )
goto LABEL_45;
if ( *(char *)(v19 + 415) < 0 )
sub_1000097D0(&v295, *(void **)(v19 + 392), *(_QWORD *)(v19 + 400));
else
v295 = *(std::string *)(v19 + 392);
sub_100009900(&__p, "");
if ( sub_1000045BC(&v295, &__p) )
v20 = SavedLevel
&& (*(_BYTE *)(SavedLevel + 1105) & 1) == 0
&& *(_DWORD *)(SavedLevel + 788) == *(_DWORD *)(*(_QWORD *)(a1 + 560) + 788LL);
else
v20 = 1;
if ( SHIBYTE(__p.__r_.__value_.__r.__words[2]) < 0 )
operator delete(__p.__r_.__value_.__l.__data_);
if ( SHIBYTE(v295.__r_.__value_.__r.__words[2]) < 0 )
{
operator delete(v295.__r_.__value_.__l.__data_);
if ( v20 )
goto LABEL_45;
}
else if ( v20 )
{
LABEL_45:
std::string::assign(&__dst, "View");
v21 = v280;
v22 = "GJ_button_01.png";
goto LABEL_46;
}
v44 = *(_QWORD *)(a1 + 560);
if ( *(int *)(v44 + 792) < 23 )
{
v21 = v280;
if ( !SavedLevel
|| (*(_BYTE *)(SavedLevel + 1105) & 1) != 0
|| *(_DWORD *)(SavedLevel + 788) >= *(_DWORD *)(v44 + 788) )
{
std::string::assign(&__dst, "Get It");
v22 = "GJ_button_02.png";
}
else
{
std::string::assign(&__dst, "Update");
v22 = "GJ_button_03.png";
}
}
else
{
std::string::assign(&__dst, "NA");
v21 = v280;
v22 = "GJ_button_04.png";
}
LABEL_46:
if ( *(_BYTE *)(a1 + 568) == 1 )
{
std::string::assign(&__dst, "Use");
v22 = "GJ_button_01.png";
}
if ( v281 <= v2 )
{
if ( v15 )
{
v27 = GameStatsManager::dailyRecallPrice(v283);
v28 = sub_1003065B0("%i", v27);
CString = cocos2d::CCString::getCString(v28);
v30 = cocos2d::CCLabelBMFont::create_1(CString, "goldFont.fnt");
(*(void (__fastcall **)(__int64, float))(*(_QWORD *)v30 + 160LL))(v30, 0.7);
v31 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_bigKey_001.png");
v32 = (*(__int64 (__fastcall **)(__int64, float))(*(_QWORD *)v31 + 160LL))(v31, 0.72);
v33 = cocos2d::CCSprite::create_1(v32);
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v33 + 984LL))(v33, 1);
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v33 + 936LL))(v33, 1);
v34 = *(float *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v30 + 328LL))(v30);
v35 = (*(float (__fastcall **)(__int64))(*(_QWORD *)v30 + 168LL))(v30);
v36 = *(float *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v31 + 328LL))(v31);
v37 = (*(float (__fastcall **)(__int64))(*(_QWORD *)v31 + 168LL))(v31);
v38 = *(float *)((*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v31 + 328LL))(v31) + 4);
v39 = (float)((float)(v34 * v35) + 3.0) + (float)(v36 * v37);
v40 = v38 * (*(float (__fastcall **)(__int64))(*(_QWORD *)v31 + 168LL))(v31);
sub_1000262C4((float *)&v295, v39, v40);
(*(void (__fastcall **)(__int64, std::string *))(*(_QWORD *)v33 + 320LL))(v33, &v295);
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v33 + 456LL))(v33, v30);
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v33 + 456LL))(v33, v31);
v41 = sub_1002E7468(v30);
sub_1000262BC((float *)&v295, v39 * 0.5, v40 * 0.5);
GameToolbox::alignItemsHorisontally(v41, (float32x2_t *)&v295, 0, 3.0);
v42 = (float32x2_t *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v31 + 192LL))(v31);
sub_1000262BC((float *)&__p, 0.0, -2.0);
*(float32x2_t *)&v43 = sub_100026318(v42, (float32x2_t *)&__p, (float32x2_t *)&v295);
(*(void (__fastcall **)(__int64, std::string *, double))(*(_QWORD *)v31 + 184LL))(v31, &v295, v43);
v23 = ButtonSprite::create(v33, 58, 0, 1, (__int64)"GJ_button_05.png", 0, 20.0, 1.0, 30.0);
hasCompletedLevel = 0;
v26 = 0.0;
v24 = 5;
}
else if ( v18 )
{
v23 = (void *)GJChestSprite::create(3);
(*(void (__fastcall **)(void *, float))(*(_QWORD *)v23 + 160LL))(v23, 0.3);
v26 = 0.0;
v24 = 6;
hasCompletedLevel = 1;
}
else
{
if ( (__dst.__r_.__value_.__r.__words[2] & 0x8000000000000000LL) == 0LL )
v45 = &__dst;
else
v45 = (std::string *)__dst.__r_.__value_.__r.__words[0];
if ( *(_BYTE *)(a1 + 600) )
v46 = 40;
else
v46 = 50;
v23 = ButtonSprite::create_1((__int64)v45, v46, 0, 1, (__int64)"bigFont.fnt", (__int64)v22, 0.6, 30.0);
v47 = GameStatsManager::sharedState(v23);
if ( v284 < 1 )
hasCompletedLevel = GameStatsManager::hasCompletedLevel(v47, *(_QWORD *)(a1 + 560));
else
hasCompletedLevel = GameStatsManager::hasCompletedDailyStars(v47, v283);
v24 = 0;
v26 = 0.0;
}
v25 = a1;
}
else
{
v23 = (void *)cocos2d::CCSprite::createWithSpriteFrameName("GJ_playBtn2_001.png");
(*(void (__fastcall **)(void *, float))(*(_QWORD *)v23 + 160LL))(v23, 0.7);
v24 = 0;
v25 = a1;
hasCompletedLevel = *(_DWORD *)(*(_QWORD *)(a1 + 560) + 864LL) - *(_DWORD *)(*(_QWORD *)(a1 + 560) + 868LL) > 99;
v26 = 18.0;
}
*(_QWORD *)(a1 + 552) = CCMenuItemSpriteExtra::create(v23, 0, v25, LevelCell::onClick, 0);
v48 = 1.0;
if ( v281 <= v2 )
{
v48 = 1.4;
if ( *(_BYTE *)(*(_QWORD *)(a1 + 560) + 772LL) )
v48 = 1.0;
}
v49 = CCMenuItemSpriteExtra::setSizeMult(v48);
(*(void (__fastcall **)(_QWORD, __int64, __n128))(**(_QWORD **)(a1 + 552) + 72LL))(*(_QWORD *)(a1 + 552), v24, v49);
(*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(a1 + 592) + 456LL))(
*(_QWORD *)(a1 + 592),
*(_QWORD *)(a1 + 552));
v50 = (float *)(*(__int64 (__fastcall **)(void *))(*(_QWORD *)v23 + 328LL))(v23);
if ( v18 )
{
v51 = *(_QWORD *)(a1 + 552);
sub_1000262C4((float *)&v295, 66.0, 30.0);
(*(void (__fastcall **)(__int64, std::string *))(*(_QWORD *)v51 + 320LL))(v51, &v295);
v52 = *(float *)(*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 552) + 328LL))(*(_QWORD *)(a1 + 552));
v53 = (*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 552) + 328LL))(*(_QWORD *)(a1 + 552));
sub_1000262BC((float *)&v295, v52 * 0.5, *(float *)(v53 + 4) * 0.5);
(*(void (__fastcall **)(void *, std::string *))(*(_QWORD *)v23 + 184LL))(v23, &v295);
v50 = (float *)(*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 552) + 328LL))(*(_QWORD *)(a1 + 552));
}
sub_1000262BC(
(float *)&v295,
v26 + (float)((float)(*(float *)(a1 + 520) - (float)(*v50 * 0.5)) + -9.0),
*(float *)(a1 + 524) * 0.5);
sub_10002630C((_QWORD *)(a1 + 584), (double *)&v295);
v54 = *(_QWORD *)(a1 + 552);
v55 = *(_QWORD *)(a1 + 592);
cocos2d::CCNode::convertToWorldSpace(&__p, *(_QWORD *)(a1 + 536), a1 + 584);
cocos2d::CCNode::convertToNodeSpace(&v295, v55, &__p, v56);
(*(void (__fastcall **)(__int64, std::string *))(*(_QWORD *)v54 + 184LL))(v54, &v295);
v57 = a1;
if ( *(_DWORD *)(a1 + 544) == 29 )
{
v58 = cocos2d::CCSprite::createWithSpriteFrameName("edit_flipYBtn_001.png");
v59 = ButtonSprite::create(v58, 30, 0, 1, (__int64)"GJ_button_05.png", 0, 30.0, 1.0, 0.0);
(*(void (__fastcall **)(void *, float))(*(_QWORD *)v59 + 160LL))(v59, 0.6);
v60 = CCMenuItemSpriteExtra::create(v59, 0, a1, LevelCell::onClick, 0);
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v60 + 72LL))(v60, 3);
(*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 592) + 456LL))(*(_QWORD *)(a1 + 592), v60);
v61 = (float32x2_t *)(*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 552) + 192LL))(*(_QWORD *)(a1 + 552));
sub_1000262BC((float *)&__p, 16.0, -8.0);
*(float32x2_t *)&v62 = sub_100026318(v61, (float32x2_t *)&__p, (float32x2_t *)&v295);
(*(void (__fastcall **)(__int64, std::string *, double))(*(_QWORD *)v60 + 184LL))(v60, &v295, v62);
v63 = cocos2d::CCSprite::createWithSpriteFrameName("edit_downBtn_001.png");
v64 = ButtonSprite::create(v63, 30, 0, 1, (__int64)"GJ_button_06.png", 0, 30.0, 1.0, 0.0);
(*(void (__fastcall **)(void *, float))(*(_QWORD *)v64 + 160LL))(v64, 0.6);
v65 = CCMenuItemSpriteExtra::create(v64, 0, a1, LevelCell::onClick, 0);
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v65 + 72LL))(v65, 2);
(*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 592) + 456LL))(*(_QWORD *)(a1 + 592), v65);
v66 = (float32x2_t *)(*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 552) + 192LL))(*(_QWORD *)(a1 + 552));
sub_1000262BC((float *)&__p, -12.0, -8.0);
*(float32x2_t *)&v67 = sub_100026318(v66, (float32x2_t *)&__p, (float32x2_t *)&v295);
(*(void (__fastcall **)(__int64, std::string *, double))(*(_QWORD *)v65 + 184LL))(v65, &v295, v67);
v68 = cocos2d::CCSprite::createWithSpriteFrameName("edit_upBtn_001.png");
v69 = ButtonSprite::create(v68, 30, 0, 1, (__int64)"GJ_button_01.png", 0, 30.0, 1.0, 0.0);
(*(void (__fastcall **)(void *, float))(*(_QWORD *)v69 + 160LL))(v69, 0.6);
v70 = CCMenuItemSpriteExtra::create(v69, 0, a1, LevelCell::onClick, 0);
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v70 + 72LL))(v70, 1);
(*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 592) + 456LL))(*(_QWORD *)(a1 + 592), v70);
v71 = (float32x2_t *)(*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 552) + 192LL))(*(_QWORD *)(a1 + 552));
sub_1000262BC((float *)&__p, -40.0, -8.0);
*(float32x2_t *)&v72 = sub_100026318(v71, (float32x2_t *)&__p, (float32x2_t *)&v295);
(*(void (__fastcall **)(__int64, std::string *, double))(*(_QWORD *)v70 + 184LL))(v70, &v295, v72);
v73 = ButtonSprite::create_1(
(__int64)"Delete",
40,
0,
1,
(__int64)"bigFont.fnt",
(__int64)"GJ_button_06.png",
0.6,
30.0);
v74 = CCMenuItemSpriteExtra::create(v73, 0, a1, LevelCell::onClick, 0);
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v74 + 72LL))(v74, 4);
(*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 592) + 456LL))(*(_QWORD *)(a1 + 592), v74);
v75 = *(_QWORD *)(a1 + 592);
v76 = *(_QWORD *)(a1 + 536);
sub_1000262BC((float *)&v293, -v26, 0.0);
sub_100026318((float32x2_t *)(a1 + 584), &v293, (float32x2_t *)&v288);
cocos2d::CCNode::convertToWorldSpace(&__p, v76, &v288);
cocos2d::CCNode::convertToNodeSpace(&v295, v75, &__p, v77);
(*(void (__fastcall **)(__int64, std::string *))(*(_QWORD *)v74 + 184LL))(v74, &v295);
v57 = a1;
sub_100132978(a1, *(_DWORD *)(a1 + 604));
}
if ( *(_DWORD *)(*(_QWORD *)(v57 + 560) + 588LL) <= *(_DWORD *)(*(_QWORD *)(v57 + 560) + 592LL) )
{
v79 = GameLevelManager::sharedState();
v78 = sub_1000A78EC(v79, *(_DWORD *)(*(_QWORD *)(a1 + 560) + 576LL) - *(_DWORD *)(*(_QWORD *)(a1 + 560) + 580LL)) == 0;
}
else
{
v78 = 0;
}
memset(&v295, 0, sizeof(v295));
if ( (*(_BYTE *)(a1 + 600) & 1) == 0 )
std::string::append(&v295, "By ");
v80 = *(_QWORD *)(a1 + 560);
if ( *(char *)(v80 + 439) < 0 )
sub_1000097D0(&__p, *(void **)(v80 + 416), *(_QWORD *)(v80 + 424));
else
__p = *(std::string *)(v80 + 416);
if ( (__p.__r_.__value_.__r.__words[2] & 0x8000000000000000LL) == 0LL )
p_p = &__p;
else
p_p = (std::string *)__p.__r_.__value_.__r.__words[0];
if ( (__p.__r_.__value_.__r.__words[2] & 0x8000000000000000LL) == 0LL )
size = HIBYTE(__p.__r_.__value_.__r.__words[2]);
else
size = __p.__r_.__value_.__l.__size_;
std::string::append(&v295, (const std::string::value_type *)p_p, size);
if ( SHIBYTE(__p.__r_.__value_.__r.__words[2]) < 0 )
operator delete(__p.__r_.__value_.__l.__data_);
if ( (v295.__r_.__value_.__r.__words[2] & 0x8000000000000000LL) == 0LL )
v83 = &v295;
else
v83 = (std::string *)v295.__r_.__value_.__r.__words[0];
v84 = cocos2d::CCLabelBMFont::create_1(v83, "goldFont.fnt");
sub_1000262EC(&v293);
if ( (*(_BYTE *)(a1 + 600) & 1) != 0 )
{
v85 = cocos2d::CCLabelBMFont::limitLabelWidth(v84, 80.0, 0.45, 0.0);
v86 = (float32x2_t *)(*(__int64 (__fastcall **)(__int64, __n128))(*(_QWORD *)v21 + 192LL))(v21, v85);
v87 = *(float *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v21 + 328LL))(v21);
v88 = (*(float (__fastcall **)(__int64))(*(_QWORD *)v21 + 168LL))(v21);
v89 = *(float *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v84 + 328LL))(v84);
v90 = (*(float (__fastcall **)(__int64))(*(_QWORD *)v84 + 168LL))(v84);
sub_1000262BC((float *)&v288, (float)((float)((float)(v89 * 0.5) * v90) + (float)(v87 * v88)) + 5.0, 0.0);
}
else
{
v91 = cocos2d::CCLabelBMFont::limitLabelWidth(v84, 140.0, 0.7, 0.0);
v86 = (float32x2_t *)(*(__int64 (__fastcall **)(__int64, __n128))(*(_QWORD *)v21 + 192LL))(v21, v91);
v92 = *(float *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v84 + 328LL))(v84);
v93 = (*(float (__fastcall **)(__int64))(*(_QWORD *)v84 + 168LL))(v84);
sub_1000262BC((float *)&v288, (float)((float)(v92 * 0.5) * v93) + 2.0, -22.0);
}
sub_100026318(v86, (float32x2_t *)&v288, (float32x2_t *)&__p);
sub_10002630C(&v293, (double *)&__p);
v94 = CCMenuItemSpriteExtra::create(v84, 0, a1, LevelCell::onViewProfile, 0);
(*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 592) + 456LL))(*(_QWORD *)(a1 + 592), v94);
v95 = *(_QWORD *)(a1 + 592);
cocos2d::CCNode::convertToWorldSpace(&v288, *(_QWORD *)(a1 + 536), &v293);
cocos2d::CCNode::convertToNodeSpace(&__p, v95, &v288, v96);
(*(void (__fastcall **)(__int64, std::string *))(*(_QWORD *)v94 + 184LL))(v94, &__p);
if ( v78 )
{
__p.__r_.__value_.__s.__data_[2] = -1;
LOWORD(__p.__r_.__value_.__l.__data_) = -166;
(*(void (__fastcall **)(__int64, std::string *))(*(_QWORD *)v84 + 1072LL))(v84, &__p);
(*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v94 + 1056LL))(v94, 0);
}
sub_1000262EC(&v292);
if ( (*(_BYTE *)(a1 + 600) & 1) != 0 )
{
v97 = (float *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v21 + 192LL))(v21);
sub_1000262BC((float *)&__p, *v97 + 1.0, (float)(*(float *)(a1 + 524) * 0.5) + -1.0);
sub_10002630C(&v292, (double *)&__p);
v99 = 150.0;
v100 = 0.36;
}
else
{
v101 = (float *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v21 + 192LL))(v21);
sub_1000262BC((float *)&__p, *v101 + 2.0, (float)(*(float *)(a1 + 524) * 0.5) + -12.0);
sub_10002630C(&v292, (double *)&__p);
v99 = 195.0;
v100 = 0.45;
}
v102 = MusicDownloadManager::sharedState(v98);
SongInfoObject = MusicDownloadManager::getSongInfoObject(v102, *(unsigned int *)(*(_QWORD *)(a1 + 560) + 608LL));
v104 = SongInfoObject;
if ( SongInfoObject )
{
v105 = *(_DWORD *)(SongInfoObject + 400);
if ( v105 >= 1 )
{
if ( v105 == 2 )
v106 = "chompo_small_001.png";
else
v106 = "ncs_small_001.png";
v107 = cocos2d::CCSprite::createWithSpriteFrameName(v106);
(*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 536) + 456LL))(*(_QWORD *)(a1 + 536), v107);
sub_1000262BC((float *)&v288, 14.0, -1.0);
sub_100026318(&v292, (float32x2_t *)&v288, (float32x2_t *)&__p);
if ( *(_DWORD *)(v104 + 400) == 2 )
{
__p.__r_.__value_.__l.__data_ = (std::string::pointer)vadd_f32(
(float32x2_t)__p.__r_.__value_.__l.__data_,
(float32x2_t)0xBF00000040400000LL);
v108 = v292.f32[0] + 40.0;
v109 = -20.0;
}
else
{
v108 = v292.f32[0] + 34.0;
v109 = -15.0;
}
v292.f32[0] = v108;
(*(void (__fastcall **)(__int64, std::string *))(*(_QWORD *)v107 + 184LL))(v107, &__p);
v99 = v99 + v109;
}
}
sub_1000CF274(*(_QWORD *)(a1 + 560), (__int64)&__p);
if ( (__p.__r_.__value_.__r.__words[2] & 0x8000000000000000LL) == 0LL )
v110 = &__p;
else
v110 = (std::string *)__p.__r_.__value_.__r.__words[0];
v111 = cocos2d::CCLabelBMFont::create_1(v110, "bigFont.fnt");
if ( SHIBYTE(__p.__r_.__value_.__r.__words[2]) < 0 )
operator delete(__p.__r_.__value_.__l.__data_);
(*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 536) + 456LL))(*(_QWORD *)(a1 + 536), v111);
sub_1000262BC((float *)&__p, 0.0, 0.5);
(*(void (__fastcall **)(__int64, std::string *))(*(_QWORD *)v111 + 296LL))(v111, &__p);
(*(void (__fastcall **)(__int64, float32x2_t *))(*(_QWORD *)v111 + 184LL))(v111, &v292);
v112 = cocos2d::CCLabelBMFont::limitLabelWidth(v111, v99, v100, 0.0);
if ( *(int *)(*(_QWORD *)(a1 + 560) + 608LL) <= 0 )
{
__p.__r_.__value_.__s.__data_[2] = -1;
LOWORD(__p.__r_.__value_.__l.__data_) = -11736;
}
else
{
__p.__r_.__value_.__s.__data_[2] = -1;
LOWORD(__p.__r_.__value_.__l.__data_) = -32001;
}
(*(void (__fastcall **)(__int64, std::string *, __n128))(*(_QWORD *)v111 + 1072LL))(v111, &__p, v112);
AverageDifficulty = GJGameLevel::getAverageDifficulty(*(_QWORD *)(a1 + 560));
v114 = *(_DWORD **)(a1 + 560);
if ( v114[233] - v114[234] == 1 )
AverageDifficulty = GJGameLevel::demonIconForDifficulty(v114[236]);
v115 = AverageDifficulty;
v116 = sub_1003065B0("difficulty_%02d_btn_001.png", AverageDifficulty);
v117 = cocos2d::CCString::getCString(v116);
v118 = cocos2d::CCNode::create(v117);
(*(void (__fastcall **)(_QWORD, __int64, __int64))(**(_QWORD **)(a1 + 536) + 464LL))(*(_QWORD *)(a1 + 536), v118, 2);
(*(void (__fastcall **)(__int64, void *))(*(_QWORD *)v118 + 320LL))(v118, &unk_1009F3C18);
sub_1000262BC((float *)&__p, 26.0, *(float *)(a1 + 524) * 0.5);
(*(void (__fastcall **)(__int64, std::string *))(*(_QWORD *)v118 + 184LL))(v118, &__p);
if ( *(_BYTE *)(a1 + 600) == 1 )
{
(*(void (__fastcall **)(__int64, float))(*(_QWORD *)v118 + 160LL))(v118, 0.7);
v119 = (float32x2_t *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v118 + 192LL))(v118);
v120 = 18.0;
if ( *(_BYTE *)(a1 + 569) )
v120 = -2.0;
sub_1000262BC((float *)&v288, v120, 1.0);
*(float32x2_t *)&v121 = sub_100026318(v119, (float32x2_t *)&v288, (float32x2_t *)&__p);
(*(void (__fastcall **)(__int64, std::string *, double))(*(_QWORD *)v118 + 184LL))(v118, &__p, v121);
}
sub_1000262BC((float *)&v291, 0.0, 0.0);
v123 = *(_QWORD *)(a1 + 560);
if ( *(int *)(v123 + 964) <= 0 )
{
v124 = 0;
v128 = *(_DWORD *)(v123 + 948) > *(_DWORD *)(v123 + 952);
}
else
{
v124 = *(_BYTE *)(a1 + 600) ^ 1;
v125 = *(_DWORD *)(v123 + 948);
v126 = *(_DWORD *)(v123 + 952);
v127 = v125 <= v126;
v128 = v125 > v126;
if ( !v127 )
{
LODWORD(v122) = 14.0;
if ( ((*(_BYTE *)(a1 + 600) ^ 1) & 1) != 0 )
goto LABEL_137;
}
}
LODWORD(v122) = 5.0;
if ( v128 || (v124 & 1) != 0 )
{
LABEL_137:
*(float *)&v122 = v291.f32[1] + *(float *)&v122;
v291.i32[1] = LODWORD(v122);
}
if ( v281 > v2 )
{
*(float *)&v122 = v291.f32[1] + 10.0;
v291.f32[1] = v291.f32[1] + 10.0;
}
if ( *(_BYTE *)(v123 + 960) )
v129 = 0xFFFFFFFFLL;
else
v129 = v115;
v130 = GJDifficultySprite::create(v129, 0, v122);
GJDifficultySprite::updateFeatureStateFromLevel(v130, *(_QWORD *)(a1 + 560));
(*(void (__fastcall **)(__int64, __int64, __int64))(*(_QWORD *)v118 + 464LL))(v118, v130, 3);
v131 = (*(__int64 (__fastcall **)(__int64, float32x2_t *))(*(_QWORD *)v130 + 184LL))(v130, &v291);
v279 = v84;
v132 = GameStatsManager::sharedState(v131);
if ( v284 < 1 )
v133 = sub_1003CEC70(v132, *(_QWORD *)(a1 + 560));
else
v133 = GameStatsManager::hasCompletedDailyStars(v132, v283);
v134 = v133;
if ( *(_DWORD *)(*(_QWORD *)(a1 + 560) + 948LL) > *(_DWORD *)(*(_QWORD *)(a1 + 560) + 952LL) )
{
v135 = v276 == 5 ? "moon_small01_001.png" : "star_small01_001.png";
v136 = cocos2d::CCSprite::createWithSpriteFrameName(v135);
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v118 + 456LL))(v118, v136);
sub_1000262BC((float *)&v288, 8.0, -30.0);
*(float32x2_t *)&v137 = sub_100026318(&v291, (float32x2_t *)&v288, (float32x2_t *)&__p);
(*(void (__fastcall **)(__int64, std::string *, double))(*(_QWORD *)v136 + 184LL))(v136, &__p, v137);
v138 = sub_1003065B0("%i", *(_DWORD *)(*(_QWORD *)(a1 + 560) + 948LL) - *(_DWORD *)(*(_QWORD *)(a1 + 560) + 952LL));
v139 = cocos2d::CCString::getCString(v138);
v140 = cocos2d::CCLabelBMFont::create_1(v139, "bigFont.fnt");
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v118 + 456LL))(v118, v140);
sub_1000262BC((float *)&__p, 1.0, 0.5);
(*(void (__fastcall **)(__int64, std::string *))(*(_QWORD *)v140 + 296LL))(v140, &__p);
v141 = (float32x2_t *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v136 + 192LL))(v136);
sub_1000262BC((float *)&v288, -8.0, 0.0);
*(float32x2_t *)&v142 = sub_100026318(v141, (float32x2_t *)&v288, (float32x2_t *)&__p);
(*(void (__fastcall **)(__int64, std::string *, double))(*(_QWORD *)v140 + 184LL))(v140, &__p, v142);
(*(void (__fastcall **)(__int64, float))(*(_QWORD *)v140 + 160LL))(v140, 0.4);
if ( v134 )
{
LOWORD(__p.__r_.__value_.__l.__data_) = -1;
__p.__r_.__value_.__s.__data_[2] = 50;
(*(void (__fastcall **)(__int64, std::string *))(*(_QWORD *)v140 + 1072LL))(v140, &__p);
}
}
if ( v281 <= v2 )
{
v158 = *(_DWORD **)(a1 + 560);
v159 = v158[241];
if ( v159 < 1 )
goto LABEL_202;
if ( v158[237] <= v158[238] )
v160 = -31.5;
else
v160 = -45.5;
goto LABEL_166;
}
v143 = cocos2d::CCSprite::createWithSpriteFrameName("diamond_small01_001.png");
v144 = (*(__int64 (__fastcall **)(__int64, __int64))(*(_QWORD *)v118 + 456LL))(v118, v143);
memset(&__p, 0, sizeof(__p));
v145 = GameStatsManager::sharedState(v144);
BaseDiamonds = GameStatsManager::getBaseDiamonds(
v145,
(unsigned int)(*(_DWORD *)(*(_QWORD *)(a1 + 560) + 948LL) - *(_DWORD *)(*(_QWORD *)(a1 + 560) + 952LL)));
v147 = GameStatsManager::sharedState(BaseDiamonds);
AwardedDiamondsForLevel = GameStatsManager::getAwardedDiamondsForLevel(v147, *(_QWORD *)(a1 + 560));
v149 = sub_1003065B0("%i/%i", AwardedDiamondsForLevel, BaseDiamonds);
v150 = (const std::string::value_type *)cocos2d::CCString::getCString(v149);
std::string::assign(&__p, v150);
if ( (__p.__r_.__value_.__r.__words[2] & 0x8000000000000000LL) == 0LL )
v151 = &__p;
else
v151 = (std::string *)__p.__r_.__value_.__r.__words[0];
v152 = cocos2d::CCLabelBMFont::create_1(v151, "bigFont.fnt");
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v118 + 456LL))(v118, v152);
sub_1000262BC((float *)&v288, 1.0, 0.5);
(*(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v152 + 296LL))(v152, &v288);
(*(void (__fastcall **)(__int64, float))(*(_QWORD *)v152 + 160LL))(v152, 0.35);
v153 = *(float *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v152 + 328LL))(v152);
v154 = (*(float (__fastcall **)(__int64))(*(_QWORD *)v152 + 168LL))(v152);
sub_1000262BC((float *)&v290, (float)((float)(v153 * v154) * 0.5) + 2.0, -44.5);
*(float32x2_t *)&v155 = sub_100026318(&v291, &v290, (float32x2_t *)&v288);
(*(void (__fastcall **)(__int64, __int64 *, double))(*(_QWORD *)v143 + 184LL))(v143, &v288, v155);
v156 = (float32x2_t *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v143 + 192LL))(v143);
sub_1000262BC((float *)&v290, -8.0, 0.0);
*(float32x2_t *)&v157 = sub_100026318(v156, &v290, (float32x2_t *)&v288);
(*(void (__fastcall **)(__int64, __int64 *, double))(*(_QWORD *)v152 + 184LL))(v152, &v288, v157);
if ( AwardedDiamondsForLevel == (_DWORD)BaseDiamonds )
{
BYTE2(v288) = -1;
LOWORD(v288) = -156;
(*(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v152 + 1072LL))(v152, &v288);
}
if ( SHIBYTE(__p.__r_.__value_.__r.__words[2]) < 0 )
operator delete(__p.__r_.__value_.__l.__data_);
v158 = *(_DWORD **)(a1 + 560);
v159 = v158[241];
if ( v159 > 0 )
{
v160 = -60.0;
LABEL_166:
v161 = 0;
v162 = v158[242];
v163 = v158[243];
do
{
if ( v161 == 2 )
{
v164 = 10.0;
}
else if ( v161 == 1 )
{
if ( v159 == 2 )
v164 = 5.0;
else
v164 = 0.0;
}
else
{
v164 = -5.0;
if ( v159 != 2 )
{
if ( (unsigned int)v159 <= 2 )
v164 = 0.0;
else
v164 = -10.0;
}
}
v165 = v161 + 1;
if ( v284 < 1 )
CoinKey_1 = (char *)GJGameLevel::getCoinKey_1((__int64)v158, v161 + 1);
else
CoinKey_1 = (char *)GJGameLevel::getCoinKey((__int64)v158, v161 + 1, v283);
v167 = sub_100009900(&__p, CoinKey_1);
v168 = GameStatsManager::sharedState(v167);
if ( (__p.__r_.__value_.__r.__words[2] & 0x8000000000000000LL) == 0LL )
v169 = &__p;
else
v169 = (std::string *)__p.__r_.__value_.__r.__words[0];
hasUserCoin = GameStatsManager::hasUserCoin(v168, v169);
if ( (hasUserCoin & 1) != 0 )
{
hasPendingUserCoin = 1;
}
else
{
v172 = GameStatsManager::sharedState(hasUserCoin);
if ( (__p.__r_.__value_.__r.__words[2] & 0x8000000000000000LL) == 0LL )
v173 = &__p;
else
v173 = (std::string *)__p.__r_.__value_.__r.__words[0];
hasPendingUserCoin = GameStatsManager::hasPendingUserCoin(v172, v173);
}
v174 = cocos2d::CCSprite::createWithSpriteFrameName("usercoin_small01_001.png");
if ( (*(_BYTE *)(a1 + 600) & 1) != 0 )
{
(*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 536) + 456LL))(*(_QWORD *)(a1 + 536), v174);
(*(void (__fastcall **)(__int64, float))(*(_QWORD *)v174 + 160LL))(v174, 0.7);
v175 = (float32x2_t *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v111 + 192LL))(v111);
v176 = *(float *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v111 + 328LL))(v111);
v177 = (*(float (__fastcall **)(__int64))(*(_QWORD *)v111 + 168LL))(v111);
v178 = (*(float (__fastcall **)(__int64))(*(_QWORD *)v174 + 168LL))(v174);
sub_1000262BC((float *)&v290, (float)((float)(v176 * v177) + 18.0) + (float)(v164 * v178), 0.0);
*(float32x2_t *)&v179 = sub_100026318(v175, &v290, (float32x2_t *)&v288);
}
else
{
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v118 + 456LL))(v118, v174);
sub_1000262BC((float *)&v290, v164, v160);
*(float32x2_t *)&v179 = sub_100026318(&v291, &v290, (float32x2_t *)&v288);
}
(*(void (__fastcall **)(__int64, __int64 *, double))(*(_QWORD *)v174 + 184LL))(v174, &v288, v179);
if ( v162 == v163 )
{
v180 = 4960255;
if ( !hasPendingUserCoin )
v180 = 3174821;
LOWORD(v288) = v180;
BYTE2(v288) = BYTE2(v180);
(*(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v174 + 960LL))(v174, &v288);
}
else if ( (hasPendingUserCoin & 1) == 0 )
{
BYTE2(v288) = -91;
LOWORD(v288) = -23131;
(*(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v174 + 960LL))(v174, &v288);
}
if ( SHIBYTE(__p.__r_.__value_.__r.__words[2]) < 0 )
operator delete(__p.__r_.__value_.__l.__data_);
if ( v161 > 1 )
break;
v158 = *(_DWORD **)(a1 + 560);
v159 = v158[241];
++v161;
}
while ( v165 < v159 );
}
LABEL_202:
v181 = *(float *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v280 + 192LL))(v280);
if ( *(_BYTE *)(a1 + 600) )
v182 = 6.0;
else
v182 = 9.0;
if ( *(_BYTE *)(a1 + 600) )
v183 = 60.0;
else
v183 = 80.0;
if ( *(_BYTE *)(a1 + 600) )
v184 = 8.5;
else
v184 = 14.0;
if ( *(_BYTE *)(a1 + 600) )
v185 = 0.4;
else
v185 = 0.6;
v186 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_timeIcon_001.png");
(*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 536) + 456LL))(*(_QWORD *)(a1 + 536), v186);
sub_1000262BC((float *)&__p, v181 + v182, v184);
(*(void (__fastcall **)(__int64, std::string *))(*(_QWORD *)v186 + 184LL))(v186, &__p);
(*(void (__fastcall **)(__int64, float))(*(_QWORD *)v186 + 160LL))(v186, v185);
v187 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_downloadsIcon_001.png");
(*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 536) + 456LL))(*(_QWORD *)(a1 + 536), v187);
v188 = (float32x2_t *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v186 + 192LL))(v186);
sub_1000262BC((float *)&v288, v183, 0.0);
*(float32x2_t *)&v189 = sub_100026318(v188, (float32x2_t *)&v288, (float32x2_t *)&__p);
(*(void (__fastcall **)(__int64, std::string *, double))(*(_QWORD *)v187 + 184LL))(v187, &__p, v189);
(*(void (__fastcall **)(__int64, float))(*(_QWORD *)v187 + 160LL))(v187, v185);
v190 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_likesIcon_001.png");
(*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 536) + 456LL))(*(_QWORD *)(a1 + 536), v190);
v191 = (float32x2_t *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v187 + 192LL))(v187);
sub_1000262BC((float *)&v288, v183, 0.0);
*(float32x2_t *)&v192 = sub_100026318(v191, (float32x2_t *)&v288, (float32x2_t *)&__p);
(*(void (__fastcall **)(__int64, std::string *, double))(*(_QWORD *)v190 + 184LL))(v190, &__p, v192);
(*(void (__fastcall **)(__int64, float))(*(_QWORD *)v190 + 160LL))(v190, v185);
v282 = v184;
v193 = *(unsigned int **)(a1 + 560);
if ( (int)v193[237] <= (int)v193[238] )
v194 = 25;
else
v194 = 18;
if ( *(_BYTE *)(a1 + 600) )
v195 = 0.3;
else
v195 = 0.4;
if ( *(_BYTE *)(a1 + 600) )
v196 = (float)v194 * 0.8;
else
v196 = (float)v194;
GJGameLevel::lengthKeyToString(v193[225], &__p);
if ( (__p.__r_.__value_.__r.__words[2] & 0x8000000000000000LL) == 0LL )
v197 = &__p;
else
v197 = (std::string *)__p.__r_.__value_.__r.__words[0];
v198 = cocos2d::CCLabelBMFont::create_1(v197, "bigFont.fnt");
if ( SHIBYTE(__p.__r_.__value_.__r.__words[2]) < 0 )
operator delete(__p.__r_.__value_.__l.__data_);
(*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 536) + 456LL))(*(_QWORD *)(a1 + 536), v198);
sub_1000262BC((float *)&__p, 0.0, 0.5);
(*(void (__fastcall **)(__int64, std::string *))(*(_QWORD *)v198 + 296LL))(v198, &__p);
v199 = (float32x2_t *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v186 + 192LL))(v186);
sub_1000262BC((float *)&v288, 10.0, 0.0);
*(float32x2_t *)&v200 = sub_100026318(v199, (float32x2_t *)&v288, (float32x2_t *)&__p);
(*(void (__fastcall **)(__int64, std::string *, double))(*(_QWORD *)v198 + 184LL))(v198, &__p, v200);
(*(void (__fastcall **)(__int64, float))(*(_QWORD *)v198 + 160LL))(v198, v195);
v201 = cocos2d::CCLabelBMFont::limitLabelWidth(v198, 50.0, v195, 0.0);
v202 = *(float *)(*(__int64 (__fastcall **)(__int64, __n128))(*(_QWORD *)v198 + 192LL))(v198, v201);
v203 = *(float *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v198 + 328LL))(v198);
v204 = (*(float (__fastcall **)(__int64))(*(_QWORD *)v198 + 168LL))(v198);
v205 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v187 + 192LL))(v187);
sub_1000262BC((float *)&__p, v196 + (float)(v202 + (float)(v203 * v204)), *(float *)(v205 + 4));
(*(void (__fastcall **)(__int64, std::string *))(*(_QWORD *)v187 + 184LL))(v187, &__p);
GameToolbox::intToShortString(*(unsigned int *)(*(_QWORD *)(a1 + 560) + 644LL), &__p);
if ( (__p.__r_.__value_.__r.__words[2] & 0x8000000000000000LL) == 0LL )
v206 = &__p;
else
v206 = (std::string *)__p.__r_.__value_.__r.__words[0];
v207 = cocos2d::CCLabelBMFont::create_1(v206, "bigFont.fnt");
if ( SHIBYTE(__p.__r_.__value_.__r.__words[2]) < 0 )
operator delete(__p.__r_.__value_.__l.__data_);
(*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 536) + 456LL))(*(_QWORD *)(a1 + 536), v207);
sub_1000262BC((float *)&__p, 0.0, 0.5);
(*(void (__fastcall **)(__int64, std::string *))(*(_QWORD *)v207 + 296LL))(v207, &__p);
v208 = (float32x2_t *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v187 + 192LL))(v187);
sub_1000262BC((float *)&v288, 9.0, 0.0);
*(float32x2_t *)&v209 = sub_100026318(v208, (float32x2_t *)&v288, (float32x2_t *)&__p);
(*(void (__fastcall **)(__int64, std::string *, double))(*(_QWORD *)v207 + 184LL))(v207, &__p, v209);
(*(void (__fastcall **)(__int64, float))(*(_QWORD *)v207 + 160LL))(v207, v195);
cocos2d::CCLabelBMFont::limitLabelWidth(v207, 45.0, v195, 0.0);
v211 = *(_QWORD *)(a1 + 560);
v212 = *(_DWORD *)(v211 + 892);
LODWORD(v211) = *(_DWORD *)(v211 + 896);
v213 = (unsigned int)(v212 - v211);
if ( v212 - (int)v211 < 0 )
{
v214 = cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(v210);
v215 = "GJ_dislikesIcon_001.png";
}
else
{
v214 = cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(v210);
v215 = "GJ_likesIcon_001.png";
}
v216 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v214, v215);
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v190 + 1160LL))(v190, v216);
v217 = *(float *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v207 + 192LL))(v207);
v218 = *(float *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v207 + 328LL))(v207);
v219 = (*(float (__fastcall **)(__int64))(*(_QWORD *)v207 + 168LL))(v207);
v220 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v190 + 192LL))(v190);
sub_1000262BC((float *)&__p, v196 + (float)(v217 + (float)(v218 * v219)), *(float *)(v220 + 4));
(*(void (__fastcall **)(__int64, std::string *))(*(_QWORD *)v190 + 184LL))(v190, &__p);
GameToolbox::intToShortString(v213, &__p);
if ( (__p.__r_.__value_.__r.__words[2] & 0x8000000000000000LL) == 0LL )
v221 = &__p;
else
v221 = (std::string *)__p.__r_.__value_.__r.__words[0];
v222 = cocos2d::CCLabelBMFont::create_1(v221, "bigFont.fnt");
if ( SHIBYTE(__p.__r_.__value_.__r.__words[2]) < 0 )
operator delete(__p.__r_.__value_.__l.__data_);
(*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 536) + 456LL))(*(_QWORD *)(a1 + 536), v222);
sub_1000262BC((float *)&__p, 0.0, 0.5);
(*(void (__fastcall **)(__int64, std::string *))(*(_QWORD *)v222 + 296LL))(v222, &__p);
v223 = (float32x2_t *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v190 + 192LL))(v190);
sub_1000262BC((float *)&v288, 10.0, 0.0);
*(float32x2_t *)&v224 = sub_100026318(v223, (float32x2_t *)&v288, (float32x2_t *)&__p);
(*(void (__fastcall **)(__int64, std::string *, double))(*(_QWORD *)v222 + 184LL))(v222, &__p, v224);
(*(void (__fastcall **)(__int64, float))(*(_QWORD *)v222 + 160LL))(v222, v195);
v225 = cocos2d::CCLabelBMFont::limitLabelWidth(v222, 45.0, v195, 0.0);
v226 = *(float *)(*(__int64 (__fastcall **)(__int64, __n128))(*(_QWORD *)v222 + 192LL))(v222, v225);
v227 = *(float *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v222 + 328LL))(v222);
v229 = (*(float (__fastcall **)(__int64))(*(_QWORD *)v222 + 168LL))(v222);
if ( v284 < 1 )
{
v231 = 0;
}
else
{
v230 = GameStatsManager::sharedState(isDailyRecall);
isDailyRecall = GameStatsManager::isDailyRecall(v230, v283);
if ( (isDailyRecall & 1) != 0 )
{
v231 = 1;
}
else
{
v232 = GameStatsManager::sharedState(isDailyRecall);
isDailyRecall = GameStatsManager::hasCompletedDailyStars(v232, v283);
v231 = (unsigned int)isDailyRecall ^ 1;
}
}
v233 = GameStatsManager::sharedState(isDailyRecall);
v234 = *(_QWORD *)(a1 + 560);
if ( v284 <= 0 )
v283 = *(_DWORD *)(v234 + 920) - *(_DWORD *)(v234 + 924);
v288 = sub_1003D079C(v233, v234, v283, v231);
v289 = v235;
if ( *(_DWORD *)(*(_QWORD *)(a1 + 560) + 948LL) - *(_DWORD *)(*(_QWORD *)(a1 + 560) + 952LL) < 2 )
{
v244 = v226 + (float)(v227 * v229);
}
else
{
v236 = cocos2d::CCSprite::createWithSpriteFrameName("currencyOrbIcon_001.png");
(*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 536) + 456LL))(*(_QWORD *)(a1 + 536), v236);
v237 = (float32x2_t *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v190 + 192LL))(v190);
sub_1000262BC((float *)&v290, v183, 0.0);
*(float32x2_t *)&v238 = sub_100026318(v237, &v290, (float32x2_t *)&__p);
(*(void (__fastcall **)(__int64, std::string *, double))(*(_QWORD *)v236 + 184LL))(v236, &__p, v238);
(*(void (__fastcall **)(__int64, float))(*(_QWORD *)v236 + 160LL))(v236, v185);
v239 = *(float *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v222 + 192LL))(v222);
v240 = *(float *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v222 + 328LL))(v222);
v241 = (*(float (__fastcall **)(__int64))(*(_QWORD *)v222 + 168LL))(v222);
v242 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v236 + 192LL))(v236);
sub_1000262BC((float *)&__p, v196 + (float)(v239 + (float)(v240 * v241)), *(float *)(v242 + 4));
(*(void (__fastcall **)(__int64, std::string *))(*(_QWORD *)v236 + 184LL))(v236, &__p);
memset(&__p, 0, sizeof(__p));
if ( SHIDWORD(v288) <= (int)v288 )
v243 = sub_1003065B0("%i", HIDWORD(v288));
else
v243 = sub_1003065B0("%i/%i", v288, HIDWORD(v288));
v245 = (const std::string::value_type *)cocos2d::CCString::getCString(v243);
std::string::assign(&__p, v245);
if ( (__p.__r_.__value_.__r.__words[2] & 0x8000000000000000LL) == 0LL )
v246 = &__p;
else
v246 = (std::string *)__p.__r_.__value_.__r.__words[0];
v247 = cocos2d::CCLabelBMFont::create_1(v246, "bigFont.fnt");
(*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 536) + 456LL))(*(_QWORD *)(a1 + 536), v247);
sub_1000262BC((float *)&v290, 0.0, 0.5);
(*(void (__fastcall **)(__int64, float32x2_t *))(*(_QWORD *)v247 + 296LL))(v247, &v290);
v248 = (float32x2_t *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v236 + 192LL))(v236);
sub_1000262BC((float *)&v287, 10.0, 0.0);
*(float32x2_t *)&v249 = sub_100026318(v248, &v287, &v290);
(*(void (__fastcall **)(__int64, float32x2_t *, double))(*(_QWORD *)v247 + 184LL))(v247, &v290, v249);
(*(void (__fastcall **)(__int64, float))(*(_QWORD *)v247 + 160LL))(v247, v195);
if ( (unsigned int)sub_1003D0800(&v288) )
{
v290.i8[2] = -106;
v290.i16[0] = -26986;
(*(void (__fastcall **)(__int64, float32x2_t *))(*(_QWORD *)v247 + 1072LL))(v247, &v290);
}
else if ( HIDWORD(v288) == (_DWORD)v288 )
{
v290.i8[2] = -1;
v290.i16[0] = -156;
(*(void (__fastcall **)(__int64, float32x2_t *))(*(_QWORD *)v247 + 1072LL))(v247, &v290);
}
v250 = cocos2d::CCLabelBMFont::limitLabelWidth(v247, 45.0, v195, 0.0);
v251 = *(float *)(*(__int64 (__fastcall **)(__int64, __n128))(*(_QWORD *)v247 + 192LL))(v247, v250);
v252 = *(float *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v247 + 328LL))(v247);
v253 = (*(float (__fastcall **)(__int64))(*(_QWORD *)v247 + 168LL))(v247);
if ( SHIBYTE(__p.__r_.__value_.__r.__words[2]) < 0 )
operator delete(__p.__r_.__value_.__l.__data_);
v244 = v251 + (float)(v252 * v253);
}
v254 = (float32x2_t *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v190 + 192LL))(v190);
sub_1000262BC((float *)&v290, 0.0, 1.0);
*(float32x2_t *)&v255 = sub_100026318(v254, &v290, (float32x2_t *)&__p);
(*(void (__fastcall **)(__int64, std::string *, double))(*(_QWORD *)v190 + 184LL))(v190, &__p, v255);
v256 = *(float *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v280 + 192LL))(v280);
v257 = *(float *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v280 + 328LL))(v280);
v258 = (*(float (__fastcall **)(__int64))(*(_QWORD *)v280 + 168LL))(v280);
v259 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v280 + 192LL))(v280);
sub_1000262BC((float *)&__p, (float)(v256 + (float)(v257 * v258)) + 10.0, *(float *)(v259 + 4) + -1.0);
if ( *(_BYTE *)(a1 + 600) == 1 )
{
if ( *(_BYTE *)(a1 + 569) == 1 )
sub_1000262BC((float *)&v290, (float)(v196 + v244) + -6.0, v282 + 1.0);
else
sub_1000262BC((float *)&v290, 16.0, 10.0);
sub_10002630C(&__p, (double *)&v290);
}
if ( hasCompletedLevel )
{
v260 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_completesIcon_001.png");
if ( *(_BYTE *)(a1 + 600) != 1 || *(_BYTE *)(a1 + 569) == 1 )
{
sub_1000262BC((float *)&v290, 0.0, 0.5);
(*(void (__fastcall **)(__int64, float32x2_t *))(*(_QWORD *)v260 + 296LL))(v260, &v290);
}
(*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 536) + 456LL))(*(_QWORD *)(a1 + 536), v260);
(*(void (__fastcall **)(__int64, std::string *))(*(_QWORD *)v260 + 184LL))(v260, &__p);
v261.n128_u32[0] = 0.5;
if ( !*(_BYTE *)(a1 + 600) )
v261.n128_f32[0] = 0.8;
(*(void (__fastcall **)(__int64, __n128))(*(_QWORD *)v260 + 160LL))(v260, v261);
}
else if ( SavedLevel )
{
NormalPercent = GJGameLevel::getNormalPercent(SavedLevel);
if ( NormalPercent )
{
v263 = sub_1003065B0("%i%%", NormalPercent);
v264 = cocos2d::CCString::getCString(v263);
v265 = cocos2d::CCLabelBMFont::create_1(v264, "goldFont.fnt");
(*(void (__fastcall **)(_QWORD, __int64, __int64))(**(_QWORD **)(a1 + 536) + 464LL))(
*(_QWORD *)(a1 + 536),
v265,
10);
v266.n128_u32[0] = 1058642330;
if ( *(_BYTE *)(a1 + 600) )
v266.n128_f32[0] = 0.4;
(*(void (__fastcall **)(__int64, __n128))(*(_QWORD *)v265 + 160LL))(v265, v266);
v267 = *(unsigned __int8 *)(a1 + 600);
if ( v267 != 1 || *(_BYTE *)(a1 + 569) == 1 )
{
sub_1000262BC((float *)&v290, 0.0, 0.5);
(*(void (__fastcall **)(__int64, float32x2_t *))(*(_QWORD *)v265 + 296LL))(v265, &v290);
v267 = *(unsigned __int8 *)(a1 + 600);
}
sub_1000262BC((float *)&v287, (float)v267, 0.0);
*(float32x2_t *)&v268 = sub_100026318((float32x2_t *)&__p, &v287, &v290);
(*(void (__fastcall **)(__int64, float32x2_t *, double))(*(_QWORD *)v265 + 184LL))(v265, &v290, v268);
}
}
if ( *(_BYTE *)(a1 + 600) )
v269 = 0.8;
else
v269 = 1.0;
v270 = v293.f32[0];
v271 = *(float *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v279 + 328LL))(v279);
v272 = (*(float (__fastcall **)(__int64))(*(_QWORD *)v279 + 168LL))(v279);
sub_1000262BC(
(float *)&v290,
(float)(v270 + (float)((float)(v271 * 0.5) * v272)) + (float)(v269 * 6.0),
v293.f32[1] + -1.0);
v273 = *(_DWORD **)(a1 + 560);
if ( v273[247] != v273[248] )
{
v274 = cocos2d::CCSprite::createWithSpriteFrameName("collaborationIcon_001.png");
sub_1000262BC((float *)&v287, 0.0, 0.5);
(*(void (__fastcall **)(__int64, float32x2_t *))(*(_QWORD *)v274 + 296LL))(v274, &v287);
(*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 536) + 456LL))(*(_QWORD *)(a1 + 536), v274);
(*(void (__fastcall **)(__int64, float32x2_t *))(*(_QWORD *)v274 + 184LL))(v274, &v290);
(*(void (__fastcall **)(__int64, float))(*(_QWORD *)v274 + 160LL))(v274, v269);
sub_1000262BC((float *)&v286, 15.0, 0.0);
sub_100026318(&v290, &v286, &v287);
sub_10002630C(&v290, (double *)&v287);
v273 = *(_DWORD **)(a1 + 560);
}
if ( v273[155] - v273[156] >= 40001 )
{
v275 = cocos2d::CCSprite::createWithSpriteFrameName("highObjectIcon_001.png");
sub_1000262BC((float *)&v287, 0.0, 0.5);
(*(void (__fastcall **)(__int64, float32x2_t *))(*(_QWORD *)v275 + 296LL))(v275, &v287);
(*(void (__fastcall **)(_QWORD, __int64, __int64))(**(_QWORD **)(a1 + 536) + 464LL))(
*(_QWORD *)(a1 + 536),
v275,
10);
(*(void (__fastcall **)(__int64, float32x2_t *))(*(_QWORD *)v275 + 184LL))(v275, &v290);
(*(void (__fastcall **)(__int64, float))(*(_QWORD *)v275 + 160LL))(v275, v269);
sub_1000262BC((float *)&v286, v269 * 18.0, 0.0);
sub_100026318(&v290, &v286, &v287);
sub_10002630C(&v290, (double *)&v287);
}
if ( SHIBYTE(v295.__r_.__value_.__r.__words[2]) < 0 )
operator delete(v295.__r_.__value_.__l.__data_);
if ( SHIBYTE(__dst.__r_.__value_.__r.__words[2]) < 0 )
operator delete(__dst.__r_.__value_.__l.__data_);
}