//
// SetupPulsePopup::init from 0x1405ccf20 to 0x1405d0230 (13072 bytes)
//
// 2 xrefs:
// > SetupPulsePopup::create @ 0x1405ccedc
// > ??> @ 0x14092e5bc
//
// 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:55 +0000
//
// Hidden C++ exception states: #wind=12
char __fastcall SetupPulsePopup::init(__int64 a1, int a2, int a3, int a4)
{
char result; // al
__int64 v6; // rcx
cocos2d::CCObject *v7; // rax
__int64 v8; // rcx
cocos2d::CCObject *v9; // rax
__int64 v10; // r13
__int64 v11; // rax
__int64 v12; // rdi
__int64 v13; // rax
__int64 v14; // rbx
__int64 v15; // rax
_BYTE *v16; // r8
_OWORD *v17; // rcx
const char *v18; // rax
__int64 v19; // rdx
__int64 v20; // rcx
__int64 v21; // rax
struct cocos2d::CCLabelBMFont *v22; // rdi
__int64 v23; // rbx
__int64 v24; // rax
__int64 v25; // rax
void (__fastcall ***v26)(_QWORD, _QWORD); // rsi
__int64 v27; // rax
__int64 v28; // rdx
__int64 v29; // rcx
const char *v30; // r14
char *v31; // rax
__int64 v32; // rdi
__int64 v33; // rbx
__int64 v34; // rax
__int64 v35; // rcx
__int64 v36; // rcx
__int64 v37; // rcx
__int64 v38; // rcx
__int64 v39; // r15
__int64 v40; // r8
cocos2d::CCLayer *v41; // rax
__int64 v42; // rdx
__int64 v43; // rax
__int64 v44; // rcx
float v45; // xmm0_4
float v46; // xmm1_4
__int64 v47; // rsi
float Value; // xmm0_4
float v49; // xmm3_4
__int64 v50; // rdi
__int64 v51; // rbx
__int64 v52; // rax
__int64 v53; // rax
struct cocos2d::CCLabelBMFont *v54; // rdi
__int64 v55; // rbx
__int64 v56; // rax
__int64 v57; // rax
void (__fastcall ***v58)(_QWORD, _QWORD); // rsi
__int64 v59; // rax
__int64 v60; // rdx
char *v61; // rax
__int64 v62; // rdi
__int64 v63; // rbx
__int64 v64; // rax
__int64 v65; // rcx
__int64 v66; // rcx
__int64 v67; // rcx
__int64 v68; // rcx
__int64 v69; // r8
cocos2d::CCLayer *v70; // rax
__int64 v71; // rdx
__int64 v72; // rax
__int64 v73; // rcx
float v74; // xmm0_4
float v75; // xmm1_4
__int64 v76; // rsi
float v77; // xmm0_4
float v78; // xmm3_4
__int64 v79; // rdi
__int64 v80; // rbx
__int64 v81; // rax
__int64 v82; // rax
struct cocos2d::CCLabelBMFont *v83; // rdi
__int64 v84; // rbx
__int64 v85; // rax
__int64 v86; // rax
void (__fastcall ***v87)(_QWORD, _QWORD); // rsi
__int64 v88; // rax
__int64 v89; // rdx
__int64 v90; // rcx
char *v91; // rax
__int64 v92; // rdi
__int64 v93; // rbx
__int64 v94; // rax
__int64 v95; // rcx
__int64 v96; // rcx
__int64 v97; // rcx
__int64 v98; // rcx
__int64 v99; // r8
cocos2d::CCLayer *v100; // rax
__int64 v101; // rdx
__int64 v102; // rax
__int64 v103; // rcx
float v104; // xmm0_4
float v105; // xmm1_4
__int64 v106; // rsi
float v107; // xmm0_4
float v108; // xmm3_4
__int64 v109; // rdi
__int64 v110; // rbx
__int64 v111; // rax
struct cocos2d::CCLabelBMFont *v112; // rbx
__int64 v113; // rax
cocos2d::CCObject *v114; // rbx
cocos2d::CCObject *v115; // rax
cocos2d::CCObject *v116; // rbx
cocos2d::CCObject *v117; // rax
__int64 v118; // rax
__int64 v119; // rax
struct cocos2d::CCLabelBMFont *v120; // rax
__int64 v121; // rax
__int64 v122; // rax
BOOL v123; // ebx
const struct cocos2d::CCPoint *v124; // rax
char *v125; // rbx
void *v126; // r8
struct cocos2d::CCSprite *v127; // rax
int v128; // ebx
cocos2d::CCObject *v129; // rax
__int64 v130; // rax
struct cocos2d::CCLabelBMFont *v131; // rdi
__int64 v132; // rax
__int64 v133; // rax
__int64 v134; // rbx
__int64 v135; // rax
__int64 v136; // rax
cocos2d::CCObject *v137; // rbx
cocos2d::CCObject *v138; // rax
__int64 v139; // rax
cocos2d::CCObject *v140; // rbx
cocos2d::CCObject *v141; // rax
__int64 v142; // rax
__int64 v143; // rax
__int64 v144; // rdi
__int64 v145; // rsi
unsigned __int8 v146; // r14
float *v147; // rax
float *v148; // rbx
__int64 v149; // rax
__int64 v150; // rax
__int64 v151; // rbx
__int64 v152; // rdi
float *v153; // rax
cocos2d::CCArray *v154; // rdi
__int64 v155; // r15
float v156; // xmm7_4
float v157; // xmm6_4
__int64 v158; // rsi
unsigned __int8 v159; // r14
float *v160; // rax
float *v161; // rbx
__int64 v162; // rax
__int64 v163; // r14
float v164; // xmm7_4
float v165; // xmm6_4
__int64 v166; // rdi
float *v167; // rax
float *v168; // rbx
__int64 v169; // rax
__int64 v170; // rdi
__int64 v171; // rsi
float *v172; // rax
float *v173; // rbx
__int64 v174; // rax
__int64 v175; // rax
__int64 v176; // rbx
__int64 v177; // rdi
float *v178; // rax
__int64 v179; // rax
float *v180; // rax
struct cocos2d::CCObject *v181; // rdx
__int64 v182; // rax
struct cocos2d::CCObject *v183; // rdi
__int64 v184; // rdx
void (__fastcall *v185)(char *, __int64); // r8
__int64 v186; // rbx
__int64 v187; // rax
__int64 v188; // rbx
__int64 v189; // rax
__int64 v190; // rax
__int64 v191; // rdi
__int64 v192; // rbx
__int64 v193; // rax
__int64 v194; // rax
cocos2d::CCObject *v195; // rdi
__int64 v196; // rax
cocos2d::CCObject *v197; // rbx
struct cocos2d::CCObject *v198; // r14
struct cocos2d::CCObject *v199; // rsi
__int64 v200; // rdi
__int64 v201; // rbx
__int64 v202; // rax
__int64 v203; // rax
__int64 v204; // rax
__int64 v205; // rbx
__int64 v206; // rax
struct cocos2d::CCSprite *v207; // rax
__int64 v208; // rdi
__int64 v209; // rbx
__int64 v210; // rax
float v211; // xmm7_4
struct cocos2d::CCSprite *v212; // rax
__int64 v213; // rax
__int64 v214; // rbx
__int64 v215; // rax
int v216; // esi
__int64 v217; // r14
int v218; // eax
__int64 v219; // rax
const char *v220; // rcx
struct cocos2d::CCObject *v221; // rdi
__int64 v222; // rbx
__int64 v223; // rax
int v224; // eax
__int64 v225; // rax
__int64 v226; // rax
struct cocos2d::CCObject *v227; // rdi
__int64 v228; // rdx
void (__fastcall *v229)(char *, __int64); // r8
__int64 v230; // rdx
char *v231; // rbx
int v232; // eax
const char *v233; // rdx
size_t v234; // r8
__int64 v235; // rdx
cocos2d::CCNode *v236; // rax
__int64 v237; // rdi
__int64 v238; // rbx
__int64 v239; // rax
__int64 v240; // rax
struct cocos2d::CCObject *v241; // rbx
__int64 v242; // rax
__int64 v243; // rax
struct cocos2d::CCObject *v244; // rdi
__int64 v245; // rdx
void (__fastcall *v246)(char *, __int64); // r8
__int64 v247; // rdx
__int64 v248; // rcx
char *v249; // rax
__int64 v250; // rcx
__int64 v251; // rcx
__int64 v252; // rcx
__int64 v253; // rcx
__int64 *v254; // rdi
__int64 *v255; // rax
__int64 *v256; // rbx
__int64 v257; // rax
__int64 *v258; // rdi
__int64 *v259; // rax
__int64 *v260; // rbx
__int64 v261; // rax
__int64 *v262; // rbx
__int64 *v263; // rdi
__int64 v264; // rax
__int64 v265; // rbx
__int64 v266; // rax
__int64 v267; // rdx
int v268; // eax
int v269; // eax
int v270; // [rsp+88h] [rbp-80h] BYREF
void **v271; // [rsp+90h] [rbp-78h] BYREF
__int16 v272; // [rsp+98h] [rbp-70h] BYREF
char v273; // [rsp+9Ah] [rbp-6Eh]
__int16 v274; // [rsp+A8h] [rbp-60h] BYREF
char v275; // [rsp+AAh] [rbp-5Eh]
float v276; // [rsp+B8h] [rbp-50h] BYREF
float v277; // [rsp+BCh] [rbp-4Ch]
_BYTE v278[8]; // [rsp+C0h] [rbp-48h] BYREF
_WORD v279[4]; // [rsp+C8h] [rbp-40h] BYREF
_BYTE v280[8]; // [rsp+D0h] [rbp-38h] BYREF
__int128 v281; // [rsp+D8h] [rbp-30h] BYREF
_BYTE v282[8]; // [rsp+E8h] [rbp-20h] BYREF
__int128 v283; // [rsp+F0h] [rbp-18h] BYREF
__int64 v284; // [rsp+100h] [rbp-8h]
__int64 v285; // [rsp+108h] [rbp+0h]
_BYTE v286[8]; // [rsp+110h] [rbp+8h] BYREF
_BYTE v287[8]; // [rsp+118h] [rbp+10h] BYREF
_BYTE v288[8]; // [rsp+120h] [rbp+18h] BYREF
_BYTE v289[8]; // [rsp+128h] [rbp+20h] BYREF
_BYTE v290[8]; // [rsp+130h] [rbp+28h] BYREF
_BYTE v291[8]; // [rsp+138h] [rbp+30h] BYREF
_BYTE v292[8]; // [rsp+140h] [rbp+38h] BYREF
_BYTE v293[8]; // [rsp+148h] [rbp+40h] BYREF
_BYTE v294[8]; // [rsp+150h] [rbp+48h] BYREF
_BYTE v295[8]; // [rsp+158h] [rbp+50h] BYREF
_BYTE v296[8]; // [rsp+160h] [rbp+58h] BYREF
_BYTE v297[8]; // [rsp+168h] [rbp+60h] BYREF
_BYTE v298[8]; // [rsp+170h] [rbp+68h] BYREF
_BYTE v299[8]; // [rsp+178h] [rbp+70h] BYREF
_BYTE v300[16]; // [rsp+180h] [rbp+78h] BYREF
_BYTE v301[16]; // [rsp+190h] [rbp+88h] BYREF
__int128 v302; // [rsp+1A0h] [rbp+98h] BYREF
__int64 v303; // [rsp+1B0h] [rbp+A8h]
__int64 v304; // [rsp+1B8h] [rbp+B0h]
void *Block[2]; // [rsp+1C0h] [rbp+B8h] BYREF
__int64 v306; // [rsp+1D0h] [rbp+C8h]
unsigned __int64 v307; // [rsp+1D8h] [rbp+D0h]
result = SetupTriggerPopup::init(a1, a2, a3, a4, 1134231552, 1, 0);
if ( !result )
return result;
*(_BYTE *)(a1 + 1284) = 1;
v7 = (cocos2d::CCObject *)cocos2d::CCArray::create(v6);
*(_QWORD *)(a1 + 1032) = v7;
cocos2d::CCObject::retain(v7);
v9 = (cocos2d::CCObject *)cocos2d::CCArray::create(v8);
*(_QWORD *)(a1 + 1040) = v9;
cocos2d::CCObject::retain(v9);
*(_BYTE *)(a1 + 1260) = 1;
(*(void (__fastcall **)(__int64))(*(_QWORD *)a1 + 1096LL))(a1);
*(_OWORD *)Block = 0;
v10 = 0;
v306 = 0;
v307 = 0;
Block[0] = sub_14003D460(0x20u);
v306 = 18;
v307 = 31;
strcpy((char *)Block[0], "Setup Pulse Effect");
SetupTriggerPopup::addTitle(a1, Block);
v12 = v11;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v271, -65.0, 0.0);
v14 = v13;
v15 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v12 + 200LL))(v12);
cocos2d::CCPoint::operator+(v15, &v270, v14);
(*(void (__fastcall **)(__int64, int *))(*(_QWORD *)v12 + 184LL))(v12, &v270);
*(_OWORD *)Block = 0;
v306 = 2;
v307 = 15;
strcpy((char *)Block, "OK");
SetupTriggerPopup::addCloseButton(a1, Block);
v271 = Block;
*(_OWORD *)Block = 0;
v306 = 0;
v307 = 0;
v16 = sub_14003D460(0x1A0u);
Block[0] = v16;
v306 = 408;
v307 = 415;
v17 = v16;
v18 = "Applies a temporary color effect to a group or channel. Set which using Target Type.\n"
"If set to group, you can toggle between main and detail colors.\n"
"Color Mode tints the target to the selected color.\n"
"HSV Mode modifies the base color's hue, saturation, and brightness values.\n"
"Exclusive disables all other pulses using the same ID when activated (not visible in editor).";
v19 = 3;
do
{
*v17 = *(_OWORD *)v18;
v17[1] = *((_OWORD *)v18 + 1);
v17[2] = *((_OWORD *)v18 + 2);
v17[3] = *((_OWORD *)v18 + 3);
v17[4] = *((_OWORD *)v18 + 4);
v17[5] = *((_OWORD *)v18 + 5);
v17[6] = *((_OWORD *)v18 + 6);
v17 += 8;
*(v17 - 1) = *((_OWORD *)v18 + 7);
v18 += 128;
--v19;
}
while ( v19 );
*v17 = *(_OWORD *)v18;
*((_QWORD *)v17 + 2) = *((_QWORD *)v18 + 2);
v16[408] = 0;
v283 = 0;
v284 = 4;
v285 = 15;
strcpy((char *)&v283, "Help");
SetupTriggerPopup::addHelpButton(a1, &v283, Block);
v21 = cocos2d::CCDirector::sharedDirector(v20);
cocos2d::CCDirector::getWinSize(v21, &v276);
v272 = 15468;
qmemcpy(v279, "l<$", 3);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v287, -10.0, 12.0);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v278, (float)(v276 * 0.5) - 29.0, (float)(v277 * 0.5) - 44.0);
v22 = cocos2d::CCLabelBMFont::create("Fade In: ", "goldFont.fnt");
(*(void (__fastcall **)(struct cocos2d::CCLabelBMFont *))(*(_QWORD *)v22 + 160LL))(v22);
cocos2d::CCPoint::operator+(v278, &v270, v287);
(*(void (__fastcall **)(struct cocos2d::CCLabelBMFont *, int *))(*(_QWORD *)v22 + 184LL))(v22, &v270);
v23 = *(_QWORD *)v22;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v271, 1.0, 0.5);
(*(void (__fastcall **)(struct cocos2d::CCLabelBMFont *, __int64))(v23 + 288))(v22, v24);
(*(void (__fastcall **)(_QWORD, struct cocos2d::CCLabelBMFont *, __int64))(**(_QWORD **)(a1 + 584) + 456LL))(
*(_QWORD *)(a1 + 584),
v22,
10);
cocos2d::CCRect::CCRect((cocos2d::CCRect *)v300, 0.0, 0.0, 40.0, 40.0);
cocos2d::CCRect::CCRect((cocos2d::CCRect *)&v283, (const struct cocos2d::CCRect *)v300);
v26 = (void (__fastcall ***)(_QWORD, _QWORD))cocos2d::extension::CCScale9Sprite::create("square02b_small.png", v25);
(*v26[40])(v26 + 40, v279);
cocos2d::CCSize::CCSize((cocos2d::CCSize *)v288, 60.0, 20.0);
((void (__fastcall **)(_QWORD, _BYTE *))*v26)[39](v26, v288);
(*(void (__fastcall **)(_QWORD, void (__fastcall ***)(_QWORD, _QWORD), __int64))(**(_QWORD **)(a1 + 584) + 456LL))(
*(_QWORD *)(a1 + 584),
v26,
0xFFFFFFFFLL);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v271, 40.0, 0.0);
cocos2d::CCPoint::operator+(v278, &v270, v27);
((void (__fastcall **)(_QWORD, int *))*v26)[23](v26, &v270);
v30 = "Num";
if ( *(float *)(a1 + 1264) == -0.1 )
v30 = "Mixed";
v31 = CCTextInputNode::create(v29, v28, (__int64)v30);
*(_QWORD *)(a1 + 1160) = v31;
(*(void (__fastcall **)(_QWORD, char *, __int64))(**(_QWORD **)(a1 + 584) + 456LL))(*(_QWORD *)(a1 + 584), v31, 20);
v32 = **(_QWORD **)(a1 + 1160);
v33 = *(_QWORD *)(a1 + 1160);
v34 = ((__int64 (__fastcall *)(void (__fastcall ***)(_QWORD, _QWORD)))(*v26)[25])(v26);
(*(void (__fastcall **)(__int64, __int64))(v32 + 184))(v33, v34);
v35 = *(_QWORD *)(a1 + 1160);
*(_DWORD *)(v35 + 564) = 1058642330;
CCTextInputNode::refreshLabel(v35);
v36 = *(_QWORD *)(a1 + 1160);
*(_DWORD *)(v36 + 560) = 1112014848;
CCTextInputNode::refreshLabel(v36);
(*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(*(_QWORD *)(a1 + 1160) + 592LL) + 336LL))(
*(_QWORD *)(*(_QWORD *)(a1 + 1160) + 592LL),
0);
*(_DWORD *)(*(_QWORD *)(a1 + 1160) + 608LL) = 4;
v306 = 11;
v307 = 15;
Block[0] = (void *)0x3736353433323130LL;
Block[1] = (void *)3029304;
CCTextInputNode::setAllowedChars(*(_QWORD *)(a1 + 1160), Block);
v272 = -21896;
v37 = *(_QWORD *)(a1 + 1160);
*(_WORD *)(v37 + 572) = -21896;
*(_BYTE *)(v37 + 574) = -16;
CCTextInputNode::refreshLabel(v37);
v38 = *(_QWORD *)(a1 + 1160);
*(_DWORD *)(v38 + 568) = 1056964608;
CCTextInputNode::refreshLabel(v38);
v39 = a1 + 544;
*(_QWORD *)(*(_QWORD *)(a1 + 1160) + 600LL) = a1 + 544;
(*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 1160) + 64LL))(*(_QWORD *)(a1 + 1160), 8);
*(_BYTE *)(*(_QWORD *)(a1 + 1160) + 424LL) = 1;
v41 = Slider::create(
a1,
(__int64)SetupPulsePopup::sliderChanged,
v40,
"slidergroove.png",
(__int64)"sliderthumb.png",
(__int64)"sliderthumbsel.png",
0.80000001);
*(_QWORD *)(a1 + 1048) = v41;
(*(void (__fastcall **)(_QWORD, cocos2d::CCLayer *))(**(_QWORD **)(a1 + 584) + 464LL))(*(_QWORD *)(a1 + 584), v41);
LOBYTE(v42) = 1;
(*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(*(_QWORD *)(a1 + 1048) + 416LL) + 336LL))(
*(_QWORD *)(*(_QWORD *)(a1 + 1048) + 416LL),
v42);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v271, -96.0, -1.5);
cocos2d::CCPoint::operator+(v278, &v270, v43);
(*(void (__fastcall **)(_QWORD, int *))(**(_QWORD **)(a1 + 1048) + 184LL))(*(_QWORD *)(a1 + 1048), &v270);
v44 = *(_QWORD *)(*(_QWORD *)(*(_QWORD *)(a1 + 1048) + 408LL) + 456LL);
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v44 + 64LL))(v44, 1);
v45 = *(float *)(a1 + 1264);
if ( v45 == -0.1 || (v46 = fminf(1.0, v45 / 10.0), v46 < 0.0) )
v46 = 0.0;
v47 = *(_QWORD *)(a1 + 1048);
SliderThumb::setValue(*(float **)(*(_QWORD *)(v47 + 408) + 456LL), v46);
Value = SliderThumb::getValue(*(float **)(*(_QWORD *)(v47 + 408) + 456LL));
v49 = *(float *)(v47 + 432);
if ( (float)(v49 * Value) <= v49 )
v49 = v49 * Value;
v50 = **(_QWORD **)(v47 + 416);
v51 = *(_QWORD *)(v47 + 416);
cocos2d::CCRect::CCRect((cocos2d::CCRect *)&v283, 0.0, 0.0, v49, *(float *)(v47 + 436));
(*(void (__fastcall **)(__int64, __int64))(v50 + 992))(v51, v52);
SetupPulsePopup::updateFadeInLabel(a1, 0);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v271, 0.0, -27.0);
cocos2d::CCPoint::operator+(v278, &v270, v53);
cocos2d::CCPoint::operator=(v278, &v270);
v54 = cocos2d::CCLabelBMFont::create("Hold: ", "goldFont.fnt");
(*(void (__fastcall **)(struct cocos2d::CCLabelBMFont *))(*(_QWORD *)v54 + 160LL))(v54);
cocos2d::CCPoint::operator+(v278, &v270, v287);
(*(void (__fastcall **)(struct cocos2d::CCLabelBMFont *, int *))(*(_QWORD *)v54 + 184LL))(v54, &v270);
v55 = *(_QWORD *)v54;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v271, 1.0, 0.5);
(*(void (__fastcall **)(struct cocos2d::CCLabelBMFont *, __int64))(v55 + 288))(v54, v56);
(*(void (__fastcall **)(_QWORD, struct cocos2d::CCLabelBMFont *, __int64))(**(_QWORD **)(a1 + 584) + 456LL))(
*(_QWORD *)(a1 + 584),
v54,
10);
cocos2d::CCRect::CCRect((cocos2d::CCRect *)&v283, (const struct cocos2d::CCRect *)v300);
v58 = (void (__fastcall ***)(_QWORD, _QWORD))cocos2d::extension::CCScale9Sprite::create("square02b_small.png", v57);
(*v58[40])(v58 + 40, v279);
((void (__fastcall **)(_QWORD, _BYTE *))*v58)[39](v58, v288);
(*(void (__fastcall **)(_QWORD, void (__fastcall ***)(_QWORD, _QWORD), __int64))(**(_QWORD **)(a1 + 584) + 456LL))(
*(_QWORD *)(a1 + 584),
v58,
0xFFFFFFFFLL);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v271, 40.0, 0.0);
cocos2d::CCPoint::operator+(v278, &v270, v59);
((void (__fastcall **)(_QWORD, int *))*v58)[23](v58, &v270);
if ( *(float *)(a1 + 1268) == -0.1 )
v30 = "Mixed";
v61 = CCTextInputNode::create((__int64)&qword_140704F78, v60, (__int64)v30);
*(_QWORD *)(a1 + 1168) = v61;
(*(void (__fastcall **)(_QWORD, char *, __int64))(**(_QWORD **)(a1 + 584) + 456LL))(*(_QWORD *)(a1 + 584), v61, 20);
v62 = **(_QWORD **)(a1 + 1168);
v63 = *(_QWORD *)(a1 + 1168);
v64 = ((__int64 (__fastcall *)(void (__fastcall ***)(_QWORD, _QWORD)))(*v58)[25])(v58);
(*(void (__fastcall **)(__int64, __int64))(v62 + 184))(v63, v64);
v65 = *(_QWORD *)(a1 + 1168);
*(_DWORD *)(v65 + 564) = 1058642330;
CCTextInputNode::refreshLabel(v65);
v66 = *(_QWORD *)(a1 + 1168);
*(_DWORD *)(v66 + 560) = 1112014848;
CCTextInputNode::refreshLabel(v66);
(*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(*(_QWORD *)(a1 + 1168) + 592LL) + 336LL))(
*(_QWORD *)(*(_QWORD *)(a1 + 1168) + 592LL),
0);
*(_DWORD *)(*(_QWORD *)(a1 + 1168) + 608LL) = 4;
v306 = 11;
v307 = 15;
Block[0] = (void *)0x3736353433323130LL;
Block[1] = (void *)3029304;
CCTextInputNode::setAllowedChars(*(_QWORD *)(a1 + 1168), Block);
v272 = -21896;
v67 = *(_QWORD *)(a1 + 1168);
*(_WORD *)(v67 + 572) = -21896;
*(_BYTE *)(v67 + 574) = -16;
CCTextInputNode::refreshLabel(v67);
v68 = *(_QWORD *)(a1 + 1168);
*(_DWORD *)(v68 + 568) = 1056964608;
CCTextInputNode::refreshLabel(v68);
*(_QWORD *)(*(_QWORD *)(a1 + 1168) + 600LL) = v39;
(*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 1168) + 64LL))(*(_QWORD *)(a1 + 1168), 9);
*(_BYTE *)(*(_QWORD *)(a1 + 1168) + 424LL) = 1;
v70 = Slider::create(
a1,
(__int64)SetupPulsePopup::sliderChanged,
v69,
"slidergroove.png",
(__int64)"sliderthumb.png",
(__int64)"sliderthumbsel.png",
0.80000001);
*(_QWORD *)(a1 + 1056) = v70;
(*(void (__fastcall **)(_QWORD, cocos2d::CCLayer *))(**(_QWORD **)(a1 + 584) + 464LL))(*(_QWORD *)(a1 + 584), v70);
LOBYTE(v71) = 1;
(*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(*(_QWORD *)(a1 + 1056) + 416LL) + 336LL))(
*(_QWORD *)(*(_QWORD *)(a1 + 1056) + 416LL),
v71);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v271, -96.0, -1.5);
cocos2d::CCPoint::operator+(v278, &v270, v72);
(*(void (__fastcall **)(_QWORD, int *))(**(_QWORD **)(a1 + 1056) + 184LL))(*(_QWORD *)(a1 + 1056), &v270);
v73 = *(_QWORD *)(*(_QWORD *)(*(_QWORD *)(a1 + 1056) + 408LL) + 456LL);
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v73 + 64LL))(v73, 2);
v74 = *(float *)(a1 + 1268);
if ( v74 == -0.1 || (v75 = fminf(1.0, v74 / 10.0), v75 < 0.0) )
v75 = 0.0;
v76 = *(_QWORD *)(a1 + 1056);
SliderThumb::setValue(*(float **)(*(_QWORD *)(v76 + 408) + 456LL), v75);
v77 = SliderThumb::getValue(*(float **)(*(_QWORD *)(v76 + 408) + 456LL));
v78 = *(float *)(v76 + 432);
if ( (float)(v78 * v77) <= v78 )
v78 = v78 * v77;
v79 = **(_QWORD **)(v76 + 416);
v80 = *(_QWORD *)(v76 + 416);
cocos2d::CCRect::CCRect((cocos2d::CCRect *)&v283, 0.0, 0.0, v78, *(float *)(v76 + 436));
(*(void (__fastcall **)(__int64, __int64))(v79 + 992))(v80, v81);
SetupPulsePopup::updateHoldLabel(a1, 0);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v271, 0.0, -27.0);
cocos2d::CCPoint::operator+(v278, &v270, v82);
cocos2d::CCPoint::operator=(v278, &v270);
v83 = cocos2d::CCLabelBMFont::create("Fade Out: ", "goldFont.fnt");
(*(void (__fastcall **)(struct cocos2d::CCLabelBMFont *))(*(_QWORD *)v83 + 160LL))(v83);
cocos2d::CCPoint::operator+(v278, &v270, v287);
(*(void (__fastcall **)(struct cocos2d::CCLabelBMFont *, int *))(*(_QWORD *)v83 + 184LL))(v83, &v270);
v84 = *(_QWORD *)v83;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v271, 1.0, 0.5);
(*(void (__fastcall **)(struct cocos2d::CCLabelBMFont *, __int64))(v84 + 288))(v83, v85);
(*(void (__fastcall **)(_QWORD, struct cocos2d::CCLabelBMFont *, __int64))(**(_QWORD **)(a1 + 584) + 456LL))(
*(_QWORD *)(a1 + 584),
v83,
10);
cocos2d::CCRect::CCRect((cocos2d::CCRect *)&v283, (const struct cocos2d::CCRect *)v300);
v87 = (void (__fastcall ***)(_QWORD, _QWORD))cocos2d::extension::CCScale9Sprite::create("square02b_small.png", v86);
(*v87[40])(v87 + 40, v279);
((void (__fastcall **)(_QWORD, _BYTE *))*v87)[39](v87, v288);
(*(void (__fastcall **)(_QWORD, void (__fastcall ***)(_QWORD, _QWORD), __int64))(**(_QWORD **)(a1 + 584) + 456LL))(
*(_QWORD *)(a1 + 584),
v87,
0xFFFFFFFFLL);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v271, 40.0, 0.0);
cocos2d::CCPoint::operator+(v278, &v270, v88);
((void (__fastcall **)(_QWORD, int *))*v87)[23](v87, &v270);
if ( *(float *)(a1 + 1272) == -0.1 )
v30 = "Mixed";
v91 = CCTextInputNode::create(v90, v89, (__int64)v30);
*(_QWORD *)(a1 + 1176) = v91;
(*(void (__fastcall **)(_QWORD, char *, __int64))(**(_QWORD **)(a1 + 584) + 456LL))(*(_QWORD *)(a1 + 584), v91, 20);
v92 = **(_QWORD **)(a1 + 1176);
v93 = *(_QWORD *)(a1 + 1176);
v94 = ((__int64 (__fastcall *)(void (__fastcall ***)(_QWORD, _QWORD)))(*v87)[25])(v87);
(*(void (__fastcall **)(__int64, __int64))(v92 + 184))(v93, v94);
v95 = *(_QWORD *)(a1 + 1176);
*(_DWORD *)(v95 + 564) = 1058642330;
CCTextInputNode::refreshLabel(v95);
v96 = *(_QWORD *)(a1 + 1176);
*(_DWORD *)(v96 + 560) = 1112014848;
CCTextInputNode::refreshLabel(v96);
(*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(*(_QWORD *)(a1 + 1176) + 592LL) + 336LL))(
*(_QWORD *)(*(_QWORD *)(a1 + 1176) + 592LL),
0);
*(_DWORD *)(*(_QWORD *)(a1 + 1176) + 608LL) = 4;
v306 = 11;
v307 = 15;
Block[0] = (void *)0x3736353433323130LL;
Block[1] = (void *)3029304;
CCTextInputNode::setAllowedChars(*(_QWORD *)(a1 + 1176), Block);
v272 = -21896;
v97 = *(_QWORD *)(a1 + 1176);
*(_WORD *)(v97 + 572) = -21896;
*(_BYTE *)(v97 + 574) = -16;
CCTextInputNode::refreshLabel(v97);
v98 = *(_QWORD *)(a1 + 1176);
*(_DWORD *)(v98 + 568) = 1056964608;
CCTextInputNode::refreshLabel(v98);
*(_QWORD *)(*(_QWORD *)(a1 + 1176) + 600LL) = v39;
(*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 1176) + 64LL))(*(_QWORD *)(a1 + 1176), 10);
*(_BYTE *)(*(_QWORD *)(a1 + 1176) + 424LL) = 1;
v100 = Slider::create(
a1,
(__int64)SetupPulsePopup::sliderChanged,
v99,
"slidergroove.png",
(__int64)"sliderthumb.png",
(__int64)"sliderthumbsel.png",
0.80000001);
*(_QWORD *)(a1 + 1064) = v100;
(*(void (__fastcall **)(_QWORD, cocos2d::CCLayer *))(**(_QWORD **)(a1 + 584) + 464LL))(*(_QWORD *)(a1 + 584), v100);
LOBYTE(v101) = 1;
(*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(*(_QWORD *)(a1 + 1064) + 416LL) + 336LL))(
*(_QWORD *)(*(_QWORD *)(a1 + 1064) + 416LL),
v101);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v271, -96.0, -1.5);
cocos2d::CCPoint::operator+(v278, &v270, v102);
(*(void (__fastcall **)(_QWORD, int *))(**(_QWORD **)(a1 + 1064) + 184LL))(*(_QWORD *)(a1 + 1064), &v270);
v103 = *(_QWORD *)(*(_QWORD *)(*(_QWORD *)(a1 + 1064) + 408LL) + 456LL);
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v103 + 64LL))(v103, 3);
v104 = *(float *)(a1 + 1272);
if ( v104 == -0.1 || (v105 = fminf(1.0, v104 / 10.0), v105 < 0.0) )
v105 = 0.0;
v106 = *(_QWORD *)(a1 + 1064);
SliderThumb::setValue(*(float **)(*(_QWORD *)(v106 + 408) + 456LL), v105);
v107 = SliderThumb::getValue(*(float **)(*(_QWORD *)(v106 + 408) + 456LL));
v108 = *(float *)(v106 + 432);
if ( (float)(v108 * v107) <= v108 )
v108 = v108 * v107;
v109 = **(_QWORD **)(v106 + 416);
v110 = *(_QWORD *)(v106 + 416);
cocos2d::CCRect::CCRect((cocos2d::CCRect *)&v283, 0.0, 0.0, v108, *(float *)(v106 + 436));
(*(void (__fastcall **)(__int64, __int64))(v109 + 992))(v110, v111);
SetupPulsePopup::updateFadeOutLabel(a1, 0);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v280, (float)(v276 * 0.5) + 145.0, (float)(v277 * 0.5) - 60.0);
cocos2d::CCNode::convertToNodeSpace(*(_QWORD *)(a1 + 552), v290, v280);
v112 = cocos2d::CCLabelBMFont::create("Target Type", "goldFont.fnt");
(*(void (__fastcall **)(_QWORD, struct cocos2d::CCLabelBMFont *))(**(_QWORD **)(a1 + 584) + 464LL))(
*(_QWORD *)(a1 + 584),
v112);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v271, 0.0, 25.0);
cocos2d::CCPoint::operator+(v280, &v270, v113);
(*(void (__fastcall **)(struct cocos2d::CCLabelBMFont *, int *))(*(_QWORD *)v112 + 184LL))(v112, &v270);
(*(void (__fastcall **)(struct cocos2d::CCLabelBMFont *))(*(_QWORD *)v112 + 160LL))(v112);
v271 = (void **)operator new(0x2C8u);
v114 = (cocos2d::CCObject *)ButtonSprite::ButtonSprite((__int64)v271);
if ( v114 )
{
if ( ButtonSprite::init_1(
(__int64)v114,
(__int64)"Channel",
45,
0,
1055286886,
1,
&qword_140704F78,
(__int64)"GJ_button_04.png",
1103626240) )
{
cocos2d::CCObject::autorelease(v114);
}
else
{
(*(void (__fastcall **)(cocos2d::CCObject *, __int64))(*(_QWORD *)v114 + 8LL))(v114, 1);
LODWORD(v114) = 0;
}
}
v115 = CCMenuItemSpriteExtra::create((int)v114, 0, a1, (__int64)SetupPulsePopup::onSelectTargetMode);
*(_QWORD *)(a1 + 1072) = v115;
(*(void (__fastcall **)(_QWORD, cocos2d::CCObject *))(**(_QWORD **)(a1 + 552) + 464LL))(*(_QWORD *)(a1 + 552), v115);
(*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(a1 + 1072) + 64LL))(*(_QWORD *)(a1 + 1072), 0);
v271 = (void **)operator new(0x2C8u);
v116 = (cocos2d::CCObject *)ButtonSprite::ButtonSprite((__int64)v271);
if ( v116 )
{
if ( ButtonSprite::init_1(
(__int64)v116,
(__int64)"Group",
45,
0,
1055286886,
1,
&qword_140704F78,
(__int64)"GJ_button_04.png",
1103626240) )
{
cocos2d::CCObject::autorelease(v116);
}
else
{
(*(void (__fastcall **)(cocos2d::CCObject *, __int64))(*(_QWORD *)v116 + 8LL))(v116, 1);
LODWORD(v116) = 0;
}
}
v117 = CCMenuItemSpriteExtra::create((int)v116, 0, a1, (__int64)SetupPulsePopup::onSelectTargetMode);
*(_QWORD *)(a1 + 1080) = v117;
(*(void (__fastcall **)(_QWORD, cocos2d::CCObject *))(**(_QWORD **)(a1 + 552) + 464LL))(*(_QWORD *)(a1 + 552), v117);
(*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 1080) + 64LL))(*(_QWORD *)(a1 + 1080), 1);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v271, -35.0, 0.0);
cocos2d::CCPoint::operator+(v290, &v270, v118);
(*(void (__fastcall **)(_QWORD, int *))(**(_QWORD **)(a1 + 1072) + 184LL))(*(_QWORD *)(a1 + 1072), &v270);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v271, 35.0, 0.0);
cocos2d::CCPoint::operator+(v290, &v270, v119);
(*(void (__fastcall **)(_QWORD, int *))(**(_QWORD **)(a1 + 1080) + 184LL))(*(_QWORD *)(a1 + 1080), &v270);
v120 = cocos2d::CCLabelBMFont::create("Channel ID", "goldFont.fnt");
*(_QWORD *)(a1 + 1088) = v120;
(*(void (__fastcall **)(_QWORD, struct cocos2d::CCLabelBMFont *))(**(_QWORD **)(a1 + 584) + 464LL))(
*(_QWORD *)(a1 + 584),
v120);
(*(void (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 1088) + 160LL))(*(_QWORD *)(a1 + 1088));
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v271, 0.0, -35.0);
cocos2d::CCPoint::operator+(v280, &v270, v121);
(*(void (__fastcall **)(_QWORD, int *))(**(_QWORD **)(a1 + 1088) + 184LL))(*(_QWORD *)(a1 + 1088), &v270);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v271, 0.0, -65.0);
cocos2d::CCPoint::operator+(v280, v291, v122);
cocos2d::CCSize::CCSize((cocos2d::CCSize *)v294, 50.0, 30.0);
cocos2d::CCRect::CCRect((cocos2d::CCRect *)v301, 0.0, 0.0, 40.0, 40.0);
v123 = *(_DWORD *)(a1 + 1280) == 1;
*(_OWORD *)Block = 0;
v306 = 0;
v307 = 15;
LOBYTE(Block[0]) = 0;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v271, (const struct cocos2d::CCPoint *)v291);
v125 = IDNameInput::create(a1, a1 + 544, v123, 51, (__int64)Block, v124, 1061997773, 6, 0, 0, 0);
if ( v307 > 0xF )
{
v126 = Block[0];
if ( v307 + 1 >= 0x1000 )
{
v126 = *((void **)Block[0] - 1);
if ( (unsigned __int64)((char *)Block[0] - (char *)v126 - 8) > 0x1F )
invoke_watson(nullptr, nullptr, nullptr, 0, 0);
}
j_j_free(v126);
}
v306 = 0;
v307 = 15;
LOBYTE(Block[0]) = 0;
(*(void (__fastcall **)(_QWORD))(**((_QWORD **)v125 + 53) + 240LL))(*((_QWORD *)v125 + 53));
(*(void (__fastcall **)(_QWORD))(**((_QWORD **)v125 + 54) + 240LL))(*((_QWORD *)v125 + 54));
*(_QWORD *)(a1 + 1184) = *((_QWORD *)v125 + 48);
cocos2d::CCNode::convertToNodeSpace(*(_QWORD *)(a1 + 552), v297, v291);
v127 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_plus2Btn_001.png");
v128 = (int)v127;
(*(void (__fastcall **)(struct cocos2d::CCSprite *))(*(_QWORD *)v127 + 160LL))(v127);
v129 = CCMenuItemSpriteExtra::create(v128, 0, a1, (__int64)SetupPulsePopup::onSelectSpecialTargetID);
*(_QWORD *)(a1 + 1152) = v129;
(*(void (__fastcall **)(_QWORD, cocos2d::CCObject *))(**(_QWORD **)(a1 + 552) + 464LL))(*(_QWORD *)(a1 + 552), v129);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v271, 50.0, 30.0);
cocos2d::CCPoint::operator+(v297, &v270, v130);
(*(void (__fastcall **)(_QWORD, int *))(**(_QWORD **)(a1 + 1152) + 184LL))(*(_QWORD *)(a1 + 1152), &v270);
(*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(a1 + 1152) + 336LL))(*(_QWORD *)(a1 + 1152), 0);
v131 = cocos2d::CCLabelBMFont::create("Pulse Mode", "goldFont.fnt");
(*(void (__fastcall **)(_QWORD, struct cocos2d::CCLabelBMFont *))(**(_QWORD **)(a1 + 584) + 464LL))(
*(_QWORD *)(a1 + 584),
v131);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v271, 0.0, 75.0);
cocos2d::CCPoint::operator+(v280, &v270, v132);
(*(void (__fastcall **)(struct cocos2d::CCLabelBMFont *, int *))(*(_QWORD *)v131 + 184LL))(v131, &v270);
(*(void (__fastcall **)(struct cocos2d::CCLabelBMFont *))(*(_QWORD *)v131 + 160LL))(v131);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v271, 0.0, -25.0);
v134 = v133;
v135 = (*(__int64 (__fastcall **)(struct cocos2d::CCLabelBMFont *))(*(_QWORD *)v131 + 200LL))(v131);
cocos2d::CCPoint::operator+(v135, &v270, v134);
cocos2d::CCNode::convertToNodeSpace(*(_QWORD *)(a1 + 552), v292, &v270);
v271 = (void **)operator new(0x2C8u);
v136 = ButtonSprite::ButtonSprite((__int64)v271);
v137 = (cocos2d::CCObject *)v136;
if ( v136 )
{
if ( ButtonSprite::init_1(
v136,
(__int64)"Color",
45,
0,
1055286886,
1,
&qword_140704F78,
(__int64)"GJ_button_04.png",
1103626240) )
{
cocos2d::CCObject::autorelease(v137);
}
else
{
(*(void (__fastcall **)(cocos2d::CCObject *, __int64))(*(_QWORD *)v137 + 8LL))(v137, 1);
LODWORD(v137) = 0;
}
}
v138 = CCMenuItemSpriteExtra::create((int)v137, 0, a1, (__int64)SetupPulsePopup::onSelectPulseMode);
*(_QWORD *)(a1 + 1128) = v138;
(*(void (__fastcall **)(_QWORD, cocos2d::CCObject *))(**(_QWORD **)(a1 + 552) + 464LL))(*(_QWORD *)(a1 + 552), v138);
(*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(a1 + 1128) + 64LL))(*(_QWORD *)(a1 + 1128), 0);
v271 = (void **)operator new(0x2C8u);
v139 = ButtonSprite::ButtonSprite((__int64)v271);
v140 = (cocos2d::CCObject *)v139;
if ( v139 )
{
if ( ButtonSprite::init_1(
v139,
(__int64)&dword_1407E9D44,
45,
0,
1055286886,
1,
&qword_140704F78,
(__int64)"GJ_button_04.png",
1103626240) )
{
cocos2d::CCObject::autorelease(v140);
}
else
{
(*(void (__fastcall **)(cocos2d::CCObject *, __int64))(*(_QWORD *)v140 + 8LL))(v140, 1);
LODWORD(v140) = 0;
}
}
v141 = CCMenuItemSpriteExtra::create((int)v140, 0, a1, (__int64)SetupPulsePopup::onSelectPulseMode);
*(_QWORD *)(a1 + 1136) = v141;
(*(void (__fastcall **)(_QWORD, cocos2d::CCObject *))(**(_QWORD **)(a1 + 552) + 464LL))(*(_QWORD *)(a1 + 552), v141);
(*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 1136) + 64LL))(*(_QWORD *)(a1 + 1136), 1);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v271, -35.0, 0.0);
cocos2d::CCPoint::operator+(v292, &v270, v142);
(*(void (__fastcall **)(_QWORD, int *))(**(_QWORD **)(a1 + 1128) + 184LL))(*(_QWORD *)(a1 + 1128), &v270);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v271, 35.0, 0.0);
cocos2d::CCPoint::operator+(v292, &v270, v143);
(*(void (__fastcall **)(_QWORD, int *))(**(_QWORD **)(a1 + 1136) + 184LL))(*(_QWORD *)(a1 + 1136), &v270);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v293, (float)(v276 * 0.5) - 200.0, (float)(v277 * 0.5) - 130.0);
v271 = Block;
v306 = 15;
v307 = 15;
strcpy((char *)Block, "Touch\nTriggered");
v144 = *(_QWORD *)(a1 + 584);
v145 = *(_QWORD *)(a1 + 552);
v146 = *(_BYTE *)(a1 + 696);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v270, 8.0, 0.0);
v148 = v147;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v282, (const struct cocos2d::CCPoint *)v293);
*(_QWORD *)(a1 + 704) = GameToolbox::createToggleButton(
(const char *)Block,
(__int64)SetupTriggerPopup::onTouchTriggered,
v146,
v145,
v149,
a1,
v144,
0.69999999,
0.30000001,
0.0,
v148,
(const char *)&qword_140704F78,
0,
0,
nullptr);
v271 = Block;
v306 = 15;
v307 = 15;
strcpy((char *)Block, "Spawn\nTriggered");
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v282, 90.0, 0.0);
cocos2d::CCPoint::operator+(v293, &v270, v150);
v151 = *(_QWORD *)(a1 + 584);
v152 = *(_QWORD *)(a1 + 552);
LOBYTE(v145) = *(_BYTE *)(a1 + 697);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v281, 8.0, 0.0);
*(_QWORD *)(a1 + 712) = GameToolbox::createToggleButton(
(const char *)Block,
(__int64)SetupTriggerPopup::onSpawnedByTrigger,
v145,
v152,
(__int64)&v270,
a1,
v151,
0.69999999,
0.30000001,
0.0,
v153,
(const char *)&qword_140704F78,
0,
0,
nullptr);
*(_QWORD *)&v281 = Block;
v306 = 13;
v307 = 15;
strcpy((char *)Block, "Multi\nTrigger");
HIWORD(Block[1]) = 0;
v154 = *(cocos2d::CCArray **)(a1 + 720);
v155 = *(_QWORD *)(a1 + 584);
v156 = (float)(v277 * 0.5) - 82.0;
v157 = (float)(v276 * 0.5) + 60.0;
v158 = *(_QWORD *)(a1 + 552);
v159 = *(_BYTE *)(a1 + 728);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v271, 2.0, -39.0);
v161 = v160;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v270, v157, v156);
GameToolbox::createToggleButton(
(const char *)Block,
(__int64)SetupTriggerPopup::onMultiTrigger,
v159,
v158,
v162,
a1,
v155,
0.60000002,
0.25,
0.0,
v161,
(const char *)&qword_140704F78,
1,
0,
v154);
SetupTriggerPopup::updateMultiTriggerBtn(a1);
*(_QWORD *)&v281 = Block;
v306 = 9;
v307 = 15;
Block[0] = *(void **)"Exclusive";
Block[1] = (void *)(unsigned __int8)aExclusive[8];
BYTE1(Block[1]) = 0;
v163 = *(_QWORD *)(a1 + 584);
v164 = (float)(v277 * 0.5) - 130.0;
v165 = (float)(v276 * 0.5) + 60.0;
v166 = *(_QWORD *)(a1 + 552);
LOBYTE(v158) = *(_BYTE *)(a1 + 1285);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v271, 0.0, -32.0);
v168 = v167;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v270, v165, v164);
GameToolbox::createToggleButton(
(const char *)Block,
(__int64)SetupPulsePopup::onExclusive,
v158,
v166,
v169,
a1,
v163,
0.69999999,
0.30000001,
0.0,
v168,
(const char *)&qword_140704F78,
1,
0,
nullptr);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v289, (float)(v276 * 0.5) + 95.0, (float)(v277 * 0.5) + 130.0);
*(_QWORD *)&v281 = Block;
Block[1] = (void *)121;
v306 = 9;
v307 = 15;
Block[0] = (void *)0x6C6E4F0A6E69614DLL;
v170 = *(_QWORD *)(a1 + 584);
v171 = *(_QWORD *)(a1 + 552);
LOBYTE(v163) = *(_BYTE *)(a1 + 1248);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v271, 8.0, 0.0);
v173 = v172;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v270, (const struct cocos2d::CCPoint *)v289);
*(_QWORD *)(a1 + 1200) = GameToolbox::createToggleButton(
(const char *)Block,
(__int64)SetupPulsePopup::onGroupMainOnly,
v163,
v171,
v174,
a1,
v170,
0.69999999,
0.30000001,
0.0,
v173,
(const char *)&qword_140704F78,
0,
1100,
nullptr);
*(_QWORD *)(a1 + 1224) = (*(__int64 (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 584) + 472LL))(
*(_QWORD *)(a1 + 584),
1100);
*(_QWORD *)&v281 = Block;
v306 = 11;
v307 = 15;
Block[0] = (void *)0x4F0A6C6961746544LL;
Block[1] = (void *)7957614;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v271, 0.0, -30.0);
cocos2d::CCPoint::operator+(v289, &v270, v175);
v176 = *(_QWORD *)(a1 + 584);
v177 = *(_QWORD *)(a1 + 552);
LOBYTE(v171) = *(_BYTE *)(a1 + 1249);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v282, 8.0, 0.0);
*(_QWORD *)(a1 + 1208) = GameToolbox::createToggleButton(
(const char *)Block,
(__int64)SetupPulsePopup::onGroupSecondaryOnly,
v171,
v177,
(__int64)&v270,
a1,
v176,
0.69999999,
0.30000001,
0.0,
v178,
(const char *)&qword_140704F78,
0,
1200,
nullptr);
*(_QWORD *)(a1 + 1232) = (*(__int64 (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 584) + 472LL))(
*(_QWORD *)(a1 + 584),
1200);
*(_QWORD *)&v281 = Block;
LOBYTE(v176) = *(_BYTE *)(a1 + 1250);
Block[1] = (void *)22099;
v306 = 10;
v307 = 15;
Block[0] = (void *)0x480A636974617453LL;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v271, 68.0, 0.0);
cocos2d::CCPoint::operator+(v289, &v270, v179);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v282, 8.0, 0.0);
*(_QWORD *)(a1 + 1216) = GameToolbox::createToggleButton(
(const char *)Block,
(__int64)SetupPulsePopup::onHSVLegacyMode,
(_BYTE)v176 == 0,
*(_QWORD *)(a1 + 552),
(__int64)&v270,
a1,
*(_QWORD *)(a1 + 584),
0.69999999,
0.30000001,
0.0,
v180,
(const char *)&qword_140704F78,
0,
1300,
nullptr);
*(_QWORD *)(a1 + 1240) = (*(__int64 (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 584) + 472LL))(
*(_QWORD *)(a1 + 584),
1300);
cocos2d::CCArray::addObject(*(cocos2d::CCArray **)(a1 + 1040), *(struct cocos2d::CCObject **)(a1 + 1216));
v181 = *(struct cocos2d::CCObject **)(a1 + 1240);
if ( v181 )
cocos2d::CCArray::addObject(*(cocos2d::CCArray **)(a1 + 1040), v181);
cocos2d::CCRect::CCRect((cocos2d::CCRect *)&v283, 0.0, 0.0, 80.0, 80.0);
v183 = (struct cocos2d::CCObject *)cocos2d::extension::CCScale9Sprite::create("square02_001.png", v182);
v184 = *((_QWORD *)v183 + 40);
v185 = *(void (__fastcall **)(char *, __int64))(v184 + 40);
LOBYTE(v184) = 75;
v185((char *)v183 + 320, v184);
v186 = *(_QWORD *)v183;
cocos2d::CCSize::CCSize((cocos2d::CCSize *)&v281, 260.0, 145.0);
(*(void (__fastcall **)(struct cocos2d::CCObject *, __int64))(v186 + 312))(v183, v187);
(*(void (__fastcall **)(_QWORD, struct cocos2d::CCObject *, __int64))(**(_QWORD **)(a1 + 584) + 456LL))(
*(_QWORD *)(a1 + 584),
v183,
0xFFFFFFFFLL);
v188 = *(_QWORD *)v183;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v281, (float)(v276 * 0.5) - 65.0, (float)(v277 * 0.5) + 52.0);
(*(void (__fastcall **)(struct cocos2d::CCObject *, __int64))(v188 + 184))(v183, v189);
cocos2d::CCArray::addObject(*(cocos2d::CCArray **)(a1 + 1032), v183);
v190 = cocos2d::extension::CCControlColourPicker::create();
*(_QWORD *)(a1 + 1016) = v190;
*(_QWORD *)(v190 + 536) = a1 + 1000;
(*(void (__fastcall **)(_QWORD, _QWORD, __int64))(**(_QWORD **)(a1 + 584) + 456LL))(
*(_QWORD *)(a1 + 584),
*(_QWORD *)(a1 + 1016),
2);
v191 = **(_QWORD **)(a1 + 1016);
v192 = *(_QWORD *)(a1 + 1016);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v281, (float)(v276 * 0.5) - 25.0, (float)(v277 * 0.5) + 35.0);
(*(void (__fastcall **)(__int64, __int64))(v191 + 184))(v192, v193);
(*(void (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 1016) + 160LL))(*(_QWORD *)(a1 + 1016));
cocos2d::CCArray::addObject(*(cocos2d::CCArray **)(a1 + 1032), *(struct cocos2d::CCObject **)(a1 + 1016));
*(_QWORD *)&v281 = operator new(0x2C8u);
v194 = ButtonSprite::ButtonSprite(v281);
v195 = (cocos2d::CCObject *)v194;
if ( v194 )
{
if ( ButtonSprite::init_1(
v194,
(__int64)"Copy",
40,
0,
1058642330,
1,
"goldFont.fnt",
(__int64)"GJ_button_04.png",
1106247680) )
{
cocos2d::CCObject::autorelease(v195);
}
else
{
(*(void (__fastcall **)(cocos2d::CCObject *, __int64))(*(_QWORD *)v195 + 8LL))(v195, 1);
LODWORD(v195) = 0;
}
}
*(_QWORD *)&v281 = operator new(0x2C8u);
v196 = ButtonSprite::ButtonSprite(v281);
v197 = (cocos2d::CCObject *)v196;
if ( v196 )
{
if ( ButtonSprite::init_1(
v196,
(__int64)"Paste",
40,
0,
1058642330,
1,
"goldFont.fnt",
(__int64)"GJ_button_04.png",
1106247680) )
{
cocos2d::CCObject::autorelease(v197);
}
else
{
(*(void (__fastcall **)(cocos2d::CCObject *, __int64))(*(_QWORD *)v197 + 8LL))(v197, 1);
LODWORD(v197) = 0;
}
}
v198 = CCMenuItemSpriteExtra::create((int)v195, 0, a1, (__int64)ColorSelectPopup::onCopy);
(*(void (__fastcall **)(_QWORD, struct cocos2d::CCObject *))(**(_QWORD **)(a1 + 552) + 464LL))(
*(_QWORD *)(a1 + 552),
v198);
v199 = CCMenuItemSpriteExtra::create((int)v197, 0, a1, (__int64)ColorSelectPopup::onPaste);
(*(void (__fastcall **)(_QWORD, struct cocos2d::CCObject *))(**(_QWORD **)(a1 + 552) + 464LL))(
*(_QWORD *)(a1 + 552),
v199);
v200 = *(_QWORD *)v198;
v201 = *(_QWORD *)(a1 + 552);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v281, (float)(v276 * 0.5) + 190.0, (float)(v277 * 0.5) + 130.0);
cocos2d::CCNode::convertToNodeSpace(v201, &v271, v202);
(*(void (__fastcall **)(struct cocos2d::CCObject *, __int64))(v200 + 184))(v198, v203);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v281, 0.0, -40.0);
v205 = v204;
v206 = (*(__int64 (__fastcall **)(struct cocos2d::CCObject *))(*(_QWORD *)v198 + 200LL))(v198);
cocos2d::CCPoint::operator+(v206, &v270, v205);
(*(void (__fastcall **)(struct cocos2d::CCObject *, int *))(*(_QWORD *)v199 + 184LL))(v199, &v270);
cocos2d::CCArray::addObject(*(cocos2d::CCArray **)(a1 + 1032), v198);
cocos2d::CCArray::addObject(*(cocos2d::CCArray **)(a1 + 1032), v199);
v207 = cocos2d::CCSprite::createWithSpriteFrameName("whiteSquare60_001.png");
*(_QWORD *)(a1 + 1104) = v207;
(*(void (__fastcall **)(struct cocos2d::CCSprite *))(*(_QWORD *)v207 + 160LL))(v207);
(*(void (__fastcall **)(_QWORD, _QWORD, __int64))(**(_QWORD **)(a1 + 584) + 456LL))(
*(_QWORD *)(a1 + 584),
*(_QWORD *)(a1 + 1104),
5);
v208 = **(_QWORD **)(a1 + 1104);
v209 = *(_QWORD *)(a1 + 1104);
cocos2d::CCPoint::CCPoint(
(cocos2d::CCPoint *)&v281,
(float)((float)(v276 * 0.5) - 135.0) - 35.0,
(float)((float)(v277 * 0.5) + 60.0) + 40.0);
(*(void (__fastcall **)(__int64, __int64))(v208 + 184))(v209, v210);
cocos2d::CCArray::addObject(*(cocos2d::CCArray **)(a1 + 1032), *(struct cocos2d::CCObject **)(a1 + 1104));
v211 = *(float *)(*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 1104) + 320LL))(*(_QWORD *)(a1 + 1104));
v212 = cocos2d::CCSprite::createWithSpriteFrameName("whiteSquare60_001.png");
*(_QWORD *)(a1 + 1112) = v212;
(*(void (__fastcall **)(struct cocos2d::CCSprite *))(*(_QWORD *)v212 + 120LL))(v212);
(*(void (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 1112) + 136LL))(*(_QWORD *)(a1 + 1112));
(*(void (__fastcall **)(_QWORD, _QWORD, __int64))(**(_QWORD **)(a1 + 584) + 456LL))(
*(_QWORD *)(a1 + 584),
*(_QWORD *)(a1 + 1112),
5);
cocos2d::CCPoint::CCPoint(
(cocos2d::CCPoint *)&v281,
0.0,
(float)((float)((float)-v211 * 0.80000001) * 0.5) - (float)((float)(v211 * 0.40000001) * 0.5));
v214 = v213;
v215 = (*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 1104) + 200LL))(*(_QWORD *)(a1 + 1104));
cocos2d::CCPoint::operator+(v215, &v270, v214);
(*(void (__fastcall **)(_QWORD, int *))(**(_QWORD **)(a1 + 1112) + 184LL))(*(_QWORD *)(a1 + 1112), &v270);
cocos2d::CCArray::addObject(*(cocos2d::CCArray **)(a1 + 1032), *(struct cocos2d::CCObject **)(a1 + 1112));
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v298, (float)(v276 * 0.5) - 120.0, (float)(v277 * 0.5) + 50.0);
v216 = 0;
v274 = 0;
v272 = -21896;
v217 = a1 + 544;
while ( 1 )
{
while ( 1 )
{
while ( 1 )
{
v218 = 0;
if ( v216 < 3 )
v218 = 15;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v281, (float)v218, (float)(1.5 - (float)v216) * 28.0);
cocos2d::CCPoint::operator+(v298, v282, v219);
if ( v216 )
{
if ( v216 == 1 )
{
v220 = "G:";
}
else
{
v220 = "HEX:";
if ( v216 == 2 )
v220 = "B:";
}
}
else
{
v220 = "R:";
}
v221 = cocos2d::CCLabelBMFont::create(v220, "goldFont.fnt");
(*(void (__fastcall **)(struct cocos2d::CCObject *))(*(_QWORD *)v221 + 160LL))(v221);
(*(void (__fastcall **)(_QWORD, struct cocos2d::CCObject *))(**(_QWORD **)(a1 + 584) + 464LL))(
*(_QWORD *)(a1 + 584),
v221);
v222 = *(_QWORD *)v221;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v299, 1.0, 0.5);
(*(void (__fastcall **)(struct cocos2d::CCObject *, __int64))(v222 + 288))(v221, v223);
v224 = -17;
if ( v216 == 3 )
v224 = -32;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v296, (float)v224, 0.0);
cocos2d::CCPoint::operator+(v282, &v271, v225);
(*(void (__fastcall **)(struct cocos2d::CCObject *, void ***))(*(_QWORD *)v221 + 184LL))(v221, &v271);
cocos2d::CCArray::addObject(*(cocos2d::CCArray **)(a1 + 1032), v221);
cocos2d::CCRect::CCRect((cocos2d::CCRect *)Block, (const struct cocos2d::CCRect *)v301);
v227 = (struct cocos2d::CCObject *)cocos2d::extension::CCScale9Sprite::create("square02b_small.png", v226);
v228 = *((_QWORD *)v227 + 40);
v229 = *(void (__fastcall **)(char *, __int64))(v228 + 40);
LOBYTE(v228) = 100;
v229((char *)v227 + 320, v228);
v272 = v274;
v273 = 0;
(**((void (__fastcall ***)(__int64, __int16 *))v227 + 40))((__int64)v227 + 320, &v272);
cocos2d::CCSize::CCSize((cocos2d::CCSize *)&v270, (const struct cocos2d::CCSize *)v294);
if ( v216 == 3 )
v270 = 1120403456;
(*(void (__fastcall **)(struct cocos2d::CCObject *, int *))(*(_QWORD *)v227 + 312LL))(v227, &v270);
(*(void (__fastcall **)(struct cocos2d::CCObject *))(*(_QWORD *)v227 + 160LL))(v227);
(*(void (__fastcall **)(_QWORD, struct cocos2d::CCObject *, __int64))(**(_QWORD **)(a1 + 584) + 456LL))(
*(_QWORD *)(a1 + 584),
v227,
0xFFFFFFFFLL);
(*(void (__fastcall **)(struct cocos2d::CCObject *, _BYTE *))(*(_QWORD *)v227 + 184LL))(v227, v282);
cocos2d::CCArray::addObject(*(cocos2d::CCArray **)(a1 + 1032), v227);
v231 = CCTextInputNode::create(40, v230, (__int64)"Num");
(*(void (__fastcall **)(_QWORD, char *, __int64))(**(_QWORD **)(a1 + 584) + 456LL))(
*(_QWORD *)(a1 + 584),
v231,
20);
(*(void (__fastcall **)(char *, _BYTE *))(*(_QWORD *)v231 + 184LL))(v231, v282);
*((_DWORD *)v231 + 141) = 1053609165;
CCTextInputNode::refreshLabel((__int64)v231);
*((_DWORD *)v231 + 140) = 1112014848;
CCTextInputNode::refreshLabel((__int64)v231);
(*(void (__fastcall **)(_QWORD, _QWORD))(**((_QWORD **)v231 + 74) + 336LL))(*((_QWORD *)v231 + 74), 0);
v232 = 7;
if ( v216 < 3 )
v232 = 4;
*((_DWORD *)v231 + 152) = v232;
v233 = "0123456789ABCDEFabcdef";
if ( v216 < 3 )
v233 = "0123456789";
v302 = 0;
v303 = 0;
v304 = 0;
v234 = -1;
do
++v234;
while ( v233[v234] );
sub_14003D230(&v302, v233, v234);
CCTextInputNode::setAllowedChars((__int64)v231, (void **)&v302);
*((_WORD *)v231 + 286) = -21896;
v231[574] = -16;
CCTextInputNode::refreshLabel((__int64)v231);
*((_DWORD *)v231 + 142) = 1053609165;
CCTextInputNode::refreshLabel((__int64)v231);
*((_QWORD *)v231 + 75) = v217;
v231[424] = v216 < 3;
cocos2d::CCArray::addObject(*(cocos2d::CCArray **)(a1 + 1032), (struct cocos2d::CCObject *)v231);
if ( v216 )
break;
*(_QWORD *)(a1 + 1304) = v231;
(*(void (__fastcall **)(char *, __int64))(*(_QWORD *)v231 + 64LL))(v231, 11);
v216 = 1;
}
if ( v216 != 1 )
break;
*(_QWORD *)(a1 + 1312) = v231;
(*(void (__fastcall **)(char *, __int64))(*(_QWORD *)v231 + 64LL))(v231, 12);
v216 = 2;
}
if ( v216 != 2 )
break;
*(_QWORD *)(a1 + 1320) = v231;
(*(void (__fastcall **)(char *, __int64))(*(_QWORD *)v231 + 64LL))(v231, 13);
v216 = 3;
}
*(_QWORD *)(a1 + 1328) = v231;
(*(void (__fastcall **)(char *, __int64))(*(_QWORD *)v231 + 64LL))(v231, 14);
v274 = *(_WORD *)(a1 + 1120);
v275 = *(_BYTE *)(a1 + 1122);
(*(void (__fastcall **)(_QWORD, __int16 *))(**(_QWORD **)(a1 + 1016) + 1128LL))(*(_QWORD *)(a1 + 1016), &v274);
v281 = *(_OWORD *)(a1 + 1288);
v236 = ConfigureHSVWidget::create(&v281, v235, 0);
*(_QWORD *)(a1 + 1144) = v236;
(*(void (__fastcall **)(__int64, cocos2d::CCNode *))(*(_QWORD *)a1 + 464LL))(a1, v236);
v237 = **(_QWORD **)(a1 + 1144);
v238 = *(_QWORD *)(a1 + 1144);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v283, (float)(v276 * 0.5) - 75.0, (float)(v277 * 0.5) + 45.0);
(*(void (__fastcall **)(__int64, __int64))(v237 + 184))(v238, v239);
(*(void (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 1144) + 160LL))(*(_QWORD *)(a1 + 1144));
cocos2d::CCArray::addObject(*(cocos2d::CCArray **)(a1 + 1040), *(struct cocos2d::CCObject **)(a1 + 1144));
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v296, (float)(v276 * 0.5) + 142.0, (float)(v277 * 0.5) + 76.0);
cocos2d::CCPoint::operator=(v280, v240);
v241 = cocos2d::CCLabelBMFont::create("Color ID", "goldFont.fnt");
(*(void (__fastcall **)(__int64, struct cocos2d::CCObject *))(*(_QWORD *)a1 + 464LL))(a1, v241);
(*(void (__fastcall **)(struct cocos2d::CCObject *))(*(_QWORD *)v241 + 160LL))(v241);
(*(void (__fastcall **)(struct cocos2d::CCObject *, _BYTE *))(*(_QWORD *)v241 + 184LL))(v241, v280);
cocos2d::CCArray::addObject(*(cocos2d::CCArray **)(a1 + 1040), v241);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v299, 0.0, -30.0);
cocos2d::CCPoint::operator+(v280, v286, v242);
cocos2d::CCRect::CCRect((cocos2d::CCRect *)Block, (const struct cocos2d::CCRect *)v301);
v244 = (struct cocos2d::CCObject *)cocos2d::extension::CCScale9Sprite::create("square02b_small.png", v243);
v245 = *((_QWORD *)v244 + 40);
v246 = *(void (__fastcall **)(char *, __int64))(v245 + 40);
LOBYTE(v245) = 100;
v246((char *)v244 + 320, v245);
v274 = 0;
v275 = 0;
(**((void (__fastcall ***)(__int64, __int16 *))v244 + 40))((__int64)v244 + 320, &v274);
(*(void (__fastcall **)(struct cocos2d::CCObject *, _BYTE *))(*(_QWORD *)v244 + 312LL))(v244, v294);
(*(void (__fastcall **)(_QWORD, struct cocos2d::CCObject *, __int64))(**(_QWORD **)(a1 + 584) + 456LL))(
*(_QWORD *)(a1 + 584),
v244,
0xFFFFFFFFLL);
(*(void (__fastcall **)(struct cocos2d::CCObject *, _BYTE *))(*(_QWORD *)v244 + 184LL))(v244, v286);
cocos2d::CCArray::addObject(*(cocos2d::CCArray **)(a1 + 1040), v244);
v249 = CCTextInputNode::create(v248, v247, (__int64)"Num");
*(_QWORD *)(a1 + 1192) = v249;
(*(void (__fastcall **)(_QWORD, char *, __int64))(**(_QWORD **)(a1 + 584) + 456LL))(*(_QWORD *)(a1 + 584), v249, 20);
(*(void (__fastcall **)(_QWORD, _BYTE *))(**(_QWORD **)(a1 + 1192) + 184LL))(*(_QWORD *)(a1 + 1192), v286);
v250 = *(_QWORD *)(a1 + 1192);
*(_DWORD *)(v250 + 564) = 1058642330;
CCTextInputNode::refreshLabel(v250);
v251 = *(_QWORD *)(a1 + 1192);
*(_DWORD *)(v251 + 560) = 1128792064;
CCTextInputNode::refreshLabel(v251);
(*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(*(_QWORD *)(a1 + 1192) + 592LL) + 336LL))(
*(_QWORD *)(*(_QWORD *)(a1 + 1192) + 592LL),
0);
*(_DWORD *)(*(_QWORD *)(a1 + 1192) + 608LL) = 6;
v306 = 10;
v307 = 15;
Block[0] = *(void **)"0123456789";
Block[1] = (void *)*(unsigned __int16 *)"89";
BYTE2(Block[1]) = 0;
CCTextInputNode::setAllowedChars(*(_QWORD *)(a1 + 1192), Block);
v274 = -21896;
v252 = *(_QWORD *)(a1 + 1192);
*(_WORD *)(v252 + 572) = -21896;
*(_BYTE *)(v252 + 574) = -16;
CCTextInputNode::refreshLabel(v252);
v253 = *(_QWORD *)(a1 + 1192);
*(_DWORD *)(v253 + 568) = 1056964608;
CCTextInputNode::refreshLabel(v253);
*(_QWORD *)(*(_QWORD *)(a1 + 1192) + 600LL) = v217;
(*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 1192) + 64LL))(*(_QWORD *)(a1 + 1192), 5);
*(_BYTE *)(*(_QWORD *)(a1 + 1192) + 424LL) = 1;
cocos2d::CCArray::addObject(*(cocos2d::CCArray **)(a1 + 1040), *(struct cocos2d::CCObject **)(a1 + 1192));
cocos2d::CCNode::convertToNodeSpace(*(_QWORD *)(a1 + 552), v295, v286);
v254 = (__int64 *)cocos2d::CCSprite::createWithSpriteFrameName("edit_leftBtn_001.png");
(*(void (__fastcall **)(__int64 *))(*v254 + 160))(v254);
*(_QWORD *)&v283 = operator new(0x208u);
v255 = (__int64 *)CCMenuItemSpriteExtra::CCMenuItemSpriteExtra(v283);
v256 = v255;
if ( v255 )
{
if ( CCMenuItemSpriteExtra::init(v255, v254, 0, a1, (__int64)SetupPulsePopup::onUpdateCopyColor) )
{
cocos2d::CCObject::autorelease((cocos2d::CCObject *)v256);
goto LABEL_87;
}
(*(void (__fastcall **)(__int64 *, __int64))(*v256 + 8))(v256, 1);
}
v256 = nullptr;
LABEL_87:
(*(void (__fastcall **)(_QWORD, __int64 *))(**(_QWORD **)(a1 + 552) + 464LL))(*(_QWORD *)(a1 + 552), v256);
(*(void (__fastcall **)(__int64 *, __int64))(*v256 + 64))(v256, 1);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v283, -50.0, 0.0);
cocos2d::CCPoint::operator+(v295, &v271, v257);
(*(void (__fastcall **)(__int64 *, void ***))(*v256 + 184))(v256, &v271);
*((_DWORD *)v256 + 93) = 0x40000000;
cocos2d::CCArray::addObject(*(cocos2d::CCArray **)(a1 + 1040), (struct cocos2d::CCObject *)v256);
v258 = (__int64 *)cocos2d::CCSprite::createWithSpriteFrameName("edit_rightBtn_001.png");
(*(void (__fastcall **)(__int64 *))(*v258 + 160))(v258);
*(_QWORD *)&v283 = operator new(0x208u);
v259 = (__int64 *)CCMenuItemSpriteExtra::CCMenuItemSpriteExtra(v283);
v260 = v259;
if ( v259 )
{
if ( CCMenuItemSpriteExtra::init(v259, v258, 0, a1, (__int64)SetupPulsePopup::onUpdateCopyColor) )
{
cocos2d::CCObject::autorelease((cocos2d::CCObject *)v260);
goto LABEL_92;
}
(*(void (__fastcall **)(__int64 *, __int64))(*v260 + 8))(v260, 1);
}
v260 = nullptr;
LABEL_92:
(*(void (__fastcall **)(_QWORD, __int64 *))(**(_QWORD **)(a1 + 552) + 464LL))(*(_QWORD *)(a1 + 552), v260);
(*(void (__fastcall **)(__int64 *, __int64))(*v260 + 64))(v260, 2);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v283, 50.0, 0.0);
cocos2d::CCPoint::operator+(v295, &v271, v261);
(*(void (__fastcall **)(__int64 *, void ***))(*v260 + 184))(v260, &v271);
*((_DWORD *)v260 + 93) = 0x40000000;
cocos2d::CCArray::addObject(*(cocos2d::CCArray **)(a1 + 1040), (struct cocos2d::CCObject *)v260);
v262 = (__int64 *)cocos2d::CCSprite::createWithSpriteFrameName("GJ_plus2Btn_001.png");
*(_QWORD *)&v283 = operator new(0x208u);
v263 = (__int64 *)CCMenuItemSpriteExtra::CCMenuItemSpriteExtra(v283);
if ( !v263 )
{
LABEL_96:
v263 = nullptr;
goto LABEL_97;
}
if ( !CCMenuItemSpriteExtra::init(v263, v262, 0, a1, (__int64)SetupPulsePopup::onSelectSpecialColor) )
{
(*(void (__fastcall **)(__int64 *, __int64))(*v263 + 8))(v263, 1);
goto LABEL_96;
}
cocos2d::CCObject::autorelease((cocos2d::CCObject *)v263);
LABEL_97:
(*(void (__fastcall **)(_QWORD, __int64 *))(**(_QWORD **)(a1 + 552) + 464LL))(*(_QWORD *)(a1 + 552), v263);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v283, 50.0, 40.0);
cocos2d::CCPoint::operator+(v286, &v271, v264);
v265 = *v263;
cocos2d::CCNode::convertToNodeSpace(*(_QWORD *)(a1 + 552), v296, &v271);
(*(void (__fastcall **)(__int64 *, __int64))(v265 + 184))(v263, v266);
cocos2d::CCArray::addObject(*(cocos2d::CCArray **)(a1 + 1040), (struct cocos2d::CCObject *)v263);
v267 = 0;
v268 = *(_DWORD *)(a1 + 1276);
if ( v268 )
{
if ( v268 == 1 )
v267 = *(_QWORD *)(a1 + 1136);
}
else
{
v267 = *(_QWORD *)(a1 + 1128);
}
SetupPulsePopup::onSelectPulseMode(a1, v267);
v269 = *(_DWORD *)(a1 + 1280);
if ( v269 )
{
if ( v269 == 1 )
v10 = *(_QWORD *)(a1 + 1080);
}
else
{
v10 = *(_QWORD *)(a1 + 1072);
}
SetupPulsePopup::onSelectTargetMode(a1, v10);
SetupPulsePopup::updateTextInputLabel(a1);
SetupPulsePopup::updateCopyColorTextInputLabel(a1);
*(_BYTE *)(a1 + 1260) = 0;
*(_BYTE *)(a1 + 1284) = 0;
return 1;
}