//
// SetupSequenceTriggerPopup::init from 0x1405d8590 to 0x1405d98d3 (4931 bytes)
//
// 3 xrefs:
// > SetupSequenceTriggerPopup::create @ 0x1405d8551
// > ??> @ 0x14092eb2c
// > ??> @ 0x14092eb38
//
// 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:58 +0000
//
// Hidden C++ exception states: #wind=10
char __fastcall SetupSequenceTriggerPopup::init(__int64 a1, int a2, __int64 a3, int a4)
{
char result; // al
__int64 v6; // rcx
cocos2d::CCObject *v7; // rax
__int64 v8; // rcx
__int64 v9; // rax
struct cocos2d::CCLabelBMFont *v10; // rdi
__int64 v11; // rbx
__int64 v12; // rax
cocos2d::CCObject *v13; // rbx
cocos2d::CCObject *v14; // rax
_BYTE *v15; // rax
_BYTE *v16; // rcx
const char *v17; // rdx
__int64 v18; // r8
char *v19; // rsi
__int64 v20; // rdi
__int64 v21; // rbx
__int64 v22; // rax
__int64 v23; // rax
__int64 v24; // rax
__int64 v25; // rax
__int64 v26; // rax
int i; // esi
__int64 (__fastcall *v28)(); // r12
unsigned __int64 v29; // rdi
_BYTE *v30; // rbx
unsigned __int64 v31; // rcx
__int64 v32; // rbx
char *v33; // r14
void *v34; // rcx
unsigned __int64 v35; // rdi
_BYTE *v36; // rbx
unsigned __int64 v37; // rcx
__int64 v38; // rbx
_QWORD *v39; // rax
__int128 v40; // xmm0
unsigned __int64 v41; // rdi
_BYTE *v42; // rbx
unsigned __int64 v43; // rcx
__int64 v44; // rbx
char *v45; // r14
void *v46; // rcx
_BYTE *v47; // rbx
unsigned __int64 v48; // rcx
void *v49; // r14
void *v50; // rcx
void **v51; // rcx
struct cocos2d::CCSprite *v52; // rax
__int64 v53; // rdi
void **v54; // r14
__int64 *v55; // rax
__int64 v56; // r9
cocos2d::CCObject *v57; // rbx
cocos2d::CCObject *v58; // rbx
__int64 v59; // rax
void *v60; // rcx
void *v61; // rcx
__int64 v62; // rax
__int64 *v63; // rdi
__int64 v64; // rdx
__int64 v65; // rbx
__int64 v66; // rax
__int64 v67; // rbx
__int64 v68; // rax
__int64 v69; // rax
void **v70; // rdx
__int64 v71; // rax
void **v72; // rdx
__int64 v73; // rax
int v74; // ebx
int v75; // edi
__int64 v76; // rax
int v77; // r8d
int v78; // r9d
__int64 v79; // rax
int v80; // r8d
int v81; // r9d
__int64 v82; // rax
int v83; // r8d
int v84; // r9d
__int64 v85; // rax
int v86; // r8d
int v87; // r9d
__int64 v88; // rax
int v89; // r8d
int v90; // r9d
int v91; // eax
__int64 v92; // r8
__int64 v93; // [rsp+38h] [rbp-D0h]
void **v94; // [rsp+88h] [rbp-80h] BYREF
float v95; // [rsp+90h] [rbp-78h] BYREF
float v96; // [rsp+94h] [rbp-74h]
void **v97; // [rsp+98h] [rbp-70h] BYREF
_BYTE v98[8]; // [rsp+A0h] [rbp-68h] BYREF
void **v99; // [rsp+A8h] [rbp-60h] BYREF
_BYTE v100[8]; // [rsp+B0h] [rbp-58h] BYREF
_BYTE v101[8]; // [rsp+B8h] [rbp-50h] BYREF
_BYTE v102[8]; // [rsp+C0h] [rbp-48h] BYREF
void *Src[2]; // [rsp+C8h] [rbp-40h] BYREF
size_t Size; // [rsp+D8h] [rbp-30h]
unsigned __int64 v105; // [rsp+E0h] [rbp-28h]
void *v106[2]; // [rsp+E8h] [rbp-20h] BYREF
__int64 v107; // [rsp+F8h] [rbp-10h]
unsigned __int64 v108; // [rsp+100h] [rbp-8h]
int v109; // [rsp+108h] [rbp+0h] BYREF
void *v110[4]; // [rsp+110h] [rbp+8h] BYREF
_BYTE v111[8]; // [rsp+130h] [rbp+28h] BYREF
char v112[8]; // [rsp+138h] [rbp+30h] BYREF
int v113; // [rsp+140h] [rbp+38h]
int v114; // [rsp+144h] [rbp+3Ch]
char v115; // [rsp+148h] [rbp+40h]
int v116; // [rsp+14Ch] [rbp+44h]
__int64 v117; // [rsp+150h] [rbp+48h]
int v118; // [rsp+158h] [rbp+50h]
int v119; // [rsp+15Ch] [rbp+54h]
int v120; // [rsp+160h] [rbp+58h]
char v121; // [rsp+164h] [rbp+5Ch]
_BYTE v122[40]; // [rsp+170h] [rbp+68h] BYREF
_BYTE v123[32]; // [rsp+198h] [rbp+90h] BYREF
result = SetupTriggerPopup::init(a1, a2, 0, a4, 1133903872, 1, 0);
if ( !result )
return result;
*(_BYTE *)(a1 + 744) = 1;
(*(void (__fastcall **)(__int64))(*(_QWORD *)a1 + 1096LL))(a1);
v7 = (cocos2d::CCObject *)cocos2d::CCArray::create(v6);
*(_QWORD *)(a1 + 1016) = v7;
cocos2d::CCObject::retain(v7);
v9 = cocos2d::CCDirector::sharedDirector(v8);
cocos2d::CCDirector::getWinSize(v9, &v95);
v10 = cocos2d::CCLabelBMFont::create("Sequence Trigger", "goldFont.fnt");
(*(void (__fastcall **)(_QWORD, struct cocos2d::CCLabelBMFont *))(**(_QWORD **)(a1 + 584) + 464LL))(
*(_QWORD *)(a1 + 584),
v10);
(*(void (__fastcall **)(struct cocos2d::CCLabelBMFont *))(*(_QWORD *)v10 + 160LL))(v10);
v11 = *(_QWORD *)v10;
cocos2d::CCPoint::CCPoint(
(cocos2d::CCPoint *)&v94,
v95 * 0.5,
(float)((float)(v96 * 0.5) + (float)(*(float *)(a1 + 736) * 0.5)) - 18.0);
(*(void (__fastcall **)(struct cocos2d::CCLabelBMFont *, __int64))(v11 + 184))(v10, v12);
v94 = (void **)operator new(0x2C8u);
v13 = (cocos2d::CCObject *)ButtonSprite::ButtonSprite((__int64)v94);
if ( v13 )
{
if ( ButtonSprite::init_1(
(__int64)v13,
(__int64)"OK",
40,
0,
1061997773,
1,
"goldFont.fnt",
(__int64)"GJ_button_01.png",
1106247680) )
{
cocos2d::CCObject::autorelease(v13);
}
else
{
(*(void (__fastcall **)(cocos2d::CCObject *, __int64))(*(_QWORD *)v13 + 8LL))(v13, 1);
LODWORD(v13) = 0;
}
}
v14 = CCMenuItemSpriteExtra::create((int)v13, 0, a1, (__int64)sub_14009D628);
(*(void (__fastcall **)(_QWORD, cocos2d::CCObject *))(**(_QWORD **)(a1 + 552) + 464LL))(*(_QWORD *)(a1 + 552), v14);
v94 = Src;
*(_OWORD *)Src = 0;
Size = 0;
v105 = 0;
v15 = sub_14003D460(0x1F0u);
Src[0] = v15;
Size = 485;
v105 = 495;
v16 = v15;
v17 = "Activates a sequence of triggers. Every time it is called, the sequence is advanced one step.\n"
"GroupID is called the amount of times given by Count.\n"
"MinInt is the minimum interval between each step.\n"
"Mode Stop stops the sequence at the end.\n"
"Mode Loop restarts the sequence after ending.\n"
"Mode Last calls last group after the end.\n"
"Reset Full and Reset Step go back in the sequence if activation does not happen in a set time.";
v18 = 3;
do
{
*(_OWORD *)v16 = *(_OWORD *)v17;
*((_OWORD *)v16 + 1) = *((_OWORD *)v17 + 1);
*((_OWORD *)v16 + 2) = *((_OWORD *)v17 + 2);
*((_OWORD *)v16 + 3) = *((_OWORD *)v17 + 3);
*((_OWORD *)v16 + 4) = *((_OWORD *)v17 + 4);
*((_OWORD *)v16 + 5) = *((_OWORD *)v17 + 5);
*((_OWORD *)v16 + 6) = *((_OWORD *)v17 + 6);
v16 += 128;
*((_OWORD *)v16 - 1) = *((_OWORD *)v17 + 7);
v17 += 128;
--v18;
}
while ( v18 );
*(_OWORD *)v16 = *(_OWORD *)v17;
*((_OWORD *)v16 + 1) = *((_OWORD *)v17 + 1);
*((_OWORD *)v16 + 2) = *((_OWORD *)v17 + 2);
*((_OWORD *)v16 + 3) = *((_OWORD *)v17 + 3);
*((_OWORD *)v16 + 4) = *((_OWORD *)v17 + 4);
*((_OWORD *)v16 + 5) = *((_OWORD *)v17 + 5);
*((_DWORD *)v16 + 24) = *((_DWORD *)v17 + 24);
v16[100] = v17[100];
v15[485] = 0;
*(_OWORD *)v106 = 0;
v107 = 4;
v108 = 15;
strcpy((char *)v106, "Help");
v19 = InfoAlertButton::create((__int64)v106, (__int64)Src);
(*(void (__fastcall **)(_QWORD, char *))(**(_QWORD **)(a1 + 552) + 464LL))(*(_QWORD *)(a1 + 552), v19);
v20 = *(_QWORD *)v19;
v21 = *(_QWORD *)(a1 + 552);
cocos2d::CCPoint::CCPoint(
(cocos2d::CCPoint *)&v94,
(float)((float)(v95 * 0.5) - (float)(*(float *)(a1 + 732) * 0.5)) + 18.0,
(float)((float)(*(float *)(a1 + 736) * 0.5) + (float)(v96 * 0.5)) - 18.0);
cocos2d::CCNode::convertToNodeSpace(v21, &v99, v22);
(*(void (__fastcall **)(char *, __int64))(v20 + 184))(v19, v23);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v100, (float)(v95 * 0.5) - 65.0, (float)(v96 * 0.5) + 82.0);
Src[1] = nullptr;
Size = 8;
v105 = 15;
Src[0] = (void *)0x3A444970756F7247LL;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v99, -60.0, 0.0);
cocos2d::CCPoint::operator+(v100, &v94, v24);
IDNameInput::create(a1, a1 + 544, 1, -1, (__int64)Src, (const struct cocos2d::CCPoint *)&v94, 1060320051, 6, 0, 0, 0);
sub_14003D310((__int64)Src);
v99 = Src;
*(_OWORD *)Src = 0;
Size = 6;
v105 = 15;
strcpy((char *)Src, "Count:");
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v97, 60.0, 0.0);
cocos2d::CCPoint::operator+(v100, &v94, v25);
SetupTriggerPopup::createValueControlAdvanced(
a1,
-2,
(unsigned int)Src,
(unsigned int)&v94,
1060320051,
1,
2,
6,
1,
0,
1120403456,
0,
0,
0,
2,
0);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v97, 138.0, 0.0);
cocos2d::CCPoint::operator+(v100, &v94, v26);
cocos2d::CCNode::convertToNodeSpace(*(_QWORD *)(a1 + 552), v102, &v94);
for ( i = 0; i < 4; ++i )
{
v28 = SetupSequenceTriggerPopup::onAddChance;
*(_OWORD *)Src = 0;
Size = 0;
v105 = 0;
Src[0] = sub_14003D460(0x20u);
Size = 20;
v105 = 31;
strcpy((char *)Src[0], "edit_addCBtn_001.png");
*(_OWORD *)v106 = 0;
v107 = 0;
v108 = 0;
v106[0] = sub_14003D460(0x20u);
v107 = 16;
v108 = 31;
strcpy((char *)v106[0], "GJ_button_01.png");
if ( i == 1 )
{
v29 = v105;
if ( v105 < 0x14 )
{
v31 = v105 >> 1;
if ( v105 <= 0x7FFFFFFFFFFFFFFFLL - (v105 >> 1) )
{
v32 = 31;
if ( v31 + v105 > 0x1F )
v32 = v31 + v105;
}
else
{
v32 = 0x7FFFFFFFFFFFFFFFLL;
}
v33 = (char *)sub_14003D460(v32 + 1);
Size = 20;
v105 = v32;
strcpy(v33, "edit_delCBtn_001.png");
if ( v29 > 0xF )
{
v34 = Src[0];
if ( v29 + 1 >= 0x1000 )
{
v34 = *((void **)Src[0] - 1);
if ( (unsigned __int64)((char *)Src[0] - (char *)v34 - 8) > 0x1F )
goto LABEL_78;
}
j_j_free(v34);
}
Src[0] = v33;
}
else
{
v30 = Src[0];
Size = 20;
memmove(Src[0], "edit_delCBtn_001.png", 0x14u);
v30[20] = 0;
}
v28 = SetupSequenceTriggerPopup::onDeleteSelected;
v35 = v108;
if ( v108 >= 0x10 )
{
v36 = v106[0];
v107 = 16;
memmove(v106[0], "GJ_button_06.png", 0x10u);
v36[16] = 0;
goto LABEL_52;
}
v37 = v108 >> 1;
if ( v108 <= 0x7FFFFFFFFFFFFFFFLL - (v108 >> 1) )
{
v38 = 31;
if ( v37 + v108 > 0x1F )
v38 = v37 + v108;
}
else
{
v38 = 0x7FFFFFFFFFFFFFFFLL;
}
v39 = sub_14003D460(v38 + 1);
v40 = *(_OWORD *)"GJ_button_06.png";
}
else
{
if ( i < 2 )
goto LABEL_52;
v41 = v105;
if ( v105 < 0x12 )
{
v43 = v105 >> 1;
if ( v105 <= 0x7FFFFFFFFFFFFFFFLL - (v105 >> 1) )
{
v44 = 31;
if ( v105 + v43 > 0x1F )
v44 = v105 + v43;
}
else
{
v44 = 0x7FFFFFFFFFFFFFFFLL;
}
v45 = (char *)sub_14003D460(v44 + 1);
Size = 18;
v105 = v44;
strcpy(v45, "edit_upBtn_001.png");
if ( v41 > 0xF )
{
v46 = Src[0];
if ( v41 + 1 >= 0x1000 )
{
v46 = *((void **)Src[0] - 1);
if ( (unsigned __int64)((char *)Src[0] - (char *)v46 - 8) > 0x1F )
LABEL_78:
invoke_watson(nullptr, nullptr, nullptr, 0, 0);
}
j_j_free(v46);
}
Src[0] = v45;
}
else
{
v42 = Src[0];
Size = 18;
memmove(Src[0], "edit_upBtn_001.png", 0x12u);
v42[18] = 0;
}
v28 = SetupSequenceTriggerPopup::onChangeOrder;
v35 = v108;
if ( v108 >= 0x10 )
{
v47 = v106[0];
v107 = 16;
memmove(v106[0], "GJ_button_05.png", 0x10u);
v47[16] = 0;
goto LABEL_52;
}
v48 = v108 >> 1;
if ( v108 <= 0x7FFFFFFFFFFFFFFFLL - (v108 >> 1) )
{
v38 = 31;
if ( v108 + v48 > 0x1F )
v38 = v108 + v48;
}
else
{
v38 = 0x7FFFFFFFFFFFFFFFLL;
}
v39 = sub_14003D460(v38 + 1);
v40 = *(_OWORD *)"GJ_button_05.png";
}
v107 = 16;
v108 = v38;
*(_OWORD *)v39 = v40;
*((_BYTE *)v39 + 16) = 0;
v49 = v39;
if ( v35 > 0xF )
{
v50 = v106[0];
if ( v35 + 1 >= 0x1000 )
{
v50 = *((void **)v106[0] - 1);
if ( (unsigned __int64)((char *)v106[0] - (char *)v50 - 8) > 0x1F )
goto LABEL_78;
}
j_j_free(v50);
}
v106[0] = v49;
LABEL_52:
v51 = Src;
if ( v105 > 0xF )
v51 = (void **)Src[0];
v52 = cocos2d::CCSprite::createWithSpriteFrameName((const char *)v51);
v53 = (__int64)v52;
if ( i == 2 || i == 3 )
(*(void (__fastcall **)(struct cocos2d::CCSprite *))(*(_QWORD *)v52 + 352LL))(v52);
v54 = v106;
if ( v108 > 0xF )
v54 = (void **)v106[0];
v97 = (void **)operator new(0x2C8u);
v55 = (__int64 *)ButtonSprite::ButtonSprite((__int64)v97);
v57 = (cocos2d::CCObject *)v55;
if ( v55 )
{
if ( ButtonSprite::init(v55, v53, 32, v56, 32.0, 1065353216, v93, (const char *)v54, 1, 0) )
{
cocos2d::CCObject::autorelease(v57);
}
else
{
(*(void (__fastcall **)(cocos2d::CCObject *, __int64))(*(_QWORD *)v57 + 8LL))(v57, 1);
LODWORD(v57) = 0;
}
}
v58 = CCMenuItemSpriteExtra::create((int)v57, 0, a1, (__int64)v28);
(*(void (__fastcall **)(cocos2d::CCObject *))(*(_QWORD *)v58 + 160LL))(v58);
*((_DWORD *)v58 + 101) = 1058642330;
(*(void (__fastcall **)(_QWORD, cocos2d::CCObject *))(**(_QWORD **)(a1 + 552) + 464LL))(*(_QWORD *)(a1 + 552), v58);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v99, (float)i * 32.0, 0.0);
cocos2d::CCPoint::operator+(v102, &v94, v59);
(*(void (__fastcall **)(cocos2d::CCObject *, void ***))(*(_QWORD *)v58 + 184LL))(v58, &v94);
(*(void (__fastcall **)(cocos2d::CCObject *, _QWORD))(*(_QWORD *)v58 + 64LL))(v58, (unsigned int)i);
if ( v108 > 0xF )
{
v60 = v106[0];
if ( v108 + 1 >= 0x1000 )
{
v60 = *((void **)v106[0] - 1);
if ( (unsigned __int64)((char *)v106[0] - (char *)v60 - 8) > 0x1F )
invoke_watson(nullptr, nullptr, nullptr, 0, 0);
}
j_j_free(v60);
}
v107 = 0;
v108 = 15;
LOBYTE(v106[0]) = 0;
if ( v105 > 0xF )
{
v61 = Src[0];
if ( v105 + 1 >= 0x1000 )
{
v61 = *((void **)Src[0] - 1);
if ( (unsigned __int64)((char *)Src[0] - (char *)v61 - 8) > 0x1F )
invoke_watson(nullptr, nullptr, nullptr, 0, 0);
}
j_j_free(v61);
}
}
cocos2d::CCRect::CCRect((cocos2d::CCRect *)v106, 0.0, 0.0, 80.0, 80.0);
v63 = (__int64 *)cocos2d::extension::CCScale9Sprite::create("square02_001.png", v62);
LOBYTE(v64) = 50;
(*(void (__fastcall **)(__int64 *, __int64))(v63[40] + 40))(v63 + 40, v64);
v65 = *v63;
cocos2d::CCSize::CCSize((cocos2d::CCSize *)&v97, 370.0, 90.0);
(*(void (__fastcall **)(__int64 *, __int64))(v65 + 312))(v63, v66);
(*(void (__fastcall **)(_QWORD, __int64 *, __int64))(**(_QWORD **)(a1 + 584) + 456LL))(
*(_QWORD *)(a1 + 584),
v63,
0xFFFFFFFFLL);
v67 = *v63;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v97, v95 * 0.5, (float)(v96 * 0.5) + 14.0);
(*(void (__fastcall **)(__int64 *, __int64))(v67 + 184))(v63, v68);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v101, v95 * 0.5, (float)(v96 * 0.5) - 50.0);
v97 = Src;
Src[1] = nullptr;
Size = 7;
v105 = 15;
Src[0] = (void *)0x3A746E496E694DLL;
v99 = Src;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v106, -91.0, -0.0);
cocos2d::CCPoint::operator+(v101, &v94, v69);
sub_14009BE60((__int64)&v109);
v109 = 437;
v70 = Src;
if ( v105 > 0xF )
v70 = (void **)Src[0];
sub_1400405A0(v110, v70, Size);
cocos2d::CCPoint::operator=(v111, &v94);
strcpy(v112, "ff&?");
v113 = 1;
v114 = 6;
v115 = 0;
v116 = 0;
v117 = 1065353216;
v118 = 0;
v119 = 1;
v120 = 2;
v121 = 0;
SetupTriggerPopup::createValueControlAdvanced_1(a1, &v109);
sub_14003D310((__int64)v123);
sub_14003D310((__int64)v122);
sub_14003D310((__int64)v110);
sub_14003D310((__int64)Src);
v106[0] = Src;
*(_OWORD *)Src = 0;
Size = 6;
v105 = 15;
strcpy((char *)Src, "Reset:");
v97 = Src;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v99, 91.0, -0.0);
cocos2d::CCPoint::operator+(v101, &v94, v71);
sub_14009BE60((__int64)&v109);
v109 = 438;
v72 = Src;
if ( v105 > 0xF )
v72 = (void **)Src[0];
sub_1400405A0(v110, v72, Size);
cocos2d::CCPoint::operator=(v111, &v94);
strcpy(v112, "ff&?");
v113 = 1;
v114 = 6;
v115 = 0;
v116 = 0;
v117 = 1065353216;
v118 = 0;
v119 = 1;
v120 = 2;
v121 = 0;
SetupTriggerPopup::createValueControlAdvanced_1(a1, &v109);
sub_14003D310((__int64)v123);
sub_14003D310((__int64)v122);
sub_14003D310((__int64)v110);
sub_14003D310((__int64)Src);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v106, -25.0, -34.0);
cocos2d::CCPoint::operator+(v101, v98, v73);
v74 = (int)(*(float (__fastcall **)(__int64, __int64))(*(_QWORD *)a1 + 1168LL))(a1, 436);
v75 = (int)(*(float (__fastcall **)(__int64, __int64))(*(_QWORD *)a1 + 1168LL))(a1, 439);
v106[0] = Src;
Src[1] = (void *)112;
Size = 9;
v105 = 15;
Src[0] = (void *)0x6F74530A65646F4DLL;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v97, -158.0, 0.0);
cocos2d::CCPoint::operator+(v98, &v94, v76);
LOBYTE(v77) = v74 == 0;
SetupTriggerPopup::createCustomToggleValueControl(a1, 0, v77, v78, (__int64)Src, (__int64)&v94, 0, 0, 0);
v106[0] = Src;
Src[1] = (void *)112;
Size = 9;
v105 = 15;
Src[0] = (void *)0x6F6F4C0A65646F4DLL;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v97, -79.0, 0.0);
cocos2d::CCPoint::operator+(v98, &v94, v79);
LOBYTE(v80) = v74 == 1;
SetupTriggerPopup::createCustomToggleValueControl(a1, 1, v80, v81, (__int64)Src, (__int64)&v94, 0, 0, 0);
v106[0] = Src;
Src[1] = (void *)116;
Size = 9;
v105 = 15;
Src[0] = (void *)0x73614C0A65646F4DLL;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v97, 0.0, 0.0);
cocos2d::CCPoint::operator+(v98, &v94, v82);
LOBYTE(v83) = v74 == 2;
SetupTriggerPopup::createCustomToggleValueControl(a1, 2, v83, v84, (__int64)Src, (__int64)&v94, 0, 0, 0);
v106[0] = Src;
Src[1] = (void *)27756;
Size = 10;
v105 = 15;
Src[0] = (void *)0x75460A7465736552LL;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v97, 79.0, 0.0);
cocos2d::CCPoint::operator+(v98, &v94, v85);
LOBYTE(v86) = v75 != 1;
SetupTriggerPopup::createCustomToggleValueControl(a1, 100, v86, v87, (__int64)Src, (__int64)&v94, 0, 0, 0);
v106[0] = Src;
Src[1] = (void *)28773;
Size = 10;
v105 = 15;
Src[0] = (void *)0x74530A7465736552LL;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v97, 158.0, 0.0);
cocos2d::CCPoint::operator+(v98, &v94, v88);
LOBYTE(v89) = v75 == 1;
SetupTriggerPopup::createCustomToggleValueControl(a1, 101, v89, v90, (__int64)Src, (__int64)&v94, 0, 0, 0);
v106[0] = Src;
Size = 12;
v105 = 15;
strcpy((char *)Src, "Unique\nRemap");
BYTE5(Src[1]) = 0;
HIWORD(Src[1]) = 0;
cocos2d::CCPoint::CCPoint(
(cocos2d::CCPoint *)&v97,
(float)(v95 * 0.5) + 55.0,
(float)((float)(v96 * 0.5) - (float)(*(float *)(a1 + 736) * 0.5)) + 20.0);
SetupTriggerPopup::createToggleValueControl(a1, 505, (unsigned int)Src, v91, 0, 0, 0, 1065353216);
SetupTriggerPopup::createMultiTriggerItemsDefaultHorizontal(a1);
SetupSequenceTriggerPopup::updateGroupIDButtons(a1);
(*(void (__fastcall **)(__int64))(*(_QWORD *)a1 + 1136LL))(a1);
*(_BYTE *)(a1 + 744) = 0;
if ( cocos2d::CCDictionary::objectForKey(*(cocos2d::CCDictionary **)(a1 + 752), -2) )
{
LOBYTE(v92) = 1;
(*(void (__fastcall **)(__int64, __int64, __int64))(*(_QWORD *)a1 + 1152LL))(a1, 4294967294LL, v92);
}
else
{
SetupTriggerPopup::updateValueControls(a1, 4294967294LL);
}
SetupTriggerPopup::valueChanged(a1, 4294967294LL);
return 1;
}