//
// GauntletNode::generateNode from 0x60b728 to 0x60ca18 (4848 bytes)
//
// 2 xrefs:
// > GauntletNode::init @ 0x60ca62
// > GauntletNode::onUnlock @ 0x60d878
//
// 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:48 +0000
//
int __fastcall GauntletNode::generateNode(GauntletNode *this)
{
int result; // r0
int v3; // r3
int v4; // r11
int *v5; // r0
int v6; // r0
cocos2d::CCNode *v7; // r0
int v8; // r0
char v9; // r3
char v10; // r2
char v11; // r2
char v12; // r3
float v13; // s16
float v14; // r7
char v15; // r3
char v16; // r3
char v17; // r2
char v18; // r3
char v19; // r3
char v20; // r3
char v21; // r3
char v22; // r3
char v23; // r3
char v24; // r3
char v25; // r3
char v26; // r3
char v27; // r3^2
__int16 v28; // r2
char v29; // r3
int v30; // r10
void (__fastcall *v31)(int, _BYTE *); // r9
cocos2d::CCLabelBMFont *v32; // r0
cocos2d::CCLabelBMFont *v33; // r6
void (__fastcall *v34)(cocos2d::CCLabelBMFont *, _BYTE *); // r7
const char *v35; // r2
int v36; // r7
const char *v37; // r2
cocos2d::CCLabelBMFont *v38; // r0
int v39; // r9
void (__fastcall *v40)(int, int); // r8
int v41; // r0
void (__fastcall *v42)(int, _BYTE *); // r8
int v43; // r0
const char *v44; // r2
int v45; // r8
void (__fastcall *v46)(int, int); // r5
int v47; // r0
int v48; // r0
const char *v49; // r1
cocos2d::CCSprite *v50; // r0
int v51; // r7
void (__fastcall *v52)(int, _BYTE *); // r6
cocos2d::CCSprite *v53; // r0
int v54; // r6
int v55; // r10
const char *v56; // r1
cocos2d::CCString *v57; // r0
const char *CString; // r5
size_t v59; // r0
cocos2d::CCLabelBMFont *v60; // r0
int v61; // r5
void (__fastcall *v62)(int, _BYTE *); // r6
int v63; // r7
const char *v64; // r2
cocos2d::CCLabelBMFont *v65; // r0
int v66; // r6
void (__fastcall *v67)(int, int); // r7
int v68; // r0
void (__fastcall *v69)(int, _BYTE *); // r7
int v70; // r0
const char *v71; // r1
const char *v72; // r2
int v73; // r7
void (__fastcall *v74)(int, _BYTE *); // r6
const char *v75; // r2
int v76; // r6
void (__fastcall *v77)(int, _BYTE *); // r9
int v78; // r0
int v79; // r1
int v80; // r6
void (__fastcall *v81)(int, _BYTE *); // r9
int v82; // r0
int v83; // r1
int v84; // r7
void (__fastcall *v85)(int, int); // r4
int v86; // r0
void (__fastcall *v87)(int, _BYTE *); // r4
int v88; // r0
cocos2d::CCArray *v89; // r0
int v90; // r0
cocos2d::CCArray *v91; // r0
int v92; // r0
int v93; // r7
void (__fastcall *v94)(int, _BYTE *); // r6
const char *v95; // r1
int v96; // r6
void (__fastcall *v97)(int, _BYTE *); // r9
int v98; // r0
GameStatsManager *v99; // r0
int v100; // r0
GameStatsManager *GauntletRewardKey; // r0
int v102; // r0
int v103; // r8
int isSpecialChestUnlocked; // r8
const char *v105; // r2
int v106; // r6
void (__fastcall *v107)(int, _BYTE *); // r8
const char *v108; // r2
int v109; // r5
void (__fastcall *v110)(int, int); // r8
int v111; // r0
void (__fastcall *v112)(int, _BYTE *); // r11
int v113; // r0
int v114; // r1
int v115; // r5
void (__fastcall *v116)(int, _BYTE *); // r11
int v117; // r0
int v118; // r1
int v119; // r6
void (__fastcall *v120)(int, int); // r4
int v121; // r0
void (__fastcall *v122)(int, _BYTE *); // r4
int v123; // r0
cocos2d::CCArray *v124; // r0
int v125; // r0
cocos2d::CCArray *v126; // r0
int v127; // r0
void (__fastcall *v128)(int, _BYTE *); // r2
const char *v129; // r1
int v130; // r6
void (__fastcall *v131)(int, _BYTE *); // r7
const char *v132; // r1
int v133; // r7
void (__fastcall *v134)(int, _BYTE *); // r6
const char *v135; // r1
int v136; // r6
void (__fastcall *v137)(int, _BYTE *); // r10
int v138; // r7
const char *v139; // r2
int v140; // r7
void (__fastcall *v141)(int, _BYTE *); // r2
void (__fastcall *v142)(int, _BYTE *); // r4
int v143; // r5
void (__fastcall *v144)(int, _BYTE *); // [sp+Ch] [bp-80h]
void (__fastcall *v145)(int, _BYTE *); // [sp+Ch] [bp-80h]
void (__fastcall *v146)(int, _BYTE *); // [sp+Ch] [bp-80h]
int v147; // [sp+10h] [bp-7Ch]
_WORD v148[2]; // [sp+1Ch] [bp-70h] BYREF
int v149; // [sp+20h] [bp-6Ch] BYREF
_BYTE v150[4]; // [sp+24h] [bp-68h] BYREF
_BYTE v151[8]; // [sp+28h] [bp-64h] BYREF
_BYTE v152[8]; // [sp+30h] [bp-5Ch] BYREF
int v153[2]; // [sp+38h] [bp-54h] BYREF
cocos2d::CCLabelBMFont *v154; // [sp+40h] [bp-4Ch]
int v155[2]; // [sp+44h] [bp-48h] BYREF
cocos2d::CCSprite *v156; // [sp+4Ch] [bp-40h]
int v157[2]; // [sp+50h] [bp-3Ch] BYREF
cocos2d::CCLabelBMFont *v158; // [sp+58h] [bp-34h]
int v159; // [sp+5Ch] [bp-30h] BYREF
size_t v160; // [sp+60h] [bp-2Ch]
const void *v161; // [sp+64h] [bp-28h]
int v162; // [sp+68h] [bp-24h] BYREF
size_t v163; // [sp+6Ch] [bp-20h]
const void *v164; // [sp+70h] [bp-1Ch]
_BYTE v165[16]; // [sp+74h] [bp-18h] BYREF
result = (*(int (__fastcall **)(GauntletNode *, _DWORD))(*(_DWORD *)this + 292))(this, 0);
v3 = *((_DWORD *)this + 70);
if ( v3 )
{
v4 = *(_DWORD *)(v3 + 268);
GauntletNode::nameForType(v153, v4);
v5 = GauntletNode::frameForType(v155, v4);
v148[0] = -1;
LOBYTE(v148[1]) = -1;
LOWORD(v149) = -1;
BYTE2(v149) = -1;
v6 = cocos2d::CCNode::create((cocos2d::CCNode *)v5);
*((_DWORD *)this + 66) = v6;
(*(void (__fastcall **)(int, void *))(*(_DWORD *)v6 + 160))(v6, &unk_D2C8D0);
v7 = (cocos2d::CCNode *)(*(int (__fastcall **)(GauntletNode *, _DWORD, int))(*(_DWORD *)this + 232))(
this,
*((_DWORD *)this + 66),
1);
v8 = cocos2d::CCNode::create(v7);
*((_DWORD *)this + 67) = v8;
(*(void (__fastcall **)(int, void *))(*(_DWORD *)v8 + 160))(v8, &unk_D2C8D0);
(*(void (__fastcall **)(GauntletNode *, _DWORD, int))(*(_DWORD *)this + 232))(this, *((_DWORD *)this + 67), 2);
(*(void (__fastcall **)(_DWORD, _DWORD))(**((_DWORD **)this + 67) + 172))(*((_DWORD *)this + 67), 0);
switch ( v4 )
{
case 1:
v148[0] = 25855;
v9 = 0;
LOBYTE(v149) = -1;
v10 = -56;
LOBYTE(v148[1]) = 0;
goto LABEL_77;
case 2:
v11 = -106;
v148[0] = 32000;
v9 = -1;
LOBYTE(v148[1]) = -1;
goto LABEL_15;
case 3:
v148[0] = -20736;
LOBYTE(v148[1]) = 0;
LOWORD(v149) = -156;
v12 = 50;
goto LABEL_7;
case 4:
strcpy((char *)v148, "d");
LOBYTE(v148[1]) = -56;
LOWORD(v149) = 13020;
v12 = -1;
LABEL_7:
BYTE2(v149) = v12;
v13 = 0.0;
v14 = 0.62;
goto LABEL_86;
case 5:
v148[0] = 200;
v9 = 0;
LOBYTE(v149) = -1;
v10 = 90;
LOBYTE(v148[1]) = 0;
goto LABEL_77;
case 6:
v148[0] = 25675;
LOBYTE(v148[1]) = -1;
break;
case 7:
v15 = 100;
goto LABEL_12;
case 8:
case 15:
v15 = 50;
LABEL_12:
LOBYTE(v148[0]) = v15;
HIBYTE(v148[0]) = v15;
goto LABEL_13;
case 9:
v11 = 0;
v9 = -1;
v148[0] = 25600;
LOBYTE(v148[1]) = -1;
LABEL_15:
LOBYTE(v149) = v11;
goto LABEL_80;
case 10:
v16 = -1;
v148[0] = 13055;
LOBYTE(v149) = -1;
LOBYTE(v148[1]) = -106;
v17 = -56;
goto LABEL_50;
case 11:
v148[0] = 12800;
v18 = 50;
LOBYTE(v148[1]) = 125;
goto LABEL_71;
case 12:
v148[0] = 25750;
LOBYTE(v148[1]) = 0;
LOWORD(v149) = -14081;
v9 = 50;
goto LABEL_83;
case 13:
v19 = 0;
v148[0] = 19200;
LOBYTE(v148[1]) = 0;
LOWORD(v149) = -206;
goto LABEL_47;
case 14:
v148[0] = 19300;
v15 = 50;
LABEL_13:
LOBYTE(v148[1]) = v15;
LOBYTE(v149) = -1;
v9 = 25;
goto LABEL_80;
case 16:
v20 = 0;
v148[0] = 25600;
LOBYTE(v148[1]) = 0;
LOWORD(v149) = -206;
goto LABEL_40;
case 17:
v13 = 1.0;
v148[0] = 25750;
LOBYTE(v148[1]) = 0;
LOWORD(v149) = -14081;
BYTE2(v149) = 50;
goto LABEL_85;
case 18:
v10 = 125;
strcpy((char *)v148, "_");
LOBYTE(v148[1]) = -71;
v9 = -1;
LOBYTE(v149) = -1;
goto LABEL_77;
case 19:
v148[0] = 19200;
LOBYTE(v149) = 0;
v21 = -56;
LOBYTE(v148[1]) = 75;
goto LABEL_56;
case 20:
strcpy((char *)v148, "n");
v22 = 0;
LOWORD(v149) = 19455;
LOBYTE(v148[1]) = 0;
goto LABEL_27;
case 21:
v148[0] = 32050;
LOWORD(v149) = -156;
v22 = -1;
LOBYTE(v148[1]) = -1;
LABEL_27:
BYTE2(v149) = v22;
v13 = 3.0;
goto LABEL_85;
case 22:
qmemcpy(v148, "$,0", 3);
LOWORD(v149) = -1;
v19 = 110;
goto LABEL_47;
case 23:
qmemcpy(v148, "ZZP", 3);
LOWORD(v149) = -96;
v9 = 13;
goto LABEL_83;
case 24:
qmemcpy(v148, "#>=", 3);
LOBYTE(v149) = -113;
v23 = -12;
goto LABEL_82;
case 25:
qmemcpy(v148, "=,(", 3);
LOWORD(v149) = -6401;
v20 = -86;
goto LABEL_40;
case 26:
v10 = -106;
qmemcpy(v148, "Z#<", 3);
v9 = -1;
LOBYTE(v149) = -1;
goto LABEL_77;
case 27:
qmemcpy(v148, "5(h", 3);
LOWORD(v149) = -19201;
v9 = 114;
goto LABEL_83;
case 28:
v148[0] = 6483;
LOBYTE(v148[1]) = 96;
v9 = 0;
goto LABEL_53;
case 29:
v148[0] = 7751;
v13 = 3.0;
LOWORD(v149) = -32001;
LOBYTE(v148[1]) = 0;
BYTE2(v149) = 0;
v14 = 0.48;
goto LABEL_86;
case 30:
qmemcpy(v148, "-7-", 3);
v13 = 3.0;
LOWORD(v149) = -8961;
BYTE2(v149) = 0;
goto LABEL_48;
case 31:
v148[0] = 12800;
v24 = 80;
goto LABEL_79;
case 32:
qmemcpy(v148, "2%?", 3);
LOBYTE(v149) = -86;
v23 = 96;
goto LABEL_82;
case 33:
v148[0] = 17920;
LOBYTE(v148[1]) = 125;
LOWORD(v149) = -6631;
v20 = -1;
LABEL_40:
BYTE2(v149) = v20;
v13 = 2.0;
goto LABEL_85;
case 34:
strcpy((char *)v148, "L");
v13 = 6.0;
LOBYTE(v148[1]) = 76;
LOBYTE(v149) = -1;
*(_WORD *)((char *)&v149 + 1) = 140;
goto LABEL_51;
case 35:
v13 = 5.0;
v148[0] = 7218;
LOBYTE(v148[1]) = 105;
LOWORD(v149) = -256;
BYTE2(v149) = -1;
goto LABEL_85;
case 36:
strcpy((char *)v148, "^");
v13 = -4.0;
LOBYTE(v148[1]) = -106;
LOBYTE(v149) = 124;
*(_WORD *)((char *)&v149 + 1) = 255;
goto LABEL_48;
case 37:
strcpy((char *)v148, "