// // LevelInfoLayer::setupLevelInfo from 0x7e9068 to 0x7e9b34 (2764 bytes) // // 3 xrefs: // > LevelInfoLayer::init @ 0x7eb264 // > LevelInfoLayer::init @ 0x7ec4c8 // > @ 0x9f7f0 // // 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:54:30 +0000 // __int64 __fastcall LevelInfoLayer::setupLevelInfo(LevelInfoLayer *this) { cocos2d::CCObject *v2; // x0 cocos2d::CCDirector *v3; // x0 cocos2d::CCDirector *v4; // x0 const char *v5; // x1 cocos2d::CCObject *v6; // x21 const char *v7; // x1 cocos2d::CCObject *v8; // x22 const char *v9; // x1 const char *v10; // x1 const char *v11; // x2 __int64 v12; // x0 __int64 v13; // x27 void (__fastcall *v14)(__int64, __int64 *); // x28 const char *v15; // x2 __int64 v16; // x0 __int64 v17; // x27 void (__fastcall *v18)(__int64, __int64 *); // x28 const char *v19; // x2 __int64 v20; // x0 __int64 v21; // x27 void (__fastcall *v22)(__int64, __int64 *); // x28 const char *v23; // x2 __int64 v24; // x0 __int64 v25; // x27 void (__fastcall *v26)(__int64, __int64 *); // x28 const char *v27; // x2 __int64 v28; // x0 __int64 v29; // x25 void (__fastcall *v30)(__int64, __int64 *); // x26 GJGameLevel *v31; // x0 _BOOL4 v32; // w25 int isPlatformer; // w26 float v34; // s9 float v35; // s8 float v36; // s11 void (__fastcall *v37)(cocos2d::CCObject *, __int64 *); // x27 void (__fastcall *v38)(cocos2d::CCObject *, __int64 *); // x27 __int64 v39; // x27 cocos2d::CCObject *v40; // x0 __int64 (__fastcall *v41)(cocos2d::CCObject *); // x1 void (__fastcall *v42)(__int64, __int64 *); // x22 __int64 v43; // x0 __int64 v44; // x22 void (__fastcall *v45)(__int64, __int64 *); // x27 __int64 v46; // x22 void (__fastcall *v47)(__int64, __int64 *); // x27 __int64 v48; // x22 void (__fastcall *v49)(__int64, __int64 *); // x27 __int64 v50; // x0 void (__fastcall *v51)(cocos2d::CCObject *, __int64 *); // x22 void (__fastcall *v52)(cocos2d::CCObject *, __int64 *); // x22 float v53; // s13 __int64 v54; // x27 void (__fastcall *v55)(__int64, __int64 *); // x28 __int64 v56; // x0 __int64 v57; // x27 void (__fastcall *v58)(__int64, __int64 *); // x28 __int64 v59; // x27 void (__fastcall *v60)(__int64, __int64 *); // x28 __int64 v61; // x27 void (__fastcall *v62)(__int64, __int64 *); // x28 __int64 v63; // x27 void (__fastcall *v64)(__int64, __int64 *); // x28 __int64 v65; // x0 __int64 v66; // x0 __int64 v67; // x3 const char *v68; // x1 char *v69; // x0 __int64 v70; // x0 __int64 v71; // x2 __int64 v72; // x26 void (__fastcall *v73)(__int64, __int64 *); // x27 const char *v74; // x2 __int64 v75; // x0 __int64 v76; // x2 __int64 v77; // x26 void (__fastcall *v78)(__int64, __int64 *); // x27 __int64 v79; // x26 void (__fastcall *v80)(__int64, __int64 *); // x27 __int64 v81; // x28 unsigned int v82; // w20 unsigned int v83; // w1 __int64 v84; // x0 const char *v86; // x1 __int64 v87; // x25 GameStatsManager *v88; // x0 GameStatsManager *v89; // x0 GameStatsManager *BaseDiamonds; // x0 unsigned int v91; // w26 GameStatsManager *v92; // x0 unsigned int AwardedDiamondsForLevel; // w27 cocos2d::CCString *v94; // x0 const char *CString; // x0 size_t v96; // x0 const char *v97; // x2 cocos2d::CCLabelBMFont *v98; // x0 __int64 v99; // x24 void (__fastcall *v100)(__int64, __int64 *); // x28 float v101; // s8 float v102; // s0 void (__fastcall *v103)(__int64, __int64 *); // x28 float v104; // s0 float v105; // s1 void (__fastcall *v106)(__int64, __int64 *); // x22 __int64 v107; // x25 void (__fastcall *v108)(__int64, __int64 *); // x3 __int64 v109; // [xsp+98h] [xbp+98h] char *v110; // [xsp+98h] [xbp+98h] __int64 v111; // [xsp+A8h] [xbp+A8h] BYREF _BYTE v112[8]; // [xsp+B0h] [xbp+B0h] BYREF __int64 v113; // [xsp+B8h] [xbp+B8h] BYREF __int64 v114[2]; // [xsp+C0h] [xbp+C0h] BYREF void *v115; // [xsp+D0h] [xbp+D0h] v2 = (cocos2d::CCObject *)cocos2d::CCArray::create(_stack_chk_guard); *((_QWORD *)this + 85) = v2; v3 = (cocos2d::CCDirector *)cocos2d::CCObject::retain(v2); v4 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v3); cocos2d::CCDirector::getWinSize(&v111, v4); v6 = (cocos2d::CCObject *)cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_timeIcon_001.png", v5); v8 = (cocos2d::CCObject *)cocos2d::CCSprite::createWithSpriteFrameName( (cocos2d::CCSprite *)"GJ_downloadsIcon_001.png", v7); *((_QWORD *)this + 79) = cocos2d::CCSprite::createWithSpriteFrameName( (cocos2d::CCSprite *)"currencyOrbIcon_001.png", v9); *((_QWORD *)this + 78) = cocos2d::CCSprite::createWithSpriteFrameName( (cocos2d::CCSprite *)"GJ_likesIcon_001.png", v10); v12 = cocos2d::CCLabelBMFont::create((cocos2d::CCLabelBMFont *)&byte_11E1A70, "bigFont.fnt", v11); *((_QWORD *)this + 70) = v12; (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v12 + 160LL))(v12, 0.5); v13 = *((_QWORD *)this + 70); v14 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v13 + 296LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v113, 0.0, 0.5); v14(v13, &v113); v16 = cocos2d::CCLabelBMFont::create((cocos2d::CCLabelBMFont *)&byte_11E1A70, "bigFont.fnt", v15); *((_QWORD *)this + 71) = v16; (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v16 + 160LL))(v16, 0.5); v17 = *((_QWORD *)this + 71); v18 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v17 + 296LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v113, 0.0, 0.5); v18(v17, &v113); v20 = cocos2d::CCLabelBMFont::create((cocos2d::CCLabelBMFont *)&byte_11E1A70, "bigFont.fnt", v19); *((_QWORD *)this + 72) = v20; (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v20 + 160LL))(v20, 0.5); v21 = *((_QWORD *)this + 72); v22 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v21 + 296LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v113, 0.0, 0.5); v22(v21, &v113); v24 = cocos2d::CCLabelBMFont::create((cocos2d::CCLabelBMFont *)&byte_11E1A70, "bigFont.fnt", v23); *((_QWORD *)this + 73) = v24; (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v24 + 160LL))(v24, 0.5); v25 = *((_QWORD *)this + 73); v26 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v25 + 296LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v113, 0.0, 0.5); v26(v25, &v113); v28 = cocos2d::CCLabelBMFont::create((cocos2d::CCLabelBMFont *)&byte_11E1A70, "bigFont.fnt", v27); *((_QWORD *)this + 74) = v28; (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v28 + 160LL))(v28, 0.5); v29 = *((_QWORD *)this + 74); v30 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v29 + 296LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v113, 0.0, 0.5); v30(v29, &v113); cocos2d::CCArray::addObject(*((cocos2d::CCArray **)this + 85), v6); cocos2d::CCArray::addObject(*((cocos2d::CCArray **)this + 85), v8); cocos2d::CCArray::addObject(*((cocos2d::CCArray **)this + 85), *((cocos2d::CCObject **)this + 79)); cocos2d::CCArray::addObject(*((cocos2d::CCArray **)this + 85), *((cocos2d::CCObject **)this + 78)); cocos2d::CCArray::addObject(*((cocos2d::CCArray **)this + 85), *((cocos2d::CCObject **)this + 72)); cocos2d::CCArray::addObject(*((cocos2d::CCArray **)this + 85), *((cocos2d::CCObject **)this + 70)); cocos2d::CCArray::addObject(*((cocos2d::CCArray **)this + 85), *((cocos2d::CCObject **)this + 71)); cocos2d::CCArray::addObject(*((cocos2d::CCArray **)this + 85), *((cocos2d::CCObject **)this + 73)); cocos2d::CCArray::addObject(*((cocos2d::CCArray **)this + 85), *((cocos2d::CCObject **)this + 74)); (*(void (__fastcall **)(LevelInfoLayer *, cocos2d::CCObject *))(*(_QWORD *)this + 456LL))(this, v6); (*(void (__fastcall **)(LevelInfoLayer *, cocos2d::CCObject *))(*(_QWORD *)this + 456LL))(this, v8); (*(void (__fastcall **)(LevelInfoLayer *, _QWORD))(*(_QWORD *)this + 456LL))(this, *((_QWORD *)this + 79)); (*(void (__fastcall **)(LevelInfoLayer *, _QWORD))(*(_QWORD *)this + 456LL))(this, *((_QWORD *)this + 78)); (*(void (__fastcall **)(LevelInfoLayer *, _QWORD))(*(_QWORD *)this + 456LL))(this, *((_QWORD *)this + 72)); (*(void (__fastcall **)(LevelInfoLayer *, _QWORD))(*(_QWORD *)this + 456LL))(this, *((_QWORD *)this + 70)); (*(void (__fastcall **)(LevelInfoLayer *, _QWORD))(*(_QWORD *)this + 456LL))(this, *((_QWORD *)this + 71)); (*(void (__fastcall **)(LevelInfoLayer *, _QWORD))(*(_QWORD *)this + 456LL))(this, *((_QWORD *)this + 73)); (*(void (__fastcall **)(LevelInfoLayer *, _QWORD))(*(_QWORD *)this + 456LL))(this, *((_QWORD *)this + 74)); v31 = *((GJGameLevel **)this + 63); v32 = *((_DWORD *)v31 + 237) - *((_DWORD *)v31 + 238) > 0; isPlatformer = (unsigned __int8)GJGameLevel::isPlatformer(v31); v34 = (float)(*(float *)&v111 * 0.5) + 80.0; v35 = (float)(*((float *)&v111 + 1) * 0.5) + 51.0; if ( v32 ) { v36 = 28.0; v35 = v35 + 10.0; } else { v36 = 30.0; } *((float *)this + 172) = 10.0; v37 = *(void (__fastcall **)(cocos2d::CCObject *, __int64 *))(*(_QWORD *)v8 + 296LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v113, 0.0, 0.5); v37(v8, &v113); v38 = *(void (__fastcall **)(cocos2d::CCObject *, __int64 *))(*(_QWORD *)v8 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v113, v34, v35 + v36); v38(v8, &v113); v39 = *((_QWORD *)this + 72); v40 = v8; v41 = *(__int64 (__fastcall **)(cocos2d::CCObject *))(*(_QWORD *)v8 + 192LL); v42 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v39 + 184LL); v43 = v41(v40); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v113, v34 + 33.0, *(float *)(v43 + 4)); v42(v39, &v113); v44 = *((_QWORD *)this + 78); v45 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v44 + 296LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v113, 0.0, 0.5); v45(v44, &v113); v46 = *((_QWORD *)this + 78); v47 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v46 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v113, v34, v35 + 1.0); v47(v46, &v113); v48 = *((_QWORD *)this + 73); v49 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v48 + 184LL); v50 = (*(__int64 (__fastcall **)(_QWORD))(**((_QWORD **)this + 78) + 192LL))(*((_QWORD *)this + 78)); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v113, v34 + 33.0, *(float *)(v50 + 4)); v49(v48, &v113); v51 = *(void (__fastcall **)(cocos2d::CCObject *, __int64 *))(*(_QWORD *)v6 + 296LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v113, 0.0, 0.5); v51(v6, &v113); v52 = *(void (__fastcall **)(cocos2d::CCObject *, __int64 *))(*(_QWORD *)v6 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v113, v34, v35 - v36); v52(v6, &v113); v53 = 0.0; if ( isPlatformer ) v53 = 6.0; v54 = *((_QWORD *)this + 70); v55 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v54 + 184LL); v56 = (*(__int64 (__fastcall **)(cocos2d::CCObject *))(*(_QWORD *)v6 + 192LL))(v6); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v113, v34 + 33.0, v53 + *(float *)(v56 + 4)); v55(v54, &v113); v57 = *((_QWORD *)this + 71); v58 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v57 + 184LL); v109 = (*(__int64 (__fastcall **)(_QWORD))(**((_QWORD **)this + 70) + 192LL))(*((_QWORD *)this + 70)); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v112, 0.0, -14.0); cocos2d::CCPoint::operator+(&v113, v109); v58(v57, &v113); v59 = *((_QWORD *)this + 79); v60 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v59 + 296LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v113, 0.0, 0.5); v60(v59, &v113); v61 = *((_QWORD *)this + 79); v62 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v61 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v113, v34 + 1.0, v35 - (float)(v36 * 2.0)); v62(v61, &v113); v63 = *((_QWORD *)this + 74); v64 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v63 + 184LL); v65 = (*(__int64 (__fastcall **)(_QWORD))(**((_QWORD **)this + 79) + 192LL))(*((_QWORD *)this + 79)); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v113, v34 + 33.0, *(float *)(v65 + 4)); v64(v63, &v113); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v113, (float)(*(float *)&v111 * 0.5) + -100.0, v35 + 5.0); cocos2d::CCPoint::operator=((char *)this + 692, &v113); v66 = GJDifficultySprite::create(1, 1); v67 = *(_QWORD *)this; *((_QWORD *)this + 82) = v66; (*(void (__fastcall **)(LevelInfoLayer *))(v67 + 464))(this); (*(void (__fastcall **)(_QWORD, char *))(**((_QWORD **)this + 82) + 184LL))( *((_QWORD *)this + 82), (char *)this + 692); if ( isPlatformer ) v69 = "moon_small01_001.png"; else v69 = "star_small01_001.png"; v70 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)v69, v68); v71 = *(_QWORD *)this; *((_QWORD *)this + 83) = v70; (*(void (__fastcall **)(LevelInfoLayer *))(v71 + 456))(this); v72 = *((_QWORD *)this + 83); v73 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v72 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v112, 8.0, -30.0); cocos2d::CCPoint::operator+(&v113, (char *)this + 692); v73(v72, &v113); v75 = cocos2d::CCLabelBMFont::create((cocos2d::CCLabelBMFont *)"0", "bigFont.fnt", v74); v76 = *(_QWORD *)this; *((_QWORD *)this + 84) = v75; (*(void (__fastcall **)(LevelInfoLayer *))(v76 + 456))(this); v77 = *((_QWORD *)this + 84); v78 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v77 + 296LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v113, 1.0, 0.5); v78(v77, &v113); v79 = *((_QWORD *)this + 84); v80 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v79 + 184LL); v81 = (*(__int64 (__fastcall **)(_QWORD))(**((_QWORD **)this + 83) + 192LL))(*((_QWORD *)this + 83)); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v112, -8.0, 0.0); cocos2d::CCPoint::operator+(&v113, v81); v80(v79, &v113); (*(void (__fastcall **)(_QWORD, float))(**((_QWORD **)this + 84) + 160LL))(*((_QWORD *)this + 84), 0.4); *((_DWORD *)this + 175) = *(_DWORD *)((*(__int64 (__fastcall **)(_QWORD))(**((_QWORD **)this + 84) + 192LL))(*((_QWORD *)this + 84)) + 4); if ( v32 && (unsigned __int8)GJGameLevel::levelHasDiamonds(*((GJGameLevel **)this + 63)) ) { v87 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"diamond_small01_001.png", v86); v88 = (GameStatsManager *)(*(__int64 (__fastcall **)(LevelInfoLayer *, __int64))(*(_QWORD *)this + 456LL))( this, v87); v89 = (GameStatsManager *)GameStatsManager::sharedState(v88); BaseDiamonds = (GameStatsManager *)GameStatsManager::getBaseDiamonds( v89, *(_DWORD *)(*((_QWORD *)this + 63) + 948LL) - *(_DWORD *)(*((_QWORD *)this + 63) + 952LL)); v91 = (unsigned int)BaseDiamonds; v92 = (GameStatsManager *)GameStatsManager::sharedState(BaseDiamonds); AwardedDiamondsForLevel = GameStatsManager::getAwardedDiamondsForLevel(v92, *((GJGameLevel **)this + 63)); v94 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"%i/%i", (const char *)AwardedDiamondsForLevel, v91); CString = (const char *)cocos2d::CCString::getCString(v94); v114[0] = 0; v110 = (char *)CString; v114[1] = 0; v115 = nullptr; v96 = strlen(CString); std::string::__init(v114, v110, v96); if ( (v114[0] & 1) != 0 ) v98 = (cocos2d::CCLabelBMFont *)v115; else v98 = (cocos2d::CCLabelBMFont *)((char *)v114 + 1); v99 = cocos2d::CCLabelBMFont::create(v98, "bigFont.fnt", v97); (*(void (__fastcall **)(LevelInfoLayer *, __int64))(*(_QWORD *)this + 456LL))(this, v99); v100 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v99 + 296LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v113, 1.0, 0.5); v100(v99, &v113); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v99 + 160LL))(v99, 0.35); v101 = *(float *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v99 + 328LL))(v99); v102 = (*(float (__fastcall **)(__int64))(*(_QWORD *)v99 + 168LL))(v99); v103 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v87 + 184LL); v104 = (float)((float)(v101 * v102) * 0.5) + 2.0; if ( *(_DWORD *)(*((_QWORD *)this + 63) + 948LL) - *(_DWORD *)(*((_QWORD *)this + 63) + 952LL) == 10 ) v105 = -48.5; else v105 = -44.5; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v112, v104, v105); cocos2d::CCPoint::operator+(&v113, (char *)this + 692); v103(v87, &v113); v106 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v99 + 184LL); v107 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v87 + 192LL))(v87); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v112, -8.0, 0.0); cocos2d::CCPoint::operator+(&v113, v107); v106(v99, &v113); if ( v91 == AwardedDiamondsForLevel ) { v108 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v99 + 1072LL); LOWORD(v113) = -156; BYTE2(v113) = -1; v108(v99, &v113); } if ( (v114[0] & 1) != 0 ) operator delete(v115); } v82 = 0; if ( *((_BYTE *)this + 704) ) { while ( v82 < (unsigned int)cocos2d::CCArray::count(*((cocos2d::CCArray **)this + 85)) ) { v83 = v82++; v84 = cocos2d::CCArray::objectAtIndex(*((cocos2d::CCArray **)this + 85), v83); (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v84 + 344LL))(v84, 0); } (*(void (__fastcall **)(_QWORD, _QWORD))(**((_QWORD **)this + 79) + 344LL))(*((_QWORD *)this + 79), 0); (*(void (__fastcall **)(_QWORD, _QWORD))(**((_QWORD **)this + 74) + 344LL))(*((_QWORD *)this + 74), 0); } LevelInfoLayer::updateLabelValues(this); return _stack_chk_guard; }
GD Web Decomp Icon

GD Web Decomp

Raw Source