//
// GauntletLayer::setupGauntlet from 0xa785a4 to 0xa79530 (3980 bytes)
//
// 3 xrefs:
// > GauntletLayer::init @ 0xa79b30
// > GauntletLayer::loadLevelsFinished @ 0xa79ee8
// > ??> @ 0x5e768
//
// 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 13:00:27 +0000
//
__int64 __fastcall GauntletLayer::setupGauntlet(GauntletLayer *this, cocos2d::CCArray *a2)
{
cocos2d::CCDirector *v4; // x0
cocos2d::CCDirector *v5; // x0
cocos2d::CCMenu *WinSize; // x0
const char *v7; // x1
size_t v8; // x0
unsigned __int8 v9; // w1
size_t v10; // x0
unsigned __int8 v11; // w4
unsigned __int8 v12; // w2
char *v13; // x7
size_t v14; // x1
int v15; // w5
unsigned __int8 *v16; // x8
signed __int64 v17; // x3
size_t v18; // x23
size_t v19; // x2
char *v20; // x3
size_t v21; // x4
size_t v22; // x2
signed int i; // w28
GameStatsManager *v24; // x19
GameStatsManager *v25; // x0
signed int v26; // w26
__int64 v27; // x27
float v28; // s1
void *v29; // x24
_DWORD *v30; // x21
float v31; // s1
__int64 (__fastcall *v32)(_DWORD *, __int64 *); // x19
cocos2d::CCNode *v33; // x0
__int64 v34; // x19
__int64 (__fastcall *v35)(__int64, __int64 *); // x25
float v36; // s8
cocos2d::CCNode *v37; // x0
__int64 v38; // x25
float v39; // s8
cocos2d::CCSprite *v40; // x0
__int64 v41; // x24
void (__fastcall *v42)(__int64, __int64 *); // x25
char v43; // w0
__int64 v44; // x0
__int64 v45; // x1
void *v46; // x2
cocos2d::CCLabelBMFont *v47; // x0
float v48; // s0
void (__fastcall *v49)(cocos2d::CCLabelBMFont *, __int64 *); // x24
cocos2d::CCString *v50; // x0
cocos2d::CCLabelBMFont *CString; // x0
const char *v52; // x2
cocos2d::CCObject *v53; // x25
void (__fastcall *v54)(cocos2d::CCObject *, __int64 *); // x24
void (__fastcall *v55)(cocos2d::CCObject *, __int64 *); // x24
const char *v56; // x1
cocos2d::CCObject *v57; // x24
GameStatsManager *v58; // x0
GameStatsManager *v59; // x0
const char *v60; // x1
cocos2d::CCObject *v61; // x27
cocos2d::CCArray *v62; // x0
const cocos2d::CCPoint *v63; // x1
float v64; // s2
int k; // w21
const char *v66; // x1
cocos2d::CCNode *v67; // x19
void (__fastcall *v68)(cocos2d::CCNode *, _BYTE *); // x3
char v69; // w4
float v70; // s8
cocos2d::CCScaleTo *v71; // x0
cocos2d::CCEaseBounceOut *v72; // x0
cocos2d::CCActionInterval *v73; // x1
cocos2d::CCFiniteTimeAction *v74; // x25
unsigned int v75; // w27
__int64 v76; // x0
unsigned __int8 v77; // w3
__int64 v78; // x27
cocos2d::CCFiniteTimeAction *v79; // x25
unsigned __int64 v80; // x0
float v81; // s0
cocos2d::CCSequence *v82; // x0
cocos2d::CCAction *v83; // x0
__int64 v84; // x27
void (__fastcall *v85)(cocos2d::CCObject *, __int64 *); // x19
cocos2d::CCObject *v86; // x0
unsigned int j; // w19
__int64 v88; // x0
cocos2d::CCDelayTime *v89; // x0
cocos2d::CCSequence *v90; // x19
cocos2d::CCFiniteTimeAction *v91; // x0
cocos2d::CCAction *v92; // x0
char *v93; // x0
char *v94; // x1
char *v95; // x12
char *v96; // x0
unsigned __int8 *v97; // x3
char *v98; // x23
char *v99; // x13
unsigned __int8 *v100; // x6
char *v101; // x9
int v102; // t1
void (__fastcall *v103)(cocos2d::CCObject *, __int64 *); // [xsp+D8h] [xbp+D8h]
__int64 (__fastcall *v104)(cocos2d::CCObject *, __int64 *); // [xsp+D8h] [xbp+D8h]
void (__fastcall *v105)(__int64, __int64 *); // [xsp+D8h] [xbp+D8h]
void (__fastcall *v106)(__int64, __int64 *); // [xsp+D8h] [xbp+D8h]
cocos2d::CCNode *v107; // [xsp+F8h] [xbp+F8h]
cocos2d::CCLabelBMFont *v108; // [xsp+100h] [xbp+100h]
cocos2d::CCLabelBMFont *v109; // [xsp+100h] [xbp+100h]
unsigned __int8 v110; // [xsp+100h] [xbp+100h]
cocos2d::CCSpawn *v111; // [xsp+110h] [xbp+110h]
float v112; // [xsp+120h] [xbp+120h]
unsigned int v113; // [xsp+124h] [xbp+124h]
cocos2d::CCArray *v115; // [xsp+128h] [xbp+128h]
_BYTE v116[8]; // [xsp+138h] [xbp+138h] BYREF
__int64 v117; // [xsp+140h] [xbp+140h] BYREF
char v118[8]; // [xsp+148h] [xbp+148h] BYREF
char v119[8]; // [xsp+150h] [xbp+150h] BYREF
__int64 v120; // [xsp+158h] [xbp+158h] BYREF
float v121; // [xsp+160h] [xbp+160h] BYREF
float v122; // [xsp+164h] [xbp+164h]
char v123[8]; // [xsp+168h] [xbp+168h] BYREF
char v124[8]; // [xsp+170h] [xbp+170h] BYREF
char v125[8]; // [xsp+178h] [xbp+178h] BYREF
char v126[8]; // [xsp+180h] [xbp+180h] BYREF
char v127[8]; // [xsp+188h] [xbp+188h] BYREF
char v128[8]; // [xsp+190h] [xbp+190h] BYREF
char v129[8]; // [xsp+198h] [xbp+198h] BYREF
char v130[8]; // [xsp+1A0h] [xbp+1A0h] BYREF
__int64 v131; // [xsp+1A8h] [xbp+1A8h] BYREF
__int64 v132; // [xsp+1B0h] [xbp+1B0h] BYREF
__int64 v133; // [xsp+1B8h] [xbp+1B8h] BYREF
__int64 v134[2]; // [xsp+1C0h] [xbp+1C0h] BYREF
void *v135; // [xsp+1D0h] [xbp+1D0h]
__int64 v136; // [xsp+1D8h] [xbp+1D8h] BYREF
size_t v137; // [xsp+1E0h] [xbp+1E0h]
void *v138; // [xsp+1E8h] [xbp+1E8h]
__int64 v139; // [xsp+1F0h] [xbp+1F0h] BYREF
__int64 v140; // [xsp+1F8h] [xbp+1F8h]
void *v141; // [xsp+200h] [xbp+200h]
__int64 v142; // [xsp+208h] [xbp+208h] BYREF
size_t v143; // [xsp+210h] [xbp+210h]
void *v144; // [xsp+218h] [xbp+218h]
__int64 v145; // [xsp+220h] [xbp+220h] BYREF
size_t v146; // [xsp+228h] [xbp+228h]
void *v147; // [xsp+230h] [xbp+230h]
if ( !a2 || (unsigned int)cocos2d::CCArray::count(a2) != 5 || *((_QWORD *)this + 52) )
return _stack_chk_guard;
*((_QWORD *)this + 52) = a2;
v4 = (cocos2d::CCDirector *)cocos2d::CCObject::retain(a2);
v5 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v4);
WinSize = (cocos2d::CCMenu *)cocos2d::CCDirector::getWinSize(&v117, v5);
v107 = (cocos2d::CCNode *)cocos2d::CCMenu::create(WinSize);
(*(void (__fastcall **)(GauntletLayer *, cocos2d::CCNode *, __int64))(*(_QWORD *)this + 464LL))(this, v107, 2);
cocos2d::CCPoint::CCPoint(
(cocos2d::CCPoint *)v118,
*(float *)&v117 * 0.5,
(float)(*((float *)&v117 + 1) * 0.5) + -12.0);
GauntletNode::frameForType(*((_DWORD *)this + 108), v134);
if ( (v134[0] & 1) != 0 )
v7 = (const char *)v135;
else
v7 = (char *)v134 + 1;
v115 = (cocos2d::CCArray *)v7;
v136 = 0;
v137 = 0;
v138 = nullptr;
v8 = strlen(v7);
std::string::__init(&v136, v115, v8);
v142 = 0;
v143 = 0;
v144 = nullptr;
std::string::__init(&v142, "_001", 4u);
v145 = 0;
v146 = 0;
v147 = nullptr;
std::string::__init(&v145, "_locked_001", 0xBu);
v9 = v136;
v10 = 0;
v11 = v145;
if ( (v136 & 1) == 0 )
goto LABEL_20;
LABEL_8:
v12 = v142;
v13 = (char *)v138;
v14 = v137;
v15 = v142 & 1;
if ( v15 )
{
LABEL_9:
v16 = (unsigned __int8 *)v144;
v17 = v143;
if ( v10 <= v14 )
goto LABEL_10;
}
else
{
while ( 1 )
{
v17 = v12 >> 1;
v16 = (unsigned __int8 *)&v142 + 1;
if ( v10 > v14 )
break;
LABEL_10:
if ( v14 - v10 < v17 )
break;
v18 = v10;
if ( v17 )
{
v93 = &v13[v10];
v94 = &v13[v14];
if ( v17 > v94 - v93 )
break;
v95 = &v94[1 - v17];
if ( v93 == v95 )
break;
v96 = v93 + 1;
v97 = &v16[v17];
do
{
v98 = v96 - 1;
v99 = v96;
if ( (unsigned __int8)*(v96 - 1) == *v16 )
{
v100 = v16;
v101 = v96 - 1;
while ( ++v100 != v97 )
{
v102 = (unsigned __int8)*++v101;
if ( v102 != *v100 )
goto LABEL_107;
}
if ( v94 != v98 )
{
v18 = v98 - v13;
goto LABEL_12;
}
goto LABEL_22;
}
LABEL_107:
++v96;
}
while ( v95 != v99 );
if ( (v11 & 1) == 0 )
goto LABEL_23;
goto LABEL_66;
}
LABEL_12:
if ( v18 == -1 )
break;
v19 = v12 >> 1;
if ( v15 )
v19 = v143;
if ( (v11 & 1) != 0 )
{
v20 = (char *)v147;
v21 = v146;
}
else
{
v21 = v11 >> 1;
v20 = (char *)&v145 + 1;
}
std::string::replace(&v136, v18, v19, v20, v21);
v11 = v145;
v22 = (unsigned __int8)v145 >> 1;
if ( (v145 & 1) != 0 )
v22 = v146;
v9 = v136;
v10 = v22 + v18;
if ( (v136 & 1) != 0 )
goto LABEL_8;
LABEL_20:
v12 = v142;
v14 = v9 >> 1;
v13 = (char *)&v136 + 1;
v15 = v142 & 1;
if ( v15 )
goto LABEL_9;
}
}
LABEL_22:
if ( (v11 & 1) != 0 )
{
LABEL_66:
operator delete(v147);
if ( (v142 & 1) == 0 )
goto LABEL_24;
}
else
{
LABEL_23:
if ( !v15 )
goto LABEL_24;
}
operator delete(v144);
LABEL_24:
for ( i = 0; i < (unsigned int)cocos2d::CCArray::count(*((cocos2d::CCArray **)this + 52)); ++i )
{
v24 = (GameStatsManager *)cocos2d::CCArray::objectAtIndex(*((cocos2d::CCArray **)this + 52), i);
v25 = (GameStatsManager *)GameStatsManager::sharedState(v24);
if ( !GameStatsManager::hasCompletedGauntletLevel(v25, *((_DWORD *)v24 + 82) - *((_DWORD *)v24 + 83)) )
break;
}
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v119, (const cocos2d::CCPoint *)&unk_155D7C8);
v26 = 0;
v112 = yOffsetForGauntlet(*((_DWORD *)this + 108));
do
{
v27 = cocos2d::CCArray::objectAtIndex(*((cocos2d::CCArray **)this + 52), v26);
if ( v26 > 0 && v26 == i )
v113 = *(unsigned __int8 *)(v27 + 650) ^ 1;
else
v113 = 0;
v28 = -50.0;
if ( (v26 & 1) != 0 )
v28 = 50.0;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v133, (float)(v26 - 2) * 90.0, v28);
cocos2d::CCPoint::operator+(&v120, v118);
v29 = GauntletSprite::create(*((_DWORD *)this + 108), (unsigned __int8)v113 | (v26 > i));
v30 = (_DWORD *)CCMenuItemSpriteExtra::create((__int64)v29, 0, (__int64)this, (__int64)GauntletLayer::onLevel, 0);
v30[100] = 1067030938;
CCMenuItemSpriteExtra::setSizeMult((__int64)v30, 1.2);
(*(void (__fastcall **)(_DWORD *, _QWORD))(*(_QWORD *)v30 + 72LL))(v30, (unsigned int)v26);
(*(void (__fastcall **)(cocos2d::CCNode *, _DWORD *))(*(_QWORD *)v107 + 456LL))(v107, v30);
v31 = 0.0;
v32 = *(__int64 (__fastcall **)(_DWORD *, __int64 *))(*(_QWORD *)v30 + 184LL);
if ( (v26 & 1) == 0 )
v31 = -6.0;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v131, 0.0, v31);
cocos2d::CCPoint::operator+(&v132, &v120);
cocos2d::CCNode::convertToNodeSpace(&v133, v107, (const cocos2d::CCPoint *)&v132);
v33 = (cocos2d::CCNode *)v32(v30, &v133);
v34 = cocos2d::CCNode::create(v33);
(*(void (__fastcall **)(__int64, void *))(*(_QWORD *)v34 + 320LL))(v34, &unk_155D7D0);
(*(void (__fastcall **)(void *, __int64, __int64))(*(_QWORD *)v29 + 464LL))(v29, v34, 1);
v35 = *(__int64 (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v34 + 184LL);
(*(void (__fastcall **)(__int64 *__return_ptr, void *))(*(_QWORD *)v29 + 336LL))(&v131, v29);
v36 = *(float *)&v131 * 0.5;
(*(void (__fastcall **)(__int64 *__return_ptr, void *))(*(_QWORD *)v29 + 336LL))(&v132, v29);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v133, v36, *((float *)&v132 + 1) * 0.5);
v37 = (cocos2d::CCNode *)v35(v34, &v133);
v38 = cocos2d::CCNode::create(v37);
(*(void (__fastcall **)(__int64, void *))(*(_QWORD *)v38 + 320LL))(v38, &unk_155D7D0);
(*(void (__fastcall **)(void *, __int64, __int64))(*(_QWORD *)v29 + 464LL))(v29, v38, 0xFFFFFFFFLL);
v108 = *(cocos2d::CCLabelBMFont **)(*(_QWORD *)v38 + 184LL);
(*(void (__fastcall **)(void *))(*(_QWORD *)v29 + 336LL))(v29);
v39 = *(float *)&v131 * 0.5;
(*(void (__fastcall **)(__int64 *__return_ptr, void *))(*(_QWORD *)v29 + 336LL))(&v132, v29);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v133, v39, *((float *)&v132 + 1) * 0.5);
((void (__fastcall *)(__int64, __int64 *))v108)(v38, &v133);
v40 = (cocos2d::CCSprite *)((char *)v134 + 1);
if ( (v134[0] & 1) != 0 )
v40 = (cocos2d::CCSprite *)v135;
v41 = cocos2d::CCSprite::createWithSpriteFrameName(v40, (const char *)LOBYTE(v134[0]));
(*(void (__fastcall **)(__int64, __int64, __int64))(*(_QWORD *)v38 + 464LL))(v38, v41, 0xFFFFFFFFLL);
v42 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v41 + 184LL);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v133, 0.0, -10.0);
v42(v41, &v133);
(*(void (__fastcall **)(__int64, float))(*(_QWORD *)v41 + 144LL))(v41, 1.2);
(*(void (__fastcall **)(__int64, void *))(*(_QWORD *)v41 + 960LL))(v41, &unk_1175920);
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v41 + 912LL))(v41, 75);
if ( v26 > i )
{
(*(void (__fastcall **)(_DWORD *, _QWORD))(*(_QWORD *)v30 + 1056LL))(v30, 0);
goto LABEL_50;
}
v43 = *(_BYTE *)(v27 + 344);
v139 = 0;
v140 = 0;
v141 = nullptr;
if ( (v43 & 1) != 0 )
{
std::string::__init(&v139, *(void **)(v27 + 360), *(_QWORD *)(v27 + 352));
}
else
{
v44 = *(_QWORD *)(v27 + 344);
v45 = *(_QWORD *)(v27 + 352);
v46 = *(void **)(v27 + 360);
v141 = v46;
v139 = v44;
v140 = v45;
}
v47 = (cocos2d::CCLabelBMFont *)((char *)&v139 + 1);
if ( (v139 & 1) != 0 )
v47 = (cocos2d::CCLabelBMFont *)v141;
v109 = (cocos2d::CCLabelBMFont *)cocos2d::CCLabelBMFont::create(v47, "bigFont.fnt", (const char *)v46);
if ( (v139 & 1) != 0 )
operator delete(v141);
v48 = 80.0;
if ( (v26 & 1) != 0 )
v48 = 120.0;
cocos2d::CCLabelBMFont::limitLabelWidth(v109, v48, 0.5, 0.0);
(*(void (__fastcall **)(__int64, cocos2d::CCLabelBMFont *, __int64))(*(_QWORD *)v34 + 464LL))(v34, v109, 3);
v49 = *(void (__fastcall **)(cocos2d::CCLabelBMFont *, __int64 *))(*(_QWORD *)v109 + 184LL);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v133, 0.0, v112 + 40.0);
v49(v109, &v133);
v50 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(
(cocos2d::CCString *)"%i",
(const char *)(unsigned int)(*(_DWORD *)(v27 + 948) - *(_DWORD *)(v27 + 952)));
CString = (cocos2d::CCLabelBMFont *)cocos2d::CCString::getCString(v50);
v53 = (cocos2d::CCObject *)cocos2d::CCLabelBMFont::create(CString, "bigFont.fnt", v52);
v54 = *(void (__fastcall **)(cocos2d::CCObject *, __int64 *))(*(_QWORD *)v53 + 296LL);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v133, 1.0, 0.5);
v54(v53, &v133);
(*(void (__fastcall **)(cocos2d::CCObject *, float))(*(_QWORD *)v53 + 160LL))(v53, 0.4);
(*(void (__fastcall **)(__int64, cocos2d::CCObject *, __int64))(*(_QWORD *)v34 + 464LL))(v34, v53, 2);
v55 = *(void (__fastcall **)(cocos2d::CCObject *, __int64 *))(*(_QWORD *)v53 + 184LL);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v133, -4.0, -38.0);
v55(v53, &v133);
v57 = (cocos2d::CCObject *)cocos2d::CCSprite::createWithSpriteFrameName(
(cocos2d::CCSprite *)"GJ_bigStar_001.png",
v56);
v103 = *(void (__fastcall **)(cocos2d::CCObject *, __int64 *))(*(_QWORD *)v57 + 296LL);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v133, 0.0, 0.5);
v103(v57, &v133);
(*(void (__fastcall **)(cocos2d::CCObject *, float))(*(_QWORD *)v57 + 160LL))(v57, 0.4);
(*(void (__fastcall **)(__int64, cocos2d::CCObject *, __int64))(*(_QWORD *)v34 + 464LL))(v34, v57, 2);
v104 = *(__int64 (__fastcall **)(cocos2d::CCObject *, __int64 *))(*(_QWORD *)v57 + 184LL);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v133, -4.0, -38.0);
v58 = (GameStatsManager *)v104(v57, &v133);
v59 = (GameStatsManager *)GameStatsManager::sharedState(v58);
if ( GameStatsManager::hasCompletedLevel(v59, (GJGameLevel *)v27) )
{
v84 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_completesIcon_001.png", v60);
v105 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v84 + 296LL);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v133, 0.0, 0.5);
v105(v84, &v133);
(*(void (__fastcall **)(__int64, __int64, __int64))(*(_QWORD *)v34 + 464LL))(v34, v84, 5);
(*(void (__fastcall **)(__int64, float))(*(_QWORD *)v84 + 160LL))(v84, 0.8);
v106 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v84 + 184LL);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v133, 8.0, -5.0);
v106(v84, &v133);
v61 = nullptr;
if ( v26 != 4 )
{
LABEL_49:
v62 = (cocos2d::CCArray *)v113;
if ( !v113 )
goto LABEL_50;
goto LABEL_92;
}
}
else
{
v61 = nullptr;
if ( v26 != 4 )
goto LABEL_49;
}
v61 = (cocos2d::CCObject *)cocos2d::CCSprite::createWithSpriteFrameName(
(cocos2d::CCSprite *)"miniSkull_001.png",
v60);
(*(void (__fastcall **)(__int64, cocos2d::CCObject *, __int64))(*(_QWORD *)v34 + 464LL))(v34, v61, 4);
(*(void (__fastcall **)(cocos2d::CCObject *, float))(*(_QWORD *)v61 + 160LL))(v61, 1.2);
v85 = *(void (__fastcall **)(cocos2d::CCObject *, __int64 *))(*(_QWORD *)v61 + 184LL);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v133, 0.0, 5.0);
v85(v61, &v133);
v62 = (cocos2d::CCArray *)v113;
if ( !v113 )
goto LABEL_50;
LABEL_92:
v86 = (cocos2d::CCObject *)cocos2d::CCArray::create(v62);
*((_QWORD *)this + 58) = v86;
cocos2d::CCObject::retain(v86);
cocos2d::CCArray::addObject(*((cocos2d::CCArray **)this + 58), v109);
cocos2d::CCArray::addObject(*((cocos2d::CCArray **)this + 58), v53);
cocos2d::CCArray::addObject(*((cocos2d::CCArray **)this + 58), v57);
if ( v61 )
cocos2d::CCArray::addObject(*((cocos2d::CCArray **)this + 58), v61);
for ( j = 0; j < (unsigned int)cocos2d::CCArray::count(*((cocos2d::CCArray **)this + 58)); ++j )
{
v88 = cocos2d::CCArray::objectAtIndex(*((cocos2d::CCArray **)this + 58), j);
(*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v88 + 344LL))(v88, 0);
}
*((_QWORD *)this + 57) = v30;
v89 = (cocos2d::CCDelayTime *)(*(__int64 (__fastcall **)(_DWORD *, _QWORD))(*(_QWORD *)v30 + 1056LL))(v30, 0);
v90 = (cocos2d::CCSequence *)cocos2d::CCDelayTime::create(v89, 2.0);
v91 = (cocos2d::CCFiniteTimeAction *)cocos2d::CCCallFunc::create(this, GauntletLayer::unlockActiveItem, 0);
v92 = (cocos2d::CCAction *)cocos2d::CCSequence::create(v90, v91, 0);
cocos2d::CCNode::runAction(this, v92);
LABEL_50:
if ( v26 > 0 && v26 <= i )
{
v63 = (const cocos2d::CCPoint *)v119;
if ( (v26 & 1) == 0 )
v63 = (const cocos2d::CCPoint *)&v120;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v121, v63);
v122 = v122 - 2.0;
if ( (v26 & 1) != 0 )
v64 = v121 + 27.0;
else
v64 = v121 - 27.0;
v121 = v64;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v123, -2.0, -1.0);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v124, 10.0, 2.5);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v125, 21.0, 11.5);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v126, 25.0, 26.0);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v127, 20.5, 41.0);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v128, 15.0, 56.0);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v129, 10.5, 71.0);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v130, 14.5, 85.5);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v131, 25.0, 96.0);
for ( k = 1; k != 9; ++k )
{
while ( 1 )
{
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v132);
switch ( k )
{
case 2:
cocos2d::CCPoint::operator=(&v132, v125);
break;
case 3:
cocos2d::CCPoint::operator=(&v132, v126);
break;
case 4:
cocos2d::CCPoint::operator=(&v132, v127);
break;
case 5:
cocos2d::CCPoint::operator=(&v132, v128);
break;
case 6:
cocos2d::CCPoint::operator=(&v132, v129);
break;
case 7:
cocos2d::CCPoint::operator=(&v132, v130);
break;
case 8:
cocos2d::CCPoint::operator=(&v132, &v131);
break;
default:
cocos2d::CCPoint::operator=(&v132, v124);
break;
}
if ( (v26 & 1) == 0 )
*(float *)&v132 = -*(float *)&v132;
cocos2d::CCPoint::operator+(&v133, &v121);
v67 = (cocos2d::CCNode *)cocos2d::CCSprite::createWithSpriteFrameName(
(cocos2d::CCSprite *)"uiDot_001.png",
v66);
(*(void (__fastcall **)(GauntletLayer *, cocos2d::CCNode *, __int64))(*(_QWORD *)this + 464LL))(this, v67, 1);
v68 = *(void (__fastcall **)(cocos2d::CCNode *, _BYTE *))(*(_QWORD *)v67 + 960LL);
v69 = (k & 1) != 0 ? -103 : -78;
v116[0] = v69;
v116[1] = v69;
v116[2] = v69;
v68(v67, v116);
(*(void (__fastcall **)(cocos2d::CCNode *, __int64 *))(*(_QWORD *)v67 + 184LL))(v67, &v133);
if ( v113 )
break;
if ( ++k == 9 )
goto LABEL_78;
}
(*(void (__fastcall **)(cocos2d::CCNode *, _QWORD))(*(_QWORD *)v67 + 912LL))(v67, 0);
v70 = (*(float (__fastcall **)(cocos2d::CCNode *))(*(_QWORD *)v67 + 168LL))(v67);
v71 = (cocos2d::CCScaleTo *)(*(__int64 (__fastcall **)(cocos2d::CCNode *, float))(*(_QWORD *)v67 + 160LL))(
v67,
v70 * 2.5);
v72 = (cocos2d::CCEaseBounceOut *)cocos2d::CCScaleTo::create(v71, 0.3, v70);
v111 = (cocos2d::CCSpawn *)cocos2d::CCEaseBounceOut::create(v72, v73);
v74 = (cocos2d::CCFiniteTimeAction *)cocos2d::CCFadeIn::create(v111, 0.1);
v75 = *(unsigned __int8 *)(*(__int64 (__fastcall **)(cocos2d::CCNode *))(*(_QWORD *)v67 + 944LL))(v67);
v110 = *(_BYTE *)((*(__int64 (__fastcall **)(cocos2d::CCNode *))(*(_QWORD *)v67 + 944LL))(v67) + 1);
v76 = (*(__int64 (__fastcall **)(cocos2d::CCNode *))(*(_QWORD *)v67 + 944LL))(v67);
v78 = cocos2d::CCTintTo::create((cocos2d::CCTintTo *)v75, 0.5, v110, *(_BYTE *)(v76 + 2), v77);
(*(void (__fastcall **)(cocos2d::CCNode *, void *))(*(_QWORD *)v67 + 960LL))(v67, &unk_1175918);
v79 = (cocos2d::CCFiniteTimeAction *)cocos2d::CCSpawn::create(v111, v74, v78, 0);
v80 = v26 & 1;
if ( (v26 & 1) != 0 )
{
v81 = (float)((float)k * 0.15) + 0.65;
}
else
{
v80 = (unsigned int)(9 - k);
v81 = (float)((float)(int)v80 * 0.15) + 0.65;
}
v82 = (cocos2d::CCSequence *)cocos2d::CCDelayTime::create((cocos2d::CCDelayTime *)v80, v81);
v83 = (cocos2d::CCAction *)cocos2d::CCSequence::create(v82, v79, 0);
cocos2d::CCNode::runAction(v67, v83);
}
}
LABEL_78:
cocos2d::CCPoint::operator=(v119, &v120);
++v26;
}
while ( v26 != 5 );
if ( (v136 & 1) != 0 )
operator delete(v138);
if ( (v134[0] & 1) != 0 )
operator delete(v135);
return _stack_chk_guard;
}