// // LevelCell::loadCustomLevelCell from 0x745688 to 0x748278 (11248 bytes) // // 2 xrefs: // > LevelCell::loadFromLevel @ 0x748378 // > @ 0x45718 // // 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 12:52:49 +0000 // __int64 __fastcall LevelCell::loadCustomLevelCell(LevelCell *this) { __int64 v2; // x0 __int64 v3; // x2 float v4; // s9 __int64 v5; // x1 cocos2d::CCLabelBMFont *v6; // x0 cocos2d::CCLabelBMFont *v7; // x26 void (__fastcall *v8)(cocos2d::CCLabelBMFont *, char **); // x20 float v9; // s0 void (__fastcall *v10)(cocos2d::CCLabelBMFont *, char **); // x20 bool v11; // w0 GameStatsManager *v12; // x0 GameStatsManager *hasCompletedDailyStars; // x0 GameStatsManager *v14; // x0 int v15; // w24 GameLevelManager *v16; // x0 __int64 SavedDailyLevel; // x0 int v18; // w27 __int64 v19; // x0 char v20; // w1 __int64 v21; // x2 __int64 v22; // x0 __int64 v23; // x1 _BOOL4 v24; // w20 __int64 v25; // x0 const char *v26; // x1 const char *v27; // x6 const char *v28; // x5 ButtonSprite *v29; // x0 const char *v30; // x1 __int64 v31; // x20 GameStatsManager *v32; // x0 unsigned __int8 hasCompletedLevel; // w0 unsigned int v34; // w21 float v35; // s8 GameLevelManager *v36; // x0 const char *v37; // x2 cocos2d::CCLabelBMFont *v38; // x0 cocos2d::CCLabelBMFont *v39; // x20 void (__fastcall *v40)(cocos2d::CCLabelBMFont *, char **); // x21 __int64 v41; // x0 float v42; // s0 float v43; // s0 __int64 v44; // x21 void (__fastcall *v45)(__int64, char **); // x24 void (__fastcall *v46)(__int64, char **); // x21 float v47; // s9 __int64 v48; // x0 __int64 v49; // x20 cocos2d::CCNode *v50; // x27 void (__fastcall *v51)(__int64, char **); // x21 const char *v52; // x1 __int64 v53; // x0 int v54; // w20 GameLevelManager *v55; // x0 int v56; // w20 int v57; // w0 __int64 v58; // x0 __int64 v59; // x2 __int64 v60; // x0 size_t v61; // x1 char *v62; // x1 size_t v63; // x2 const char *v64; // x2 cocos2d::CCLabelBMFont *v65; // x0 __int64 v66; // x21 float v67; // s8 float v68; // s0 __int64 v69; // x21 cocos2d::CCNode *v70; // x27 void (__fastcall *v71)(__int64, char **); // x24 void (__fastcall *v72)(cocos2d::CCLabelBMFont *, char **); // x3 __int64 v73; // x1 float *v74; // x0 MusicDownloadManager *v75; // x0 float v76; // s9 float v77; // s8 MusicDownloadManager *v78; // x0 __int64 SongInfoObject; // x0 const char *v80; // x1 __int64 v81; // x21 int v82; // w0 char *v83; // x0 __int64 v84; // x24 float v85; // s0 const char *v86; // x2 cocos2d::CCLabelBMFont *v87; // x0 cocos2d::CCLabelBMFont *v88; // x24 void (__fastcall *v89)(cocos2d::CCLabelBMFont *, char **); // x21 void (__fastcall *v90)(cocos2d::CCLabelBMFont *, char **); // x3 unsigned int AverageDifficulty; // w0 _DWORD *v92; // x1 unsigned int v93; // w20 cocos2d::CCString *v94; // x0 cocos2d::CCNode *v95; // x0 void (__fastcall *v96)(GameStatsManager *, char **); // x21 void (__fastcall *v97)(GameStatsManager *, char **); // x28 __int64 v98; // x21 float v99; // s0 __int64 v100; // x0 __int64 v101; // x0 GJDifficultySprite *v102; // x20 GameStatsManager *v103; // x0 unsigned __int8 hasCompletedStarLevel; // w0 __int64 v105; // x1 int v106; // w27 int v107; // w0 const char *v108; // x1 cocos2d::CCSprite *v109; // x0 __int64 v110; // x21 void (__fastcall *v111)(__int64, char **); // x20 cocos2d::CCString *v112; // x0 cocos2d::CCLabelBMFont *v113; // x0 const char *v114; // x2 __int64 v115; // x20 void (__fastcall *v116)(__int64, char **); // x28 void (__fastcall *v117)(__int64, char **); // x28 __int64 v118; // x21 GJGameLevel *v119; // x0 int v120; // w2 float v121; // s13 int v122; // w21 float v123; // s8 const char *CoinKey; // x0 size_t v125; // x0 GameStatsManager *v126; // x0 GameStatsManager *v127; // x0 cocos2d::CCLabelBMFont *v128; // x1 GameStatsManager *hasUserCoin; // x0 const char *v130; // x1 GameStatsManager *v131; // x0 cocos2d::CCLabelBMFont *v132; // x1 int hasPendingUserCoin; // w27 __int64 v134; // x20 void (__fastcall *v135)(__int64, char **); // x28 int v136; // w1 const char *v137; // x1 float v138; // s0 float v139; // s12 float v140; // s8 float v141; // s9 float v142; // s13 __int64 v143; // x24 void (__fastcall *v144)(__int64, char **); // x20 const char *v145; // x1 __int64 v146; // x21 void (__fastcall *v147)(__int64, char **); // x20 __int64 v148; // x27 const char *v149; // x1 cocos2d::CCSpriteFrameCache **v150; // x28 void (__fastcall *v151)(cocos2d::CCSpriteFrameCache **, char **); // x27 __int64 v152; // x20 unsigned int *v153; // x0 int v154; // w1 float v155; // s10 float v156; // s8 const char *v157; // x2 cocos2d::CCLabelBMFont *v158; // x0 cocos2d::CCLabelBMFont *v159; // x20 void (__fastcall *v160)(cocos2d::CCLabelBMFont *, char **); // x27 void (__fastcall *v161)(cocos2d::CCLabelBMFont *, char **); // x27 __int64 v162; // x24 void (__fastcall *v163)(__int64, char **); // x24 float v164; // s14 float v165; // s11 float v166; // s11 __int64 v167; // x0 const char *v168; // x2 cocos2d::CCLabelBMFont *v169; // x0 cocos2d::CCLabelBMFont *v170; // x20 void (__fastcall *v171)(cocos2d::CCLabelBMFont *, char **); // x24 void (__fastcall *v172)(cocos2d::CCLabelBMFont *, char **); // x24 __int64 v173; // x21 int v174; // w21 void (__fastcall *v175)(cocos2d::CCSpriteFrameCache **, __int64); // x24 cocos2d::CCSpriteFrameCache *v176; // x0 __int64 v177; // x0 void (__fastcall *v178)(cocos2d::CCSpriteFrameCache **, char **); // x24 float v179; // s15 float v180; // s14 float v181; // s14 __int64 v182; // x0 const char *v183; // x2 cocos2d::CCLabelBMFont *v184; // x0 cocos2d::CCLabelBMFont *v185; // x21 void (__fastcall *v186)(cocos2d::CCLabelBMFont *, char **); // x20 void (__fastcall *v187)(cocos2d::CCLabelBMFont *, char **); // x20 __int64 v188; // x24 float v189; // s14 float v190; // w27 float v191; // s0 unsigned __int64 isDailyRecall; // x0 float v193; // s15 GameStatsManager *v194; // x0 char v195; // w20 GameStatsManager *v196; // x0 GJGameLevel *v197; // x1 int v198; // w2 char *v199; // x0 __int64 v200; // x2 int v201; // w1 const char *v202; // x1 __int64 v203; // x24 __int64 v204; // x27 void (__fastcall *v205)(__int64, __int64 *); // x27 float v206; // s12 float v207; // s9 float v208; // s9 __int64 v209; // x0 cocos2d::CCString *v210; // x0 char *v211; // x0 const char *v212; // x2 cocos2d::CCLabelBMFont *v213; // x0 cocos2d::CCLabelBMFont *v214; // x19 void (__fastcall *v215)(cocos2d::CCLabelBMFont *, __int64 *); // x21 void (__fastcall *v216)(cocos2d::CCLabelBMFont *, __int64 *); // x21 __int64 v217; // x24 float v218; // s8 float v219; // s14 float v220; // s14 void (__fastcall *v221)(cocos2d::CCSpriteFrameCache **, __int64 *); // x19 __int64 v222; // x21 float v223; // s9 float v224; // s8 float v225; // s8 __int64 v226; // x0 const char *v227; // x1 long double v228; // q0 unsigned int NormalPercent; // w0 float v230; // s10 float v231; // s9 float v232; // s11 float v233; // s8 float v234; // s0 _DWORD *v235; // x0 const char *v236; // x1 __int64 v237; // x19 void (__fastcall *v238)(__int64, __int64 *); // x23 __int64 v240; // x28 float v241; // s9 float v242; // s9 float v243; // s0 void (__fastcall *v244)(__int64, char **); // x2 void (__fastcall *v245)(__int64, char **); // x3 GameStatsManager *v246; // x0 float *v247; // x0 float v248; // s9 float v249; // s9 float v250; // s8 float v251; // s0 __int64 v252; // x19 void (__fastcall *v253)(__int64, __int64 *); // x23 __int64 v254; // x21 long double v255; // q0 __int64 v256; // x21 GameStatsManager *v257; // x0 GameStatsManager *v258; // x0 GameStatsManager *BaseDiamonds; // x0 unsigned int v260; // w20 GameStatsManager *v261; // x0 unsigned int AwardedDiamondsForLevel; // w27 cocos2d::CCString *v263; // x0 char *v264; // x0 const char *v265; // x2 cocos2d::CCLabelBMFont *v266; // x0 __int64 v267; // x20 void (__fastcall *v268)(__int64, char **); // x28 float v269; // s8 float v270; // s0 void (__fastcall *v271)(__int64, char **); // x28 void (__fastcall *v272)(__int64, char **); // x28 __int64 v273; // x21 void (__fastcall *v274)(cocos2d::CCLabelBMFont *, char **); // x2 void (__fastcall *v275)(__int64, char **); // x3 void (__fastcall *v276)(cocos2d::CCLabelBMFont *, __int64 *); // x3 unsigned int v277; // w0 cocos2d::CCString *v278; // x0 cocos2d::CCLabelBMFont *CString; // x0 const char *v280; // x2 cocos2d::CCArray *v281; // x24 const char *v282; // x1 cocos2d::CCObject *v283; // x20 cocos2d::CCSprite *v284; // x0 ButtonSprite *v285; // x21 float v286; // s8 float v287; // s9 float v288; // s8 float v289; // s9 float v290; // s8 float v291; // s8 void (__fastcall *v292)(ButtonSprite *, char **); // x25 __int64 v293; // x24 void (__fastcall *v294)(cocos2d::CCObject *, char **); // x28 __int64 v295; // x24 GameStatsManager *v296; // x0 GameStatsManager *v297; // x0 void (__fastcall *v298)(__int64, __int64 *); // x23 cocos2d::CCString *v299; // x0 cocos2d::CCLabelBMFont *v300; // x0 const char *v301; // x2 __int64 v302; // x21 long double v303; // q0 float v304; // s0 void (__fastcall *v305)(__int64, __int64 *); // x23 ButtonSprite *v306; // x0 __int64 v307; // x20 __int64 v308; // x20 void (__fastcall *v309)(__int64, char **); // x27 __int64 v310; // x21 const char *v311; // x1 ButtonSprite *v312; // x0 __int64 v313; // x20 __int64 v314; // x20 __int64 v315; // x21 const char *v316; // x1 ButtonSprite *v317; // x0 __int64 v318; // x20 __int64 v319; // x20 __int64 v320; // x21 const char *v321; // x6 __int64 v322; // x0 __int64 v323; // x28 void (__fastcall *v324)(__int64, char **); // x27 __int64 v325; // x0 GameLevelManager *v326; // x0 void (__fastcall *v327)(__int64, __int64 *); // x23 void (__fastcall *v328)(cocos2d::CCLabelBMFont *, __int64 *); // x3 void (__fastcall *v329)(__int64, char **); // x3 GJGameLevel *v330; // [xsp+A0h] [xbp+A0h] cocos2d::CCLabelBMFont *v331; // [xsp+B0h] [xbp+B0h] int v332; // [xsp+C8h] [xbp+C8h] unsigned int v333; // [xsp+CCh] [xbp+CCh] GameStatsManager *v334; // [xsp+D0h] [xbp+D0h] GameStatsManager *v335; // [xsp+D0h] [xbp+D0h] int v336; // [xsp+D8h] [xbp+D8h] cocos2d::CCNode *v337; // [xsp+D8h] [xbp+D8h] cocos2d::CCNode *v338; // [xsp+D8h] [xbp+D8h] cocos2d::CCNode *v339; // [xsp+D8h] [xbp+D8h] int v340; // [xsp+E0h] [xbp+E0h] int v341; // [xsp+E0h] [xbp+E0h] _BOOL4 v342; // [xsp+E4h] [xbp+E4h] _BOOL4 v343; // [xsp+E8h] [xbp+E8h] GameStatsManager *v344; // [xsp+E8h] [xbp+E8h] GameStatsManager *v345; // [xsp+E8h] [xbp+E8h] GameStatsManager *v346; // [xsp+E8h] [xbp+E8h] int v347; // [xsp+E8h] [xbp+E8h] _DWORD v348[2]; // [xsp+F0h] [xbp+F0h] BYREF float v349; // [xsp+F8h] [xbp+F8h] BYREF _BYTE v350[4]; // [xsp+100h] [xbp+100h] BYREF float v351; // [xsp+104h] [xbp+104h] _BYTE v352[8]; // [xsp+108h] [xbp+108h] BYREF _BYTE v353[8]; // [xsp+110h] [xbp+110h] BYREF __int64 v354; // [xsp+118h] [xbp+118h] BYREF __int64 v355; // [xsp+120h] [xbp+120h] BYREF char *v356; // [xsp+128h] [xbp+128h] BYREF int v357; // [xsp+130h] [xbp+130h] __int64 v358[2]; // [xsp+138h] [xbp+138h] BYREF void *v359; // [xsp+148h] [xbp+148h] __int64 v360; // [xsp+150h] [xbp+150h] BYREF __int64 v361; // [xsp+158h] [xbp+158h] void *v362; // [xsp+160h] [xbp+160h] __int64 v363; // [xsp+168h] [xbp+168h] BYREF __int64 v364; // [xsp+170h] [xbp+170h] cocos2d::CCLabelBMFont *v365; // [xsp+178h] [xbp+178h] __int64 v366; // [xsp+180h] [xbp+180h] BYREF size_t v367; // [xsp+188h] [xbp+188h] void *v368; // [xsp+190h] [xbp+190h] __int64 v369[2]; // [xsp+198h] [xbp+198h] BYREF cocos2d::CCLabelBMFont *v370; // [xsp+1A8h] [xbp+1A8h] __int64 v371[2]; // [xsp+1B0h] [xbp+1B0h] BYREF cocos2d::CCLabelBMFont *v372; // [xsp+1C0h] [xbp+1C0h] __int64 v373[2]; // [xsp+1C8h] [xbp+1C8h] BYREF cocos2d::CCLabelBMFont *v374; // [xsp+1D8h] [xbp+1D8h] __int64 v375; // [xsp+1E0h] [xbp+1E0h] BYREF __int64 v376; // [xsp+1E8h] [xbp+1E8h] cocos2d::CCLabelBMFont *v377; // [xsp+1F0h] [xbp+1F0h] v2 = *((_QWORD *)this + 70); v340 = *(_DWORD *)(v2 + 900); v343 = *(_DWORD *)(v2 + 920) - *(_DWORD *)(v2 + 924) > 0; if ( !*((_BYTE *)this + 600) ) { v4 = 0.0; goto LABEL_6; } if ( !*((_BYTE *)this + 569) ) { GameToolbox::intToString((unsigned __int64 *)&v375, (GameToolbox *)*(unsigned int *)(v2 + 1236)); if ( (v375 & 1) != 0 ) v38 = v377; else v38 = (cocos2d::CCLabelBMFont *)((char *)&v375 + 1); v39 = (cocos2d::CCLabelBMFont *)cocos2d::CCLabelBMFont::create(v38, "bigFont.fnt", v37); (*(void (__fastcall **)(_QWORD, cocos2d::CCLabelBMFont *))(**((_QWORD **)this + 67) + 456LL))( *((_QWORD *)this + 67), v39); cocos2d::CCLabelBMFont::limitLabelWidth(v39, 20.0, 0.45, 0.0); v40 = *(void (__fastcall **)(cocos2d::CCLabelBMFont *, char **))(*(_QWORD *)v39 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v356, 16.0, *((float *)this + 131) * 0.5); v40(v39, &v356); if ( (v375 & 1) != 0 ) operator delete(v377); v2 = *((_QWORD *)this + 70); v4 = 15.0; LABEL_6: v375 = 0; v3 = v2 + 344; v376 = 0; v377 = nullptr; if ( (*(_BYTE *)(v2 + 344) & 1) != 0 ) goto LABEL_4; goto LABEL_7; } v375 = 0; v3 = v2 + 344; v376 = 0; v377 = nullptr; v4 = -5.0; if ( (*(_BYTE *)(v2 + 344) & 1) != 0 ) { LABEL_4: std::string::__init(&v375, *(void **)(v3 + 16), *(_QWORD *)(v3 + 8)); goto LABEL_8; } LABEL_7: v5 = *(_QWORD *)(v3 + 8); v375 = *(_QWORD *)v3; v376 = v5; v377 = *(cocos2d::CCLabelBMFont **)(v3 + 16); LABEL_8: v6 = (cocos2d::CCLabelBMFont *)((char *)&v375 + 1); if ( (v375 & 1) != 0 ) v6 = v377; v7 = (cocos2d::CCLabelBMFont *)cocos2d::CCLabelBMFont::create(v6, "bigFont.fnt", (const char *)v3); if ( (v375 & 1) != 0 ) operator delete(v377); (*(void (__fastcall **)(_QWORD, cocos2d::CCLabelBMFont *))(**((_QWORD **)this + 67) + 456LL))( *((_QWORD *)this + 67), v7); v8 = *(void (__fastcall **)(cocos2d::CCLabelBMFont *, char **))(*(_QWORD *)v7 + 296LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v356, 0.0, 0.5); v8(v7, &v356); (*(void (__fastcall **)(cocos2d::CCLabelBMFont *, float))(*(_QWORD *)v7 + 160LL))(v7, 1.0); v9 = *((float *)this + 131); v10 = *(void (__fastcall **)(cocos2d::CCLabelBMFont *, char **))(*(_QWORD *)v7 + 184LL); if ( *((_BYTE *)this + 600) ) { cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v356, v4 + 50.0, (float)(v9 * 0.5) + 16.0); v10(v7, &v356); cocos2d::CCLabelBMFont::limitLabelWidth(v7, 120.0, 0.5, 0.0); } else { cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v356, 50.0, (float)(v9 * 0.5) + 30.0); v10(v7, &v356); cocos2d::CCLabelBMFont::limitLabelWidth(v7, 190.0, 0.8, 0.0); } v358[0] = 0; v358[1] = 0; v359 = nullptr; v11 = LevelCell::inRecallMode(this); v342 = v11; if ( v11 ) { v333 = *(_DWORD *)(*((_QWORD *)this + 70) + 1292LL); v330 = (GJGameLevel *)LevelCell::recallSavedLevel(this); v12 = (GameStatsManager *)GameStatsManager::sharedState(v330); hasCompletedDailyStars = (GameStatsManager *)(unsigned __int8)GameStatsManager::hasCompletedDailyStars(v12, v333); if ( (_BYTE)hasCompletedDailyStars ) { v15 = 0; } else { v14 = (GameStatsManager *)GameStatsManager::sharedState(hasCompletedDailyStars); v15 = (unsigned __int8)GameStatsManager::isDailyRecall(v14, v333) ^ 1; } v18 = (unsigned __int8)LevelCell::recallChestReady(this); } else { if ( v343 ) { v36 = (GameLevelManager *)GameLevelManager::sharedState((GameLevelManager *)v343); SavedDailyLevel = GameLevelManager::getSavedDailyLevel( v36, *(_DWORD *)(*((_QWORD *)this + 70) + 920LL) - *(_DWORD *)(*((_QWORD *)this + 70) + 924LL)); } else { v16 = (GameLevelManager *)GameLevelManager::sharedState(nullptr); SavedDailyLevel = GameLevelManager::getSavedLevel( v16, *(_DWORD *)(*((_QWORD *)this + 70) + 328LL) - *(_DWORD *)(*((_QWORD *)this + 70) + 332LL)); } v330 = (GJGameLevel *)SavedDailyLevel; v18 = 0; v333 = 0; v15 = 0; } v19 = *((_QWORD *)this + 70); if ( *(_DWORD *)(v19 + 1140) == 2 ) goto LABEL_234; v20 = *(_BYTE *)(v19 + 392); v360 = 0; v21 = v19 + 392; v361 = 0; v362 = nullptr; if ( (v20 & 1) != 0 ) { std::string::__init(&v360, *(void **)(v19 + 408), *(_QWORD *)(v19 + 400)); } else { v22 = *(_QWORD *)v21; v23 = *(_QWORD *)(v21 + 8); v362 = *(void **)(v21 + 16); v360 = v22; v361 = v23; } v363 = 0; v364 = 0; v365 = nullptr; std::string::__init(&v363, &byte_11B8890, 0); v24 = 1; if ( !sub_733D1C((__int64)&v360, (__int64)&v363) ) { LABEL_26: if ( (v363 & 1) == 0 ) goto LABEL_27; LABEL_249: operator delete(v365); if ( (v360 & 1) == 0 ) goto LABEL_28; goto LABEL_250; } if ( !v330 ) { v24 = 0; goto LABEL_26; } v24 = 0; if ( *((_BYTE *)v330 + 1105) ) goto LABEL_26; v24 = *((_DWORD *)v330 + 197) == *(_DWORD *)(*((_QWORD *)this + 70) + 788LL); if ( (v363 & 1) != 0 ) goto LABEL_249; LABEL_27: if ( (v360 & 1) == 0 ) goto LABEL_28; LABEL_250: operator delete(v362); LABEL_28: if ( v24 ) { LABEL_234: std::string::assign(v358, "View"); v28 = "GJ_button_01.png"; goto LABEL_34; } v25 = *((_QWORD *)this + 70); if ( *(int *)(v25 + 792) > 22 ) { std::string::assign(v358, "NA"); v28 = "GJ_button_04.png"; LABEL_34: if ( !*((_BYTE *)this + 568) ) goto LABEL_35; goto LABEL_54; } if ( !v330 || *((_BYTE *)v330 + 1105) || *((_DWORD *)v330 + 197) >= *(_DWORD *)(v25 + 788) ) { std::string::assign(v358, "Get It"); v28 = "GJ_button_02.png"; goto LABEL_34; } std::string::assign(v358, "Update"); v28 = "GJ_button_03.png"; if ( !*((_BYTE *)this + 568) ) { LABEL_35: if ( !v343 ) goto LABEL_36; LABEL_55: v31 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_playBtn2_001.png", v26); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v31 + 160LL))(v31, 0.7); v34 = 0; v35 = 18.0; v332 = *(_DWORD *)(*((_QWORD *)this + 70) + 864LL) - *(_DWORD *)(*((_QWORD *)this + 70) + 868LL) > 99; goto LABEL_56; } LABEL_54: std::string::assign(v358, "Use"); v28 = "GJ_button_01.png"; if ( v343 ) goto LABEL_55; LABEL_36: if ( v15 ) { v277 = GameStatsManager::dailyRecallPrice((GameStatsManager *)v333, (int)v26); v278 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"%i", (const char *)v277); CString = (cocos2d::CCLabelBMFont *)cocos2d::CCString::getCString(v278); v281 = (cocos2d::CCArray *)cocos2d::CCLabelBMFont::create(CString, "goldFont.fnt", v280); (*(void (__fastcall **)(cocos2d::CCArray *, float))(*(_QWORD *)v281 + 160LL))(v281, 0.7); v283 = (cocos2d::CCObject *)cocos2d::CCSprite::createWithSpriteFrameName( (cocos2d::CCSprite *)"GJ_bigKey_001.png", v282); v284 = (cocos2d::CCSprite *)(*(__int64 (__fastcall **)(cocos2d::CCObject *, float))(*(_QWORD *)v283 + 160LL))( v283, 0.72); v285 = (ButtonSprite *)cocos2d::CCSprite::create(v284); (*(void (__fastcall **)(ButtonSprite *, __int64))(*(_QWORD *)v285 + 984LL))(v285, 1); (*(void (__fastcall **)(ButtonSprite *, __int64))(*(_QWORD *)v285 + 936LL))(v285, 1); v286 = *(float *)(*(__int64 (__fastcall **)(cocos2d::CCArray *))(*(_QWORD *)v281 + 328LL))(v281); v287 = (float)(v286 * (*(float (__fastcall **)(cocos2d::CCArray *))(*(_QWORD *)v281 + 168LL))(v281)) + 3.0; v288 = *(float *)(*(__int64 (__fastcall **)(cocos2d::CCObject *))(*(_QWORD *)v283 + 328LL))(v283); v289 = v287 + (float)(v288 * (*(float (__fastcall **)(cocos2d::CCObject *))(*(_QWORD *)v283 + 168LL))(v283)); v290 = *(float *)((*(__int64 (__fastcall **)(cocos2d::CCObject *))(*(_QWORD *)v283 + 328LL))(v283) + 4); v291 = v290 * (*(float (__fastcall **)(cocos2d::CCObject *))(*(_QWORD *)v283 + 168LL))(v283); v292 = *(void (__fastcall **)(ButtonSprite *, char **))(*(_QWORD *)v285 + 320LL); cocos2d::CCSize::CCSize((cocos2d::CCSize *)&v356, v289, v291); v292(v285, &v356); (*(void (__fastcall **)(ButtonSprite *, cocos2d::CCArray *))(*(_QWORD *)v285 + 456LL))(v285, v281); (*(void (__fastcall **)(ButtonSprite *, cocos2d::CCObject *))(*(_QWORD *)v285 + 456LL))(v285, v283); v293 = cocos2d::CCArray::create(v281, v283, 0); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v356, v289 * 0.5, v291 * 0.5); GameToolbox::alignItemsHorisontally(v293, (__int64)&v356, 0, 3.0); v294 = *(void (__fastcall **)(cocos2d::CCObject *, char **))(*(_QWORD *)v283 + 184LL); v295 = (*(__int64 (__fastcall **)(cocos2d::CCObject *))(*(_QWORD *)v283 + 192LL))(v283); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v355, 0.0, -2.0); cocos2d::CCPoint::operator+(&v356, v295); v294(v283, &v356); v31 = ButtonSprite::create( v285, (cocos2d::CCSprite *)&word_3A, 0, 1, 20.0, 1.0, (cocos2d::CCSprite *)"GJ_button_05.png", nullptr, 30.0); v332 = 0; v34 = 5; v35 = 0.0; } else if ( v18 ) { v31 = GJChestSprite::create((GJChestSprite *)((char *)&dword_0 + 3), (int)v26); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v31 + 160LL))(v31, 0.3); v34 = 6; v35 = 0.0; v332 = 1; } else { v29 = (ButtonSprite *)((char *)v358 + 1); if ( (v358[0] & 1) != 0 ) v29 = (ButtonSprite *)v359; if ( *((_BYTE *)this + 600) ) v30 = (const char *)&qword_28; else v30 = (_BYTE *)(&dword_30 + 2); v31 = ButtonSprite::create(v29, v30, 0, 1, 0.6, "bigFont.fnt", v28, v27, 30.0); if ( v342 ) { v296 = (GameStatsManager *)GameStatsManager::sharedState((GameStatsManager *)v342); hasCompletedLevel = GameStatsManager::hasCompletedDailyStars(v296, v333); } else { v32 = (GameStatsManager *)GameStatsManager::sharedState(nullptr); hasCompletedLevel = GameStatsManager::hasCompletedLevel(v32, *((GJGameLevel **)this + 70)); } v34 = 0; v332 = hasCompletedLevel; v35 = 0.0; } LABEL_56: v41 = CCMenuItemSpriteExtra::create(v31, 0, (__int64)this, (__int64)LevelCell::onClick, 0); *((_QWORD *)this + 69) = v41; if ( v343 || *(_BYTE *)(*((_QWORD *)this + 70) + 772LL) ) v42 = 1.0; else v42 = 1.4; CCMenuItemSpriteExtra::setSizeMult(v41, v42); (*(void (__fastcall **)(_QWORD, _QWORD))(**((_QWORD **)this + 69) + 72LL))(*((_QWORD *)this + 69), v34); (*(void (__fastcall **)(_QWORD, _QWORD))(**((_QWORD **)this + 74) + 456LL))( *((_QWORD *)this + 74), *((_QWORD *)this + 69)); v43 = *(float *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v31 + 328LL))(v31); if ( v18 ) { v44 = *((_QWORD *)this + 69); v45 = *(void (__fastcall **)(__int64, char **))(*(_QWORD *)v44 + 320LL); cocos2d::CCSize::CCSize((cocos2d::CCSize *)&v356, 66.0, 30.0); v45(v44, &v356); v46 = *(void (__fastcall **)(__int64, char **))(*(_QWORD *)v31 + 184LL); v47 = *(float *)(*(__int64 (__fastcall **)(_QWORD))(**((_QWORD **)this + 69) + 328LL))(*((_QWORD *)this + 69)) * 0.5; v48 = (*(__int64 (__fastcall **)(_QWORD))(**((_QWORD **)this + 69) + 328LL))(*((_QWORD *)this + 69)); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v356, v47, *(float *)(v48 + 4) * 0.5); v46(v31, &v356); v43 = *(float *)(*(__int64 (__fastcall **)(_QWORD))(**((_QWORD **)this + 69) + 328LL))(*((_QWORD *)this + 69)); } cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)&v356, (float)((float)(*((float *)this + 130) - (float)(v43 * 0.5)) - 9.0) + v35, *((float *)this + 131) * 0.5); cocos2d::CCPoint::operator=((char *)this + 584, &v356); v49 = *((_QWORD *)this + 69); v50 = *((cocos2d::CCNode **)this + 74); v51 = *(void (__fastcall **)(__int64, char **))(*(_QWORD *)v49 + 184LL); cocos2d::CCNode::convertToWorldSpace(&v355, *((cocos2d::CCNode **)this + 67), (LevelCell *)((char *)this + 584)); cocos2d::CCNode::convertToNodeSpace((__int64 *)&v356, v50, (const cocos2d::CCPoint *)&v355); v51(v49, &v356); if ( *((_DWORD *)this + 136) == 29 ) { v306 = (ButtonSprite *)cocos2d::CCSprite::createWithSpriteFrameName( (cocos2d::CCSprite *)"edit_flipYBtn_001.png", v52); v307 = ButtonSprite::create( v306, (cocos2d::CCSprite *)((char *)&off_18 + 6), 0, 1, 30.0, 1.0, (cocos2d::CCSprite *)"GJ_button_05.png", nullptr, 0.0); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v307 + 160LL))(v307, 0.6); v308 = CCMenuItemSpriteExtra::create(v307, 0, (__int64)this, (__int64)LevelCell::onClick, 0); (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v308 + 72LL))(v308, 3); (*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 74) + 456LL))(*((_QWORD *)this + 74), v308); v309 = *(void (__fastcall **)(__int64, char **))(*(_QWORD *)v308 + 184LL); v310 = (*(__int64 (__fastcall **)(_QWORD))(**((_QWORD **)this + 69) + 192LL))(*((_QWORD *)this + 69)); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v355, 16.0, -8.0); cocos2d::CCPoint::operator+(&v356, v310); v309(v308, &v356); v312 = (ButtonSprite *)cocos2d::CCSprite::createWithSpriteFrameName( (cocos2d::CCSprite *)"edit_downBtn_001.png", v311); v313 = ButtonSprite::create( v312, (cocos2d::CCSprite *)((char *)&off_18 + 6), 0, 1, 30.0, 1.0, (cocos2d::CCSprite *)"GJ_button_06.png", nullptr, 0.0); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v313 + 160LL))(v313, 0.6); v314 = CCMenuItemSpriteExtra::create(v313, 0, (__int64)this, (__int64)LevelCell::onClick, 0); (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v314 + 72LL))(v314, 2); (*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 74) + 456LL))(*((_QWORD *)this + 74), v314); v337 = *(cocos2d::CCNode **)(*(_QWORD *)v314 + 184LL); v315 = (*(__int64 (__fastcall **)(_QWORD))(**((_QWORD **)this + 69) + 192LL))(*((_QWORD *)this + 69)); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v355, -12.0, -8.0); cocos2d::CCPoint::operator+(&v356, v315); ((void (__fastcall *)(__int64, char **))v337)(v314, &v356); v317 = (ButtonSprite *)cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"edit_upBtn_001.png", v316); v318 = ButtonSprite::create( v317, (cocos2d::CCSprite *)((char *)&off_18 + 6), 0, 1, 30.0, 1.0, (cocos2d::CCSprite *)"GJ_button_01.png", nullptr, 0.0); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v318 + 160LL))(v318, 0.6); v319 = CCMenuItemSpriteExtra::create(v318, 0, (__int64)this, (__int64)LevelCell::onClick, 0); (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v319 + 72LL))(v319, 1); (*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 74) + 456LL))(*((_QWORD *)this + 74), v319); v338 = *(cocos2d::CCNode **)(*(_QWORD *)v319 + 184LL); v320 = (*(__int64 (__fastcall **)(_QWORD))(**((_QWORD **)this + 69) + 192LL))(*((_QWORD *)this + 69)); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v355, -40.0, -8.0); cocos2d::CCPoint::operator+(&v356, v320); ((void (__fastcall *)(__int64, char **))v338)(v319, &v356); v322 = ButtonSprite::create( (ButtonSprite *)"Delete", (const char *)&qword_28, 0, 1, 0.6, "bigFont.fnt", "GJ_button_06.png", v321, 30.0); v323 = CCMenuItemSpriteExtra::create(v322, 0, (__int64)this, (__int64)LevelCell::onClick, 0); (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v323 + 72LL))(v323, 4); (*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 74) + 456LL))(*((_QWORD *)this + 74), v323); v324 = *(void (__fastcall **)(__int64, char **))(*(_QWORD *)v323 + 184LL); v339 = *((cocos2d::CCNode **)this + 74); v335 = *((GameStatsManager **)this + 67); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v353, -v35, 0.0); cocos2d::CCPoint::operator+(&v354, (char *)this + 584); cocos2d::CCNode::convertToWorldSpace(&v355, v335, (const cocos2d::CCPoint *)&v354); cocos2d::CCNode::convertToNodeSpace((__int64 *)&v356, v339, (const cocos2d::CCPoint *)&v355); v324(v323, &v356); LevelCell::updateCellMode(this, *((_DWORD *)this + 151)); v325 = *((_QWORD *)this + 70); LODWORD(v319) = *(_DWORD *)(v325 + 588); v55 = (GameLevelManager *)*(unsigned int *)(v325 + 592); v56 = v319 - (_DWORD)v55; if ( v56 > 0 ) goto LABEL_63; } else { v53 = *((_QWORD *)this + 70); v54 = *(_DWORD *)(v53 + 588); v55 = (GameLevelManager *)*(unsigned int *)(v53 + 592); v56 = v54 - (_DWORD)v55; if ( v56 > 0 ) goto LABEL_63; } v326 = (GameLevelManager *)GameLevelManager::sharedState(v55); v56 = GameLevelManager::accountIDForUserID( v326, *(_DWORD *)(*((_QWORD *)this + 70) + 576LL) - *(_DWORD *)(*((_QWORD *)this + 70) + 580LL)); LABEL_63: v57 = *((unsigned __int8 *)this + 600); v363 = 0; v364 = 0; v365 = nullptr; if ( !v57 ) std::string::append((__int64)&v363, "By ", 3u); v58 = *((_QWORD *)this + 70); v366 = 0; v59 = v58 + 416; v367 = 0; LOBYTE(v58) = *(_BYTE *)(v58 + 416); v368 = nullptr; if ( (v58 & 1) != 0 ) { std::string::__init(&v366, *(void **)(v59 + 16), *(_QWORD *)(v59 + 8)); } else { v60 = *(_QWORD *)v59; v61 = *(_QWORD *)(v59 + 8); v368 = *(void **)(v59 + 16); v366 = v60; v367 = v61; } if ( (v366 & 1) != 0 ) { v62 = (char *)v368; v63 = v367; } else { v63 = (unsigned __int8)v366 >> 1; v62 = (char *)&v366 + 1; } std::string::append((__int64)&v363, v62, v63); if ( (v366 & 1) != 0 ) operator delete(v368); v65 = (cocos2d::CCLabelBMFont *)((char *)&v363 + 1); if ( (v363 & 1) != 0 ) v65 = v365; v331 = (cocos2d::CCLabelBMFont *)cocos2d::CCLabelBMFont::create(v65, "goldFont.fnt", v64); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v348); if ( *((_BYTE *)this + 600) ) { cocos2d::CCLabelBMFont::limitLabelWidth(v331, 80.0, 0.45, 0.0); v66 = (*(__int64 (__fastcall **)(cocos2d::CCLabelBMFont *))(*(_QWORD *)v7 + 192LL))(v7); v248 = *(float *)(*(__int64 (__fastcall **)(cocos2d::CCLabelBMFont *))(*(_QWORD *)v7 + 328LL))(v7); v249 = v248 * (*(float (__fastcall **)(cocos2d::CCLabelBMFont *))(*(_QWORD *)v7 + 168LL))(v7); v250 = *(float *)(*(__int64 (__fastcall **)(cocos2d::CCLabelBMFont *))(*(_QWORD *)v331 + 328LL))(v331) * 0.5; v251 = (*(float (__fastcall **)(cocos2d::CCLabelBMFont *))(*(_QWORD *)v331 + 168LL))(v331); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v355, (float)(v249 + (float)(v250 * v251)) + 5.0, 0.0); } else { cocos2d::CCLabelBMFont::limitLabelWidth(v331, 140.0, 0.7, 0.0); v66 = (*(__int64 (__fastcall **)(cocos2d::CCLabelBMFont *))(*(_QWORD *)v7 + 192LL))(v7); v67 = *(float *)(*(__int64 (__fastcall **)(cocos2d::CCLabelBMFont *))(*(_QWORD *)v331 + 328LL))(v331) * 0.5; v68 = (*(float (__fastcall **)(cocos2d::CCLabelBMFont *))(*(_QWORD *)v331 + 168LL))(v331); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v355, (float)(v67 * v68) + 2.0, -22.0); } cocos2d::CCPoint::operator+(&v356, v66); cocos2d::CCPoint::operator=(v348, &v356); v69 = CCMenuItemSpriteExtra::create((__int64)v331, 0, (__int64)this, (__int64)LevelCell::onViewProfile, 0); (*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 74) + 456LL))(*((_QWORD *)this + 74), v69); v70 = *((cocos2d::CCNode **)this + 74); v71 = *(void (__fastcall **)(__int64, char **))(*(_QWORD *)v69 + 184LL); cocos2d::CCNode::convertToWorldSpace(&v355, *((cocos2d::CCNode **)this + 67), (const cocos2d::CCPoint *)v348); cocos2d::CCNode::convertToNodeSpace((__int64 *)&v356, v70, (const cocos2d::CCPoint *)&v355); v71(v69, &v356); if ( !v56 ) { v72 = *(void (__fastcall **)(cocos2d::CCLabelBMFont *, char **))(*(_QWORD *)v331 + 1072LL); LOWORD(v356) = -166; BYTE2(v356) = -1; v72(v331, &v356); (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v69 + 1056LL))(v69, 0); } cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v349); v73 = *(_QWORD *)v7; if ( *((_BYTE *)this + 600) ) { v247 = (float *)(*(__int64 (__fastcall **)(cocos2d::CCLabelBMFont *))(v73 + 192))(v7); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v356, *v247 + 1.0, (float)(*((float *)this + 131) * 0.5) + -1.0); cocos2d::CCPoint::operator=(&v349, &v356); v76 = 0.36; v77 = 150.0; } else { v74 = (float *)(*(__int64 (__fastcall **)(cocos2d::CCLabelBMFont *))(v73 + 192))(v7); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v356, *v74 + 2.0, (float)(*((float *)this + 131) * 0.5) + -12.0); cocos2d::CCPoint::operator=(&v349, &v356); v76 = 0.45; v77 = 195.0; } v78 = (MusicDownloadManager *)MusicDownloadManager::sharedState(v75); SongInfoObject = MusicDownloadManager::getSongInfoObject(v78, *(_DWORD *)(*((_QWORD *)this + 70) + 608LL)); v81 = SongInfoObject; if ( SongInfoObject ) { v82 = *(_DWORD *)(SongInfoObject + 400); if ( v82 > 0 ) { if ( v82 == 2 ) v83 = "chompo_small_001.png"; else v83 = "ncs_small_001.png"; v84 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)v83, v80); (*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 67) + 456LL))(*((_QWORD *)this + 67), v84); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v356, 14.0, -1.0); cocos2d::CCPoint::operator+(&v355, &v349); if ( *(_DWORD *)(v81 + 400) == 2 ) { *(float *)&v355 = *(float *)&v355 + 3.0; *((float *)&v355 + 1) = *((float *)&v355 + 1) - 0.5; v85 = v349 + 40.0; v77 = v77 - 20.0; } else { v85 = v349 + 34.0; v77 = v77 - 15.0; } v349 = v85; (*(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v84 + 184LL))(v84, &v355); } } GJGameLevel::getSongName(v369, *((GJGameLevel **)this + 70)); v87 = (cocos2d::CCLabelBMFont *)((char *)v369 + 1); if ( (v369[0] & 1) != 0 ) v87 = v370; v88 = (cocos2d::CCLabelBMFont *)cocos2d::CCLabelBMFont::create(v87, "bigFont.fnt", v86); if ( (v369[0] & 1) != 0 ) operator delete(v370); (*(void (__fastcall **)(_QWORD, cocos2d::CCLabelBMFont *))(**((_QWORD **)this + 67) + 456LL))( *((_QWORD *)this + 67), v88); v89 = *(void (__fastcall **)(cocos2d::CCLabelBMFont *, char **))(*(_QWORD *)v88 + 296LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v356, 0.0, 0.5); v89(v88, &v356); (*(void (__fastcall **)(cocos2d::CCLabelBMFont *, float *))(*(_QWORD *)v88 + 184LL))(v88, &v349); cocos2d::CCLabelBMFont::limitLabelWidth(v88, v77, v76, 0.0); if ( *(int *)(*((_QWORD *)this + 70) + 608LL) <= 0 ) { v274 = *(void (__fastcall **)(cocos2d::CCLabelBMFont *, char **))(*(_QWORD *)v88 + 1072LL); LOWORD(v356) = -11736; BYTE2(v356) = -1; v274(v88, &v356); } else { v90 = *(void (__fastcall **)(cocos2d::CCLabelBMFont *, char **))(*(_QWORD *)v88 + 1072LL); LOWORD(v356) = -32001; BYTE2(v356) = -1; v90(v88, &v356); } AverageDifficulty = GJGameLevel::getAverageDifficulty(*((GJGameLevel **)this + 70)); v92 = *((_DWORD **)this + 70); v93 = AverageDifficulty; if ( v92[233] - v92[234] == 1 ) v93 = GJGameLevel::demonIconForDifficulty((unsigned int)v92[236]); v94 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"difficulty_%02d_btn_001.png", (const char *)v93); v95 = (cocos2d::CCNode *)cocos2d::CCString::getCString(v94); v334 = (GameStatsManager *)cocos2d::CCNode::create(v95); (*(void (__fastcall **)(_QWORD, GameStatsManager *, __int64))(**((_QWORD **)this + 67) + 464LL))( *((_QWORD *)this + 67), v334, 2); (*(void (__fastcall **)(GameStatsManager *, void *))(*(_QWORD *)v334 + 320LL))(v334, &unk_155C610); v96 = *(void (__fastcall **)(GameStatsManager *, char **))(*(_QWORD *)v334 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v356, 26.0, *((float *)this + 131) * 0.5); v96(v334, &v356); if ( *((_BYTE *)this + 600) ) { (*(void (__fastcall **)(GameStatsManager *, float))(*(_QWORD *)v334 + 160LL))(v334, 0.7); v97 = *(void (__fastcall **)(GameStatsManager *, char **))(*(_QWORD *)v334 + 184LL); v98 = (*(__int64 (__fastcall **)(GameStatsManager *))(*(_QWORD *)v334 + 192LL))(v334); if ( *((_BYTE *)this + 569) ) v99 = -2.0; else v99 = 18.0; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v355, v99, 1.0); cocos2d::CCPoint::operator+(&v356, v98); v97(v334, &v356); } cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v350, 0.0, 0.0); v100 = *((_QWORD *)this + 70); if ( *(int *)(v100 + 964) <= 0 || *((_BYTE *)this + 600) ) { if ( *(_DWORD *)(v100 + 948) - *(_DWORD *)(v100 + 952) <= 0 ) goto LABEL_102; } else if ( *(_DWORD *)(v100 + 948) - *(_DWORD *)(v100 + 952) > 0 ) { v351 = v351 + 14.0; goto LABEL_102; } v351 = v351 + 5.0; LABEL_102: if ( v343 ) v351 = v351 + 10.0; if ( *(_BYTE *)(v100 + 960) ) v101 = 0xFFFFFFFFLL; else v101 = v93; v102 = (GJDifficultySprite *)GJDifficultySprite::create(v101, 0); GJDifficultySprite::updateFeatureStateFromLevel(v102, *((GJGameLevel **)this + 70)); (*(void (__fastcall **)(GameStatsManager *, GJDifficultySprite *, __int64))(*(_QWORD *)v334 + 464LL))(v334, v102, 3); (*(void (__fastcall **)(GJDifficultySprite *, _BYTE *))(*(_QWORD *)v102 + 184LL))(v102, v350); if ( v342 ) { v103 = (GameStatsManager *)GameStatsManager::sharedState((GameStatsManager *)v342); hasCompletedStarLevel = GameStatsManager::hasCompletedDailyStars(v103, v333); } else { v246 = (GameStatsManager *)GameStatsManager::sharedState(nullptr); hasCompletedStarLevel = GameStatsManager::hasCompletedStarLevel(v246, *((GJGameLevel **)this + 70)); } v105 = *((_QWORD *)this + 70); v106 = hasCompletedStarLevel; v107 = *(_DWORD *)(v105 + 948); v108 = (const char *)*(unsigned int *)(v105 + 952); if ( v107 - (int)v108 > 0 ) { v109 = (cocos2d::CCSprite *)(v340 == 5 ? "moon_small01_001.png" : "star_small01_001.png"); v110 = cocos2d::CCSprite::createWithSpriteFrameName(v109, v108); (*(void (__fastcall **)(GameStatsManager *, __int64))(*(_QWORD *)v334 + 456LL))(v334, v110); v111 = *(void (__fastcall **)(__int64, char **))(*(_QWORD *)v110 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v355, 8.0, -30.0); cocos2d::CCPoint::operator+(&v356, v350); v111(v110, &v356); v112 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"%i", (const char *)(unsigned int)(*(_DWORD *)(*((_QWORD *)this + 70) + 948LL) - *(_DWORD *)(*((_QWORD *)this + 70) + 952LL))); v113 = (cocos2d::CCLabelBMFont *)cocos2d::CCString::getCString(v112); v115 = cocos2d::CCLabelBMFont::create(v113, "bigFont.fnt", v114); (*(void (__fastcall **)(GameStatsManager *, __int64))(*(_QWORD *)v334 + 456LL))(v334, v115); v116 = *(void (__fastcall **)(__int64, char **))(*(_QWORD *)v115 + 296LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v356, 1.0, 0.5); v116(v115, &v356); v117 = *(void (__fastcall **)(__int64, char **))(*(_QWORD *)v115 + 184LL); v118 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v110 + 192LL))(v110); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v355, -8.0, 0.0); cocos2d::CCPoint::operator+(&v356, v118); v117(v115, &v356); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v115 + 160LL))(v115, 0.4); if ( v106 ) { v275 = *(void (__fastcall **)(__int64, char **))(*(_QWORD *)v115 + 1072LL); LOWORD(v356) = -1; BYTE2(v356) = 50; v275(v115, &v356); } } if ( v343 ) { v256 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"diamond_small01_001.png", v108); v257 = (GameStatsManager *)(*(__int64 (__fastcall **)(GameStatsManager *, __int64))(*(_QWORD *)v334 + 456LL))( v334, v256); v375 = 0; v376 = 0; v377 = nullptr; v258 = (GameStatsManager *)GameStatsManager::sharedState(v257); BaseDiamonds = (GameStatsManager *)GameStatsManager::getBaseDiamonds( v258, *(_DWORD *)(*((_QWORD *)this + 70) + 948LL) - *(_DWORD *)(*((_QWORD *)this + 70) + 952LL)); v260 = (unsigned int)BaseDiamonds; v347 = (int)BaseDiamonds; v261 = (GameStatsManager *)GameStatsManager::sharedState(BaseDiamonds); AwardedDiamondsForLevel = GameStatsManager::getAwardedDiamondsForLevel(v261, *((GJGameLevel **)this + 70)); v263 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"%i/%i", (const char *)AwardedDiamondsForLevel, v260); v264 = (char *)cocos2d::CCString::getCString(v263); std::string::assign(&v375, v264); v266 = (cocos2d::CCLabelBMFont *)((char *)&v375 + 1); if ( (v375 & 1) != 0 ) v266 = v377; v267 = cocos2d::CCLabelBMFont::create(v266, "bigFont.fnt", v265); (*(void (__fastcall **)(GameStatsManager *, __int64))(*(_QWORD *)v334 + 456LL))(v334, v267); v268 = *(void (__fastcall **)(__int64, char **))(*(_QWORD *)v267 + 296LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v356, 1.0, 0.5); v268(v267, &v356); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v267 + 160LL))(v267, 0.35); v269 = *(float *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v267 + 328LL))(v267); v270 = (*(float (__fastcall **)(__int64))(*(_QWORD *)v267 + 168LL))(v267); v271 = *(void (__fastcall **)(__int64, char **))(*(_QWORD *)v256 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v355, (float)((float)(v269 * v270) * 0.5) + 2.0, -44.5); cocos2d::CCPoint::operator+(&v356, v350); v271(v256, &v356); v272 = *(void (__fastcall **)(__int64, char **))(*(_QWORD *)v267 + 184LL); v273 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v256 + 192LL))(v256); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v355, -8.0, 0.0); cocos2d::CCPoint::operator+(&v356, v273); v272(v267, &v356); if ( v347 == AwardedDiamondsForLevel ) { v329 = *(void (__fastcall **)(__int64, char **))(*(_QWORD *)v267 + 1072LL); LOWORD(v356) = -156; BYTE2(v356) = -1; v329(v267, &v356); } if ( (v375 & 1) != 0 ) operator delete(v377); v119 = *((GJGameLevel **)this + 70); v120 = *((_DWORD *)v119 + 241); if ( v120 > 0 ) { v121 = -60.0; LABEL_118: v122 = 1; v336 = *((_DWORD *)v119 + 242); v341 = *((_DWORD *)v119 + 243); do { switch ( v122 ) { case 2: if ( v120 != 2 ) goto LABEL_198; v123 = 5.0; break; case 1: if ( v120 == 2 ) { v123 = -5.0; } else { v123 = 0.0; if ( v120 > 2 ) v123 = -10.0; } break; case 3: v123 = 10.0; break; default: LABEL_198: v123 = 0.0; break; } if ( v342 ) CoinKey = (const char *)GJGameLevel::getCoinKey(v119, v122, v333); else CoinKey = (const char *)GJGameLevel::getCoinKey(v119, v122); v375 = 0; v376 = 0; v377 = nullptr; v344 = (GameStatsManager *)CoinKey; v125 = strlen(CoinKey); v126 = (GameStatsManager *)std::string::__init(&v375, v344, v125); v127 = (GameStatsManager *)GameStatsManager::sharedState(v126); v128 = (cocos2d::CCLabelBMFont *)((char *)&v375 + 1); if ( (v375 & 1) != 0 ) v128 = v377; hasUserCoin = (GameStatsManager *)(unsigned __int8)GameStatsManager::hasUserCoin(v127, (const char *)v128); if ( (_BYTE)hasUserCoin ) { hasPendingUserCoin = 1; } else { v131 = (GameStatsManager *)GameStatsManager::sharedState(hasUserCoin); v132 = (cocos2d::CCLabelBMFont *)((char *)&v375 + 1); if ( (v375 & 1) != 0 ) v132 = v377; hasPendingUserCoin = (unsigned __int8)GameStatsManager::hasPendingUserCoin(v131, (const char *)v132); } v134 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"usercoin_small01_001.png", v130); if ( *((_BYTE *)this + 600) ) { (*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 67) + 456LL))(*((_QWORD *)this + 67), v134); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v134 + 160LL))(v134, 0.7); v346 = *(GameStatsManager **)(*(_QWORD *)v134 + 184LL); v240 = (*(__int64 (__fastcall **)(cocos2d::CCLabelBMFont *))(*(_QWORD *)v88 + 192LL))(v88); v241 = *(float *)(*(__int64 (__fastcall **)(cocos2d::CCLabelBMFont *))(*(_QWORD *)v88 + 328LL))(v88); v242 = (float)(v241 * (*(float (__fastcall **)(cocos2d::CCLabelBMFont *))(*(_QWORD *)v88 + 168LL))(v88)) + 18.0; v243 = (*(float (__fastcall **)(__int64))(*(_QWORD *)v134 + 168LL))(v134); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v355, v242 + (float)(v123 * v243), 0.0); cocos2d::CCPoint::operator+(&v356, v240); ((void (__fastcall *)(__int64, char **))v346)(v134, &v356); if ( v336 == v341 ) { LABEL_194: v244 = *(void (__fastcall **)(__int64, char **))(*(_QWORD *)v134 + 960LL); if ( hasPendingUserCoin ) { LOWORD(v356) = -20481; BYTE2(v356) = 75; } else { LOWORD(v356) = 29093; BYTE2(v356) = 48; } v244(v134, &v356); if ( (v375 & 1) == 0 ) goto LABEL_136; goto LABEL_197; } } else { (*(void (__fastcall **)(GameStatsManager *, __int64))(*(_QWORD *)v334 + 456LL))(v334, v134); v135 = *(void (__fastcall **)(__int64, char **))(*(_QWORD *)v134 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v355, v123, v121); cocos2d::CCPoint::operator+(&v356, v350); v135(v134, &v356); if ( v336 == v341 ) goto LABEL_194; } if ( !hasPendingUserCoin ) { v245 = *(void (__fastcall **)(__int64, char **))(*(_QWORD *)v134 + 960LL); LOWORD(v356) = -23131; BYTE2(v356) = -91; v245(v134, &v356); } if ( (v375 & 1) == 0 ) goto LABEL_136; LABEL_197: operator delete(v377); LABEL_136: v119 = *((GJGameLevel **)this + 70); v136 = v122++; v120 = *((_DWORD *)v119 + 241); } while ( v120 > v136 && v136 <= 2 ); } } else { v119 = *((GJGameLevel **)this + 70); v120 = *((_DWORD *)v119 + 241); if ( v120 > 0 ) { if ( *((_DWORD *)v119 + 237) - *((_DWORD *)v119 + 238) <= 0 ) v121 = -31.5; else v121 = -45.5; goto LABEL_118; } } v138 = *(float *)(*(__int64 (__fastcall **)(cocos2d::CCLabelBMFont *))(*(_QWORD *)v7 + 192LL))(v7); if ( *((_BYTE *)this + 600) ) { v139 = 60.0; v140 = v138 + 6.0; v141 = 0.4; v142 = 8.5; } else { v142 = 14.0; v140 = v138 + 9.0; v139 = 80.0; v141 = 0.6; } v143 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_timeIcon_001.png", v137); (*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 67) + 456LL))(*((_QWORD *)this + 67), v143); v144 = *(void (__fastcall **)(__int64, char **))(*(_QWORD *)v143 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v356, v140, v142); v144(v143, &v356); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v143 + 160LL))(v143, v141); v146 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_downloadsIcon_001.png", v145); (*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 67) + 456LL))(*((_QWORD *)this + 67), v146); v147 = *(void (__fastcall **)(__int64, char **))(*(_QWORD *)v146 + 184LL); v148 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v143 + 192LL))(v143); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v355, v139, 0.0); cocos2d::CCPoint::operator+(&v356, v148); v147(v146, &v356); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v146 + 160LL))(v146, v141); v150 = (cocos2d::CCSpriteFrameCache **)cocos2d::CCSprite::createWithSpriteFrameName( (cocos2d::CCSprite *)"GJ_likesIcon_001.png", v149); (*(void (__fastcall **)(_QWORD, cocos2d::CCSpriteFrameCache **))(**((_QWORD **)this + 67) + 456LL))( *((_QWORD *)this + 67), v150); v151 = *((void (__fastcall **)(cocos2d::CCSpriteFrameCache **, char **))*v150 + 23); v152 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v146 + 192LL))(v146); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v355, v139, 0.0); cocos2d::CCPoint::operator+(&v356, v152); v151(v150, &v356); (*((void (__fastcall **)(cocos2d::CCSpriteFrameCache **, float))*v150 + 20))(v150, v141); if ( *((_BYTE *)this + 600) ) { v153 = *((unsigned int **)this + 70); v154 = v153[237] - v153[238]; if ( v154 <= 0 ) v155 = 20.0; else v155 = 14.4; v156 = 0.3; } else { v153 = *((unsigned int **)this + 70); v156 = 0.4; v154 = v153[237] - v153[238]; if ( v154 <= 0 ) v155 = 25.0; else v155 = 18.0; } GJGameLevel::lengthKeyToString(v371, (GJGameLevel *)v153[225], v154); v158 = (cocos2d::CCLabelBMFont *)((char *)v371 + 1); if ( (v371[0] & 1) != 0 ) v158 = v372; v159 = (cocos2d::CCLabelBMFont *)cocos2d::CCLabelBMFont::create(v158, "bigFont.fnt", v157); if ( (v371[0] & 1) != 0 ) operator delete(v372); (*(void (__fastcall **)(_QWORD, cocos2d::CCLabelBMFont *))(**((_QWORD **)this + 67) + 456LL))( *((_QWORD *)this + 67), v159); v160 = *(void (__fastcall **)(cocos2d::CCLabelBMFont *, char **))(*(_QWORD *)v159 + 296LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v356, 0.0, 0.5); v160(v159, &v356); v161 = *(void (__fastcall **)(cocos2d::CCLabelBMFont *, char **))(*(_QWORD *)v159 + 184LL); v162 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v143 + 192LL))(v143); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v355, 10.0, 0.0); cocos2d::CCPoint::operator+(&v356, v162); v161(v159, &v356); (*(void (__fastcall **)(cocos2d::CCLabelBMFont *, float))(*(_QWORD *)v159 + 160LL))(v159, v156); cocos2d::CCLabelBMFont::limitLabelWidth(v159, 50.0, v156, 0.0); v163 = *(void (__fastcall **)(__int64, char **))(*(_QWORD *)v146 + 184LL); v164 = *(float *)(*(__int64 (__fastcall **)(cocos2d::CCLabelBMFont *))(*(_QWORD *)v159 + 192LL))(v159); v165 = *(float *)(*(__int64 (__fastcall **)(cocos2d::CCLabelBMFont *))(*(_QWORD *)v159 + 328LL))(v159); v166 = (float)(v164 + (float)(v165 * (*(float (__fastcall **)(cocos2d::CCLabelBMFont *))(*(_QWORD *)v159 + 168LL))(v159))) + v155; v167 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v146 + 192LL))(v146); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v356, v166, *(float *)(v167 + 4)); v163(v146, &v356); GameToolbox::intToShortString((GameToolbox *)*(unsigned int *)(*((_QWORD *)this + 70) + 644LL), 0, v373); v169 = (cocos2d::CCLabelBMFont *)((char *)v373 + 1); if ( (v373[0] & 1) != 0 ) v169 = v374; v170 = (cocos2d::CCLabelBMFont *)cocos2d::CCLabelBMFont::create(v169, "bigFont.fnt", v168); if ( (v373[0] & 1) != 0 ) operator delete(v374); (*(void (__fastcall **)(_QWORD, cocos2d::CCLabelBMFont *))(**((_QWORD **)this + 67) + 456LL))( *((_QWORD *)this + 67), v170); v171 = *(void (__fastcall **)(cocos2d::CCLabelBMFont *, char **))(*(_QWORD *)v170 + 296LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v356, 0.0, 0.5); v171(v170, &v356); v172 = *(void (__fastcall **)(cocos2d::CCLabelBMFont *, char **))(*(_QWORD *)v170 + 184LL); v173 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v146 + 192LL))(v146); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v355, 9.0, 0.0); cocos2d::CCPoint::operator+(&v356, v173); v172(v170, &v356); (*(void (__fastcall **)(cocos2d::CCLabelBMFont *, float))(*(_QWORD *)v170 + 160LL))(v170, v156); cocos2d::CCLabelBMFont::limitLabelWidth(v170, 45.0, v156, 0.0); v174 = *(_DWORD *)(*((_QWORD *)this + 70) + 892LL) - *(_DWORD *)(*((_QWORD *)this + 70) + 896LL); v175 = *((void (__fastcall **)(cocos2d::CCSpriteFrameCache **, __int64))*v150 + 145); v176 = (cocos2d::CCSpriteFrameCache *)cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(*v150); if ( v174 < 0 ) v177 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v176, "GJ_dislikesIcon_001.png"); else v177 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v176, "GJ_likesIcon_001.png"); v175(v150, v177); v178 = *((void (__fastcall **)(cocos2d::CCSpriteFrameCache **, char **))*v150 + 23); v179 = *(float *)(*(__int64 (__fastcall **)(cocos2d::CCLabelBMFont *))(*(_QWORD *)v170 + 192LL))(v170); v180 = *(float *)(*(__int64 (__fastcall **)(cocos2d::CCLabelBMFont *))(*(_QWORD *)v170 + 328LL))(v170); v181 = (float)(v179 + (float)(v180 * (*(float (__fastcall **)(cocos2d::CCLabelBMFont *))(*(_QWORD *)v170 + 168LL))(v170))) + v155; v182 = (*((__int64 (__fastcall **)(cocos2d::CCSpriteFrameCache **))*v150 + 24))(v150); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v356, v181, *(float *)(v182 + 4)); v178(v150, &v356); GameToolbox::intToShortString((GameToolbox *)(unsigned int)v174, 0, &v375); v184 = (cocos2d::CCLabelBMFont *)((char *)&v375 + 1); if ( (v375 & 1) != 0 ) v184 = v377; v185 = (cocos2d::CCLabelBMFont *)cocos2d::CCLabelBMFont::create(v184, "bigFont.fnt", v183); if ( (v375 & 1) != 0 ) operator delete(v377); (*(void (__fastcall **)(_QWORD, cocos2d::CCLabelBMFont *))(**((_QWORD **)this + 67) + 456LL))( *((_QWORD *)this + 67), v185); v186 = *(void (__fastcall **)(cocos2d::CCLabelBMFont *, char **))(*(_QWORD *)v185 + 296LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v356, 0.0, 0.5); v186(v185, &v356); v187 = *(void (__fastcall **)(cocos2d::CCLabelBMFont *, char **))(*(_QWORD *)v185 + 184LL); v188 = (*((__int64 (__fastcall **)(cocos2d::CCSpriteFrameCache **))*v150 + 24))(v150); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v355, 10.0, 0.0); cocos2d::CCPoint::operator+(&v356, v188); v187(v185, &v356); (*(void (__fastcall **)(cocos2d::CCLabelBMFont *, float))(*(_QWORD *)v185 + 160LL))(v185, v156); cocos2d::CCLabelBMFont::limitLabelWidth(v185, 45.0, v156, 0.0); v189 = *(float *)(*(__int64 (__fastcall **)(cocos2d::CCLabelBMFont *))(*(_QWORD *)v185 + 192LL))(v185); v190 = *(float *)(*(__int64 (__fastcall **)(cocos2d::CCLabelBMFont *))(*(_QWORD *)v185 + 328LL))(v185); v191 = (*(float (__fastcall **)(cocos2d::CCLabelBMFont *))(*(_QWORD *)v185 + 168LL))(v185); isDailyRecall = v342; v193 = v191; if ( v342 ) { v194 = (GameStatsManager *)GameStatsManager::sharedState((GameStatsManager *)v342); isDailyRecall = (unsigned __int8)GameStatsManager::isDailyRecall(v194, v333); v195 = 1; if ( !(_BYTE)isDailyRecall ) { v297 = (GameStatsManager *)GameStatsManager::sharedState((GameStatsManager *)isDailyRecall); isDailyRecall = (unsigned __int8)GameStatsManager::hasCompletedDailyStars(v297, v333); v195 = isDailyRecall ^ 1; } } else { v195 = 0; } v196 = (GameStatsManager *)GameStatsManager::sharedState((GameStatsManager *)isDailyRecall); v197 = *((GJGameLevel **)this + 70); v198 = v333; if ( !v342 ) v198 = *((_DWORD *)v197 + 230) - *((_DWORD *)v197 + 231); v199 = (char *)GameStatsManager::orbInfoForLevel(v196, v197, v198, v195); v200 = *((_QWORD *)this + 70); v356 = v199; v357 = v201; v202 = (const char *)*(unsigned int *)(v200 + 952); if ( *(_DWORD *)(v200 + 948) - (int)v202 <= 1 ) { v220 = v189 + (float)(v190 * v193); } else { v203 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"currencyOrbIcon_001.png", v202); (*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 67) + 456LL))(*((_QWORD *)this + 67), v203); v345 = *(GameStatsManager **)(*(_QWORD *)v203 + 184LL); v204 = (*((__int64 (__fastcall **)(cocos2d::CCSpriteFrameCache **))*v150 + 24))(v150); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v354, v139, 0.0); cocos2d::CCPoint::operator+(&v355, v204); ((void (__fastcall *)(__int64, __int64 *))v345)(v203, &v355); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v203 + 160LL))(v203, v141); v205 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v203 + 184LL); v206 = *(float *)(*(__int64 (__fastcall **)(cocos2d::CCLabelBMFont *))(*(_QWORD *)v185 + 192LL))(v185); v207 = *(float *)(*(__int64 (__fastcall **)(cocos2d::CCLabelBMFont *))(*(_QWORD *)v185 + 328LL))(v185); v208 = (float)(v206 + (float)(v207 * (*(float (__fastcall **)(cocos2d::CCLabelBMFont *))(*(_QWORD *)v185 + 168LL))(v185))) + v155; v209 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v203 + 192LL))(v203); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v355, v208, *(float *)(v209 + 4)); v205(v203, &v355); v375 = 0; v376 = 0; v377 = nullptr; if ( SHIDWORD(v356) <= (int)v356 ) v210 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"%i", (const char *)HIDWORD(v356)); else v210 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"%i/%i", (const char *)(unsigned int)v356); v211 = (char *)cocos2d::CCString::getCString(v210); std::string::assign(&v375, v211); if ( (v375 & 1) != 0 ) v213 = v377; else v213 = (cocos2d::CCLabelBMFont *)((char *)&v375 + 1); v214 = (cocos2d::CCLabelBMFont *)cocos2d::CCLabelBMFont::create(v213, "bigFont.fnt", v212); (*(void (__fastcall **)(_QWORD, cocos2d::CCLabelBMFont *))(**((_QWORD **)this + 67) + 456LL))( *((_QWORD *)this + 67), v214); v215 = *(void (__fastcall **)(cocos2d::CCLabelBMFont *, __int64 *))(*(_QWORD *)v214 + 296LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v355, 0.0, 0.5); v215(v214, &v355); v216 = *(void (__fastcall **)(cocos2d::CCLabelBMFont *, __int64 *))(*(_QWORD *)v214 + 184LL); v217 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v203 + 192LL))(v203); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v354, 10.0, 0.0); cocos2d::CCPoint::operator+(&v355, v217); v216(v214, &v355); (*(void (__fastcall **)(cocos2d::CCLabelBMFont *, float))(*(_QWORD *)v214 + 160LL))(v214, v156); if ( (unsigned __int8)GameStatsManager::OrbInfo::locked((GameStatsManager::OrbInfo *)&v356) ) { v276 = *(void (__fastcall **)(cocos2d::CCLabelBMFont *, __int64 *))(*(_QWORD *)v214 + 1072LL); LOWORD(v355) = -26986; BYTE2(v355) = -106; v276(v214, &v355); } else if ( HIDWORD(v356) == (_DWORD)v356 ) { v328 = *(void (__fastcall **)(cocos2d::CCLabelBMFont *, __int64 *))(*(_QWORD *)v214 + 1072LL); LOWORD(v355) = -156; BYTE2(v355) = -1; v328(v214, &v355); } cocos2d::CCLabelBMFont::limitLabelWidth(v214, 45.0, v156, 0.0); v218 = *(float *)(*(__int64 (__fastcall **)(cocos2d::CCLabelBMFont *))(*(_QWORD *)v214 + 192LL))(v214); v219 = *(float *)(*(__int64 (__fastcall **)(cocos2d::CCLabelBMFont *))(*(_QWORD *)v214 + 328LL))(v214); v220 = v218 + (float)(v219 * (*(float (__fastcall **)(cocos2d::CCLabelBMFont *))(*(_QWORD *)v214 + 168LL))(v214)); if ( (v375 & 1) != 0 ) operator delete(v377); } v221 = *((void (__fastcall **)(cocos2d::CCSpriteFrameCache **, __int64 *))*v150 + 23); v222 = (*((__int64 (__fastcall **)(cocos2d::CCSpriteFrameCache **))*v150 + 24))(v150); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v354, 0.0, 1.0); cocos2d::CCPoint::operator+(&v355, v222); v221(v150, &v355); v223 = *(float *)(*(__int64 (__fastcall **)(cocos2d::CCLabelBMFont *))(*(_QWORD *)v7 + 192LL))(v7); v224 = *(float *)(*(__int64 (__fastcall **)(cocos2d::CCLabelBMFont *))(*(_QWORD *)v7 + 328LL))(v7); v225 = (float)(v223 + (float)(v224 * (*(float (__fastcall **)(cocos2d::CCLabelBMFont *))(*(_QWORD *)v7 + 168LL))(v7))) + 10.0; v226 = (*(__int64 (__fastcall **)(cocos2d::CCLabelBMFont *))(*(_QWORD *)v7 + 192LL))(v7); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v352, v225, *(float *)(v226 + 4) - 1.0); if ( *((_BYTE *)this + 600) ) { if ( *((_BYTE *)this + 569) ) cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v355, (float)(v220 + v155) - 6.0, v142 + 1.0); else cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v355, 16.0, 10.0); *(__n128 *)&v228 = cocos2d::CCPoint::operator=(v352, &v355); } if ( v332 ) { v254 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_completesIcon_001.png", v227); if ( !*((_BYTE *)this + 600) || *((_BYTE *)this + 569) ) { v298 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v254 + 296LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v355, 0.0, 0.5); v298(v254, &v355); } (*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 67) + 456LL))(*((_QWORD *)this + 67), v254); (*(void (__fastcall **)(__int64, _BYTE *))(*(_QWORD *)v254 + 184LL))(v254, v352); if ( *((_BYTE *)this + 600) ) LODWORD(v255) = 0.5; else LODWORD(v255) = 1061997773; (*(void (__fastcall **)(__int64, long double))(*(_QWORD *)v254 + 160LL))(v254, v255); } else if ( v330 ) { NormalPercent = GJGameLevel::getNormalPercent(v330); if ( NormalPercent ) { v299 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"%i%%", (const char *)NormalPercent); v300 = (cocos2d::CCLabelBMFont *)cocos2d::CCString::getCString(v299); v302 = cocos2d::CCLabelBMFont::create(v300, "goldFont.fnt", v301); (*(void (__fastcall **)(_QWORD, __int64, __int64))(**((_QWORD **)this + 67) + 464LL))( *((_QWORD *)this + 67), v302, 10); if ( *((_BYTE *)this + 600) ) LODWORD(v303) = 1053609165; else LODWORD(v303) = 1058642330; (*(void (__fastcall **)(__int64, long double))(*(_QWORD *)v302 + 160LL))(v302, v303); if ( !*((_BYTE *)this + 600) || *((_BYTE *)this + 569) ) { v327 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v302 + 296LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v355, 0.0, 0.5); v327(v302, &v355); v305 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v302 + 184LL); if ( *((_BYTE *)this + 600) ) v304 = 1.0; else v304 = 0.0; } else { v304 = 1.0; v305 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v302 + 184LL); } cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v354, v304, 0.0); cocos2d::CCPoint::operator+(&v355, v352); v305(v302, &v355); } } if ( *((_BYTE *)this + 600) ) { v230 = 14.4; v231 = 0.8; } else { v230 = 18.0; v231 = 1.0; } v232 = *(float *)v348; v233 = *(float *)(*(__int64 (__fastcall **)(cocos2d::CCLabelBMFont *, long double))(*(_QWORD *)v331 + 328LL))( v331, v228) * 0.5; v234 = (*(float (__fastcall **)(cocos2d::CCLabelBMFont *))(*(_QWORD *)v331 + 168LL))(v331); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)v353, (float)(v232 + (float)(v233 * v234)) + (float)(v231 * 6.0), *(float *)&v348[1] - 1.0); v235 = *((_DWORD **)this + 70); v236 = (const char *)(unsigned int)v235[248]; if ( v235[247] != (_DWORD)v236 ) { v237 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"collaborationIcon_001.png", v236); v238 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v237 + 296LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v355, 0.0, 0.5); v238(v237, &v355); (*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 67) + 456LL))(*((_QWORD *)this + 67), v237); (*(void (__fastcall **)(__int64, _BYTE *))(*(_QWORD *)v237 + 184LL))(v237, v353); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v237 + 160LL))(v237, v231); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v354, 15.0, 0.0); cocos2d::CCPoint::operator+(&v355, v353); cocos2d::CCPoint::operator=(v353, &v355); v235 = *((_DWORD **)this + 70); } if ( v235[155] - v235[156] > (int)&elf_hash_bucket[9874] ) { v252 = cocos2d::CCSprite::createWithSpriteFrameName( (cocos2d::CCSprite *)"highObjectIcon_001.png", (const char *)&elf_hash_bucket[9874]); v253 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v252 + 296LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v355, 0.0, 0.5); v253(v252, &v355); (*(void (__fastcall **)(_QWORD, __int64, __int64))(**((_QWORD **)this + 67) + 464LL))( *((_QWORD *)this + 67), v252, 10); (*(void (__fastcall **)(__int64, _BYTE *))(*(_QWORD *)v252 + 184LL))(v252, v353); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v252 + 160LL))(v252, v231); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v354, v230, 0.0); cocos2d::CCPoint::operator+(&v355, v353); cocos2d::CCPoint::operator=(v353, &v355); } if ( (v363 & 1) != 0 ) operator delete(v365); if ( (v358[0] & 1) != 0 ) operator delete(v359); return _stack_chk_guard; }
GD Web Decomp Icon

GD Web Decomp

Raw Source