// // LevelPage::updateDynamicPage from 0x8c70f4 to 0x8c8110 (4124 bytes) // // 2 xrefs: // > LevelSelectLayer::updatePageWithObject @ 0x8c8154 // > @ 0xe3758 // // 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:56:35 +0000 // __int64 __fastcall LevelPage::updateDynamicPage(LevelPage *this, GJGameLevel *a2) { cocos2d::CCObject *v4; // x0 unsigned int i; // w20 unsigned int v6; // w1 __int64 v7; // x0 bool v8; // cf cocos2d::CCArray *v9; // x0 unsigned int v10; // w20 cocos2d::CCDirector *v11; // x0 cocos2d::CCDirector *v12; // x0 int v13; // w0 unsigned int v14; // w1 __int64 v15; // x0 unsigned int j; // w20 unsigned int v17; // w1 __int64 v18; // x0 float v19; // s9 float v20; // s2 float *v21; // x20 void (__fastcall *v22)(float *, _QWORD *); // x23 float v23; // s0 float v24; // s2 float *v25; // x23 void (__fastcall *v26)(float *, _QWORD *); // x24 unsigned int NormalPercent; // w0 cocos2d::CCString *v28; // x0 __int64 CString; // x0 cocos2d::CCString *v30; // x0 __int64 v31; // x0 GameStatsManager *v32; // x0 GameStatsManager *v33; // x0 unsigned int Stat; // w26 unsigned int v35; // w27 __int64 v36; // x23 __int64 v37; // x2 void (__fastcall *v38)(__int64, char *); // x24 __int64 v39; // x1 char *v40; // x1 float v41; // s0 __int64 v42; // x20 void (__fastcall *v43)(__int64); // x23 int v44; // w0 cocos2d::CCString *v45; // x0 __int64 v46; // x0 cocos2d::CCSpriteFrameCache **v47; // x20 void (__fastcall *v48)(cocos2d::CCSpriteFrameCache **, __int64); // x23 cocos2d::CCSpriteFrameCache *v49; // x0 __int64 v50; // x0 float *v51; // x0 float v52; // s10 float v53; // s10 float v54; // s8 float v55; // s0 __int64 v56; // x20 void (__fastcall *v57)(__int64, _QWORD *); // x23 __int64 v58; // x20 void (__fastcall *v59)(__int64, _QWORD *); // x23 float *v60; // x0 __int64 v61; // x20 __int64 (__fastcall *v62)(__int64, __int64); // x23 cocos2d::CCString *v63; // x0 __int64 v64; // x0 GameStatsManager *v65; // x0 GameStatsManager *v66; // x0 __int64 v67; // x0 void (__fastcall *v68)(__int64, _QWORD *); // x3 __int64 v69; // x20 GameStatsManager *v70; // x0 GameStatsManager *v71; // x25 const char *CoinKey; // x0 cocos2d::CCSpriteFrameCache **v73; // x25 void (__fastcall *v74)(cocos2d::CCSpriteFrameCache **, __int64); // x28 cocos2d::CCSpriteFrameCache *v75; // x0 __int64 v76; // x0 __int64 (__fastcall *v77)(cocos2d::CCSpriteFrameCache **, _QWORD *); // x3 unsigned int v78; // w20 unsigned int v79; // w1 __int64 v80; // x0 const char *v81; // x1 cocos2d::CCObject *v82; // x23 void (__fastcall *v83)(cocos2d::CCObject *, _QWORD *); // x20 const char *v84; // x1 cocos2d::CCObject *v85; // x20 void (__fastcall *v86)(cocos2d::CCObject *, _QWORD *); // x25 cocos2d::CCString *v87; // x0 cocos2d::CCLabelBMFont *v88; // x0 const char *v89; // x2 cocos2d::CCObject *v90; // x26 void (__fastcall *v91)(cocos2d::CCObject *, _QWORD *); // x25 void (__fastcall *v92)(cocos2d::CCObject *, _QWORD *); // x25 __int64 v93; // x27 __int64 v94; // x1 float v96; // s9 void (__fastcall *v97)(cocos2d::CCSpriteFrameCache **, __int64); // x28 cocos2d::CCSpriteFrameCache *v98; // x0 __int64 v99; // x0 unsigned int v100; // w20 unsigned int v101; // w1 __int64 v102; // x0 const char *v103; // x2 cocos2d::CCObject *v104; // x20 void (__fastcall *v105)(cocos2d::CCObject *, _QWORD *); // x21 unsigned int v106; // w1 __int64 v107; // x0 const char *v108; // x1 cocos2d::CCNode *v109; // x25 cocos2d::CCMenu *v110; // x0 cocos2d::CCMenuItem *v111; // x1 cocos2d::CCObject *v112; // x23 void (__fastcall *v113)(cocos2d::CCObject *, _QWORD *); // x24 const char *v114; // x1 __int64 v115; // x23 void (__fastcall *v116)(__int64, _QWORD *); // x24 __int64 v117; // x0 const cocos2d::CCPoint *v118; // x1 cocos2d::CCEaseInOut *v119; // x0 cocos2d::CCActionInterval *v120; // x1 cocos2d::CCSequence *v121; // x23 const cocos2d::CCPoint *v122; // x1 cocos2d::CCEaseInOut *v123; // x0 cocos2d::CCActionInterval *v124; // x1 cocos2d::CCFiniteTimeAction *v125; // x0 cocos2d::CCRepeatForever *v126; // x0 cocos2d::CCActionInterval *v127; // x1 cocos2d::CCAction *v128; // x0 cocos2d::CCParticleSystem *v129; // x23 void (__fastcall *v130)(cocos2d::CCParticleSystem *, _QWORD *); // x20 float v131; // s8 __int64 v132; // x0 cocos2d::CCParticleSystem *v133; // x24 void (__fastcall *v134)(cocos2d::CCParticleSystem *, _QWORD *); // x20 float v135; // s8 __int64 v136; // x0 cocos2d::CCParticleSystem *v137; // x20 void (__fastcall *v138)(cocos2d::CCParticleSystem *, _QWORD *); // x26 float v139; // s8 __int64 v140; // x0 int v141; // w20 __int64 v142; // x20 void (__fastcall *v143)(__int64, float); // x23 float *v144; // x0 GameStatsManager *v145; // x0 GameStatsManager *BaseCurrencyForLevel; // x0 int v147; // w20 GameStatsManager *v148; // x0 unsigned int AwardedCurrencyForLevel; // w24 const char *v150; // x1 cocos2d::CCObject *v151; // x23 cocos2d::CCString *v152; // x0 cocos2d::CCLabelBMFont *v153; // x0 const char *v154; // x2 cocos2d::CCObject *v155; // x20 void (__fastcall *v156)(cocos2d::CCObject *, _QWORD *); // x24 void (__fastcall *v157)(cocos2d::CCObject *, _QWORD *); // x24 void (__fastcall *v158)(cocos2d::CCObject *, _QWORD *); // x24 float v159; // s10 float v160; // s8 __int64 v161; // x0 const char *v162; // [xsp+A0h] [xbp+A0h] float v163; // [xsp+A0h] [xbp+A0h] float v164; // [xsp+A0h] [xbp+A0h] __int64 v165; // [xsp+B0h] [xbp+B0h] BYREF _BYTE v166[8]; // [xsp+B8h] [xbp+B8h] BYREF _QWORD v167[2]; // [xsp+C0h] [xbp+C0h] BYREF __int64 v168[2]; // [xsp+D0h] [xbp+D0h] BYREF void *v169; // [xsp+E0h] [xbp+E0h] __int64 v170[2]; // [xsp+E8h] [xbp+E8h] BYREF void *v171; // [xsp+F8h] [xbp+F8h] __int64 v172; // [xsp+100h] [xbp+100h] BYREF __int64 v173; // [xsp+108h] [xbp+108h] void *v174; // [xsp+110h] [xbp+110h] if ( !*((_BYTE *)this + 416) ) { v4 = *((cocos2d::CCObject **)this + 53); if ( v4 ) { if ( *((_DWORD *)a2 + 82) - *((_DWORD *)a2 + 83) == *((_DWORD *)v4 + 82) - *((_DWORD *)v4 + 83) ) return _stack_chk_guard; cocos2d::CCObject::release(v4); *((_QWORD *)this + 53) = 0; } for ( i = 0; ; ++i ) { v8 = i >= (unsigned int)cocos2d::CCArray::count(*((cocos2d::CCArray **)this + 67)); v9 = *((cocos2d::CCArray **)this + 67); if ( v8 ) break; v6 = i; v7 = cocos2d::CCArray::objectAtIndex(v9, v6); (*(void (__fastcall **)(__int64))(*(_QWORD *)v7 + 520LL))(v7); } cocos2d::CCArray::removeAllObjects(v9); *((_QWORD *)this + 71) = 0; *((_QWORD *)this + 53) = a2; v10 = 0; v11 = (cocos2d::CCDirector *)cocos2d::CCObject::retain(a2); v12 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v11); cocos2d::CCDirector::getWinSize(&v165, v12); v13 = *(_DWORD *)(*((_QWORD *)this + 53) + 328LL) - *(_DWORD *)(*((_QWORD *)this + 53) + 332LL); if ( v13 > 0 ) { while ( v10 < (unsigned int)cocos2d::CCArray::count(*((cocos2d::CCArray **)this + 69)) ) { v14 = v10++; v15 = cocos2d::CCArray::objectAtIndex(*((cocos2d::CCArray **)this + 69), v14); (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v15 + 344LL))(v15, 1); } for ( j = 0; j < (unsigned int)cocos2d::CCArray::count(*((cocos2d::CCArray **)this + 68)); ++j ) { v17 = j; v18 = cocos2d::CCArray::objectAtIndex(*((cocos2d::CCArray **)this + 68), v17); (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v18 + 344LL))(v18, 1); } v19 = *((float *)this + 120); if ( v19 > (float)(v19 * (float)((float)(int)GJGameLevel::getNormalPercent(*((GJGameLevel **)this + 53)) / 100.0)) ) { v96 = *((float *)this + 120); v20 = v96 * (float)((float)(int)GJGameLevel::getNormalPercent(*((GJGameLevel **)this + 53)) / 100.0); } else { v20 = *((float *)this + 120); } v21 = *((float **)this + 61); v22 = *(void (__fastcall **)(float *, _QWORD *))(*(_QWORD *)v21 + 1136LL); cocos2d::CCRect::CCRect((cocos2d::CCRect *)v167, 0.0, 0.0, v20, v21[109]); v22(v21, v167); v23 = *((float *)this + 120); v24 = v23 * (float)((float)*(int *)(*((_QWORD *)this + 53) + 888LL) / 100.0); if ( v23 <= v24 ) v24 = *((float *)this + 120); v25 = *((float **)this + 62); v26 = *(void (__fastcall **)(float *, _QWORD *))(*(_QWORD *)v25 + 1136LL); cocos2d::CCRect::CCRect((cocos2d::CCRect *)v167, 0.0, 0.0, v24, v25[109]); v26(v25, v167); NormalPercent = GJGameLevel::getNormalPercent(*((GJGameLevel **)this + 53)); v28 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"%i%%", (const char *)NormalPercent); CString = cocos2d::CCString::getCString(v28); (*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 56) + 928LL))(*((_QWORD *)this + 56), CString); v30 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"%i%%", (const char *)*(unsigned int *)(*((_QWORD *)this + 53) + 888LL)); v31 = cocos2d::CCString::getCString(v30); v32 = (GameStatsManager *)(*(__int64 (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 57) + 928LL))( *((_QWORD *)this + 57), v31); v33 = (GameStatsManager *)GameStatsManager::sharedState(v32); Stat = GameStatsManager::getStat(v33, "8"); v35 = *(_DWORD *)(*((_QWORD *)this + 53) + 1108LL); (*(void (__fastcall **)(_QWORD, float))(**((_QWORD **)this + 58) + 160LL))(*((_QWORD *)this + 58), 1.0); v36 = *((_QWORD *)this + 58); v37 = *((_QWORD *)this + 53) + 344LL; v38 = *(void (__fastcall **)(__int64, char *))(*(_QWORD *)v36 + 928LL); v172 = 0; v173 = 0; v174 = nullptr; if ( (*(_BYTE *)v37 & 1) != 0 ) { std::string::__init(&v172, *(void **)(v37 + 16), *(_QWORD *)(v37 + 8)); } else { v39 = *(_QWORD *)(v37 + 8); v172 = *(_QWORD *)v37; v173 = v39; v174 = *(void **)(v37 + 16); } v40 = (char *)&v172 + 1; if ( (v172 & 1) != 0 ) v40 = (char *)v174; v38(v36, v40); if ( (v172 & 1) != 0 ) operator delete(v174); v41 = *(float *)(*(__int64 (__fastcall **)(_QWORD))(**((_QWORD **)this + 58) + 328LL))(*((_QWORD *)this + 58)); if ( v41 > 250.0 ) { v142 = *((_QWORD *)this + 58); v143 = *(void (__fastcall **)(__int64, float))(*(_QWORD *)v142 + 160LL); v144 = (float *)(*(__int64 (__fastcall **)(__int64, float))(*(_QWORD *)v142 + 328LL))(v142, v41); v143(v142, 250.0 / *v144); } v42 = *((_QWORD *)this + 58); v43 = *(void (__fastcall **)(__int64))(*(_QWORD *)v42 + 160LL); if ( (*(float (__fastcall **)(__int64))(*(_QWORD *)v42 + 168LL))(v42) <= 1.0 ) { v42 = *((_QWORD *)this + 58); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v42 + 168LL))(v42, 1.0); } v43(v42); v44 = *(_DWORD *)(*((_QWORD *)this + 53) + 600LL); if ( v44 <= 0 ) { v45 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"diffIcon_%02d_btn_001.png", (_BYTE *)&dword_0 + 1); } else if ( v44 > 6 ) { v45 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"diffIcon_%02d_btn_001.png", &byte_6); } else { v45 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"diffIcon_%02d_btn_001.png", (const char *)(unsigned int)v44); } v46 = cocos2d::CCString::getCString(v45); v47 = *((cocos2d::CCSpriteFrameCache ***)this + 63); v162 = (const char *)v46; v48 = *((void (__fastcall **)(cocos2d::CCSpriteFrameCache **, __int64))*v47 + 145); v49 = (cocos2d::CCSpriteFrameCache *)cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(*v47); v50 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v49, v162); v48(v47, v50); v51 = *((float **)this + 63); v52 = v51[108]; v53 = v52 * (*(float (__fastcall **)(float *))(*(_QWORD *)v51 + 168LL))(v51); v54 = *(float *)(*(__int64 (__fastcall **)(_QWORD))(**((_QWORD **)this + 58) + 328LL))(*((_QWORD *)this + 58)); v55 = (*(float (__fastcall **)(_QWORD))(**((_QWORD **)this + 58) + 168LL))(*((_QWORD *)this + 58)); v56 = *((_QWORD *)this + 63); v57 = *(void (__fastcall **)(__int64, _QWORD *))(*(_QWORD *)v56 + 184LL); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)v167, (float)(v53 * 0.5) - (float)((float)((float)((float)((float)((float)(v54 * v55) + 5.0) + (float)(v53 * 0.5)) + 30.0) * 0.5) - (float)(*((float *)this + 130) * 0.5)), (float)(*((float *)this + 131) * 0.5) + 3.0); v57(v56, v167); v58 = *((_QWORD *)this + 58); v59 = *(void (__fastcall **)(__int64, _QWORD *))(*(_QWORD *)v58 + 184LL); v60 = (float *)(*(__int64 (__fastcall **)(_QWORD))(**((_QWORD **)this + 63) + 192LL))(*((_QWORD *)this + 63)); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v167, *v60 + 30.0, (float)(*((float *)this + 131) * 0.5) + 3.0); v59(v58, v167); v61 = *((_QWORD *)this + 59); v62 = *(__int64 (__fastcall **)(__int64, __int64))(*(_QWORD *)v61 + 928LL); v63 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"%i", (const char *)(unsigned int)(*(_DWORD *)(*((_QWORD *)this + 53) + 948LL) - *(_DWORD *)(*((_QWORD *)this + 53) + 952LL))); v64 = cocos2d::CCString::getCString(v63); v65 = (GameStatsManager *)v62(v61, v64); v66 = (GameStatsManager *)GameStatsManager::sharedState(v65); if ( (unsigned __int8)GameStatsManager::hasCompletedStarLevel(v66, *((GJGameLevel **)this + 53)) ) { v67 = *((_QWORD *)this + 59); v68 = *(void (__fastcall **)(__int64, _QWORD *))(*(_QWORD *)v67 + 1072LL); LOWORD(v167[0]) = -1; BYTE2(v167[0]) = 50; v68(v67, v167); } else { (*(void (__fastcall **)(_QWORD, __int64 *))(**((_QWORD **)this + 59) + 1072LL))( *((_QWORD *)this + 59), &qword_114D838); } v69 = 0; v70 = (GameStatsManager *)"GJ_coinsIcon_001.png"; do { v71 = (GameStatsManager *)GameStatsManager::sharedState(v70); CoinKey = (const char *)GJGameLevel::getCoinKey(*((GJGameLevel **)this + 53), (int)v69 + 1); if ( (unsigned __int8)GameStatsManager::hasSecretCoin(v71, CoinKey) ) { v73 = (cocos2d::CCSpriteFrameCache **)cocos2d::CCArray::objectAtIndex(*((cocos2d::CCArray **)this + 66), v69); v74 = *((void (__fastcall **)(cocos2d::CCSpriteFrameCache **, __int64))*v73 + 145); v75 = (cocos2d::CCSpriteFrameCache *)cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(*v73); v76 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v75, "GJ_coinsIcon_001.png"); v74(v73, v76); v77 = *((__int64 (__fastcall **)(cocos2d::CCSpriteFrameCache **, _QWORD *))*v73 + 120); LOWORD(v167[0]) = -1; BYTE2(v167[0]) = -1; } else { v73 = (cocos2d::CCSpriteFrameCache **)cocos2d::CCArray::objectAtIndex(*((cocos2d::CCArray **)this + 66), v69); v97 = *((void (__fastcall **)(cocos2d::CCSpriteFrameCache **, __int64))*v73 + 145); v98 = (cocos2d::CCSpriteFrameCache *)cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(*v73); v99 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v98, "GJ_coinsIcon_gray_001.png"); v97(v73, v99); v77 = *((__int64 (__fastcall **)(cocos2d::CCSpriteFrameCache **, _QWORD *))*v73 + 120); LOWORD(v167[0]) = -7711; BYTE2(v167[0]) = -31; } ++v69; v70 = (GameStatsManager *)v77(v73, v167); } while ( v69 != 3 ); v78 = 0; if ( (int)Stat < (int)v35 ) { while ( v78 < (unsigned int)cocos2d::CCArray::count(*((cocos2d::CCArray **)this + 68)) ) { v79 = v78++; v80 = cocos2d::CCArray::objectAtIndex(*((cocos2d::CCArray **)this + 68), v79); (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v80 + 344LL))(v80, 0); } v82 = (cocos2d::CCObject *)cocos2d::CCSprite::createWithSpriteFrameName( (cocos2d::CCSprite *)"GJLargeLock_001.png", v81); (*(void (__fastcall **)(_QWORD, cocos2d::CCObject *))(**((_QWORD **)this + 55) + 456LL))( *((_QWORD *)this + 55), v82); v83 = *(void (__fastcall **)(cocos2d::CCObject *, _QWORD *))(*(_QWORD *)v82 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v167, *((float *)this + 130) * 0.5, *((float *)this + 131) * 0.5); v83(v82, v167); v85 = (cocos2d::CCObject *)cocos2d::CCSprite::createWithSpriteFrameName( (cocos2d::CCSprite *)"GJ_coinsIcon_001.png", v84); (*(void (__fastcall **)(_QWORD, cocos2d::CCObject *))(**((_QWORD **)this + 55) + 456LL))( *((_QWORD *)this + 55), v85); (*(void (__fastcall **)(cocos2d::CCObject *, float))(*(_QWORD *)v85 + 160LL))(v85, 1.0); v86 = *(void (__fastcall **)(cocos2d::CCObject *, _QWORD *))(*(_QWORD *)v85 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v167, *((float *)this + 130) - 15.0, 15.0); v86(v85, v167); v87 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"%i/%i", (const char *)Stat, v35); v88 = (cocos2d::CCLabelBMFont *)cocos2d::CCString::getCString(v87); v90 = (cocos2d::CCObject *)cocos2d::CCLabelBMFont::create(v88, "bigFont.fnt", v89); (*(void (__fastcall **)(_QWORD, cocos2d::CCObject *))(**((_QWORD **)this + 55) + 456LL))( *((_QWORD *)this + 55), v90); v91 = *(void (__fastcall **)(cocos2d::CCObject *, _QWORD *))(*(_QWORD *)v90 + 296LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v167, 1.0, 0.5); v91(v90, v167); v92 = *(void (__fastcall **)(cocos2d::CCObject *, _QWORD *))(*(_QWORD *)v90 + 184LL); v93 = (*(__int64 (__fastcall **)(cocos2d::CCObject *))(*(_QWORD *)v85 + 192LL))(v85); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v166, -15.0, 0.5); cocos2d::CCPoint::operator+(v167, v93); v92(v90, v167); (*(void (__fastcall **)(cocos2d::CCObject *, float))(*(_QWORD *)v90 + 160LL))(v90, 0.7); cocos2d::CCArray::addObject(*((cocos2d::CCArray **)this + 67), v82); cocos2d::CCArray::addObject(*((cocos2d::CCArray **)this + 67), v85); cocos2d::CCArray::addObject(*((cocos2d::CCArray **)this + 67), v90); } else { v145 = (GameStatsManager *)GameStatsManager::sharedState(v70); BaseCurrencyForLevel = (GameStatsManager *)GameStatsManager::getBaseCurrencyForLevel( v145, *((GJGameLevel **)this + 53)); v147 = (int)BaseCurrencyForLevel; v148 = (GameStatsManager *)GameStatsManager::sharedState(BaseCurrencyForLevel); AwardedCurrencyForLevel = GameStatsManager::getAwardedCurrencyForLevel(v148, *((GJGameLevel **)this + 53)); v151 = (cocos2d::CCObject *)cocos2d::CCSprite::createWithSpriteFrameName( (cocos2d::CCSprite *)"currencyOrbIcon_001.png", v150); (*(void (__fastcall **)(_QWORD, cocos2d::CCObject *))(**((_QWORD **)this + 55) + 456LL))( *((_QWORD *)this + 55), v151); (*(void (__fastcall **)(cocos2d::CCObject *, float))(*(_QWORD *)v151 + 160LL))(v151, 0.7); v152 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"%i/%i", (const char *)AwardedCurrencyForLevel, (unsigned int)(v147 + (int)(float)((float)v147 * 0.25))); v153 = (cocos2d::CCLabelBMFont *)cocos2d::CCString::getCString(v152); v155 = (cocos2d::CCObject *)cocos2d::CCLabelBMFont::create(v153, "bigFont.fnt", v154); (*(void (__fastcall **)(_QWORD, cocos2d::CCObject *))(**((_QWORD **)this + 55) + 456LL))( *((_QWORD *)this + 55), v155); v156 = *(void (__fastcall **)(cocos2d::CCObject *, _QWORD *))(*(_QWORD *)v155 + 296LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v167, 0.0, 0.5); v156(v155, v167); v157 = *(void (__fastcall **)(cocos2d::CCObject *, _QWORD *))(*(_QWORD *)v155 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v167, 8.0, 12.0); v157(v155, v167); (*(void (__fastcall **)(cocos2d::CCObject *, float))(*(_QWORD *)v155 + 160LL))(v155, 0.4); v158 = *(void (__fastcall **)(cocos2d::CCObject *, _QWORD *))(*(_QWORD *)v151 + 184LL); v159 = *(float *)(*(__int64 (__fastcall **)(cocos2d::CCObject *))(*(_QWORD *)v155 + 192LL))(v155); v160 = *(float *)(*(__int64 (__fastcall **)(cocos2d::CCObject *))(*(_QWORD *)v155 + 328LL))(v155); v164 = COERCE_FLOAT(COERCE_UNSIGNED_INT128(((long double (__fastcall *)(cocos2d::CCObject *))*(_QWORD *)(*(_QWORD *)v155 + 168LL))(v155))); v161 = (*(__int64 (__fastcall **)(cocos2d::CCObject *))(*(_QWORD *)v155 + 192LL))(v155); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)v167, (float)(v159 + (float)(v160 * v164)) + 9.0, *(float *)(v161 + 4) - 0.5); v158(v151, v167); cocos2d::CCArray::addObject(*((cocos2d::CCArray **)this + 67), v151); cocos2d::CCArray::addObject(*((cocos2d::CCArray **)this + 67), v155); } } else { v100 = 0; if ( v13 == -2 ) { while ( v100 < (unsigned int)cocos2d::CCArray::count(*((cocos2d::CCArray **)this + 69)) ) { v106 = v100++; v107 = cocos2d::CCArray::objectAtIndex(*((cocos2d::CCArray **)this + 69), v106); (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v107 + 344LL))(v107, 0); } v109 = (cocos2d::CCNode *)cocos2d::CCSprite::createWithSpriteFrameName( (cocos2d::CCSprite *)"theTowerDoor_001.png", v108); v110 = (cocos2d::CCMenu *)CCMenuItemSpriteExtra::create( (__int64)v109, 0, (__int64)this, (__int64)LevelPage::onTheTower, 0); v112 = (cocos2d::CCObject *)cocos2d::CCMenu::createWithItem(v110, v111); (*(void (__fastcall **)(LevelPage *, cocos2d::CCObject *))(*(_QWORD *)this + 456LL))(this, v112); v113 = *(void (__fastcall **)(cocos2d::CCObject *, _QWORD *))(*(_QWORD *)v112 + 184LL); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)v167, *(float *)&v165 * 0.5, (float)(*((float *)&v165 + 1) * 0.5) + -5.0); v113(v112, v167); cocos2d::CCArray::addObject(*((cocos2d::CCArray **)this + 67), v112); v115 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"theTowerLabel_001.png", v114); (*(void (__fastcall **)(cocos2d::CCNode *, __int64))(*(_QWORD *)v109 + 456LL))(v109, v115); v116 = *(void (__fastcall **)(__int64, _QWORD *))(*(_QWORD *)v115 + 184LL); v163 = *(float *)(*(__int64 (__fastcall **)(cocos2d::CCNode *))(*(_QWORD *)v109 + 328LL))(v109) * 0.5; v117 = (*(__int64 (__fastcall **)(cocos2d::CCNode *))(*(_QWORD *)v109 + 328LL))(v109); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v167, v163, *(float *)(v117 + 4) + 23.0); v116(v115, v167); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v167, 0.0, 5.0); v119 = (cocos2d::CCEaseInOut *)cocos2d::CCMoveBy::create((cocos2d::CCMoveBy *)v167, 2.5, v118); v121 = (cocos2d::CCSequence *)cocos2d::CCEaseInOut::create(v119, v120, 1.8); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v167, 0.0, -5.0); v123 = (cocos2d::CCEaseInOut *)cocos2d::CCMoveBy::create((cocos2d::CCMoveBy *)v167, 2.5, v122); v125 = (cocos2d::CCFiniteTimeAction *)cocos2d::CCEaseInOut::create(v123, v124, 1.8); v126 = (cocos2d::CCRepeatForever *)cocos2d::CCSequence::create(v121, v125, 0); v128 = (cocos2d::CCAction *)cocos2d::CCRepeatForever::create(v126, v127); cocos2d::CCNode::runAction(v109, v128); v168[0] = 0; v168[1] = 0; v169 = nullptr; std::string::__init( v168, "30a-1a2.2a0.48a11a90a180a29a0a11a0a0a0a0a0a0a0a5a1a0a0a0.0745098a0a0a0a0.611765a0a1a0a2a1a0a0a0a0a0.937255a0a1" "a0a1a0a0.54a0a0.57a0a56a0a11a0a-25a17a1a2a1a0a0a1a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0", 0xBDu); v129 = (cocos2d::CCParticleSystem *)GameToolbox::particleFromString((__int64)v168, 0, 0); (*(void (__fastcall **)(cocos2d::CCNode *, cocos2d::CCParticleSystem *, __int64))(*(_QWORD *)v109 + 464LL))( v109, v129, 11); (*(void (__fastcall **)(cocos2d::CCParticleSystem *, float))(*(_QWORD *)v129 + 160LL))(v129, 1.0); cocos2d::CCParticleSystem::resetSystem(v129); v130 = *(void (__fastcall **)(cocos2d::CCParticleSystem *, _QWORD *))(*(_QWORD *)v129 + 184LL); v131 = *(float *)(*(__int64 (__fastcall **)(cocos2d::CCNode *))(*(_QWORD *)v109 + 328LL))(v109) * 0.5; v132 = (*(__int64 (__fastcall **)(cocos2d::CCNode *))(*(_QWORD *)v109 + 328LL))(v109); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v167, v131, *(float *)(v132 + 4) * 0.5); v130(v129, v167); v170[0] = 0; v170[1] = 0; v171 = nullptr; std::string::__init( v170, "20a-1a2a0.3a8a90a90a0a2a27a30a0a0a0a0a0a0a75a28a0a360a0a0a0.839216a0a1a0a0.05a0a0a0a0a0a0.184314a0a0a0a1a0a0.0" "5a0a0.73a0a0.71a0a0a0a0a0a0a0a0a2a1a1a0a0a184a0a0a0a0a0a0a1a0a0a0a0a0a0a0", 0xB7u); v133 = (cocos2d::CCParticleSystem *)GameToolbox::particleFromString((__int64)v170, 0, 0); (*(void (__fastcall **)(cocos2d::CCNode *, cocos2d::CCParticleSystem *, __int64))(*(_QWORD *)v109 + 464LL))( v109, v133, 11); (*(void (__fastcall **)(cocos2d::CCParticleSystem *, float))(*(_QWORD *)v133 + 160LL))(v133, 1.0); cocos2d::CCParticleSystem::resetSystem(v133); v134 = *(void (__fastcall **)(cocos2d::CCParticleSystem *, _QWORD *))(*(_QWORD *)v133 + 184LL); v135 = *(float *)(*(__int64 (__fastcall **)(cocos2d::CCNode *))(*(_QWORD *)v109 + 328LL))(v109) * 0.5; v136 = (*(__int64 (__fastcall **)(cocos2d::CCNode *))(*(_QWORD *)v109 + 328LL))(v109); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v167, v135, *(float *)(v136 + 4) * 0.5); v134(v133, v167); v172 = 0; v173 = 0; v174 = nullptr; std::string::__init( &v172, "3a-1a3a0.3a1a90a90a0a2a11a13a0a0a0a0a0a0a15a5a0a0a0a0a0.839216a0a1a0a0.15a0.16a0a0a0a0a0.184314a0a0a0a1a0a0.21" "a0.07a1a0a1a0a0a0a0a0a0a0a0a2a1a1a0a0a34a0a0a0a0a0a0a1a0a0a0a0a0a0a0", 0xB2u); v137 = (cocos2d::CCParticleSystem *)GameToolbox::particleFromString((__int64)&v172, 0, 0); (*(void (__fastcall **)(cocos2d::CCNode *, cocos2d::CCParticleSystem *, __int64))(*(_QWORD *)v109 + 464LL))( v109, v137, 11); (*(void (__fastcall **)(cocos2d::CCParticleSystem *, float))(*(_QWORD *)v137 + 160LL))(v137, 1.0); cocos2d::CCParticleSystem::resetSystem(v137); v138 = *(void (__fastcall **)(cocos2d::CCParticleSystem *, _QWORD *))(*(_QWORD *)v137 + 184LL); v139 = *(float *)(*(__int64 (__fastcall **)(cocos2d::CCNode *))(*(_QWORD *)v109 + 328LL))(v109) * 0.5; v140 = (*(__int64 (__fastcall **)(cocos2d::CCNode *))(*(_QWORD *)v109 + 328LL))(v109); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v167, v139, *(float *)(v140 + 4) * 0.5); v138(v137, v167); v141 = 20; do { (*(void (__fastcall **)(cocos2d::CCParticleSystem *, float))(*(_QWORD *)v129 + 40LL))(v129, 0.1); (*(void (__fastcall **)(cocos2d::CCParticleSystem *, float))(*(_QWORD *)v133 + 40LL))(v133, 0.1); --v141; } while ( v141 ); if ( (v172 & 1) != 0 ) operator delete(v174); if ( (v170[0] & 1) != 0 ) operator delete(v171); if ( (v168[0] & 1) != 0 ) operator delete(v169); } else { while ( v100 < (unsigned int)cocos2d::CCArray::count(*((cocos2d::CCArray **)this + 69)) ) { v101 = v100++; v102 = cocos2d::CCArray::objectAtIndex(*((cocos2d::CCArray **)this + 69), v101); (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v102 + 344LL))(v102, 0); } v104 = (cocos2d::CCObject *)cocos2d::CCLabelBMFont::create( (cocos2d::CCLabelBMFont *)"Coming Soon!", "bigFont.fnt", v103); (*(void (__fastcall **)(LevelPage *, cocos2d::CCObject *))(*(_QWORD *)this + 456LL))(this, v104); v105 = *(void (__fastcall **)(cocos2d::CCObject *, _QWORD *))(*(_QWORD *)v104 + 184LL); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)v167, *(float *)&v165 * 0.5, (float)(*((float *)&v165 + 1) * 0.5) + 50.0); v105(v104, v167); cocos2d::CCArray::addObject(*((cocos2d::CCArray **)this + 67), v104); LevelPage::addSecretDoor(this); } } v94 = *((_QWORD *)this + 70); if ( v94 ) (*(void (__fastcall **)(_QWORD, bool))(*(_QWORD *)v94 + 344LL))( *((_QWORD *)this + 70), *(_DWORD *)(*((_QWORD *)this + 53) + 328LL) - *(_DWORD *)(*((_QWORD *)this + 53) + 332LL) == -1); *((_BYTE *)this + 416) = 0; } return _stack_chk_guard; }
GD Web Decomp Icon

GD Web Decomp

Raw Source