//
// GauntletNode::generateNode from 0x1002568bc to 0x100257fdc (5920 bytes)
//
// 2 xrefs:
// > GauntletNode::onUnlock @ 0x100255f6c
// > GauntletNode::init @ 0x1002568a4
//
// 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 11:01:34 +0000
//
void __fastcall GauntletNode::generateNode(_QWORD *a1)
{
__int64 v2; // x8
__int64 v3; // x20
_QWORD *v4; // x0
__int64 v5; // x0
__int64 v6; // x0
__int64 v7; // x0
float v8; // s10
float v9; // s8
__int16 v10; // w8
__int16 v11; // w8
__int16 v12; // w8
__int16 v13; // w8
char v14; // w8
__int16 v15; // w8
__int16 v16; // w8
char v17; // w8
__int16 v18; // w8
int v19; // w8
__int16 v20; // w8
__int16 v21; // w8
__int16 v22; // w8
char v23; // w8
__int16 v24; // w8
__int16 v25; // w8
__int64 v26; // x21
void **v27; // x0
__int64 v28; // x22
__int64 v29; // x23
float32x2_t *v30; // x24
double v31; // d0
void **v32; // x0
__int64 v33; // x24
float32x2_t *v34; // x0
double v35; // d0
__int64 v36; // x25
float32x2_t *v37; // x0
double v38; // d0
__int64 v39; // x20
__int64 v40; // x21
__int64 v41; // x20
float32x2_t *v42; // x21
double v43; // d0
__int64 v44; // x21
float32x2_t *v45; // x19
double v46; // d0
void **v47; // x0
__int64 v48; // x21
void **v49; // x0
__int64 v50; // x22
float32x2_t *v51; // x23
double v52; // d0
int v53; // w0
__int64 v54; // x0
char *CString; // x0
void **v56; // x0
__int64 v57; // x22
float32x2_t *v58; // x21
double v59; // d0
void **v60; // x0
__int64 v61; // x21
float32x2_t *v62; // x0
double v63; // d0
__int64 v64; // x21
__int64 v65; // x22
float32x2_t *v66; // x0
double v67; // d0
__int64 v68; // x0
__int64 v69; // x0
_QWORD *GauntletRewardKey; // x0
__int64 v71; // x20
__int64 v72; // x20
__int64 v73; // x21
float32x2_t *v74; // x0
double v75; // d0
__int64 v76; // x21
__int64 v77; // x0
__int64 v78; // x20
float32x2_t *v79; // x0
double v80; // d0
__int64 v81; // x0
__int64 v82; // x0
__int64 v83; // x0
__int64 v84; // x0
char isSpecialChestUnlocked; // w0
char v86; // w20
__int64 v87; // x20
__int64 v88; // x21
float32x2_t *v89; // x0
double v90; // d0
__int64 v91; // x21
__int64 v92; // x0
__int64 v93; // x20
float32x2_t *v94; // x0
double v95; // d0
__int64 v96; // x0
__int64 v97; // x0
__int64 v98; // x0
__int64 v99; // x0
void *__p[2]; // [xsp+10h] [xbp-F0h] BYREF
__int64 v101; // [xsp+20h] [xbp-E0h]
void *v102[2]; // [xsp+28h] [xbp-D8h] BYREF
__int64 v103; // [xsp+38h] [xbp-C8h]
float32x2_t v104; // [xsp+40h] [xbp-C0h] BYREF
void *v105[2]; // [xsp+48h] [xbp-B8h] BYREF
char v106; // [xsp+5Fh] [xbp-A1h]
float32x2_t v107; // [xsp+60h] [xbp-A0h] BYREF
__int16 v108; // [xsp+68h] [xbp-98h] BYREF
char v109; // [xsp+6Ah] [xbp-96h]
char v110[4]; // [xsp+6Ch] [xbp-94h] BYREF
void *v111[2]; // [xsp+70h] [xbp-90h] BYREF
char v112; // [xsp+87h] [xbp-79h]
void *v113[2]; // [xsp+88h] [xbp-78h] BYREF
char v114; // [xsp+9Fh] [xbp-61h]
(*(void (__fastcall **)(_QWORD *, _QWORD))(*a1 + 584LL))(a1, 0);
v2 = a1[43];
if ( !v2 )
return;
v3 = *(unsigned int *)(v2 + 328);
GauntletNode::nameForType(v113, v3);
v4 = GauntletNode::frameForType(v111, v3);
v110[2] = -1;
*(_WORD *)v110 = -1;
v109 = -1;
v108 = -1;
v5 = cocos2d::CCNode::create(v4);
a1[40] = v5;
(*(void (__fastcall **)(__int64, void *))(*(_QWORD *)v5 + 320LL))(v5, &unk_1009F52F8);
v6 = (*(__int64 (__fastcall **)(_QWORD *, _QWORD, __int64))(*a1 + 464LL))(a1, a1[40], 1);
v7 = cocos2d::CCNode::create(v6);
a1[41] = v7;
(*(void (__fastcall **)(__int64, void *))(*(_QWORD *)v7 + 320LL))(v7, &unk_1009F52F8);
(*(void (__fastcall **)(_QWORD *, _QWORD, __int64))(*a1 + 464LL))(a1, a1[41], 2);
(*(void (__fastcall **)(_QWORD, _QWORD))(*(_QWORD *)a1[41] + 344LL))(a1[41], 0);
v8 = 0.0;
v9 = 0.7;
switch ( (int)v3 )
{
case 1:
v110[2] = 0;
*(_WORD *)v110 = 25855;
goto LABEL_35;
case 2:
v110[2] = -1;
*(_WORD *)v110 = 32000;
goto LABEL_37;
case 3:
v110[2] = 0;
*(_WORD *)v110 = -20736;
v109 = 50;
v21 = -156;
goto LABEL_33;
case 4:
v110[2] = -56;
*(_WORD *)v110 = 100;
v109 = -1;
v21 = 13020;
LABEL_33:
v108 = v21;
v9 = 0.62;
break;
case 5:
v110[2] = 0;
*(_WORD *)v110 = 200;
v109 = 0;
v10 = 23295;
goto LABEL_86;
case 6:
v110[2] = -1;
*(_WORD *)v110 = 25675;
break;
case 7:
v110[2] = 100;
v15 = 25700;
goto LABEL_45;
case 8:
case 15:
memset(v110, 50, 3);
goto LABEL_46;
case 9:
v110[2] = -1;
*(_WORD *)v110 = 25600;
goto LABEL_80;
case 10:
v110[2] = -106;
*(_WORD *)v110 = 13055;
v109 = -1;
v12 = -14081;
goto LABEL_60;
case 11:
v110[2] = 125;
v16 = 12800;
goto LABEL_83;
case 12:
v110[2] = 0;
*(_WORD *)v110 = 25750;
v19 = 3328255;
goto LABEL_47;
case 13:
v110[2] = 0;
*(_WORD *)v110 = 19200;
v109 = 0;
v24 = -206;
goto LABEL_74;
case 14:
v110[2] = 50;
v15 = 19300;
LABEL_45:
*(_WORD *)v110 = v15;
LABEL_46:
v19 = 1645055;
LABEL_47:
v108 = v19;
v109 = BYTE2(v19);
break;
case 16:
v110[2] = 0;
*(_WORD *)v110 = 25600;
v109 = 0;
v20 = -206;
goto LABEL_54;
case 17:
v110[2] = 0;
*(_WORD *)v110 = 25750;
v108 = -14081;
v109 = 50;
v8 = 1.0;
break;
case 18:
v110[2] = -71;
*(_WORD *)v110 = 95;
v109 = -1;
v10 = 32255;
goto LABEL_86;
case 19:
v110[2] = 75;
*(_WORD *)v110 = 19200;
v109 = -56;
v25 = -14336;
goto LABEL_66;
case 20:
v110[2] = 0;
*(_WORD *)v110 = 110;
v109 = 0;
v22 = 19455;
goto LABEL_63;
case 21:
v110[2] = -1;
*(_WORD *)v110 = 32050;
v109 = -1;
v22 = -156;
LABEL_63:
v108 = v22;
v8 = 3.0;
break;
case 22:
qmemcpy(v110, "$,0", 3);
v23 = 110;
goto LABEL_73;
case 23:
qmemcpy(v110, "ZZP", 3);
v109 = 13;
v10 = -96;
goto LABEL_86;
case 24:
qmemcpy(v110, "#>=", 3);
v109 = -1;
v10 = -2929;
goto LABEL_86;
case 25:
qmemcpy(v110, "=,(", 3);
v109 = -86;
v20 = -6401;
goto LABEL_54;
case 26:
qmemcpy(v110, "Z#<", 3);
v109 = -1;
v10 = -26881;
goto LABEL_86;
case 27:
qmemcpy(v110, "5(h", 3);
v109 = 114;
v10 = -19201;
goto LABEL_86;
case 28:
v110[2] = 96;
v13 = 6483;
goto LABEL_24;
case 29:
v110[2] = 0;
*(_WORD *)v110 = 7751;
v109 = 0;
v108 = -32001;
v8 = 3.0;
v9 = 0.48;
break;
case 30:
qmemcpy(v110, "-7-", 3);
v109 = 0;
v108 = -8961;
v8 = 3.0;
goto LABEL_75;
case 31:
v110[2] = 80;
v18 = 12800;
goto LABEL_56;
case 32:
qmemcpy(v110, "2%?", 3);
v109 = -1;
v10 = 24746;
goto LABEL_86;
case 33:
v110[2] = 125;
*(_WORD *)v110 = 17920;
v109 = -1;
v20 = -6631;
LABEL_54:
v108 = v20;
v8 = 2.0;
break;
case 34:
v110[2] = 76;
*(_WORD *)v110 = 76;
v109 = 0;
v108 = -29441;
v8 = 6.0;
goto LABEL_61;
case 35:
v110[2] = 105;
*(_WORD *)v110 = 7218;
v109 = -1;
v108 = -256;
v8 = 5.0;
break;
case 36:
v110[2] = -106;
*(_WORD *)v110 = 94;
v109 = 0;
v108 = -132;
v8 = -4.0;
goto LABEL_75;
case 37:
strcpy(v110, "= 0 )
v27 = v113;
else
v27 = (void **)v113[0];
v28 = cocos2d::CCLabelBMFont::create_1(v27, "bigFont.fnt");
(*(void (__fastcall **)(_QWORD *, __int64, __int64))(*a1 + 464LL))(a1, v28, 2);
cocos2d::CCLabelBMFont::limitLabelWidth(v28, 75.0, v9, 0.0);
sub_1000262BC((float *)v105, 0.0, 94.0);
(*(void (__fastcall **)(__int64, void **))(*(_QWORD *)v28 + 184LL))(v28, v105);
(*(void (__fastcall **)(__int64, __int16 *))(*(_QWORD *)v28 + 1072LL))(v28, &v108);
v29 = cocos2d::CCLabelBMFont::create_1("Gauntlet", "bigFont.fnt");
(*(void (__fastcall **)(_QWORD *, __int64, __int64))(*a1 + 464LL))(a1, v29, 2);
(*(void (__fastcall **)(__int64, float))(*(_QWORD *)v29 + 160LL))(v29, 0.45);
v30 = (float32x2_t *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v28 + 192LL))(v28);
sub_1000262BC((float *)v102, 0.0, -19.0);
*(float32x2_t *)&v31 = sub_100026318(v30, (float32x2_t *)v102, (float32x2_t *)v105);
(*(void (__fastcall **)(__int64, void **, double))(*(_QWORD *)v29 + 184LL))(v29, v105, v31);
(*(void (__fastcall **)(__int64, __int16 *))(*(_QWORD *)v29 + 1072LL))(v29, &v108);
sub_1000262BC((float *)&v107, 2.0, -3.0);
if ( v114 >= 0 )
v32 = v113;
else
v32 = (void **)v113[0];
v33 = cocos2d::CCLabelBMFont::create_1(v32, "bigFont.fnt");
(*(void (__fastcall **)(_QWORD *, __int64, __int64))(*a1 + 464LL))(a1, v33, 1);
(*(void (__fastcall **)(__int64))(*(_QWORD *)v28 + 168LL))(v28);
(*(void (__fastcall **)(__int64))(*(_QWORD *)v33 + 160LL))(v33);
v34 = (float32x2_t *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v28 + 192LL))(v28);
*(float32x2_t *)&v35 = sub_100026318(v34, &v107, (float32x2_t *)v105);
(*(void (__fastcall **)(__int64, void **, double))(*(_QWORD *)v33 + 184LL))(v33, v105, v35);
v36 = cocos2d::CCLabelBMFont::create_1("Gauntlet", "bigFont.fnt");
(*(void (__fastcall **)(_QWORD *, __int64, __int64))(*a1 + 464LL))(a1, v36, 1);
(*(void (__fastcall **)(__int64))(*(_QWORD *)v29 + 168LL))(v29);
(*(void (__fastcall **)(__int64))(*(_QWORD *)v36 + 160LL))(v36);
v37 = (float32x2_t *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v29 + 192LL))(v29);
*(float32x2_t *)&v38 = sub_100026318(v37, &v107, (float32x2_t *)v105);
(*(void (__fastcall **)(__int64, void **, double))(*(_QWORD *)v36 + 184LL))(v36, v105, v38);
(*(void (__fastcall **)(__int64, void *))(*(_QWORD *)v33 + 1072LL))(v33, &unk_100762AB7);
(*(void (__fastcall **)(__int64, void *))(*(_QWORD *)v36 + 1072LL))(v36, &unk_100762AB7);
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v33 + 1024LL))(v33, 60);
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v36 + 1024LL))(v36, 60);
if ( (a1[44] & 1) == 0 )
{
if ( v112 >= 0 )
v47 = v111;
else
v47 = (void **)v111[0];
v48 = cocos2d::CCSprite::createWithSpriteFrameName(v47);
(*(void (__fastcall **)(_QWORD, __int64, __int64))(*(_QWORD *)a1[40] + 464LL))(a1[40], v48, 2);
sub_1000262BC((float *)v105, 0.0, v8 + 16.0);
(*(void (__fastcall **)(__int64, void **))(*(_QWORD *)v48 + 184LL))(v48, v105);
if ( v112 >= 0 )
v49 = v111;
else
v49 = (void **)v111[0];
v50 = cocos2d::CCSprite::createWithSpriteFrameName(v49);
(*(void (__fastcall **)(_QWORD, __int64, __int64))(*(_QWORD *)a1[40] + 464LL))(a1[40], v50, 1);
v51 = (float32x2_t *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v48 + 192LL))(v48);
sub_1000262BC((float *)v102, 0.0, -10.0);
*(float32x2_t *)&v52 = sub_100026318(v51, (float32x2_t *)v102, (float32x2_t *)v105);
(*(void (__fastcall **)(__int64, void **, double))(*(_QWORD *)v50 + 184LL))(v50, v105, v52);
(*(void (__fastcall **)(__int64, float))(*(_QWORD *)v50 + 144LL))(v50, 1.2);
(*(void (__fastcall **)(__int64, void *))(*(_QWORD *)v50 + 960LL))(v50, &unk_100762AB7);
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v50 + 912LL))(v50, 50);
v53 = sub_1000D4D50(a1[43]);
v54 = sub_1003065B0("%i/5", v53);
CString = (char *)cocos2d::CCString::getCString(v54);
sub_100009900(v105, CString);
if ( v106 >= 0 )
v56 = v105;
else
v56 = (void **)v105[0];
v57 = cocos2d::CCLabelBMFont::create_1(v56, "bigFont.fnt");
(*(void (__fastcall **)(_QWORD, __int64, __int64))(*(_QWORD *)a1[40] + 464LL))(a1[40], v57, 2);
(*(void (__fastcall **)(__int64, float))(*(_QWORD *)v57 + 160LL))(v57, 0.4);
v58 = (float32x2_t *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v48 + 192LL))(v48);
sub_1000262BC((float *)&v104, 0.0, -40.0 - v8);
*(float32x2_t *)&v59 = sub_100026318(v58, &v104, (float32x2_t *)v102);
(*(void (__fastcall **)(__int64, void **, double))(*(_QWORD *)v57 + 184LL))(v57, v102, v59);
if ( v106 >= 0 )
v60 = v105;
else
v60 = (void **)v105[0];
v61 = cocos2d::CCLabelBMFont::create_1(v60, "bigFont.fnt");
(*(void (__fastcall **)(_QWORD, __int64, __int64))(*(_QWORD *)a1[40] + 464LL))(a1[40], v61, 1);
(*(void (__fastcall **)(__int64))(*(_QWORD *)v57 + 168LL))(v57);
(*(void (__fastcall **)(__int64))(*(_QWORD *)v61 + 160LL))(v61);
(*(void (__fastcall **)(__int64, void *))(*(_QWORD *)v61 + 1072LL))(v61, &unk_100762AB7);
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v61 + 1024LL))(v61, 60);
v62 = (float32x2_t *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v57 + 192LL))(v57);
*(float32x2_t *)&v63 = sub_100026318(v62, &v107, (float32x2_t *)v102);
(*(void (__fastcall **)(__int64, void **, double))(*(_QWORD *)v61 + 184LL))(v61, v102, v63);
if ( (GJMapPack::hasCompletedMapPack(a1[43]) & 1) == 0 )
{
v72 = cocos2d::CCLabelBMFont::create_1("Reward", "goldFont.fnt");
(*(void (__fastcall **)(__int64, float))(*(_QWORD *)v72 + 160LL))(v72, 0.45);
(*(void (__fastcall **)(_QWORD, __int64, __int64))(*(_QWORD *)a1[40] + 464LL))(a1[40], v72, 2);
sub_1000262BC((float *)v102, 0.0, -47.0);
(*(void (__fastcall **)(__int64, void **))(*(_QWORD *)v72 + 184LL))(v72, v102);
v73 = cocos2d::CCLabelBMFont::create_1("Reward", "goldFont.fnt");
(*(void (__fastcall **)(__int64, float))(*(_QWORD *)v73 + 160LL))(v73, 0.45);
(*(void (__fastcall **)(_QWORD, __int64, __int64))(*(_QWORD *)a1[40] + 464LL))(a1[40], v73, 1);
v74 = (float32x2_t *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v72 + 192LL))(v72);
*(float32x2_t *)&v75 = sub_100026318(v74, &v107, (float32x2_t *)v102);
(*(void (__fastcall **)(__int64, void **, double))(*(_QWORD *)v73 + 184LL))(v73, v102, v75);
(*(void (__fastcall **)(__int64, void *))(*(_QWORD *)v73 + 1072LL))(v73, &unk_100762AB7);
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v73 + 1024LL))(v73, 60);
v76 = GJChestSprite::create(2);
(*(void (__fastcall **)(_QWORD, __int64, __int64))(*(_QWORD *)a1[40] + 464LL))(a1[40], v76, 2);
(*(void (__fastcall **)(__int64, float))(*(_QWORD *)v76 + 160LL))(v76, 0.4);
v77 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v72 + 192LL))(v72);
sub_1000262BC((float *)v102, 0.0, *(float *)(v77 + 4) + -31.5);
(*(void (__fastcall **)(__int64, void **))(*(_QWORD *)v76 + 184LL))(v76, v102);
v78 = GJChestSprite::create(2);
(*(void (__fastcall **)(_QWORD, __int64, __int64))(*(_QWORD *)a1[40] + 464LL))(a1[40], v78, 1);
(*(void (__fastcall **)(__int64))(*(_QWORD *)v76 + 168LL))(v76);
(*(void (__fastcall **)(__int64))(*(_QWORD *)v78 + 160LL))(v78);
v79 = (float32x2_t *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v76 + 192LL))(v76);
*(float32x2_t *)&v80 = sub_100026318(v79, &v107, (float32x2_t *)v102);
(*(void (__fastcall **)(__int64, void **, double))(*(_QWORD *)v78 + 184LL))(v78, v102, v80);
v81 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v78 + 488LL))(v78);
v82 = sub_1002E75A0(v81, 0);
(*(void (__fastcall **)(__int64, void *))(*(_QWORD *)v82 + 960LL))(v82, &unk_100762AB7);
v83 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v78 + 488LL))(v78);
v84 = sub_1002E75A0(v83, 0);
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v84 + 912LL))(v84, 60);
LABEL_119:
if ( v106 < 0 )
operator delete(v105[0]);
goto LABEL_121;
}
v64 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_completesIcon_001.png");
(*(void (__fastcall **)(_QWORD *, __int64, __int64))(*a1 + 464LL))(a1, v64, 5);
(*(void (__fastcall **)(__int64, float))(*(_QWORD *)v64 + 160LL))(v64, 1.1);
sub_1000262BC((float *)v102, 0.0, -72.0);
(*(void (__fastcall **)(__int64, void **))(*(_QWORD *)v64 + 184LL))(v64, v102);
v65 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_completesIcon_001.png");
(*(void (__fastcall **)(_QWORD *, __int64, __int64))(*a1 + 464LL))(a1, v65, 1);
(*(void (__fastcall **)(__int64, float))(*(_QWORD *)v65 + 160LL))(v65, 1.1);
v66 = (float32x2_t *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v64 + 192LL))(v64);
*(float32x2_t *)&v67 = sub_100026318(v66, &v107, (float32x2_t *)v102);
(*(void (__fastcall **)(__int64, void **, double))(*(_QWORD *)v65 + 184LL))(v65, v102, v67);
(*(void (__fastcall **)(__int64, void *))(*(_QWORD *)v65 + 960LL))(v65, &unk_100762AB7);
v68 = (*(__int64 (__fastcall **)(__int64, __int64))(*(_QWORD *)v65 + 912LL))(v65, 60);
v69 = GameStatsManager::sharedState(v68);
GauntletRewardKey = GameStatsManager::getGauntletRewardKey(v102, v69, v3);
v71 = GameStatsManager::sharedState(GauntletRewardKey);
if ( SHIBYTE(v103) < 0 )
{
sub_1000097D0(__p, v102[0], (unsigned __int64)v102[1]);
}
else
{
*(_OWORD *)__p = *(_OWORD *)v102;
v101 = v103;
}
isSpecialChestUnlocked = GameStatsManager::isSpecialChestUnlocked(v71, __p);
v86 = isSpecialChestUnlocked;
if ( SHIBYTE(v101) < 0 )
{
operator delete(__p[0]);
if ( (v86 & 1) != 0 )
goto LABEL_117;
}
else if ( (isSpecialChestUnlocked & 1) != 0 )
{
LABEL_117:
if ( SHIBYTE(v103) < 0 )
operator delete(v102[0]);
goto LABEL_119;
}
(*(void (__fastcall **)(_QWORD, _QWORD))(*(_QWORD *)a1[40] + 344LL))(a1[40], 0);
(*(void (__fastcall **)(_QWORD, __int64))(*(_QWORD *)a1[41] + 344LL))(a1[41], 1);
v87 = cocos2d::CCLabelBMFont::create_1("Reward", "goldFont.fnt");
(*(void (__fastcall **)(__int64, float))(*(_QWORD *)v87 + 160LL))(v87, 0.65);
(*(void (__fastcall **)(_QWORD, __int64, __int64))(*(_QWORD *)a1[41] + 464LL))(a1[41], v87, 2);
sub_1000262BC((float *)&v104, 0.0, 43.0);
(*(void (__fastcall **)(__int64, float32x2_t *))(*(_QWORD *)v87 + 184LL))(v87, &v104);
v88 = cocos2d::CCLabelBMFont::create_1("Reward", "goldFont.fnt");
(*(void (__fastcall **)(__int64))(*(_QWORD *)v87 + 168LL))(v87);
(*(void (__fastcall **)(__int64))(*(_QWORD *)v88 + 160LL))(v88);
(*(void (__fastcall **)(_QWORD, __int64, __int64))(*(_QWORD *)a1[41] + 464LL))(a1[41], v88, 1);
v89 = (float32x2_t *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v87 + 192LL))(v87);
*(float32x2_t *)&v90 = sub_100026318(v89, &v107, &v104);
(*(void (__fastcall **)(__int64, float32x2_t *, double))(*(_QWORD *)v88 + 184LL))(v88, &v104, v90);
(*(void (__fastcall **)(__int64, void *))(*(_QWORD *)v88 + 1072LL))(v88, &unk_100762AB7);
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v88 + 1024LL))(v88, 60);
v91 = GJChestSprite::create(2);
(*(void (__fastcall **)(_QWORD, __int64, __int64))(*(_QWORD *)a1[41] + 464LL))(a1[41], v91, 2);
(*(void (__fastcall **)(__int64, float))(*(_QWORD *)v91 + 160LL))(v91, 0.6);
v92 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v87 + 192LL))(v87);
sub_1000262BC((float *)&v104, 0.0, *(float *)(v92 + 4) + -46.0);
(*(void (__fastcall **)(__int64, float32x2_t *))(*(_QWORD *)v91 + 184LL))(v91, &v104);
v93 = GJChestSprite::create(2);
(*(void (__fastcall **)(_QWORD, __int64, __int64))(*(_QWORD *)a1[41] + 464LL))(a1[41], v93, 1);
(*(void (__fastcall **)(__int64))(*(_QWORD *)v91 + 168LL))(v91);
(*(void (__fastcall **)(__int64))(*(_QWORD *)v93 + 160LL))(v93);
v94 = (float32x2_t *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v91 + 192LL))(v91);
*(float32x2_t *)&v95 = sub_100026318(v94, &v107, &v104);
(*(void (__fastcall **)(__int64, float32x2_t *, double))(*(_QWORD *)v93 + 184LL))(v93, &v104, v95);
v96 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v93 + 488LL))(v93);
v97 = sub_1002E75A0(v96, 0);
(*(void (__fastcall **)(__int64, void *))(*(_QWORD *)v97 + 960LL))(v97, &unk_100762AB7);
v98 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v93 + 488LL))(v93);
v99 = sub_1002E75A0(v98, 0);
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v99 + 912LL))(v99, 60);
goto LABEL_117;
}
memset(v105, 80, 3);
(*(void (__fastcall **)(__int64, void **))(*(_QWORD *)v26 + 960LL))(v26, v105);
v104.i8[2] = -81;
v104.i16[0] = -20561;
(*(void (__fastcall **)(__int64, float32x2_t *))(*(_QWORD *)v28 + 1072LL))(v28, &v104);
(*(void (__fastcall **)(__int64, float32x2_t *))(*(_QWORD *)v29 + 1072LL))(v29, &v104);
v39 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_lockGray_001.png");
(*(void (__fastcall **)(__int64, float))(*(_QWORD *)v39 + 160LL))(v39, 1.75);
(*(void (__fastcall **)(_QWORD, __int64, __int64))(*(_QWORD *)a1[40] + 464LL))(a1[40], v39, 2);
sub_1000262BC((float *)v105, 0.0, v8 + 16.0);
(*(void (__fastcall **)(__int64, void **))(*(_QWORD *)v39 + 184LL))(v39, v105);
v40 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_unlockBtn_001.png");
(*(void (__fastcall **)(_QWORD, __int64, __int64))(*(_QWORD *)a1[40] + 464LL))(a1[40], v40, 2);
sub_1000262BC((float *)v105, 0.0, -41.0);
(*(void (__fastcall **)(__int64, void **))(*(_QWORD *)v40 + 184LL))(v40, v105);
v41 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_adVideoBtn_001.png");
(*(void (__fastcall **)(_QWORD, __int64, __int64))(*(_QWORD *)a1[40] + 464LL))(a1[40], v41, 2);
v42 = (float32x2_t *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v40 + 192LL))(v40);
sub_1000262BC((float *)v102, 0.0, -31.0);
*(float32x2_t *)&v43 = sub_100026318(v42, (float32x2_t *)v102, (float32x2_t *)v105);
(*(void (__fastcall **)(__int64, void **, double))(*(_QWORD *)v41 + 184LL))(v41, v105, v43);
v44 = cocos2d::CCLabelBMFont::create_1("View Ad", "bigFont.fnt");
(*(void (__fastcall **)(__int64, float))(*(_QWORD *)v44 + 160LL))(v44, 0.3);
BYTE2(v105[0]) = -121;
LOWORD(v105[0]) = -30841;
(*(void (__fastcall **)(__int64, void **))(*(_QWORD *)v44 + 1072LL))(v44, v105);
(*(void (__fastcall **)(_QWORD, __int64, __int64))(*(_QWORD *)a1[40] + 464LL))(a1[40], v44, 2);
v45 = (float32x2_t *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v41 + 192LL))(v41);
sub_1000262BC((float *)v102, 0.0, -25.0);
*(float32x2_t *)&v46 = sub_100026318(v45, (float32x2_t *)v102, (float32x2_t *)v105);
(*(void (__fastcall **)(__int64, void **, double))(*(_QWORD *)v44 + 184LL))(v44, v105, v46);
LABEL_121:
if ( v112 < 0 )
operator delete(v111[0]);
if ( v114 < 0 )
operator delete(v113[0]);
}