//
// GauntletNode::generateNode from 0x4d7dac to 0x4d9022 (4726 bytes)
//
// 2 xrefs:
// > GauntletNode::init @ 0x4d9046
// > GauntletNode::onUnlock @ 0x4d9dbc
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
void GauntletNode::generateNode(GauntletNode *a1)
{
GJMapPack *m_gauntlet; // r3
int m_packID; // r11
cocos2d::CCNode *v4; // r0
cocos2d::CCNode_vtbl *v5; // r3
cocos2d::CCNode *v6; // r0
cocos2d::CCNode_vtbl *v7; // r3
char v8; // r3
char v9; // r2
char v10; // r2
char v11; // r3
float v12; // s16
float v13; // r7
char v14; // r3
char v15; // r3
char v16; // r2
char v17; // r3
char v18; // r3
char v19; // r3
char v20; // r3
char v21; // r3
char v22; // r3
char v23; // r3
char v24; // r3
char v25; // r3
GLubyte v26; // r3^2
__int16 v27; // r2
GLubyte v28; // r3
cocos2d::CCNode *v29; // r10
void (__fastcall *setContentSize)(cocos2d::CCNode *__hidden, const cocos2d::CCSize *); // r9
cocos2d::CCLabelBMFont *v31; // r6
void (__fastcall *setPosition)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // r7
cocos2d::CCLabelBMFont *v33; // r7
cocos2d::CCLabelBMFont *v34; // r9
void (__fastcall *setScale)(cocos2d::CCLabelBMFont *__hidden, float); // r8
int v36; // r0
void (__fastcall *v37)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // r8
int v38; // r0
cocos2d::CCLabelBMFont *v39; // r8
void (__fastcall *v40)(cocos2d::CCLabelBMFont *__hidden, float); // r5
int v41; // r0
int v42; // r0
cocos2d::CCSprite *v43; // r7
void (__fastcall *v44)(cocos2d::CCSprite *__hidden, const cocos2d::CCPoint *); // r6
cocos2d::CCSprite *v45; // r6
int v46; // r10
const char *v47; // r0
cocos2d::CCString *v48; // r0
char *CString; // r0
cocos2d::CCLabelBMFont *v50; // r10
void (__fastcall *v51)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // r6
int v52; // r7
cocos2d::CCLabelBMFont *v53; // r6
void (__fastcall *v54)(cocos2d::CCLabelBMFont *__hidden, float); // r5
int v55; // r0
void (__fastcall *v56)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // r7
int v57; // r0
cocos2d::CCLabelBMFont *v58; // r7
void (__fastcall *v59)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // r6
cocos2d::CCLabelBMFont *v60; // r6
void (__fastcall *v61)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // r10
int v62; // r0
GJChestSprite *v63; // r6
void (__fastcall *v64)(cocos2d::CCSprite *__hidden, const cocos2d::CCPoint *); // r10
int v65; // r0
GJChestSprite *v66; // r7
void (__fastcall *v67)(cocos2d::CCSprite *__hidden, float); // r4
int v68; // r0
void (__fastcall *v69)(cocos2d::CCSprite *__hidden, const cocos2d::CCPoint *); // r4
int v70; // r0
cocos2d::CCArray *v71; // r0
int v72; // r0
cocos2d::CCArray *v73; // r0
int v74; // r0
cocos2d::CCSprite *v75; // r7
void (__fastcall *v76)(cocos2d::CCSprite *__hidden, const cocos2d::CCPoint *); // r6
cocos2d::CCSprite *v77; // r6
void (__fastcall *v78)(cocos2d::CCSprite *__hidden, const cocos2d::CCPoint *); // r10
int v79; // r0
GameStatsManager *v80; // r0
GameStatsManager *v81; // r6
stl::StringData::Internal *v82; // r2
stl::StringData::Internal *v83; // r3
int isSpecialChestUnlocked; // r6
cocos2d::CCLabelBMFont *v85; // r6
void (__fastcall *v86)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // r8
cocos2d::CCLabelBMFont *v87; // r5
void (__fastcall *v88)(cocos2d::CCLabelBMFont *__hidden, float); // r8
int v89; // r0
void (__fastcall *v90)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // r11
int v91; // r0
GJChestSprite *v92; // r5
void (__fastcall *v93)(cocos2d::CCSprite *__hidden, const cocos2d::CCPoint *); // r11
int v94; // r0
GJChestSprite *v95; // r6
void (__fastcall *v96)(cocos2d::CCSprite *__hidden, float); // r4
int v97; // r0
void (__fastcall *v98)(cocos2d::CCSprite *__hidden, const cocos2d::CCPoint *); // r4
int v99; // r0
cocos2d::CCArray *v100; // r0
int v101; // r0
cocos2d::CCArray *v102; // r0
int v103; // r0
int (__fastcall *getTag)(const cocos2d::CCObject *__hidden); // r2
cocos2d::CCSprite *v105; // r6
void (__fastcall *v106)(cocos2d::CCSprite *__hidden, const cocos2d::CCPoint *); // r7
cocos2d::CCSprite *v107; // r6
void (__fastcall *v108)(cocos2d::CCSprite *__hidden, const cocos2d::CCPoint *); // r7
cocos2d::CCSprite *v109; // r7
void (__fastcall *v110)(cocos2d::CCSprite *__hidden, const cocos2d::CCPoint *); // r9
int v111; // r6
cocos2d::CCLabelBMFont *v112; // r6
void (__fastcall *setColor)(cocos2d::CCLabelBMFont *__hidden, const cocos2d::ccColor3B *); // r2
void (__fastcall *v114)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // r5
int v115; // r7
float v116; // r2
float v117; // r3
void (__fastcall *v118)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // [sp+Ch] [bp-48h]
void (__fastcall *v119)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // [sp+Ch] [bp-48h]
void (__fastcall *v120)(cocos2d::CCSprite *__hidden, const cocos2d::CCPoint *); // [sp+Ch] [bp-48h]
int v121; // [sp+10h] [bp-44h]
_WORD v122[2]; // [sp+18h] [bp-3Ch] BYREF
int v123; // [sp+1Ch] [bp-38h] BYREF
cocos2d::CCLabelBMFont *v124; // [sp+20h] [bp-34h] BYREF
cocos2d::CCSprite *v125; // [sp+24h] [bp-30h] BYREF
__int16 v126; // [sp+28h] [bp-2Ch] BYREF
char v127; // [sp+2Ah] [bp-2Ah]
cocos2d::CCPoint v128; // [sp+2Ch] [bp-28h] BYREF
cocos2d::CCPoint v129; // [sp+34h] [bp-20h] BYREF
cocos2d::CCRect v130; // [sp+3Ch] [bp-18h] BYREF
cocos2d::CCSize v131; // 0:^0.8
cocos2d::CCRect v132; // 0:kr00_16.16
a1->removeAllChildrenWithCleanup(a1, 0);
m_gauntlet = a1->m_gauntlet;
if ( m_gauntlet )
{
m_packID = m_gauntlet->m_packID;
GauntletNode::nameForType((int)&v124, m_packID);
GauntletNode::frameForType((int)&v125, m_packID);
v122[0] = -1;
LOBYTE(v122[1]) = -1;
LOWORD(v123) = -1;
BYTE2(v123) = -1;
v4 = cocos2d::CCNode::create();
v5 = v4->__vftable;
a1->m_gauntletInfoNode = v4;
v5->setContentSize(v4, &stru_AC6DF0);
a1->addChild_0(a1, a1->m_gauntletInfoNode, 1);
v6 = cocos2d::CCNode::create();
v7 = v6->__vftable;
a1->m_rewardNode = v6;
v7->setContentSize(v6, &stru_AC6DF0);
a1->addChild_0(a1, a1->m_rewardNode, 2);
a1->m_rewardNode->setVisible(a1->m_rewardNode, 0);
switch ( m_packID )
{
case 1:
v122[0] = 25855;
v8 = 0;
LOBYTE(v123) = -1;
v9 = -56;
LOBYTE(v122[1]) = 0;
goto LABEL_80;
case 2:
v10 = -106;
v122[0] = 32000;
v8 = -1;
LOBYTE(v122[1]) = -1;
goto LABEL_16;
case 3:
v122[0] = -20736;
LOBYTE(v122[1]) = 0;
LOWORD(v123) = -156;
v11 = 50;
goto LABEL_7;
case 4:
strcpy((char *)v122, "d");
LOBYTE(v122[1]) = -56;
LOWORD(v123) = 13020;
v11 = -1;
LABEL_7:
BYTE2(v123) = v11;
v12 = 0.0;
v13 = 0.62;
goto LABEL_84;
case 5:
v122[0] = 200;
v8 = 0;
LOBYTE(v123) = -1;
v9 = 90;
LOBYTE(v122[1]) = 0;
goto LABEL_80;
case 6:
v122[0] = 25675;
LOBYTE(v122[1]) = -1;
break;
case 7:
v14 = 100;
goto LABEL_12;
case 8:
case 15:
v14 = 50;
LABEL_12:
LOBYTE(v122[0]) = v14;
HIBYTE(v122[0]) = v14;
goto LABEL_13;
case 9:
v10 = 0;
v8 = -1;
v122[0] = 25600;
LOBYTE(v122[1]) = -1;
LABEL_16:
LOBYTE(v123) = v10;
goto LABEL_14;
case 10:
v15 = -1;
v122[0] = 13055;
LOBYTE(v123) = -1;
LOBYTE(v122[1]) = -106;
v16 = -56;
goto LABEL_51;
case 11:
v122[0] = 12800;
v17 = 50;
LOBYTE(v122[1]) = 125;
goto LABEL_73;
case 12:
v122[0] = 25750;
LOBYTE(v122[1]) = 0;
LOWORD(v123) = -14081;
v8 = 50;
goto LABEL_81;
case 13:
v18 = 0;
v122[0] = 19200;
LOBYTE(v122[1]) = 0;
LOWORD(v123) = -206;
goto LABEL_48;
case 14:
v122[0] = 19300;
v14 = 50;
LABEL_13:
LOBYTE(v122[1]) = v14;
LOBYTE(v123) = -1;
v8 = 25;
goto LABEL_14;
case 16:
v19 = 0;
v122[0] = 25600;
LOBYTE(v122[1]) = 0;
LOWORD(v123) = -206;
goto LABEL_41;
case 17:
v12 = 1.0;
v122[0] = 25750;
LOBYTE(v122[1]) = 0;
LOWORD(v123) = -14081;
BYTE2(v123) = 50;
goto LABEL_83;
case 18:
v9 = 125;
strcpy((char *)v122, "_");
LOBYTE(v122[1]) = -71;
v8 = -1;
LOBYTE(v123) = -1;
goto LABEL_80;
case 19:
v122[0] = 19200;
LOBYTE(v123) = 0;
v20 = -56;
LOBYTE(v122[1]) = 75;
goto LABEL_57;
case 20:
strcpy((char *)v122, "n");
v21 = 0;
LOWORD(v123) = 19455;
LOBYTE(v122[1]) = 0;
goto LABEL_28;
case 21:
v122[0] = 32050;
LOWORD(v123) = -156;
v21 = -1;
LOBYTE(v122[1]) = -1;
LABEL_28:
BYTE2(v123) = v21;
v12 = 3.0;
goto LABEL_83;
case 22:
qmemcpy(v122, "$,0", 3);
LOWORD(v123) = -1;
v18 = 110;
goto LABEL_48;
case 23:
qmemcpy(v122, "ZZP", 3);
LOWORD(v123) = -96;
v8 = 13;
goto LABEL_81;
case 24:
qmemcpy(v122, "#>=", 3);
LOBYTE(v123) = -113;
v22 = -12;
goto LABEL_77;
case 25:
qmemcpy(v122, "=,(", 3);
LOWORD(v123) = -6401;
v19 = -86;
goto LABEL_41;
case 26:
v9 = -106;
qmemcpy(v122, "Z#<", 3);
v8 = -1;
LOBYTE(v123) = -1;
goto LABEL_80;
case 27:
qmemcpy(v122, "5(h", 3);
LOWORD(v123) = -19201;
v8 = 114;
goto LABEL_81;
case 28:
v122[0] = 6483;
LOBYTE(v122[1]) = 96;
v8 = 0;
goto LABEL_54;
case 29:
v122[0] = 7751;
v12 = 3.0;
LOWORD(v123) = -32001;
LOBYTE(v122[1]) = 0;
BYTE2(v123) = 0;
v13 = 0.48;
goto LABEL_84;
case 30:
qmemcpy(v122, "-7-", 3);
v12 = 3.0;
LOWORD(v123) = -8961;
BYTE2(v123) = 0;
goto LABEL_49;
case 31:
v122[0] = 12800;
v23 = 80;
goto LABEL_61;
case 32:
qmemcpy(v122, "2%?", 3);
LOBYTE(v123) = -86;
v22 = 96;
goto LABEL_77;
case 33:
v122[0] = 17920;
LOBYTE(v122[1]) = 125;
LOWORD(v123) = -6631;
v19 = -1;
LABEL_41:
BYTE2(v123) = v19;
v12 = 2.0;
goto LABEL_83;
case 34:
strcpy((char *)v122, "L");
v12 = 6.0;
LOBYTE(v122[1]) = 76;
LOBYTE(v123) = -1;
*(_WORD *)((char *)&v123 + 1) = 140;
goto LABEL_52;
case 35:
v12 = 5.0;
v122[0] = 7218;
LOBYTE(v122[1]) = 105;
LOWORD(v123) = -256;
BYTE2(v123) = -1;
goto LABEL_83;
case 36:
strcpy((char *)v122, "^");
v12 = -4.0;
LOBYTE(v122[1]) = -106;
LOBYTE(v123) = 124;
*(_WORD *)((char *)&v123 + 1) = 255;
goto LABEL_49;
case 37:
strcpy((char *)v122, "m_labelColor.r = v123;
a1->m_labelColor.b = v26;
v28 = v122[1];
*(_WORD *)&a1->m_backgroundColor.r = v27;
a1->m_backgroundColor.b = v28;
cocos2d::CCRect::CCRect(&v130, 0.0, 0.0, 86.0, 86.0);
v132.origin.x = v116;
v132.origin.y = v117;
v132.size = v131;
v29 = (cocos2d::CCNode *)cocos2d::extension::CCScale9Sprite::create(
(cocos2d::extension::CCScale9Sprite *)"GJ_squareB_01.png",
(const char *)&v130,
v132);
((void (__fastcall *)(cocos2d::CCNode *, int))v29->__vftable[1].~CCNode_0)(v29, 255);
setContentSize = v29->setContentSize;
cocos2d::CCSize::CCSize((cocos2d::CCSize *)&v130, 110.0, 234.0);
setContentSize(v29, (const cocos2d::CCSize *)&v130);
a1->addChild_0(a1, v29, -1);
((void (__fastcall *)(cocos2d::CCNode *, _WORD *))v29->__vftable[1].getTag)(v29, v122);
v31 = cocos2d::CCLabelBMFont::create();
a1->addChild_0(a1, v31, 2);
cocos2d::CCLabelBMFont::limitLabelWidth(v31, 75.0, v13, 0.0);
setPosition = v31->setPosition;
cocos2d::CCPoint::CCPoint(&v130.origin, 0.0, 94.0);
setPosition(v31, &v130.origin);
v31->setColor(v31, (const cocos2d::ccColor3B *)&v123);
v33 = cocos2d::CCLabelBMFont::create();
a1->addChild_0(a1, v33, 2);
((void (__fastcall *)(cocos2d::CCLabelBMFont *, int))v33->setScale)(v33, 1055286886);
v118 = v33->setPosition;
v121 = (int)v31->getPosition(v31);
cocos2d::CCPoint::CCPoint(&v129, 0.0, -19.0);
cocos2d::CCPoint::operator+(&v130, v121, &v129);
v118(v33, &v130.origin);
v33->setColor(v33, (const cocos2d::ccColor3B *)&v123);
cocos2d::CCPoint::CCPoint(&v128, 2.0, -3.0);
v34 = cocos2d::CCLabelBMFont::create();
a1->addChild_0(a1, v34, 1);
setScale = v34->setScale;
v36 = ((int (__fastcall *)(cocos2d::CCLabelBMFont *))v31->getScale)(v31);
((void (__fastcall *)(cocos2d::CCLabelBMFont *, int))setScale)(v34, v36);
v37 = v34->setPosition;
v38 = (int)v31->getPosition(v31);
cocos2d::CCPoint::operator+(&v130, v38, &v128);
v37(v34, &v130.origin);
v39 = cocos2d::CCLabelBMFont::create();
a1->addChild_0(a1, v39, 1);
v40 = v39->setScale;
v41 = ((int (__fastcall *)(cocos2d::CCLabelBMFont *))v33->getScale)(v33);
((void (__fastcall *)(cocos2d::CCLabelBMFont *, int))v40)(v39, v41);
v119 = v39->setPosition;
v42 = (int)v33->getPosition(v33);
cocos2d::CCPoint::operator+(&v130, v42, &v128);
v119(v39, &v130.origin);
v34->setColor(v34, &stru_9AC737);
v39->setColor(v39, &stru_9AC737);
v34->setOpacity(v34, 60);
v39->setOpacity(v39, 60);
if ( a1->m_locked )
{
getTag = v29->__vftable[1].getTag;
memset(&v130, 80, 3);
((void (__fastcall *)(cocos2d::CCNode *, cocos2d::CCRect *))getTag)(v29, &v130);
v126 = -20561;
v127 = -81;
v31->setColor(v31, (const cocos2d::ccColor3B *)&v126);
v33->setColor(v33, (const cocos2d::ccColor3B *)&v126);
v105 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_lockGray_001.png");
((void (__fastcall *)(cocos2d::CCSprite *, int))v105->setScale)(v105, 1071644672);
a1->m_gauntletInfoNode->addChild_0(a1->m_gauntletInfoNode, v105, 2);
v106 = v105->setPosition;
cocos2d::CCPoint::CCPoint(&v130.origin, 0.0, v12 + 16.0);
v106(v105, &v130.origin);
v107 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_unlockBtn_001.png");
a1->m_gauntletInfoNode->addChild_0(a1->m_gauntletInfoNode, v107, 2);
v108 = v107->setPosition;
cocos2d::CCPoint::CCPoint(&v130.origin, 0.0, -41.0);
v108(v107, &v130.origin);
v109 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_adVideoBtn_001.png");
a1->m_gauntletInfoNode->addChild_0(a1->m_gauntletInfoNode, v109, 2);
v110 = v109->setPosition;
v111 = (int)v107->getPosition(v107);
cocos2d::CCPoint::CCPoint(&v129, 0.0, -31.0);
cocos2d::CCPoint::operator+(&v130, v111, &v129);
v110(v109, &v130.origin);
v112 = cocos2d::CCLabelBMFont::create();
((void (__fastcall *)(cocos2d::CCLabelBMFont *, int))v112->setScale)(v112, 1050253722);
setColor = v112->setColor;
LOWORD(v130.origin.x) = -30841;
BYTE2(v130.origin.x) = -121;
setColor(v112, (const cocos2d::ccColor3B *)&v130);
a1->m_gauntletInfoNode->addChild_0(a1->m_gauntletInfoNode, v112, 2);
v114 = v112->setPosition;
v115 = (int)v109->getPosition(v109);
cocos2d::CCPoint::CCPoint(&v129, 0.0, -25.0);
cocos2d::CCPoint::operator+(&v130, v115, &v129);
v114(v112, &v130.origin);
}
else
{
v43 = cocos2d::CCSprite::createWithSpriteFrameName((const char *)v125);
a1->m_gauntletInfoNode->addChild_0(a1->m_gauntletInfoNode, v43, 2);
v44 = v43->setPosition;
cocos2d::CCPoint::CCPoint(&v130.origin, 0.0, v12 + 16.0);
v44(v43, &v130.origin);
v45 = cocos2d::CCSprite::createWithSpriteFrameName((const char *)v125);
a1->m_gauntletInfoNode->addChild_0(a1->m_gauntletInfoNode, v45, 1);
v120 = v45->setPosition;
v46 = (int)v43->getPosition(v43);
cocos2d::CCPoint::CCPoint(&v129, 0.0, -10.0);
cocos2d::CCPoint::operator+(&v130, v46, &v129);
v120(v45, &v130.origin);
((void (__fastcall *)(cocos2d::CCSprite *, int))v45->setScaleY)(v45, 1067030938);
v45->setColor(v45, &stru_9AC737);
v45->setOpacity(v45, 50);
v47 = (const char *)GJMapPack::completedMaps(a1->m_gauntlet);
v48 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"%i/5", v47);
CString = (char *)cocos2d::CCString::getCString(v48);
sub_776584((int)&v126, CString);
v50 = cocos2d::CCLabelBMFont::create();
a1->m_gauntletInfoNode->addChild_0(a1->m_gauntletInfoNode, v50, 2);
((void (__fastcall *)(cocos2d::CCLabelBMFont *, int))v50->setScale)(v50, 1053609165);
v51 = v50->setPosition;
v52 = (int)v43->getPosition(v43);
cocos2d::CCPoint::CCPoint(&v129, 0.0, -40.0 - v12);
cocos2d::CCPoint::operator+(&v130, v52, &v129);
v51(v50, &v130.origin);
v53 = cocos2d::CCLabelBMFont::create();
a1->m_gauntletInfoNode->addChild_0(a1->m_gauntletInfoNode, v53, 1);
v54 = v53->setScale;
v55 = ((int (__fastcall *)(cocos2d::CCLabelBMFont *))v50->getScale)(v50);
((void (__fastcall *)(cocos2d::CCLabelBMFont *, int))v54)(v53, v55);
v53->setColor(v53, &stru_9AC737);
v53->setOpacity(v53, 60);
v56 = v53->setPosition;
v57 = (int)v50->getPosition(v50);
cocos2d::CCPoint::operator+(&v130, v57, &v128);
v56(v53, &v130.origin);
if ( GJMapPack::hasCompletedMapPack(a1->m_gauntlet) )
{
v75 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_completesIcon_001.png");
a1->addChild_0(a1, v75, 5);
((void (__fastcall *)(cocos2d::CCSprite *, int))v75->setScale)(v75, 1066192077);
v76 = v75->setPosition;
cocos2d::CCPoint::CCPoint(&v130.origin, 0.0, -72.0);
v76(v75, &v130.origin);
v77 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_completesIcon_001.png");
a1->addChild_0(a1, v77, 1);
((void (__fastcall *)(cocos2d::CCSprite *, int))v77->setScale)(v77, 1066192077);
v78 = v77->setPosition;
v79 = (int)v75->getPosition(v75);
cocos2d::CCPoint::operator+(&v130, v79, &v128);
v78(v77, &v130.origin);
v77->setColor(v77, &stru_9AC737);
v77->setOpacity(v77, 60);
v80 = GameStatsManager::sharedState();
GameStatsManager::getGauntletRewardKey((GameStatsManager *)&v129, (int)v80, m_packID);
v81 = GameStatsManager::sharedState();
sub_775C20(&v130);
isSpecialChestUnlocked = GameStatsManager::isSpecialChestUnlocked((int)v81, (char **)&v130, v82, v83);
sub_774008(&v130);
if ( !isSpecialChestUnlocked )
{
a1->m_gauntletInfoNode->setVisible(a1->m_gauntletInfoNode, 0);
a1->m_rewardNode->setVisible(a1->m_rewardNode, 1);
v85 = cocos2d::CCLabelBMFont::create();
((void (__fastcall *)(cocos2d::CCLabelBMFont *, int))v85->setScale)(v85, 1059481190);
a1->m_rewardNode->addChild_0(a1->m_rewardNode, v85, 2);
v86 = v85->setPosition;
cocos2d::CCPoint::CCPoint(&v130.origin, 0.0, 43.0);
v86(v85, &v130.origin);
v87 = cocos2d::CCLabelBMFont::create();
v88 = v87->setScale;
v89 = ((int (__fastcall *)(cocos2d::CCLabelBMFont *))v85->getScale)(v85);
((void (__fastcall *)(cocos2d::CCLabelBMFont *, int))v88)(v87, v89);
a1->m_rewardNode->addChild_0(a1->m_rewardNode, v87, 1);
v90 = v87->setPosition;
v91 = (int)v85->getPosition(v85);
cocos2d::CCPoint::operator+(&v130, v91, &v128);
v90(v87, &v130.origin);
v87->setColor(v87, &stru_9AC737);
v87->setOpacity(v87, 60);
v92 = GJChestSprite::create((int)&dword_0 + 2);
a1->m_rewardNode->addChild_0(a1->m_rewardNode, v92, 2);
((void (__fastcall *)(GJChestSprite *, int))v92->setScale)(v92, 1058642330);
v93 = v92->setPosition;
v94 = (int)v85->getPosition(v85);
cocos2d::CCPoint::CCPoint(&v130.origin, 0.0, *(float *)(v94 + 4) - 46.0);
v93(v92, &v130.origin);
v95 = GJChestSprite::create((int)&dword_0 + 2);
a1->m_rewardNode->addChild_0(a1->m_rewardNode, v95, 1);
v96 = v95->setScale;
v97 = ((int (__fastcall *)(GJChestSprite *))v92->getScale)(v92);
((void (__fastcall *)(GJChestSprite *, int))v96)(v95, v97);
v98 = v95->setPosition;
v99 = (int)v92->getPosition(v92);
cocos2d::CCPoint::operator+(&v130, v99, &v128);
v98(v95, &v130.origin);
v100 = v95->getChildren(v95);
v101 = cocos2d::CCArray::objectAtIndex(v100, 0);
(*(void (__fastcall **)(int, cocos2d::ccColor3B *))(*(_DWORD *)v101 + 472))(v101, &stru_9AC737);
v102 = v95->getChildren(v95);
v103 = cocos2d::CCArray::objectAtIndex(v102, 0);
(*(void (__fastcall **)(int, int))(*(_DWORD *)v103 + 448))(v103, 60);
}
sub_774008(&v129);
}
else
{
v58 = cocos2d::CCLabelBMFont::create();
((void (__fastcall *)(cocos2d::CCLabelBMFont *, int))v58->setScale)(v58, 1055286886);
a1->m_gauntletInfoNode->addChild_0(a1->m_gauntletInfoNode, v58, 2);
v59 = v58->setPosition;
cocos2d::CCPoint::CCPoint(&v130.origin, 0.0, -47.0);
v59(v58, &v130.origin);
v60 = cocos2d::CCLabelBMFont::create();
((void (__fastcall *)(cocos2d::CCLabelBMFont *, int))v60->setScale)(v60, 1055286886);
a1->m_gauntletInfoNode->addChild_0(a1->m_gauntletInfoNode, v60, 1);
v61 = v60->setPosition;
v62 = (int)v58->getPosition(v58);
cocos2d::CCPoint::operator+(&v130, v62, &v128);
v61(v60, &v130.origin);
v60->setColor(v60, &stru_9AC737);
v60->setOpacity(v60, 60);
v63 = GJChestSprite::create((int)&dword_0 + 2);
a1->m_gauntletInfoNode->addChild_0(a1->m_gauntletInfoNode, v63, 2);
((void (__fastcall *)(GJChestSprite *, int))v63->setScale)(v63, 1053609165);
v64 = v63->setPosition;
v65 = (int)v58->getPosition(v58);
cocos2d::CCPoint::CCPoint(&v130.origin, 0.0, *(float *)(v65 + 4) - 31.5);
v64(v63, &v130.origin);
v66 = GJChestSprite::create((int)&dword_0 + 2);
a1->m_gauntletInfoNode->addChild_0(a1->m_gauntletInfoNode, v66, 1);
v67 = v66->setScale;
v68 = ((int (__fastcall *)(GJChestSprite *))v63->getScale)(v63);
((void (__fastcall *)(GJChestSprite *, int))v67)(v66, v68);
v69 = v66->setPosition;
v70 = (int)v63->getPosition(v63);
cocos2d::CCPoint::operator+(&v130, v70, &v128);
v69(v66, &v130.origin);
v71 = v66->getChildren(v66);
v72 = cocos2d::CCArray::objectAtIndex(v71, 0);
(*(void (__fastcall **)(int, cocos2d::ccColor3B *))(*(_DWORD *)v72 + 472))(v72, &stru_9AC737);
v73 = v66->getChildren(v66);
v74 = cocos2d::CCArray::objectAtIndex(v73, 0);
(*(void (__fastcall **)(int, int))(*(_DWORD *)v74 + 448))(v74, 60);
}
sub_774008(&v126);
}
sub_774008(&v125);
sub_774008(&v124);
}
}