// // GauntletLayer::setupGauntlet from 0x60e1fc to 0x60ec7c (2688 bytes) // // 2 xrefs: // > GauntletLayer::init @ 0x60f130 // > GauntletLayer::loadLevelsFinished @ 0x60f2ee // // This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False! // // 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 11:54:50 +0000 // int __fastcall GauntletLayer::setupGauntlet(int this, cocos2d::CCArray *a2) { cocos2d::CCNode *v2; // r11 cocos2d::CCDirector *v4; // r0 cocos2d::CCMenu *WinSize; // r0 cocos2d::CCSprite *v6; // r5 size_t v7; // r0 size_t i; // r3 unsigned __int8 *v9; // r5 unsigned int v10; // r1 unsigned __int8 *v11; // r4 int v12; // r0 unsigned __int8 *v13; // r6 char *v14; // r1 int v15; // r12 unsigned __int8 *v16; // r0 unsigned __int8 *v17; // r12 char *v18; // r3 int v19; // r8 unsigned __int8 *v20; // lr char *v21; // r8 int v22; // t1 size_t v23; // r8 unsigned int v24; // r2 char *v25; // r3 size_t v26; // r1 int v27; // r3 unsigned int j; // r3 GameStatsManager *v29; // r4 GameStatsManager *v30; // r0 float v31; // s17 int v32; // r0 int v33; // r10 int v34; // r3 float v35; // r2 int v36; // r1 int *v37; // r6 _DWORD *v38; // r5 int (__fastcall *v39)(_DWORD *, _BYTE *); // r9 float v40; // r2 cocos2d::CCNode *v41; // r0 int v42; // r4 int (__fastcall *v43)(int, _BYTE *); // r9 float v44; // s18 cocos2d::CCNode *v45; // r0 int v46; // r7 void (__fastcall *v47)(int, _BYTE *); // r9 float v48; // s18 cocos2d::CCSprite *v49; // r0 int v50; // r6 void (__fastcall *v51)(int, _BYTE *); // r9 int v52; // r1 cocos2d::CCLabelBMFont *v53; // r2 cocos2d::CCLabelBMFont *v54; // r0 float v55; // r1 void (__fastcall *v56)(cocos2d::CCLabelBMFont *, _BYTE *); // r7 cocos2d::CCString *v57; // r0 cocos2d::CCLabelBMFont *CString; // r0 const char *v59; // r2 cocos2d::CCObject *v60; // r6 void (__fastcall *v61)(cocos2d::CCObject *, _BYTE *); // r8 void (__fastcall *v62)(cocos2d::CCObject *, _BYTE *); // r8 const char *v63; // r1 cocos2d::CCObject *v64; // r7 void (__fastcall *v65)(cocos2d::CCObject *, _BYTE *); // r9 int (__fastcall *v66)(cocos2d::CCObject *, _BYTE *); // r9 GameStatsManager *v67; // r0 GameStatsManager *v68; // r0 int v69; // r2 int v70; // r3 cocos2d::CCArray *hasCompletedLevel; // r0 const char *v72; // r1 int v73; // r8 void (__fastcall *v74)(int, _BYTE *); // r10 int (__fastcall *v75)(int, _BYTE *); // r10 float *v76; // r1 const char *v77; // r1 cocos2d::CCNode *v78; // r4 float v79; // s15 void (__fastcall *v80)(cocos2d::CCNode *, _BYTE *); // r2 int m; // r5 cocos2d::CCObject *v82; // r8 int (__fastcall *v83)(cocos2d::CCObject *, _BYTE *); // r9 cocos2d::CCObject *v84; // r0 unsigned int k; // r4 int v86; // r0 float v87; // r1 cocos2d::CCSequence *v88; // r4 cocos2d::CCFiniteTimeAction *v89; // r0 cocos2d::CCAction *v90; // r0 const cocos2d::CCPoint *v91; // r1 float v92; // s15 float v93; // s16 float v94; // r2 cocos2d::CCEaseBounceOut *v95; // r0 cocos2d::CCActionInterval *v96; // r1 cocos2d::CCSpawn *v97; // r7 float v98; // r1 cocos2d::CCFiniteTimeAction *v99; // r6 float v100; // r9 unsigned __int8 v101; // r8 int v102; // r0 int v103; // r8 float v104; // r1 cocos2d::CCFiniteTimeAction *v105; // r6 int v106; // s14 cocos2d::CCSequence *v107; // r0 cocos2d::CCAction *v108; // r0 unsigned __int8 v109; // [sp+0h] [bp-114h] signed int v110; // [sp+Ch] [bp-108h] int v111; // [sp+10h] [bp-104h] signed int v112; // [sp+18h] [bp-FCh] cocos2d::CCLabelBMFont *v113; // [sp+1Ch] [bp-F8h] cocos2d::CCPoint *v114; // [sp+20h] [bp-F4h] _BYTE v115[4]; // [sp+3Ch] [bp-D8h] BYREF float v116[2]; // [sp+40h] [bp-D4h] BYREF _BYTE v117[8]; // [sp+48h] [bp-CCh] BYREF _BYTE v118[8]; // [sp+50h] [bp-C4h] BYREF _BYTE v119[8]; // [sp+58h] [bp-BCh] BYREF float v120; // [sp+60h] [bp-B4h] BYREF float v121; // [sp+64h] [bp-B0h] char v122[8]; // [sp+68h] [bp-ACh] BYREF _BYTE v123[8]; // [sp+70h] [bp-A4h] BYREF _BYTE v124[8]; // [sp+78h] [bp-9Ch] BYREF _BYTE v125[8]; // [sp+80h] [bp-94h] BYREF _BYTE v126[8]; // [sp+88h] [bp-8Ch] BYREF _BYTE v127[8]; // [sp+90h] [bp-84h] BYREF _BYTE v128[8]; // [sp+98h] [bp-7Ch] BYREF _BYTE v129[8]; // [sp+A0h] [bp-74h] BYREF float v130[2]; // [sp+A8h] [bp-6Ch] BYREF float v131; // [sp+B0h] [bp-64h] BYREF float v132; // [sp+B4h] [bp-60h] _BYTE v133[8]; // [sp+B8h] [bp-5Ch] BYREF cocos2d::CCDirector *(__fastcall *v134)(GauntletLayer *, cocos2d::CCObject *); // [sp+C0h] [bp-54h] int v135; // [sp+C4h] [bp-50h] int (__fastcall *v136)(int); // [sp+C8h] [bp-4Ch] int v137; // [sp+CCh] [bp-48h] int v138[2]; // [sp+D0h] [bp-44h] BYREF cocos2d::CCSprite *v139; // [sp+D8h] [bp-3Ch] int v140; // [sp+DCh] [bp-38h] BYREF unsigned int v141; // [sp+E0h] [bp-34h] char *v142; // [sp+E4h] [bp-30h] int v143; // [sp+E8h] [bp-2Ch] BYREF int v144; // [sp+ECh] [bp-28h] cocos2d::CCLabelBMFont *v145; // [sp+F0h] [bp-24h] int v146; // [sp+F4h] [bp-20h] BYREF unsigned int v147; // [sp+F8h] [bp-1Ch] unsigned __int8 *v148; // [sp+FCh] [bp-18h] int v149; // [sp+100h] [bp-14h] BYREF size_t v150; // [sp+104h] [bp-10h] char *v151; // [sp+108h] [bp-Ch] v2 = (cocos2d::CCNode *)this; if ( a2 ) { this = cocos2d::CCArray::count(a2); if ( this == 5 && !*((_DWORD *)v2 + 80) ) { *((_DWORD *)v2 + 80) = a2; v4 = (cocos2d::CCDirector *)cocos2d::CCObject::retain(a2); cocos2d::CCDirector::sharedDirector(v4); WinSize = (cocos2d::CCMenu *)cocos2d::CCDirector::getWinSize((cocos2d::CCDirector *)v116); v114 = (cocos2d::CCPoint *)cocos2d::CCMenu::create(WinSize); (*(void (__fastcall **)(cocos2d::CCNode *, cocos2d::CCPoint *, int))(*(_DWORD *)v2 + 232))(v2, v114, 2); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v117, v116[0] * 0.5, (float)(v116[1] * 0.5) - 12.0); GauntletNode::frameForType(v138, *((_DWORD *)v2 + 82)); if ( (v138[0] & 1) != 0 ) v6 = v139; else v6 = (cocos2d::CCSprite *)((char *)v138 + 1); v140 = 0; v141 = 0; v142 = nullptr; v7 = strlen((const char *)v6); std::string::__init(&v140, v6, v7); v146 = 0; v147 = 0; v148 = nullptr; std::string::__init(&v146, "_001", 4u); v149 = 0; v150 = 0; v151 = nullptr; std::string::__init(&v149, "_locked_001", 0xBu); for ( i = 0; ; i = v27 + v23 ) { if ( (v140 & 1) != 0 ) { v9 = (unsigned __int8 *)v142; v10 = v141; } else { v10 = (int)(unsigned __int8)v140 >> 1; v9 = (unsigned __int8 *)&v140 + 1; } if ( (v146 & 1) != 0 ) { v11 = v148; v12 = v147; } else { v12 = (int)(unsigned __int8)v146 >> 1; v11 = (unsigned __int8 *)&v146 + 1; } if ( i > v10 || v10 - i < v12 ) break; if ( v12 ) { v13 = &v9[i]; v14 = (char *)&v9[v10]; if ( v14 - (char *)&v9[i] < v12 ) { LABEL_22: v18 = v14; } else { v15 = 1 - v12; v16 = &v11[v12]; v17 = (unsigned __int8 *)&v14[v15]; do { LABEL_16: v18 = (char *)v13; if ( v13 == v17 ) goto LABEL_22; v19 = *v13++; } while ( v19 != *v11 ); v20 = v11; v21 = v18; while ( ++v20 != v16 ) { v22 = (unsigned __int8)*++v21; if ( v22 != *v20 ) goto LABEL_16; } } if ( v18 == v14 ) break; v23 = v18 - (char *)v9; } else { v23 = i; } if ( v23 == -1 ) break; if ( (v146 & 1) != 0 ) v24 = v147; else v24 = (int)(unsigned __int8)v146 >> 1; if ( (v149 & 1) != 0 ) { v25 = v151; v26 = v150; } else { v26 = (int)(unsigned __int8)v149 >> 1; v25 = (char *)&v149 + 1; } std::string::replace(&v140, v23, v24, v25, v26); if ( (v149 & 1) != 0 ) v27 = v150; else v27 = (int)(unsigned __int8)v149 >> 1; } std::string::~string((int)&v149); std::string::~string((int)&v146); for ( j = 0; ; j = v112 + 1 ) { v112 = j; if ( j >= cocos2d::CCArray::count(*((cocos2d::CCArray **)v2 + 80)) ) break; v29 = (GameStatsManager *)cocos2d::CCArray::objectAtIndex(*((cocos2d::CCArray **)v2 + 80), v112); v30 = (GameStatsManager *)GameStatsManager::sharedState(v29); if ( !GameStatsManager::hasCompletedGauntletLevel(v30, *((_DWORD *)v29 + 67) - *((_DWORD *)v29 + 68)) ) break; } cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v118, (const cocos2d::CCPoint *)&unk_D2C900); v110 = 0; v31 = COERCE_FLOAT(yOffsetForGauntlet(*((_DWORD *)v2 + 82))); while ( 1 ) { v32 = cocos2d::CCArray::objectAtIndex(*((cocos2d::CCArray **)v2 + 80), v110); v33 = v32; if ( v110 == v112 ) { if ( v110 ) v34 = *(unsigned __int8 *)(v32 + 478) ^ 1; else v34 = 0; } else { v34 = 0; } v111 = v34; if ( (v110 & 1) != 0 ) v35 = 50.0; else v35 = -50.0; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v133, (float)(v110 - 2) * 90.0, v35); cocos2d::CCPoint::operator+(v119, v117, v133); if ( v110 <= v112 ) v36 = v111; else v36 = 1; v37 = GauntletSprite::create(*((_DWORD *)v2 + 82), v36); v134 = GauntletLayer::onLevel; v135 = 0; v38 = (_DWORD *)CCMenuItemSpriteExtra::create((int)v37, 0, (int)v2, (int)GauntletLayer::onLevel, 0); v38[78] = 1067030938; CCMenuItemSpriteExtra::setSizeMult((int)v38, 1.2); (*(void (__fastcall **)(_DWORD *, signed int))(*v38 + 36))(v38, v110); (*(void (__fastcall **)(cocos2d::CCPoint *, _DWORD *))(*(_DWORD *)v114 + 228))(v114, v38); v39 = *(int (__fastcall **)(_DWORD *, _BYTE *))(*v38 + 92); if ( (v110 & 1) != 0 ) v40 = 0.0; else v40 = -6.0; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v130, 0.0, v40); cocos2d::CCPoint::operator+(&v131, v119, v130); cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)v133, v114); v41 = (cocos2d::CCNode *)v39(v38, v133); v42 = cocos2d::CCNode::create(v41); (*(void (__fastcall **)(int, void *))(*(_DWORD *)v42 + 160))(v42, &unk_D2C908); (*(void (__fastcall **)(int *, int, int))(*v37 + 232))(v37, v42, 1); v43 = *(int (__fastcall **)(int, _BYTE *))(*(_DWORD *)v42 + 92); (*(void (__fastcall **)(float *, int *))(*v37 + 168))(v130, v37); v44 = v130[0] * 0.5; (*(void (__fastcall **)(float *, int *))(*v37 + 168))(&v131, v37); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v133, v44, v132 * 0.5); v45 = (cocos2d::CCNode *)v43(v42, v133); v46 = cocos2d::CCNode::create(v45); (*(void (__fastcall **)(int, void *))(*(_DWORD *)v46 + 160))(v46, &unk_D2C908); (*(void (__fastcall **)(int *, int, int))(*v37 + 232))(v37, v46, -1); v47 = *(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v46 + 92); (*(void (__fastcall **)(float *, int *))(*v37 + 168))(v130, v37); v48 = v130[0] * 0.5; (*(void (__fastcall **)(float *, int *))(*v37 + 168))(&v131, v37); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v133, v48, v132 * 0.5); v47(v46, v133); if ( (v138[0] & 1) != 0 ) v49 = v139; else v49 = (cocos2d::CCSprite *)((char *)v138 + 1); v50 = cocos2d::CCSprite::createWithSpriteFrameName(v49, (const char *)(LOBYTE(v138[0]) << 31)); (*(void (__fastcall **)(int, int, int))(*(_DWORD *)v46 + 232))(v46, v50, -1); v51 = *(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v50 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v133, 0.0, -10.0); v51(v50, v133); (*(void (__fastcall **)(int, int))(*(_DWORD *)v50 + 72))(v50, 1067030938); (*(void (__fastcall **)(int, void *))(*(_DWORD *)v50 + 480))(v50, &unk_BEEA78); (*(void (__fastcall **)(int, int))(*(_DWORD *)v50 + 456))(v50, 75); if ( v110 > v112 ) { (*(void (__fastcall **)(_DWORD *, _DWORD))(*v38 + 528))(v38, 0); goto LABEL_79; } v143 = 0; v144 = 0; v145 = nullptr; if ( (*(_BYTE *)(v33 + 280) & 1) != 0 ) { std::string::__init(&v143, *(const void **)(v33 + 288), *(_DWORD *)(v33 + 284)); } else { v52 = *(_DWORD *)(v33 + 284); v53 = *(cocos2d::CCLabelBMFont **)(v33 + 288); v143 = *(_DWORD *)(v33 + 280); v144 = v52; v145 = v53; } if ( (v143 & 1) != 0 ) v54 = v145; else v54 = (cocos2d::CCLabelBMFont *)((char *)&v143 + 1); v113 = (cocos2d::CCLabelBMFont *)cocos2d::CCLabelBMFont::create( v54, "bigFont.fnt", (const char *)((unsigned __int8)v143 << 31)); std::string::~string((int)&v143); if ( (v110 & 1) != 0 ) v55 = 120.0; else v55 = 80.0; cocos2d::CCLabelBMFont::limitLabelWidth(v113, v55, 0.5, 0.0); (*(void (__fastcall **)(int, cocos2d::CCLabelBMFont *, int))(*(_DWORD *)v42 + 232))(v42, v113, 3); v56 = *(void (__fastcall **)(cocos2d::CCLabelBMFont *, _BYTE *))(*(_DWORD *)v113 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v133, 0.0, v31 + 40.0); v56(v113, v133); v57 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"%i", (const char *)(*(_DWORD *)(v33 + 772) - *(_DWORD *)(v33 + 776))); CString = (cocos2d::CCLabelBMFont *)cocos2d::CCString::getCString(v57); v60 = (cocos2d::CCObject *)cocos2d::CCLabelBMFont::create(CString, "bigFont.fnt", v59); v61 = *(void (__fastcall **)(cocos2d::CCObject *, _BYTE *))(*(_DWORD *)v60 + 148); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v133, 1.0, 0.5); v61(v60, v133); (*(void (__fastcall **)(cocos2d::CCObject *, int))(*(_DWORD *)v60 + 80))(v60, 1053609165); (*(void (__fastcall **)(int, cocos2d::CCObject *, int))(*(_DWORD *)v42 + 232))(v42, v60, 2); v62 = *(void (__fastcall **)(cocos2d::CCObject *, _BYTE *))(*(_DWORD *)v60 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v133, -4.0, -38.0); v62(v60, v133); v64 = (cocos2d::CCObject *)cocos2d::CCSprite::createWithSpriteFrameName( (cocos2d::CCSprite *)"GJ_bigStar_001.png", v63); v65 = *(void (__fastcall **)(cocos2d::CCObject *, _BYTE *))(*(_DWORD *)v64 + 148); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v133, 0.0, 0.5); v65(v64, v133); (*(void (__fastcall **)(cocos2d::CCObject *, int))(*(_DWORD *)v64 + 80))(v64, 1053609165); (*(void (__fastcall **)(int, cocos2d::CCObject *, int))(*(_DWORD *)v42 + 232))(v42, v64, 2); v66 = *(int (__fastcall **)(cocos2d::CCObject *, _BYTE *))(*(_DWORD *)v64 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v133, -4.0, -38.0); v67 = (GameStatsManager *)v66(v64, v133); v68 = (GameStatsManager *)GameStatsManager::sharedState(v67); hasCompletedLevel = (cocos2d::CCArray *)GameStatsManager::hasCompletedLevel(v68, (GJGameLevel *)v33, v69, v70); if ( hasCompletedLevel ) { v73 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_completesIcon_001.png", v72); v74 = *(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v73 + 148); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v133, 0.0, 0.5); v74(v73, v133); (*(void (__fastcall **)(int, int, int))(*(_DWORD *)v42 + 232))(v42, v73, 5); (*(void (__fastcall **)(int, int))(*(_DWORD *)v73 + 80))(v73, 1061997773); v75 = *(int (__fastcall **)(int, _BYTE *))(*(_DWORD *)v73 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v133, 8.0, -5.0); hasCompletedLevel = (cocos2d::CCArray *)v75(v73, v133); } if ( v110 == 4 ) { v82 = (cocos2d::CCObject *)cocos2d::CCSprite::createWithSpriteFrameName( (cocos2d::CCSprite *)"miniSkull_001.png", v72); (*(void (__fastcall **)(int, cocos2d::CCObject *, int))(*(_DWORD *)v42 + 232))(v42, v82, 4); (*(void (__fastcall **)(cocos2d::CCObject *, int))(*(_DWORD *)v82 + 80))(v82, 1067030938); v83 = *(int (__fastcall **)(cocos2d::CCObject *, _BYTE *))(*(_DWORD *)v82 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v133, 0.0, 5.0); hasCompletedLevel = (cocos2d::CCArray *)v83(v82, v133); if ( !v111 ) goto LABEL_97; } else { if ( !v111 ) goto LABEL_96; v82 = nullptr; } v84 = (cocos2d::CCObject *)cocos2d::CCArray::create(hasCompletedLevel); *((_DWORD *)v2 + 86) = v84; cocos2d::CCObject::retain(v84); cocos2d::CCArray::addObject(*((cocos2d::CCArray **)v2 + 86), v113); cocos2d::CCArray::addObject(*((cocos2d::CCArray **)v2 + 86), v60); cocos2d::CCArray::addObject(*((cocos2d::CCArray **)v2 + 86), v64); if ( v82 ) cocos2d::CCArray::addObject(*((cocos2d::CCArray **)v2 + 86), v82); for ( k = 0; k < cocos2d::CCArray::count(*((cocos2d::CCArray **)v2 + 86)); ++k ) { v86 = cocos2d::CCArray::objectAtIndex(*((cocos2d::CCArray **)v2 + 86), k); (*(void (__fastcall **)(int, _DWORD))(*(_DWORD *)v86 + 172))(v86, 0); } *((_DWORD *)v2 + 85) = v38; (*(void (__fastcall **)(_DWORD *, _DWORD))(*v38 + 528))(v38, 0); v88 = (cocos2d::CCSequence *)cocos2d::CCDelayTime::create((cocos2d::CCDelayTime *)0x40000000, v87); v136 = GauntletLayer::unlockActiveItem; v137 = 0; v89 = (cocos2d::CCFiniteTimeAction *)cocos2d::CCCallFunc::create(v2, GauntletLayer::unlockActiveItem, 0); v90 = (cocos2d::CCAction *)cocos2d::CCSequence::create(v88, v89, 0); cocos2d::CCNode::runAction(v2, v90); LABEL_96: if ( v110 ) { LABEL_97: if ( (v110 & 1) != 0 ) v91 = (const cocos2d::CCPoint *)v118; else v91 = (const cocos2d::CCPoint *)v119; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v120, v91); v121 = v121 - 2.0; if ( (v110 & 1) != 0 ) v92 = v120 + 27.0; else v92 = v120 - 27.0; v120 = v92; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v122, -2.0, -1.0); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v123, 10.0, 2.5); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v124, 21.0, 11.5); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v125, 25.0, 26.0); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v126, 20.5, 41.0); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v127, 15.0, 56.0); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v128, 10.5, 71.0); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v129, 14.5, 85.5); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v130, 25.0, 96.0); for ( m = 1; m != 9; ++m ) { cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v131); switch ( m ) { case 2: v76 = (float *)v124; break; case 3: v76 = (float *)v125; break; case 4: v76 = (float *)v126; break; case 5: v76 = (float *)v127; break; case 6: v76 = (float *)v128; break; case 7: v76 = (float *)v129; break; case 8: v76 = v130; break; default: v76 = (float *)v123; break; } cocos2d::CCPoint::operator=(&v131, v76); if ( (v110 & 1) == 0 ) v131 = -v131; cocos2d::CCPoint::operator+(v133, &v120, &v131); v78 = (cocos2d::CCNode *)cocos2d::CCSprite::createWithSpriteFrameName( (cocos2d::CCSprite *)"uiDot_001.png", v77); (*(void (__fastcall **)(cocos2d::CCNode *, cocos2d::CCNode *, int))(*(_DWORD *)v2 + 232))(v2, v78, 1); v79 = 0.7; v80 = *(void (__fastcall **)(cocos2d::CCNode *, _BYTE *))(*(_DWORD *)v78 + 480); if ( (m & 1) != 0 ) v79 = 0.6; v115[0] = (unsigned int)(float)(v79 * 255.0); v115[1] = v115[0]; v115[2] = v115[0]; v80(v78, v115); (*(void (__fastcall **)(cocos2d::CCNode *, _BYTE *))(*(_DWORD *)v78 + 92))(v78, v133); if ( v111 ) { (*(void (__fastcall **)(cocos2d::CCNode *, _DWORD))(*(_DWORD *)v78 + 456))(v78, 0); v93 = COERCE_FLOAT((*(int (__fastcall **)(cocos2d::CCNode *))(*(_DWORD *)v78 + 84))(v78)); (*(void (__fastcall **)(cocos2d::CCNode *, _DWORD))(*(_DWORD *)v78 + 80))(v78, v93 * 2.5); v95 = (cocos2d::CCEaseBounceOut *)cocos2d::CCScaleTo::create((cocos2d::CCScaleTo *)0x3E99999A, v93, v94); v97 = (cocos2d::CCSpawn *)cocos2d::CCEaseBounceOut::create(v95, v96); v99 = (cocos2d::CCFiniteTimeAction *)cocos2d::CCFadeIn::create((cocos2d::CCFadeIn *)0x3DCCCCCD, v98); LODWORD(v100) = *(unsigned __int8 *)(*(int (__fastcall **)(cocos2d::CCNode *))(*(_DWORD *)v78 + 472))(v78); v101 = *(_BYTE *)((*(int (__fastcall **)(cocos2d::CCNode *))(*(_DWORD *)v78 + 472))(v78) + 1); v102 = (*(int (__fastcall **)(cocos2d::CCNode *))(*(_DWORD *)v78 + 472))(v78); v103 = cocos2d::CCTintTo::create((cocos2d::CCTintTo *)0x3F000000, v100, v101, *(_BYTE *)(v102 + 2), v109); (*(void (__fastcall **)(cocos2d::CCNode *, void *))(*(_DWORD *)v78 + 480))(v78, &unk_BEEA6C); v105 = (cocos2d::CCFiniteTimeAction *)cocos2d::CCSpawn::create(v97, v99, v103, 0); if ( (v110 & 1) != 0 ) v106 = m; else v106 = 9 - m; v107 = (cocos2d::CCSequence *)cocos2d::CCDelayTime::create( COERCE_COCOS2D_CCDELAYTIME_((float)((float)v106 * 0.15) + 0.65), v104); v108 = (cocos2d::CCAction *)cocos2d::CCSequence::create(v107, v105, 0); cocos2d::CCNode::runAction(v78, v108); } } } LABEL_79: cocos2d::CCPoint::operator=(v118, v119); if ( ++v110 == 5 ) { std::string::~string((int)&v140); return std::string::~string((int)v138); } } } } return this; }
GD Web Decomp Icon

GD Web Decomp

Raw Source