//
// SetupGradientPopup::init from 0x1405b5f80 to 0x1405b7116 (4502 bytes)
//
// 2 xrefs:
// > EditorUI::editObjectSpecial @ 0x1401bd617
// > ??> @ 0x14092dcb0
//
// This function is hookable on this platform (idp: pc, 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:34:44 +0000
//
// Hidden C++ exception states: #wind=11
char __fastcall SetupGradientPopup::init(__int64 a1, int a2, int a3, int a4)
{
char result; // al
__int64 v6; // rcx
__int64 v7; // rax
_BYTE *v8; // r8
_OWORD *v9; // rcx
const char *v10; // rax
__int64 v11; // rdx
cocos2d::CCObject *v12; // rbx
cocos2d::CCObject *v13; // rax
__int64 v14; // rax
void *v15; // rcx
__int64 v16; // rax
__int64 v17; // rax
__int64 v18; // rax
__int64 v19; // rcx
cocos2d::CCObject *v20; // rax
int i; // r14d
struct cocos2d::CCObject *v22; // rdi
__int64 v23; // rbx
__int64 v24; // rax
__int64 v25; // rax
unsigned int v26; // ebx
struct cocos2d::CCObject *v27; // rax
const char *v28; // rdx
int v29; // eax
int v30; // eax
__int64 v31; // rax
__int64 v32; // rax
__int64 v33; // rbx
void **v34; // rdx
__int64 v35; // rax
void *v36; // rcx
struct cocos2d::CCLabelBMFont *v37; // rdi
__int64 v38; // rax
struct cocos2d::CCLabelBMFont *v39; // rax
__int64 v40; // rax
__int64 v41; // rbx
__int64 v42; // rax
cocos2d::CCSprite *v43; // rbx
__int64 *v44; // rax
__int64 *v45; // rdi
__int64 v46; // rax
__int64 v47; // rbx
__int64 v48; // rax
__int64 v49; // rbx
__int64 v50; // rax
__int64 *v51; // rbx
__int64 *v52; // rax
__int64 *v53; // rdi
__int64 v54; // rax
__int64 v55; // rbx
__int64 v56; // rax
__int64 v57; // rbx
__int64 v58; // rax
__int64 v59; // rcx
cocos2d::CCObject *v60; // rax
__int64 v61; // rcx
__int64 v62; // r15
__int64 v63; // rcx
__int64 v64; // r12
unsigned int v65; // r14d
__int64 *v66; // rax
__int64 v67; // rbx
cocos2d::CCObject *v68; // rdi
__int64 *v69; // rbx
cocos2d::CCArray *v70; // rcx
__int64 v71; // rbx
__int64 v72; // rax
__int64 v73; // rax
__int64 v74; // rbx
__int64 v75; // rax
__int64 v76; // rax
void **v77; // [rsp+68h] [rbp-A0h] BYREF
float v78; // [rsp+70h] [rbp-98h] BYREF
float v79; // [rsp+74h] [rbp-94h]
void **v80; // [rsp+78h] [rbp-90h] BYREF
void **v81; // [rsp+80h] [rbp-88h] BYREF
char v82[8]; // [rsp+88h] [rbp-80h] BYREF
char v83[8]; // [rsp+90h] [rbp-78h] BYREF
char v84[8]; // [rsp+98h] [rbp-70h] BYREF
void *Src[2]; // [rsp+A0h] [rbp-68h] BYREF
size_t Size; // [rsp+B0h] [rbp-58h]
unsigned __int64 v87; // [rsp+B8h] [rbp-50h]
void *Block[2]; // [rsp+C0h] [rbp-48h] BYREF
__int64 v89; // [rsp+D0h] [rbp-38h]
unsigned __int64 v90; // [rsp+D8h] [rbp-30h]
int v91; // [rsp+E8h] [rbp-20h] BYREF
void *v92[4]; // [rsp+F0h] [rbp-18h] BYREF
char v93[8]; // [rsp+110h] [rbp+8h] BYREF
char v94[8]; // [rsp+118h] [rbp+10h] BYREF
int v95; // [rsp+120h] [rbp+18h]
int v96; // [rsp+124h] [rbp+1Ch]
char v97; // [rsp+128h] [rbp+20h]
__int64 v98; // [rsp+12Ch] [rbp+24h]
__int64 v99; // [rsp+134h] [rbp+2Ch]
int v100; // [rsp+13Ch] [rbp+34h]
int v101; // [rsp+140h] [rbp+38h]
char v102; // [rsp+144h] [rbp+3Ch]
char v103[40]; // [rsp+150h] [rbp+48h] BYREF
char v104[32]; // [rsp+178h] [rbp+70h] BYREF
result = SetupTriggerPopup::init(a1, a2, a3, a4, 1133576192, 1, 0);
if ( result )
{
(*(void (__fastcall **)(__int64))(*(_QWORD *)a1 + 1096LL))(a1);
v7 = cocos2d::CCDirector::sharedDirector(v6);
cocos2d::CCDirector::getWinSize(v7, &v78);
*(_OWORD *)Src = 0;
Size = 0;
v87 = 0;
Src[0] = sub_14003D460(0x20u);
Size = 21;
v87 = 31;
strcpy((char *)Src[0], "Setup Gradient Effect");
SetupTriggerPopup::addTitle(a1, Src);
v77 = Src;
*(_OWORD *)Src = 0;
Size = 0;
v87 = 0;
v8 = sub_14003D460(0x170u);
Src[0] = v8;
Size = 354;
v87 = 367;
v9 = v8;
v10 = "Creates a gradient with set colors in a given area.\n"
"U, D, L, and R must be set to a group at each side of the area.\n"
"Use Vertex Mode to set corners of the area instead.\n"
"Blending changes the gradient method.\n"
"Use ID to give a gradient a unique identifier that can be used to disable it with another of these triggers.";
v11 = 2;
do
{
*v9 = *(_OWORD *)v10;
v9[1] = *((_OWORD *)v10 + 1);
v9[2] = *((_OWORD *)v10 + 2);
v9[3] = *((_OWORD *)v10 + 3);
v9[4] = *((_OWORD *)v10 + 4);
v9[5] = *((_OWORD *)v10 + 5);
v9[6] = *((_OWORD *)v10 + 6);
v9 += 8;
*(v9 - 1) = *((_OWORD *)v10 + 7);
v10 += 128;
--v11;
}
while ( v11 );
*v9 = *(_OWORD *)v10;
v9[1] = *((_OWORD *)v10 + 1);
v9[2] = *((_OWORD *)v10 + 2);
v9[3] = *((_OWORD *)v10 + 3);
v9[4] = *((_OWORD *)v10 + 4);
v9[5] = *((_OWORD *)v10 + 5);
*((_WORD *)v9 + 48) = *((_WORD *)v10 + 48);
v8[354] = 0;
*(_OWORD *)Block = 0;
v89 = 4;
v90 = 15;
strcpy((char *)Block, "Help");
SetupTriggerPopup::addHelpButton(a1, Block, Src);
v77 = (void **)operator new(0x2C8u);
v12 = (cocos2d::CCObject *)ButtonSprite::ButtonSprite((__int64)v77);
if ( v12 )
{
if ( ButtonSprite::init_1(
(__int64)v12,
(__int64)"OK",
40,
0,
1061997773,
1,
"goldFont.fnt",
(__int64)"GJ_button_01.png",
1106247680) )
{
cocos2d::CCObject::autorelease(v12);
}
else
{
(*(void (__fastcall **)(cocos2d::CCObject *, __int64))(*(_QWORD *)v12 + 8LL))(v12, 1);
LODWORD(v12) = 0;
}
}
v13 = CCMenuItemSpriteExtra::create((int)v12, 0, a1, (__int64)sub_14009D628);
(*(void (__fastcall **)(_QWORD, cocos2d::CCObject *))(**(_QWORD **)(a1 + 552) + 464LL))(*(_QWORD *)(a1 + 552), v13);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v82, v78 * 0.5, (float)(v79 * 0.5) + 85.0);
*(_OWORD *)Block = 0;
v89 = 0;
v90 = 15;
LOBYTE(Block[0]) = 0;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v81, -153.0, 0.0);
cocos2d::CCPoint::operator+(v82, &v77, v14);
IDNameInput::create(
a1,
a1 + 544,
1,
203,
(__int64)Block,
(const struct cocos2d::CCPoint *)&v77,
1058306785,
6,
0,
0,
1);
if ( v90 > 0xF )
{
v15 = Block[0];
if ( v90 + 1 >= 0x1000 )
{
v15 = *((void **)Block[0] - 1);
if ( (unsigned __int64)((char *)Block[0] - (char *)v15 - 8) > 0x1F )
invoke_watson(nullptr, nullptr, nullptr, 0, 0);
}
j_j_free(v15);
}
*(_OWORD *)Block = 0;
v89 = 0;
v90 = 15;
LOBYTE(Block[0]) = 0;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v81, -51.0, 0.0);
cocos2d::CCPoint::operator+(v82, &v77, v16);
IDNameInput::create(
a1,
a1 + 544,
1,
204,
(__int64)Block,
(const struct cocos2d::CCPoint *)&v77,
1058306785,
6,
0,
0,
1);
sub_14003D310((__int64)Block);
*(_OWORD *)Block = 0;
v89 = 0;
v90 = 15;
LOBYTE(Block[0]) = 0;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v81, 51.0, 0.0);
cocos2d::CCPoint::operator+(v82, &v77, v17);
IDNameInput::create(
a1,
a1 + 544,
1,
205,
(__int64)Block,
(const struct cocos2d::CCPoint *)&v77,
1058306785,
6,
0,
0,
1);
sub_14003D310((__int64)Block);
*(_OWORD *)Block = 0;
v89 = 0;
v90 = 15;
LOBYTE(Block[0]) = 0;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v81, 153.0, 0.0);
cocos2d::CCPoint::operator+(v82, &v77, v18);
IDNameInput::create(
a1,
a1 + 544,
1,
206,
(__int64)Block,
(const struct cocos2d::CCPoint *)&v77,
1058306785,
6,
0,
0,
1);
sub_14003D310((__int64)Block);
v20 = (cocos2d::CCObject *)cocos2d::CCArray::create(v19);
*(_QWORD *)(a1 + 1032) = v20;
cocos2d::CCObject::retain(v20);
for ( i = 0; i < 4; ++i )
{
v22 = cocos2d::CCLabelBMFont::create(" ", "goldFont.fnt");
v23 = *(_QWORD *)v22;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v81, 0.5, 0.5);
(*(void (__fastcall **)(struct cocos2d::CCObject *, __int64))(v23 + 288))(v22, v24);
(*(void (__fastcall **)(_QWORD, struct cocos2d::CCObject *))(**(_QWORD **)(a1 + 584) + 464LL))(
*(_QWORD *)(a1 + 584),
v22);
(*(void (__fastcall **)(struct cocos2d::CCObject *))(*(_QWORD *)v22 + 160LL))(v22);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v80, (float)((float)i - 1.5) * 102.0, 19.0);
cocos2d::CCPoint::operator+(v82, &v77, v25);
(*(void (__fastcall **)(struct cocos2d::CCObject *, void ***))(*(_QWORD *)v22 + 184LL))(v22, &v77);
cocos2d::CCArray::addObject(*(cocos2d::CCArray **)(a1 + 1032), v22);
}
v26 = 0;
if ( cocos2d::CCArray::count(*(cocos2d::CCArray **)(a1 + 1032)) )
{
while ( 1 )
{
v27 = cocos2d::CCArray::objectAtIndex(*(cocos2d::CCArray **)(a1 + 1032), v26);
if ( !v26 )
{
v28 = "U:";
goto LABEL_24;
}
if ( v26 == 1 )
{
v28 = "D:";
goto LABEL_24;
}
if ( v26 == 2 )
break;
if ( v26 == 3 )
{
v28 = "R:";
LABEL_24:
(**((void (__fastcall ***)(__int64, const char *))v27 + 45))((__int64)v27 + 360, v28);
}
if ( ++v26 >= cocos2d::CCArray::count(*(cocos2d::CCArray **)(a1 + 1032)) )
goto LABEL_26;
}
v28 = "L:";
goto LABEL_24;
}
LABEL_26:
v80 = Src;
Size = 11;
v87 = 15;
Src[0] = (void *)0x4D0A786574726556LL;
Src[1] = (void *)6644847;
cocos2d::CCPoint::CCPoint(
(cocos2d::CCPoint *)&v81,
(float)((float)(v78 * 0.5) + (float)(*(float *)(a1 + 732) * 0.5)) - 72.0,
(float)((float)(*(float *)(a1 + 736) * 0.5) + (float)(v79 * 0.5)) - 20.0);
SetupTriggerPopup::createToggleValueControl(a1, 207, (unsigned int)Src, v29, 0, 0, 0, 1065353216);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v83, (float)(v78 * 0.5) + 145.0, (float)(v79 * 0.5) + 40.0);
v80 = Src;
HIWORD(Src[1]) = 0;
Size = 7;
v87 = 15;
qmemcpy(Src, "Disabl", 6);
*(void **)((char *)Src + 6) = (void *)(unsigned __int8)aDisable[6];
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v81, (const struct cocos2d::CCPoint *)v83);
SetupTriggerPopup::createToggleValueControl(a1, 208, (unsigned int)Src, v30, 0, 0, 0, 1061997773);
v80 = Src;
Size = 11;
v87 = 15;
Src[0] = (void *)0xA656C6261736944LL;
Src[1] = (void *)7105601;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v81, 0.0, -25.0);
cocos2d::CCPoint::operator+(v83, &v77, v31);
SetupTriggerPopup::createToggleValueControl(a1, 508, (unsigned int)Src, (unsigned int)&v77, 0, 0, 0, 1061997773);
v80 = Src;
Size = 15;
v87 = 15;
strcpy((char *)Src, "Preview\nOpacity");
v81 = Src;
cocos2d::CCPoint::CCPoint(
(cocos2d::CCPoint *)&v77,
(float)((float)(v78 * 0.5) + (float)(*(float *)(a1 + 732) * 0.5)) - 72.0,
(float)((float)(v79 * 0.5) - (float)(*(float *)(a1 + 736) * 0.5)) + 40.0);
v33 = v32;
sub_14009BE60((__int64)&v91);
v91 = 456;
v34 = Src;
if ( v87 > 0xF )
v34 = (void **)Src[0];
sub_1400405A0(v92, v34, Size);
cocos2d::CCPoint::operator=(v93, v33);
strcpy(v94, "ff&?");
v95 = 1;
v96 = 5;
v97 = 0;
v98 = 0;
v99 = 0;
v100 = 0;
v101 = 2;
v102 = 0;
SetupTriggerPopup::createValueControlAdvanced_1(a1, &v91);
sub_14003D310((__int64)v104);
sub_14003D310((__int64)v103);
sub_14003D310((__int64)v92);
sub_14003D310((__int64)Src);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v84, (float)(v78 * 0.5) - 20.0, (float)(v79 * 0.5) + 60.0);
Size = 11;
v87 = 15;
Src[0] = (void *)0x746E656964617247LL;
Src[1] = (void *)4475168;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v80, 75.0, -25.0);
cocos2d::CCPoint::operator+(v84, &v77, v35);
IDNameInput::create(
a1,
a1 + 544,
7,
209,
(__int64)Src,
(const struct cocos2d::CCPoint *)&v77,
1060320051,
6,
0,
0,
0);
if ( v87 > 0xF )
{
v36 = Src[0];
if ( v87 + 1 >= 0x1000 )
{
v36 = *((void **)Src[0] - 1);
if ( (unsigned __int64)((char *)Src[0] - (char *)v36 - 8) > 0x1F )
invoke_watson(nullptr, nullptr, nullptr, 0, 0);
}
j_j_free(v36);
}
v37 = cocos2d::CCLabelBMFont::create((const char *)&qword_140734200, "goldFont.fnt");
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v80, -85.0, 0.0);
cocos2d::CCPoint::operator+(v84, &v77, v38);
(*(void (__fastcall **)(struct cocos2d::CCLabelBMFont *, void ***))(*(_QWORD *)v37 + 184LL))(v37, &v77);
(*(void (__fastcall **)(_QWORD, struct cocos2d::CCLabelBMFont *))(**(_QWORD **)(a1 + 584) + 464LL))(
*(_QWORD *)(a1 + 584),
v37);
(*(void (__fastcall **)(struct cocos2d::CCLabelBMFont *))(*(_QWORD *)v37 + 160LL))(v37);
v39 = cocos2d::CCLabelBMFont::create(" ", (const char *)&qword_140704F78);
*(_QWORD *)(a1 + 1000) = v39;
(*(void (__fastcall **)(_QWORD, struct cocos2d::CCLabelBMFont *))(**(_QWORD **)(a1 + 584) + 464LL))(
*(_QWORD *)(a1 + 584),
v39);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v80, 0.0, -25.0);
v41 = v40;
v42 = (*(__int64 (__fastcall **)(struct cocos2d::CCLabelBMFont *))(*(_QWORD *)v37 + 200LL))(v37);
cocos2d::CCPoint::operator+(v42, &v77, v41);
(*(void (__fastcall **)(_QWORD, void ***))(**(_QWORD **)(a1 + 1000) + 184LL))(*(_QWORD *)(a1 + 1000), &v77);
(*(void (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 1000) + 160LL))(*(_QWORD *)(a1 + 1000));
SetupGradientPopup::updateBlendingLabel(a1);
v43 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_arrow_01_001.png");
cocos2d::CCSprite::setFlipX(v43, 1);
(*(void (__fastcall **)(cocos2d::CCSprite *))(*(_QWORD *)v43 + 160LL))(v43);
v80 = (void **)operator new(0x208u);
v44 = (__int64 *)CCMenuItemSpriteExtra::CCMenuItemSpriteExtra((__int64)v80);
v45 = v44;
if ( v44 )
{
if ( CCMenuItemSpriteExtra::init(v44, (__int64 *)v43, 0, a1, (__int64)SetupGradientPopup::onBlending) )
{
cocos2d::CCObject::autorelease((cocos2d::CCObject *)v45);
goto LABEL_38;
}
(*(void (__fastcall **)(__int64 *, __int64))(*v45 + 8))(v45, 1);
}
v45 = nullptr;
LABEL_38:
(*(void (__fastcall **)(_QWORD, __int64 *))(**(_QWORD **)(a1 + 552) + 464LL))(*(_QWORD *)(a1 + 552), v45);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v80, 75.0, 0.0);
v47 = v46;
v48 = (*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 1000) + 200LL))(*(_QWORD *)(a1 + 1000));
cocos2d::CCPoint::operator+(v48, &v77, v47);
v49 = *v45;
cocos2d::CCNode::convertToNodeSpace(*(_QWORD *)(a1 + 552), &v81, &v77);
(*(void (__fastcall **)(__int64 *, __int64))(v49 + 184))(v45, v50);
*((_DWORD *)v45 + 93) = 1068708659;
(*(void (__fastcall **)(__int64 *, __int64))(*v45 + 64))(v45, 1);
v51 = (__int64 *)cocos2d::CCSprite::createWithSpriteFrameName("GJ_arrow_01_001.png");
(*(void (__fastcall **)(__int64 *))(*v51 + 160))(v51);
v80 = (void **)operator new(0x208u);
v52 = (__int64 *)CCMenuItemSpriteExtra::CCMenuItemSpriteExtra((__int64)v80);
v53 = v52;
if ( v52 )
{
if ( CCMenuItemSpriteExtra::init(v52, v51, 0, a1, (__int64)SetupGradientPopup::onBlending) )
{
cocos2d::CCObject::autorelease((cocos2d::CCObject *)v53);
LABEL_43:
(*(void (__fastcall **)(_QWORD, __int64 *))(**(_QWORD **)(a1 + 552) + 464LL))(*(_QWORD *)(a1 + 552), v53);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v80, -75.0, 0.0);
v55 = v54;
v56 = (*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 1000) + 200LL))(*(_QWORD *)(a1 + 1000));
cocos2d::CCPoint::operator+(v56, &v77, v55);
v57 = *v53;
cocos2d::CCNode::convertToNodeSpace(*(_QWORD *)(a1 + 552), &v81, &v77);
(*(void (__fastcall **)(__int64 *, __int64))(v57 + 184))(v53, v58);
*((_DWORD *)v53 + 93) = 1068708659;
(*(void (__fastcall **)(__int64 *, _QWORD))(*v53 + 64))(v53, 0);
SetupTriggerPopup::createMultiTriggerItemsCorner(a1);
v60 = (cocos2d::CCObject *)cocos2d::CCArray::create(v59);
*(_QWORD *)(a1 + 1016) = v60;
cocos2d::CCObject::retain(v60);
v62 = cocos2d::CCArray::create(v61);
v64 = cocos2d::CCArray::create(v63);
v65 = 1;
while ( 1 )
{
v66 = (__int64 *)SetupShaderEffectPopup::zLayerToString(Block, v65);
v67 = (__int64)v66;
if ( (unsigned __int64)v66[3] > 0xF )
v67 = *v66;
v80 = (void **)operator new(0x2C8u);
v68 = (cocos2d::CCObject *)ButtonSprite::ButtonSprite((__int64)v80);
if ( v68 )
{
if ( ButtonSprite::init_1(
(__int64)v68,
v67,
220,
0,
1050253722,
0,
&qword_140704F78,
(__int64)"GJ_button_04.png",
1103626240) )
{
cocos2d::CCObject::autorelease(v68);
}
else
{
(*(void (__fastcall **)(cocos2d::CCObject *, __int64))(*(_QWORD *)v68 + 8LL))(v68, 1);
v68 = nullptr;
}
}
sub_14003D310((__int64)Block);
cocos2d::CCArray::addObject(*(cocos2d::CCArray **)(a1 + 1016), v68);
v81 = (void **)operator new(0x208u);
v69 = (__int64 *)CCMenuItemSpriteExtra::CCMenuItemSpriteExtra((__int64)v81);
if ( !v69 )
goto LABEL_54;
if ( !CCMenuItemSpriteExtra::init(v69, (__int64 *)v68, 0, a1, (__int64)SetupGradientPopup::onZLayer) )
break;
cocos2d::CCObject::autorelease((cocos2d::CCObject *)v69);
LABEL_55:
(*(void (__fastcall **)(__int64 *, _QWORD))(*v69 + 64))(v69, v65);
(*(void (__fastcall **)(cocos2d::CCObject *, _QWORD))(*(_QWORD *)v68 + 64LL))(v68, v65);
(*(void (__fastcall **)(_QWORD, __int64 *))(**(_QWORD **)(a1 + 552) + 464LL))(*(_QWORD *)(a1 + 552), v69);
v70 = (cocos2d::CCArray *)v64;
if ( v65 <= 7 )
v70 = (cocos2d::CCArray *)v62;
cocos2d::CCArray::addObject(v70, (struct cocos2d::CCObject *)v69);
if ( (int)++v65 > 15 )
{
SetupGradientPopup::updateZLayerButtons(a1);
v71 = *(_QWORD *)(a1 + 552);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v80, (float)(v78 * 0.5) - 20.0, (float)(v79 * 0.5) - 10.0);
cocos2d::CCNode::convertToNodeSpace(v71, &v81, v72);
GameToolbox::alignItemsHorisontally(v62, 8.0, v73, 0);
v74 = *(_QWORD *)(a1 + 552);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v80, (float)(v78 * 0.5) - 20.0, (float)(v79 * 0.5) - 50.0);
cocos2d::CCNode::convertToNodeSpace(v74, &v81, v75);
GameToolbox::alignItemsHorisontally(v64, 8.0, v76, 0);
(*(void (__fastcall **)(__int64))(*(_QWORD *)a1 + 1136LL))(a1);
*(_BYTE *)(a1 + 744) = 0;
return 1;
}
}
(*(void (__fastcall **)(__int64 *, __int64))(*v69 + 8))(v69, 1);
LABEL_54:
v69 = nullptr;
goto LABEL_55;
}
(*(void (__fastcall **)(__int64 *, __int64))(*v53 + 8))(v53, 1);
}
v53 = nullptr;
goto LABEL_43;
}
return result;
}