// // GauntletNode::generateNode from 0x1001c0d4c to 0x1001c2430 (5860 bytes) // // 2 xrefs: // > GauntletNode::onUnlock @ 0x1001c03f4 // > GauntletNode::init @ 0x1001c0d34 // // 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 __fastcall GauntletNode::generateNode(GauntletNode *a1) { GJMapPack *m_gauntlet; // x8 __int64 m_packID; // x20 cocos2d::CCNode *v4; // x0 cocos2d::CCNode *v5; // x0 float v6; // s10 float v7; // s8 __int16 v8; // w8 __int16 v9; // w8 __int16 v10; // w8 __int16 v11; // w8 char v12; // w8 __int16 v13; // w8 __int16 v14; // w8 char v15; // w8 int v16; // w8 __int16 v17; // w8 __int16 v18; // w8 __int16 v19; // w8 char v20; // w8 __int16 v21; // w8 __int16 v22; // w8 __int16 v23; // w8 cocos2d::extension::CCScale9Sprite *v24; // x21 const char *v25; // x0 cocos2d::CCLabelBMFont *v26; // x22 __n128 v27; // q1 __n128 v28; // q0 cocos2d::CCLabelBMFont *v29; // x23 float32x2_t *v30; // x24 __n128 v31; // q0 __n128 v32; // q1 double v33; // d0 __n128 v34; // q0 __n128 v35; // q1 const char *v36; // x0 cocos2d::CCLabelBMFont *v37; // x24 float32x2_t *v38; // x0 double v39; // d0 cocos2d::CCLabelBMFont *v40; // x25 float32x2_t *v41; // x0 double v42; // d0 cocos2d::CCSprite *v43; // x20 __n128 v44; // q0 __n128 v45; // q1 cocos2d::CCSprite *v46; // x21 __n128 v47; // q0 __n128 v48; // q1 cocos2d::CCSprite *v49; // x20 float32x2_t *v50; // x21 __n128 v51; // q0 __n128 v52; // q1 double v53; // d0 cocos2d::CCLabelBMFont *v54; // x21 float32x2_t *v55; // x19 __n128 v56; // q0 __n128 v57; // q1 double v58; // d0 void **v59; // x0 cocos2d::CCSprite *v60; // x21 __n128 v61; // q0 __n128 v62; // q1 void **v63; // x0 cocos2d::CCSprite *v64; // x22 float32x2_t *v65; // x23 __n128 v66; // q0 __n128 v67; // q1 double v68; // d0 int v69; // w0 cocos2d::CCString *v70; // x0 char *CString; // x0 void **v72; // x0 cocos2d::CCLabelBMFont *v73; // x22 float32x2_t *v74; // x21 __n128 v75; // q1 __n128 v76; // q0 double v77; // d0 void **v78; // x0 cocos2d::CCLabelBMFont *v79; // x21 float32x2_t *v80; // x0 double v81; // d0 cocos2d::CCSprite *v82; // x21 __n128 v83; // q0 __n128 v84; // q1 cocos2d::CCSprite *v85; // x22 float32x2_t *v86; // x0 double v87; // d0 GameStatsManager *v88; // x0 GameStatsManager *v89; // x20 cocos2d::CCLabelBMFont *v90; // x20 __n128 v91; // q0 __n128 v92; // q1 cocos2d::CCLabelBMFont *v93; // x21 float32x2_t *v94; // x0 double v95; // d0 GJChestSprite *v96; // x21 __n128 v97; // q1 __n128 v98; // q0 GJChestSprite *v99; // x20 float32x2_t *v100; // x0 double v101; // d0 __int64 v102; // x0 __int64 v103; // x0 __int64 v104; // x0 __int64 v105; // x0 char isSpecialChestUnlocked; // w0 char v107; // w20 cocos2d::CCLabelBMFont *v108; // x20 __n128 v109; // q0 __n128 v110; // q1 cocos2d::CCLabelBMFont *v111; // x21 float32x2_t *v112; // x0 double v113; // d0 GJChestSprite *v114; // x21 __n128 v115; // q1 __n128 v116; // q0 GJChestSprite *v117; // x20 float32x2_t *v118; // x0 double v119; // d0 __int64 v120; // x0 __int64 v121; // x0 __int64 v122; // x0 __int64 v123; // x0 void *__p[2]; // [xsp+10h] [xbp-F0h] BYREF __int64 v125; // [xsp+20h] [xbp-E0h] void *v126[2]; // [xsp+28h] [xbp-D8h] BYREF __int64 v127; // [xsp+38h] [xbp-C8h] float32x2_t v128; // [xsp+40h] [xbp-C0h] BYREF void *v129[2]; // [xsp+48h] [xbp-B8h] BYREF char v130; // [xsp+5Fh] [xbp-A1h] float32x2_t v131; // [xsp+60h] [xbp-A0h] BYREF __int16 v132; // [xsp+68h] [xbp-98h] BYREF GLubyte v133; // [xsp+6Ah] [xbp-96h] char v134[4]; // [xsp+6Ch] [xbp-94h] BYREF void *v135[2]; // [xsp+70h] [xbp-90h] BYREF char v136; // [xsp+87h] [xbp-79h] void *v137[2]; // [xsp+88h] [xbp-78h] BYREF char v138; // [xsp+9Fh] [xbp-61h] cocos2d::CCRect v139; // 0:s0.4,4:s1.4,8:s2.4,12:s3.4 ((void (__fastcall *)(GauntletNode *, _QWORD))a1->removeAllChildrenWithCleanup)(a1, 0); m_gauntlet = a1->m_gauntlet; if ( !m_gauntlet ) return; m_packID = (unsigned int)m_gauntlet->m_packID; GauntletNode::nameForType(v137, m_packID); GauntletNode::frameForType(v135, m_packID); v134[2] = -1; *(_WORD *)v134 = -1; v133 = -1; v132 = -1; v4 = cocos2d::CCNode::create(); a1->m_gauntletInfoNode = v4; ((void (__fastcall *)(cocos2d::CCNode *, void *))v4->setContentSize)(v4, &unk_10086C478); ((void (__fastcall *)(GauntletNode *, cocos2d::CCNode *, __int64))a1->addChild_0)(a1, a1->m_gauntletInfoNode, 1); v5 = cocos2d::CCNode::create(); a1->m_rewardNode = v5; ((void (__fastcall *)(cocos2d::CCNode *, void *))v5->setContentSize)(v5, &unk_10086C478); ((void (__fastcall *)(GauntletNode *, cocos2d::CCNode *, __int64))a1->addChild_0)(a1, a1->m_rewardNode, 2); ((void (__fastcall *)(cocos2d::CCNode *, _QWORD))a1->m_rewardNode->setVisible)(a1->m_rewardNode, 0); v6 = 0.0; v7 = 0.7; switch ( (int)m_packID ) { case 1: v134[2] = 0; *(_WORD *)v134 = 25855; goto LABEL_34; case 2: v134[2] = -1; *(_WORD *)v134 = 32000; goto LABEL_36; case 3: v134[2] = 0; *(_WORD *)v134 = -20736; v133 = 50; v18 = -156; goto LABEL_32; case 4: v134[2] = -56; *(_WORD *)v134 = 100; v133 = -1; v18 = 13020; LABEL_32: v132 = v18; v7 = 0.62; break; case 5: v134[2] = 0; *(_WORD *)v134 = 200; v133 = 0; v8 = 23295; goto LABEL_84; case 6: v134[2] = -1; *(_WORD *)v134 = 25675; break; case 7: v134[2] = 100; v13 = 25700; goto LABEL_43; case 8: case 15: memset(v134, 50, 3); goto LABEL_44; case 9: v134[2] = -1; *(_WORD *)v134 = 25600; goto LABEL_78; case 10: v134[2] = -106; *(_WORD *)v134 = 13055; v133 = -1; v10 = -14081; goto LABEL_58; case 11: v134[2] = 125; v14 = 12800; goto LABEL_81; case 12: v134[2] = 0; *(_WORD *)v134 = 25750; v16 = 3328255; goto LABEL_45; case 13: v134[2] = 0; *(_WORD *)v134 = 19200; v133 = 0; v21 = -206; goto LABEL_72; case 14: v134[2] = 50; v13 = 19300; LABEL_43: *(_WORD *)v134 = v13; LABEL_44: v16 = 1645055; LABEL_45: v132 = v16; v133 = BYTE2(v16); break; case 16: v134[2] = 0; *(_WORD *)v134 = 25600; v133 = 0; v17 = -206; goto LABEL_52; case 17: v134[2] = 0; *(_WORD *)v134 = 25750; v132 = -14081; v133 = 50; v6 = 1.0; break; case 18: v134[2] = -71; *(_WORD *)v134 = 95; v133 = -1; v8 = 32255; goto LABEL_84; case 19: v134[2] = 75; *(_WORD *)v134 = 19200; v133 = -56; v22 = -14336; goto LABEL_64; case 20: v134[2] = 0; *(_WORD *)v134 = 110; v133 = 0; v19 = 19455; goto LABEL_61; case 21: v134[2] = -1; *(_WORD *)v134 = 32050; v133 = -1; v19 = -156; LABEL_61: v132 = v19; v6 = 3.0; break; case 22: qmemcpy(v134, "$,0", 3); v20 = 110; goto LABEL_71; case 23: qmemcpy(v134, "ZZP", 3); v133 = 13; v8 = -96; goto LABEL_84; case 24: qmemcpy(v134, "#>=", 3); v133 = -1; v8 = -2929; goto LABEL_84; case 25: qmemcpy(v134, "=,(", 3); v133 = -86; v17 = -6401; goto LABEL_52; case 26: qmemcpy(v134, "Z#<", 3); v133 = -1; v8 = -26881; goto LABEL_84; case 27: qmemcpy(v134, "5(h", 3); v133 = 114; v8 = -19201; goto LABEL_84; case 28: v134[2] = 96; v11 = 6483; goto LABEL_24; case 29: v134[2] = 0; *(_WORD *)v134 = 7751; v133 = 0; v132 = -32001; v6 = 3.0; v7 = 0.48; break; case 30: qmemcpy(v134, "-7-", 3); v133 = 0; v132 = -8961; v6 = 3.0; goto LABEL_73; case 31: v134[2] = 80; v23 = 12800; goto LABEL_54; case 32: qmemcpy(v134, "2%?", 3); v133 = -1; v8 = 24746; goto LABEL_84; case 33: v134[2] = 125; *(_WORD *)v134 = 17920; v133 = -1; v17 = -6631; LABEL_52: v132 = v17; v6 = 2.0; break; case 34: v134[2] = 76; *(_WORD *)v134 = 76; v133 = 0; v132 = -29441; v6 = 6.0; goto LABEL_59; case 35: v134[2] = 105; *(_WORD *)v134 = 7218; v133 = -1; v132 = -256; v6 = 5.0; break; case 36: v134[2] = -106; *(_WORD *)v134 = 94; v133 = 0; v132 = -132; v6 = -4.0; goto LABEL_73; case 37: strcpy(v134, "m_labelColor.r = v132; a1->m_labelColor.b = v133; a1->m_backgroundColor.b = v134[2]; *(_WORD *)&a1->m_backgroundColor.r = *(_WORD *)v134; sub_100022990((float *)v129, 0.0, 0.0, 86.0, 86.0); v24 = cocos2d::extension::CCScale9Sprite::create("GJ_squareB_01.png", v139); ((void (__fastcall *)(cocos2d::extension::CCScale9Sprite *, __int64))v24->setOpacity)(v24, 255); sub_100022988((float *)v129, 110.0, 234.0); ((void (__fastcall *)(cocos2d::extension::CCScale9Sprite *, void **))v24->setContentSize)(v24, v129); ((void (__fastcall *)(GauntletNode *, cocos2d::extension::CCScale9Sprite *, __int64))a1->addChild_0)( a1, v24, 0xFFFFFFFFLL); ((void (__fastcall *)(cocos2d::extension::CCScale9Sprite *, char *))v24->setColor)(v24, v134); if ( v138 >= 0 ) v25 = (const char *)v137; else v25 = (const char *)v137[0]; v26 = cocos2d::CCLabelBMFont::create_1(v25, "bigFont.fnt"); ((void (__fastcall *)(GauntletNode *, cocos2d::CCLabelBMFont *, __int64))a1->addChild_0)(a1, v26, 2); cocos2d::CCLabelBMFont::limitLabelWidth(v26, 75.0, v7, 0.0); v27.n128_u32[0] = 1119617024; v28.n128_u32[0] = 0; sub_100022980(v28, v27, v129); ((void (__fastcall *)(cocos2d::CCLabelBMFont *, void **))v26->setPosition)(v26, v129); ((void (__fastcall *)(cocos2d::CCLabelBMFont *, __int16 *))v26->setColor)(v26, &v132); v29 = cocos2d::CCLabelBMFont::create_1("Gauntlet", "bigFont.fnt"); ((void (__fastcall *)(GauntletNode *, cocos2d::CCLabelBMFont *, __int64))a1->addChild_0)(a1, v29, 2); ((void (__fastcall *)(cocos2d::CCLabelBMFont *, float))v29->setScale)(v29, 0.45); v30 = (float32x2_t *)((__int64 (__fastcall *)(cocos2d::CCLabelBMFont *))v26->getPosition)(v26); v31.n128_u32[0] = 0; v32.n128_u32[0] = -19.0; sub_100022980(v31, v32, v126); *(float32x2_t *)&v33 = sub_1000229DC(v30, (float32x2_t *)v126, (float32x2_t *)v129); ((void (__fastcall *)(cocos2d::CCLabelBMFont *, void **, double))v29->setPosition)(v29, v129, v33); v34 = ((__n128 (__fastcall *)(cocos2d::CCLabelBMFont *, __int16 *))v29->setColor)(v29, &v132); v34.n128_u32[0] = 2.0; v35.n128_u32[0] = -3.0; sub_100022980(v34, v35, &v131); if ( v138 >= 0 ) v36 = (const char *)v137; else v36 = (const char *)v137[0]; v37 = cocos2d::CCLabelBMFont::create_1(v36, "bigFont.fnt"); ((void (__fastcall *)(GauntletNode *, cocos2d::CCLabelBMFont *, __int64))a1->addChild_0)(a1, v37, 1); ((void (__fastcall *)(cocos2d::CCLabelBMFont *))v26->getScale)(v26); ((void (__fastcall *)(cocos2d::CCLabelBMFont *))v37->setScale)(v37); v38 = (float32x2_t *)((__int64 (__fastcall *)(cocos2d::CCLabelBMFont *))v26->getPosition)(v26); *(float32x2_t *)&v39 = sub_1000229DC(v38, &v131, (float32x2_t *)v129); ((void (__fastcall *)(cocos2d::CCLabelBMFont *, void **, double))v37->setPosition)(v37, v129, v39); v40 = cocos2d::CCLabelBMFont::create_1("Gauntlet", "bigFont.fnt"); ((void (__fastcall *)(GauntletNode *, cocos2d::CCLabelBMFont *, __int64))a1->addChild_0)(a1, v40, 1); ((void (__fastcall *)(cocos2d::CCLabelBMFont *))v29->getScale)(v29); ((void (__fastcall *)(cocos2d::CCLabelBMFont *))v40->setScale)(v40); v41 = (float32x2_t *)((__int64 (__fastcall *)(cocos2d::CCLabelBMFont *))v29->getPosition)(v29); *(float32x2_t *)&v42 = sub_1000229DC(v41, &v131, (float32x2_t *)v129); ((void (__fastcall *)(cocos2d::CCLabelBMFont *, void **, double))v40->setPosition)(v40, v129, v42); ((void (__fastcall *)(cocos2d::CCLabelBMFont *, void *))v37->setColor)(v37, &unk_100639DFB); ((void (__fastcall *)(cocos2d::CCLabelBMFont *, void *))v40->setColor)(v40, &unk_100639DFB); ((void (__fastcall *)(cocos2d::CCLabelBMFont *, __int64))v37->setOpacity)(v37, 60); ((void (__fastcall *)(cocos2d::CCLabelBMFont *, __int64))v40->setOpacity)(v40, 60); if ( !a1->m_locked ) { if ( v136 >= 0 ) v59 = v135; else v59 = (void **)v135[0]; v60 = cocos2d::CCSprite::createWithSpriteFrameName((const char *)v59); v61 = ((__n128 (__fastcall *)(cocos2d::CCNode *, cocos2d::CCSprite *, __int64))a1->m_gauntletInfoNode->addChild_0)( a1->m_gauntletInfoNode, v60, 2); v62.n128_f32[0] = v6 + 16.0; v61.n128_u32[0] = 0; sub_100022980(v61, v62, v129); ((void (__fastcall *)(cocos2d::CCSprite *, void **))v60->setPosition)(v60, v129); if ( v136 >= 0 ) v63 = v135; else v63 = (void **)v135[0]; v64 = cocos2d::CCSprite::createWithSpriteFrameName((const char *)v63); ((void (__fastcall *)(cocos2d::CCNode *, cocos2d::CCSprite *, __int64))a1->m_gauntletInfoNode->addChild_0)( a1->m_gauntletInfoNode, v64, 1); v65 = (float32x2_t *)((__int64 (__fastcall *)(cocos2d::CCSprite *))v60->getPosition)(v60); v66.n128_u32[0] = 0; v67.n128_u32[0] = -10.0; sub_100022980(v66, v67, v126); *(float32x2_t *)&v68 = sub_1000229DC(v65, (float32x2_t *)v126, (float32x2_t *)v129); ((void (__fastcall *)(cocos2d::CCSprite *, void **, double))v64->setPosition)(v64, v129, v68); ((void (__fastcall *)(cocos2d::CCSprite *, float))v64->setScaleY)(v64, 1.2); ((void (__fastcall *)(cocos2d::CCSprite *, void *))v64->setColor)(v64, &unk_100639DFB); ((void (__fastcall *)(cocos2d::CCSprite *, __int64))v64->setOpacity)(v64, 50); v69 = GJMapPack::completedMaps(a1->m_gauntlet); v70 = (cocos2d::CCString *)sub_100268F4C("%i/5", v69); CString = (char *)cocos2d::CCString::getCString(v70); sub_100009900(v129, CString); if ( v130 >= 0 ) v72 = v129; else v72 = (void **)v129[0]; v73 = cocos2d::CCLabelBMFont::create_1((const char *)v72, "bigFont.fnt"); ((void (__fastcall *)(cocos2d::CCNode *, cocos2d::CCLabelBMFont *, __int64))a1->m_gauntletInfoNode->addChild_0)( a1->m_gauntletInfoNode, v73, 2); ((void (__fastcall *)(cocos2d::CCLabelBMFont *, float))v73->setScale)(v73, 0.4); v74 = (float32x2_t *)((__int64 (__fastcall *)(cocos2d::CCSprite *))v60->getPosition)(v60); v75.n128_f32[0] = -40.0 - v6; v76.n128_u32[0] = 0; sub_100022980(v76, v75, &v128); *(float32x2_t *)&v77 = sub_1000229DC(v74, &v128, (float32x2_t *)v126); ((void (__fastcall *)(cocos2d::CCLabelBMFont *, void **, double))v73->setPosition)(v73, v126, v77); if ( v130 >= 0 ) v78 = v129; else v78 = (void **)v129[0]; v79 = cocos2d::CCLabelBMFont::create_1((const char *)v78, "bigFont.fnt"); ((void (__fastcall *)(cocos2d::CCNode *, cocos2d::CCLabelBMFont *, __int64))a1->m_gauntletInfoNode->addChild_0)( a1->m_gauntletInfoNode, v79, 1); ((void (__fastcall *)(cocos2d::CCLabelBMFont *))v73->getScale)(v73); ((void (__fastcall *)(cocos2d::CCLabelBMFont *))v79->setScale)(v79); ((void (__fastcall *)(cocos2d::CCLabelBMFont *, void *))v79->setColor)(v79, &unk_100639DFB); ((void (__fastcall *)(cocos2d::CCLabelBMFont *, __int64))v79->setOpacity)(v79, 60); v80 = (float32x2_t *)((__int64 (__fastcall *)(cocos2d::CCLabelBMFont *))v73->getPosition)(v73); *(float32x2_t *)&v81 = sub_1000229DC(v80, &v131, (float32x2_t *)v126); ((void (__fastcall *)(cocos2d::CCLabelBMFont *, void **, double))v79->setPosition)(v79, v126, v81); if ( !GJMapPack::hasCompletedMapPack(a1->m_gauntlet) ) { v90 = cocos2d::CCLabelBMFont::create_1("Reward", "goldFont.fnt"); ((void (__fastcall *)(cocos2d::CCLabelBMFont *, float))v90->setScale)(v90, 0.45); v91 = ((__n128 (__fastcall *)(cocos2d::CCNode *, cocos2d::CCLabelBMFont *, __int64))a1->m_gauntletInfoNode->addChild_0)( a1->m_gauntletInfoNode, v90, 2); v92.n128_u32[0] = -1036255232; v91.n128_u32[0] = 0; sub_100022980(v91, v92, v126); ((void (__fastcall *)(cocos2d::CCLabelBMFont *, void **))v90->setPosition)(v90, v126); v93 = cocos2d::CCLabelBMFont::create_1("Reward", "goldFont.fnt"); ((void (__fastcall *)(cocos2d::CCLabelBMFont *, float))v93->setScale)(v93, 0.45); ((void (__fastcall *)(cocos2d::CCNode *, cocos2d::CCLabelBMFont *, __int64))a1->m_gauntletInfoNode->addChild_0)( a1->m_gauntletInfoNode, v93, 1); v94 = (float32x2_t *)((__int64 (__fastcall *)(cocos2d::CCLabelBMFont *))v90->getPosition)(v90); *(float32x2_t *)&v95 = sub_1000229DC(v94, &v131, (float32x2_t *)v126); ((void (__fastcall *)(cocos2d::CCLabelBMFont *, void **, double))v93->setPosition)(v93, v126, v95); ((void (__fastcall *)(cocos2d::CCLabelBMFont *, void *))v93->setColor)(v93, &unk_100639DFB); ((void (__fastcall *)(cocos2d::CCLabelBMFont *, __int64))v93->setOpacity)(v93, 60); v96 = GJChestSprite::create(2); ((void (__fastcall *)(cocos2d::CCNode *, GJChestSprite *, __int64))a1->m_gauntletInfoNode->addChild_0)( a1->m_gauntletInfoNode, v96, 2); ((void (__fastcall *)(GJChestSprite *, float))v96->setScale)(v96, 0.4); v97.n128_f32[0] = *(float *)(((__int64 (__fastcall *)(cocos2d::CCLabelBMFont *))v90->getPosition)(v90) + 4) + -31.5; v98.n128_u32[0] = 0; sub_100022980(v98, v97, v126); ((void (__fastcall *)(GJChestSprite *, void **))v96->setPosition)(v96, v126); v99 = GJChestSprite::create(2); ((void (__fastcall *)(cocos2d::CCNode *, GJChestSprite *, __int64))a1->m_gauntletInfoNode->addChild_0)( a1->m_gauntletInfoNode, v99, 1); ((void (__fastcall *)(GJChestSprite *))v96->getScale)(v96); ((void (__fastcall *)(GJChestSprite *))v99->setScale)(v99); v100 = (float32x2_t *)((__int64 (__fastcall *)(GJChestSprite *))v96->getPosition)(v96); *(float32x2_t *)&v101 = sub_1000229DC(v100, &v131, (float32x2_t *)v126); ((void (__fastcall *)(GJChestSprite *, void **, double))v99->setPosition)(v99, v126, v101); v102 = ((__int64 (__fastcall *)(GJChestSprite *))v99->getChildren)(v99); v103 = sub_10024A388(v102, 0); (*(void (__fastcall **)(__int64, void *))(*(_QWORD *)v103 + 944LL))(v103, &unk_100639DFB); v104 = ((__int64 (__fastcall *)(GJChestSprite *))v99->getChildren)(v99); v105 = sub_10024A388(v104, 0); (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v105 + 896LL))(v105, 60); LABEL_117: if ( v130 < 0 ) operator delete(v129[0]); goto LABEL_119; } v82 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_completesIcon_001.png"); ((void (__fastcall *)(GauntletNode *, cocos2d::CCSprite *, __int64))a1->addChild_0)(a1, v82, 5); v83 = ((__n128 (__fastcall *)(cocos2d::CCSprite *, float))v82->setScale)(v82, 1.1); v84.n128_u32[0] = -1030750208; v83.n128_u32[0] = 0; sub_100022980(v83, v84, v126); ((void (__fastcall *)(cocos2d::CCSprite *, void **))v82->setPosition)(v82, v126); v85 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_completesIcon_001.png"); ((void (__fastcall *)(GauntletNode *, cocos2d::CCSprite *, __int64))a1->addChild_0)(a1, v85, 1); ((void (__fastcall *)(cocos2d::CCSprite *, float))v85->setScale)(v85, 1.1); v86 = (float32x2_t *)((__int64 (__fastcall *)(cocos2d::CCSprite *))v82->getPosition)(v82); *(float32x2_t *)&v87 = sub_1000229DC(v86, &v131, (float32x2_t *)v126); ((void (__fastcall *)(cocos2d::CCSprite *, void **, double))v85->setPosition)(v85, v126, v87); ((void (__fastcall *)(cocos2d::CCSprite *, void *))v85->setColor)(v85, &unk_100639DFB); ((void (__fastcall *)(cocos2d::CCSprite *, __int64))v85->setOpacity)(v85, 60); v88 = GameStatsManager::sharedState(); GameStatsManager::getGauntletRewardKey(v126, v88, m_packID); v89 = GameStatsManager::sharedState(); if ( SHIBYTE(v127) < 0 ) { sub_1000097D0(__p, v126[0], (unsigned __int64)v126[1]); } else { *(_OWORD *)__p = *(_OWORD *)v126; v125 = v127; } isSpecialChestUnlocked = GameStatsManager::isSpecialChestUnlocked(v89, __p); v107 = isSpecialChestUnlocked; if ( SHIBYTE(v125) < 0 ) { operator delete(__p[0]); if ( (v107 & 1) != 0 ) goto LABEL_115; } else if ( (isSpecialChestUnlocked & 1) != 0 ) { LABEL_115: if ( SHIBYTE(v127) < 0 ) operator delete(v126[0]); goto LABEL_117; } ((void (__fastcall *)(cocos2d::CCNode *, _QWORD))a1->m_gauntletInfoNode->setVisible)(a1->m_gauntletInfoNode, 0); ((void (__fastcall *)(cocos2d::CCNode *, __int64))a1->m_rewardNode->setVisible)(a1->m_rewardNode, 1); v108 = cocos2d::CCLabelBMFont::create_1("Reward", "goldFont.fnt"); ((void (__fastcall *)(cocos2d::CCLabelBMFont *, float))v108->setScale)(v108, 0.65); v109 = ((__n128 (__fastcall *)(cocos2d::CCNode *, cocos2d::CCLabelBMFont *, __int64))a1->m_rewardNode->addChild_0)( a1->m_rewardNode, v108, 2); v110.n128_u32[0] = 1110179840; v109.n128_u32[0] = 0; sub_100022980(v109, v110, &v128); ((void (__fastcall *)(cocos2d::CCLabelBMFont *, float32x2_t *))v108->setPosition)(v108, &v128); v111 = cocos2d::CCLabelBMFont::create_1("Reward", "goldFont.fnt"); ((void (__fastcall *)(cocos2d::CCLabelBMFont *))v108->getScale)(v108); ((void (__fastcall *)(cocos2d::CCLabelBMFont *))v111->setScale)(v111); ((void (__fastcall *)(cocos2d::CCNode *, cocos2d::CCLabelBMFont *, __int64))a1->m_rewardNode->addChild_0)( a1->m_rewardNode, v111, 1); v112 = (float32x2_t *)((__int64 (__fastcall *)(cocos2d::CCLabelBMFont *))v108->getPosition)(v108); *(float32x2_t *)&v113 = sub_1000229DC(v112, &v131, &v128); ((void (__fastcall *)(cocos2d::CCLabelBMFont *, float32x2_t *, double))v111->setPosition)(v111, &v128, v113); ((void (__fastcall *)(cocos2d::CCLabelBMFont *, void *))v111->setColor)(v111, &unk_100639DFB); ((void (__fastcall *)(cocos2d::CCLabelBMFont *, __int64))v111->setOpacity)(v111, 60); v114 = GJChestSprite::create(2); ((void (__fastcall *)(cocos2d::CCNode *, GJChestSprite *, __int64))a1->m_rewardNode->addChild_0)( a1->m_rewardNode, v114, 2); ((void (__fastcall *)(GJChestSprite *, float))v114->setScale)(v114, 0.6); v115.n128_f32[0] = *(float *)(((__int64 (__fastcall *)(cocos2d::CCLabelBMFont *))v108->getPosition)(v108) + 4) + -46.0; v116.n128_u32[0] = 0; sub_100022980(v116, v115, &v128); ((void (__fastcall *)(GJChestSprite *, float32x2_t *))v114->setPosition)(v114, &v128); v117 = GJChestSprite::create(2); ((void (__fastcall *)(cocos2d::CCNode *, GJChestSprite *, __int64))a1->m_rewardNode->addChild_0)( a1->m_rewardNode, v117, 1); ((void (__fastcall *)(GJChestSprite *))v114->getScale)(v114); ((void (__fastcall *)(GJChestSprite *))v117->setScale)(v117); v118 = (float32x2_t *)((__int64 (__fastcall *)(GJChestSprite *))v114->getPosition)(v114); *(float32x2_t *)&v119 = sub_1000229DC(v118, &v131, &v128); ((void (__fastcall *)(GJChestSprite *, float32x2_t *, double))v117->setPosition)(v117, &v128, v119); v120 = ((__int64 (__fastcall *)(GJChestSprite *))v117->getChildren)(v117); v121 = sub_10024A388(v120, 0); (*(void (__fastcall **)(__int64, void *))(*(_QWORD *)v121 + 944LL))(v121, &unk_100639DFB); v122 = ((__int64 (__fastcall *)(GJChestSprite *))v117->getChildren)(v117); v123 = sub_10024A388(v122, 0); (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v123 + 896LL))(v123, 60); goto LABEL_115; } memset(v129, 80, 3); ((void (__fastcall *)(cocos2d::extension::CCScale9Sprite *, void **))v24->setColor)(v24, v129); v128.i8[2] = -81; v128.i16[0] = -20561; ((void (__fastcall *)(cocos2d::CCLabelBMFont *, float32x2_t *))v26->setColor)(v26, &v128); ((void (__fastcall *)(cocos2d::CCLabelBMFont *, float32x2_t *))v29->setColor)(v29, &v128); v43 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_lockGray_001.png"); ((void (__fastcall *)(cocos2d::CCSprite *, float))v43->setScale)(v43, 1.75); v44 = ((__n128 (__fastcall *)(cocos2d::CCNode *, cocos2d::CCSprite *, __int64))a1->m_gauntletInfoNode->addChild_0)( a1->m_gauntletInfoNode, v43, 2); v45.n128_f32[0] = v6 + 16.0; v44.n128_u32[0] = 0; sub_100022980(v44, v45, v129); ((void (__fastcall *)(cocos2d::CCSprite *, void **))v43->setPosition)(v43, v129); v46 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_unlockBtn_001.png"); v47 = ((__n128 (__fastcall *)(cocos2d::CCNode *, cocos2d::CCSprite *, __int64))a1->m_gauntletInfoNode->addChild_0)( a1->m_gauntletInfoNode, v46, 2); v48.n128_u32[0] = -1037828096; v47.n128_u32[0] = 0; sub_100022980(v47, v48, v129); ((void (__fastcall *)(cocos2d::CCSprite *, void **))v46->setPosition)(v46, v129); v49 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_adVideoBtn_001.png"); ((void (__fastcall *)(cocos2d::CCNode *, cocos2d::CCSprite *, __int64))a1->m_gauntletInfoNode->addChild_0)( a1->m_gauntletInfoNode, v49, 2); v50 = (float32x2_t *)((__int64 (__fastcall *)(cocos2d::CCSprite *))v46->getPosition)(v46); v51.n128_u32[0] = 0; v52.n128_u32[0] = -31.0; sub_100022980(v51, v52, v126); *(float32x2_t *)&v53 = sub_1000229DC(v50, (float32x2_t *)v126, (float32x2_t *)v129); ((void (__fastcall *)(cocos2d::CCSprite *, void **, double))v49->setPosition)(v49, v129, v53); v54 = cocos2d::CCLabelBMFont::create_1("View Ad", "bigFont.fnt"); ((void (__fastcall *)(cocos2d::CCLabelBMFont *, float))v54->setScale)(v54, 0.3); BYTE2(v129[0]) = -121; LOWORD(v129[0]) = -30841; ((void (__fastcall *)(cocos2d::CCLabelBMFont *, void **))v54->setColor)(v54, v129); ((void (__fastcall *)(cocos2d::CCNode *, cocos2d::CCLabelBMFont *, __int64))a1->m_gauntletInfoNode->addChild_0)( a1->m_gauntletInfoNode, v54, 2); v55 = (float32x2_t *)((__int64 (__fastcall *)(cocos2d::CCSprite *))v49->getPosition)(v49); v56.n128_u32[0] = 0; v57.n128_u32[0] = -25.0; sub_100022980(v56, v57, v126); *(float32x2_t *)&v58 = sub_1000229DC(v55, (float32x2_t *)v126, (float32x2_t *)v129); ((void (__fastcall *)(cocos2d::CCLabelBMFont *, void **, double))v54->setPosition)(v54, v129, v58); LABEL_119: if ( v136 < 0 ) operator delete(v135[0]); if ( v138 < 0 ) operator delete(v137[0]); }
GD Web Decomp Icon

GD Web Decomp

Raw Source