//
// SetupMGTrigger::init from 0x1405bc890 to 0x1405bd87d (4077 bytes)
//
// 2 xrefs:
// > SetupMGTrigger::create @ 0x1405bc839
// > ??> @ 0x14092df74
//
// 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:46 +0000
//
// Hidden C++ exception states: #wind=1
char __fastcall SetupMGTrigger::init(__int64 a1, int a2, int a3, int a4)
{
char result; // al
__int64 v6; // rcx
__int64 v7; // rax
struct cocos2d::CCLabelBMFont *v8; // rdi
__int64 v9; // rbx
float v10; // xmm9_4
__int64 v11; // rax
int v12; // eax
cocos2d::CCObject *v13; // rax
char *v14; // rsi
__int64 v15; // rdi
__int64 v16; // rbx
__int64 v17; // rax
__int64 v18; // rax
struct cocos2d::CCLabelBMFont *v19; // rdi
__int64 v20; // rbx
__int64 v21; // rax
__int64 v22; // rax
_QWORD *v23; // rsi
__int64 v24; // rdx
void (__fastcall *v25)(_QWORD *, __int64); // r8
__int64 v26; // rax
__int64 v27; // rdx
__int64 v28; // rcx
const char *v29; // r8
const char *v30; // r12
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; // r14
__int64 v40; // r8
cocos2d::CCLayer *v41; // rax
__int64 v42; // rax
struct cocos2d::CCLabelBMFont *v43; // rsi
__int64 v44; // rbx
__int64 v45; // rax
struct cocos2d::CCLabelBMFont *v46; // rax
__int64 v47; // rax
__int64 v48; // rbx
__int64 v49; // rax
struct cocos2d::CCSprite *v50; // rdi
__int64 v51; // rdx
void (__fastcall *v52)(char *, __int64); // r8
struct cocos2d::CCLabelBMFont *v53; // rax
__int64 v54; // rax
__int64 v55; // rbx
__int64 v56; // rax
cocos2d::CCObject *v57; // rax
__int64 v58; // rax
__int64 v59; // rbx
__int64 v60; // rax
__int64 *v61; // rdi
__int64 v62; // rbx
__int64 v63; // rax
cocos2d::CCSprite *v64; // rbx
cocos2d::CCObject *v65; // rdi
__int64 v66; // rax
__int64 v67; // rbx
__int64 v68; // rax
__int64 v69; // rbx
__int64 v70; // rax
struct cocos2d::CCSprite *v71; // rax
cocos2d::CCObject *v72; // rdi
__int64 v73; // rax
__int64 v74; // rbx
__int64 v75; // rax
__int64 v76; // rbx
__int64 v77; // rax
__int64 v78; // rax
struct cocos2d::CCLabelBMFont *v79; // rdi
__int64 v80; // rbx
__int64 v81; // rax
__int64 v82; // rax
_QWORD *v83; // rsi
__int64 v84; // rdx
void (__fastcall *v85)(_QWORD *, __int64); // r9
__int64 v86; // rax
__int64 v87; // rdx
__int64 v88; // rcx
char *v89; // rax
__int64 *v90; // rdi
__int64 v91; // rbx
__int64 v92; // rax
__int64 v93; // rcx
__int64 v94; // rcx
__int64 v95; // rcx
__int64 v96; // rcx
__int64 v97; // r8
cocos2d::CCLayer *v98; // rax
__int64 v99; // rax
int v100; // eax
__int128 *v101; // [rsp+40h] [rbp-C0h] BYREF
__int128 v102; // [rsp+48h] [rbp-B8h] BYREF
__int64 v103; // [rsp+58h] [rbp-A8h]
__int64 v104; // [rsp+60h] [rbp-A0h]
_BYTE v105[8]; // [rsp+68h] [rbp-98h] BYREF
_BYTE v106[16]; // [rsp+70h] [rbp-90h] BYREF
_BYTE v107[8]; // [rsp+80h] [rbp-80h] BYREF
_BYTE v108[8]; // [rsp+88h] [rbp-78h] BYREF
__int128 v109; // [rsp+90h] [rbp-70h] BYREF
__int64 v110; // [rsp+A0h] [rbp-60h]
__int64 v111; // [rsp+A8h] [rbp-58h]
_BYTE v112[16]; // [rsp+B0h] [rbp-50h] BYREF
_BYTE v113[160]; // [rsp+C0h] [rbp-40h] BYREF
float v114; // [rsp+1A8h] [rbp+A8h] BYREF
float v115; // [rsp+1ACh] [rbp+ACh]
result = SetupTriggerPopup::init(a1, a2, a3, a4, 1134231552, 1, 0);
if ( result )
{
v7 = cocos2d::CCDirector::sharedDirector(v6);
cocos2d::CCDirector::getWinSize(v7, &v114);
v8 = cocos2d::CCLabelBMFont::create("Setup MG", (const char *)&qword_140704F78);
v9 = *(_QWORD *)v8;
v10 = 0.5;
cocos2d::CCPoint::CCPoint(
(cocos2d::CCPoint *)&v101,
v114 * 0.5,
(float)((float)(v115 * 0.5) + (float)(*(float *)(a1 + 736) * 0.5)) - 15.0);
(*(void (__fastcall **)(struct cocos2d::CCLabelBMFont *, __int64))(v9 + 184))(v8, v11);
(*(void (__fastcall **)(_QWORD, struct cocos2d::CCLabelBMFont *))(**(_QWORD **)(a1 + 584) + 464LL))(
*(_QWORD *)(a1 + 584),
v8);
(*(void (__fastcall **)(struct cocos2d::CCLabelBMFont *))(*(_QWORD *)v8 + 160LL))(v8);
v12 = (unsigned int)ButtonSprite::create_1(
(int)"OK",
0,
0,
1.0,
0,
(__int64)"goldFont.fnt",
(__int64)"GJ_button_01.png",
0);
v13 = CCMenuItemSpriteExtra::create(v12, 0, a1, (__int64)sub_14009D628);
(*(void (__fastcall **)(_QWORD, cocos2d::CCObject *))(**(_QWORD **)(a1 + 552) + 464LL))(*(_QWORD *)(a1 + 552), v13);
v101 = &v102;
v102 = 0;
v103 = 0;
v104 = 0;
*(_QWORD *)&v102 = sub_14003D460(0x40u);
v103 = 60;
v104 = 63;
strcpy((char *)v102, "Lets you change the Y position of the middle ground.");
v109 = 0;
v110 = 4;
v111 = 15;
strcpy((char *)&v109, "Help");
v14 = InfoAlertButton::create((__int64)&v109, (__int64)&v102);
(*(void (__fastcall **)(_QWORD, char *))(**(_QWORD **)(a1 + 552) + 464LL))(*(_QWORD *)(a1 + 552), v14);
v15 = *(_QWORD *)v14;
v16 = *(_QWORD *)(a1 + 552);
cocos2d::CCPoint::CCPoint(
(cocos2d::CCPoint *)&v101,
(float)((float)(*(float *)(a1 + 732) * 0.5) + (float)(v114 * 0.5)) - 18.0,
(float)((float)(v115 * 0.5) + (float)(*(float *)(a1 + 736) * 0.5)) - 18.0);
cocos2d::CCNode::convertToNodeSpace(v16, v106, v17);
(*(void (__fastcall **)(char *, __int64))(v15 + 184))(v14, v18);
(*(void (__fastcall **)(__int64))(*(_QWORD *)a1 + 1096LL))(a1);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v105, v114 * 0.5, (float)(v115 * 0.5) - 60.0);
v19 = cocos2d::CCLabelBMFont::create("Move Time: ", "goldFont.fnt");
(*(void (__fastcall **)(struct cocos2d::CCLabelBMFont *))(*(_QWORD *)v19 + 160LL))(v19);
(*(void (__fastcall **)(struct cocos2d::CCLabelBMFont *, _BYTE *))(*(_QWORD *)v19 + 184LL))(v19, v105);
v20 = *(_QWORD *)v19;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v106, 1.0, 0.5);
(*(void (__fastcall **)(struct cocos2d::CCLabelBMFont *, __int64))(v20 + 288))(v19, v21);
(*(void (__fastcall **)(_QWORD, struct cocos2d::CCLabelBMFont *))(**(_QWORD **)(a1 + 584) + 464LL))(
*(_QWORD *)(a1 + 584),
v19);
cocos2d::CCRect::CCRect((cocos2d::CCRect *)v112, 0.0, 0.0, 40.0, 40.0);
cocos2d::CCRect::CCRect((cocos2d::CCRect *)&v102, (const struct cocos2d::CCRect *)v112);
v23 = (_QWORD *)cocos2d::extension::CCScale9Sprite::create("square02_small.png", v22);
v24 = v23[40];
v25 = *(void (__fastcall **)(_QWORD *, __int64))(v24 + 40);
LOBYTE(v24) = 100;
v25(v23 + 40, v24);
cocos2d::CCSize::CCSize((cocos2d::CCSize *)v107, 70.0, 30.0);
(*(void (__fastcall **)(_QWORD *, _BYTE *))(*v23 + 312LL))(v23, v107);
(*(void (__fastcall **)(_QWORD, _QWORD *, __int64))(**(_QWORD **)(a1 + 584) + 456LL))(
*(_QWORD *)(a1 + 584),
v23,
0xFFFFFFFFLL);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v106, 45.0, 0.0);
cocos2d::CCPoint::operator+(v105, &v101, v26);
(*(void (__fastcall **)(_QWORD *, __int128 **))(*v23 + 184LL))(v23, &v101);
v29 = "Num";
v30 = "Mixed";
if ( *(float *)(a1 + 1016) == -99999.0 )
v29 = "Mixed";
v31 = CCTextInputNode::create(v28, v27, (__int64)v29);
*(_QWORD *)(a1 + 1000) = v31;
(*(void (__fastcall **)(_QWORD, char *, __int64))(**(_QWORD **)(a1 + 584) + 456LL))(*(_QWORD *)(a1 + 584), v31, 20);
v32 = *(__int64 **)(a1 + 1000);
v33 = *v32;
v34 = (*(__int64 (__fastcall **)(_QWORD *))(*v23 + 200LL))(v23);
(*(void (__fastcall **)(__int64 *, __int64))(v33 + 184))(v32, v34);
v35 = *(_QWORD *)(a1 + 1000);
*(_DWORD *)(v35 + 564) = 1058642330;
CCTextInputNode::refreshLabel(v35);
v36 = *(_QWORD *)(a1 + 1000);
*(_DWORD *)(v36 + 560) = 1128792064;
CCTextInputNode::refreshLabel(v36);
(*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(*(_QWORD *)(a1 + 1000) + 592LL) + 336LL))(
*(_QWORD *)(*(_QWORD *)(a1 + 1000) + 592LL),
0);
*(_DWORD *)(*(_QWORD *)(a1 + 1000) + 608LL) = 4;
v103 = 11;
v104 = 15;
*(_QWORD *)&v102 = 0x3736353433323130LL;
*((_QWORD *)&v102 + 1) = 3029304;
CCTextInputNode::setAllowedChars(*(_QWORD *)(a1 + 1000), (void **)&v102);
v37 = *(_QWORD *)(a1 + 1000);
*(_WORD *)(v37 + 572) = -21896;
*(_BYTE *)(v37 + 574) = -16;
CCTextInputNode::refreshLabel(v37);
v38 = *(_QWORD *)(a1 + 1000);
*(_DWORD *)(v38 + 568) = 1056964608;
CCTextInputNode::refreshLabel(v38);
*(_BYTE *)(*(_QWORD *)(a1 + 1000) + 424LL) = 1;
v39 = a1 + 544;
if ( !a1 )
v39 = 0;
*(_QWORD *)(*(_QWORD *)(a1 + 1000) + 600LL) = v39;
(*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 1000) + 64LL))(*(_QWORD *)(a1 + 1000), 3);
v41 = Slider::create(
a1,
(__int64)SetupCameraOffsetTrigger::sliderChanged,
v40,
"slidergroove.png",
(__int64)"sliderthumb.png",
(__int64)"sliderthumbsel.png",
0.80000001);
*(_QWORD *)(a1 + 1008) = v41;
(*(void (__fastcall **)(_QWORD, _QWORD))(**((_QWORD **)v41 + 52) + 336LL))(*((_QWORD *)v41 + 52), 0);
(*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(a1 + 584) + 464LL))(
*(_QWORD *)(a1 + 584),
*(_QWORD *)(a1 + 1008));
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v106, 0.0, -32.0);
cocos2d::CCPoint::operator+(v105, &v101, v42);
(*(void (__fastcall **)(_QWORD, __int128 **))(**(_QWORD **)(a1 + 1008) + 184LL))(*(_QWORD *)(a1 + 1008), &v101);
Slider::setValue(*(_QWORD *)(a1 + 1008), fmaxf(0.0, fminf(1.0, *(float *)(a1 + 1016) / 10.0)));
SetupCameraOffsetTrigger::updateDurLabel(a1, 0);
v43 = cocos2d::CCLabelBMFont::create((const char *)&dword_1407EA4CC, "goldFont.fnt");
v44 = *(_QWORD *)v43;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v106, v114 * 0.5, (float)(v115 * 0.5) + 10.0);
(*(void (__fastcall **)(struct cocos2d::CCLabelBMFont *, __int64))(v44 + 184))(v43, v45);
(*(void (__fastcall **)(_QWORD, struct cocos2d::CCLabelBMFont *))(**(_QWORD **)(a1 + 584) + 464LL))(
*(_QWORD *)(a1 + 584),
v43);
(*(void (__fastcall **)(struct cocos2d::CCLabelBMFont *))(*(_QWORD *)v43 + 160LL))(v43);
v46 = cocos2d::CCLabelBMFont::create(" ", (const char *)&qword_140704F78);
*(_QWORD *)(a1 + 1024) = v46;
(*(void (__fastcall **)(_QWORD, struct cocos2d::CCLabelBMFont *))(**(_QWORD **)(a1 + 584) + 464LL))(
*(_QWORD *)(a1 + 584),
v46);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v106, 0.0, -30.0);
v48 = v47;
v49 = (*(__int64 (__fastcall **)(struct cocos2d::CCLabelBMFont *))(*(_QWORD *)v43 + 200LL))(v43);
cocos2d::CCPoint::operator+(v49, &v101, v48);
(*(void (__fastcall **)(_QWORD, __int128 **))(**(_QWORD **)(a1 + 1024) + 184LL))(*(_QWORD *)(a1 + 1024), &v101);
(*(void (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 1024) + 160LL))(*(_QWORD *)(a1 + 1024));
v50 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_colorBtn_001.png");
(**((void (__fastcall ***)(__int64, void *))v50 + 40))((__int64)v50 + 320, &unk_140704694);
v51 = *((_QWORD *)v50 + 40);
v52 = *(void (__fastcall **)(char *, __int64))(v51 + 40);
LOBYTE(v51) = 100;
v52((char *)v50 + 320, v51);
v53 = cocos2d::CCLabelBMFont::create("0", (const char *)&qword_140704F78);
*(_QWORD *)(a1 + 1048) = v53;
(*(void (__fastcall **)(struct cocos2d::CCSprite *, struct cocos2d::CCLabelBMFont *))(*(_QWORD *)v50 + 464LL))(
v50,
v53);
(*(void (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 1048) + 120LL))(*(_QWORD *)(a1 + 1048));
(*(void (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 1048) + 136LL))(*(_QWORD *)(a1 + 1048));
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v106, 1.0, 1.5);
v55 = v54;
cocos2d::CCNode::convertToNodeSpace(v50, &v102, &unk_14090B8E8);
cocos2d::CCPoint::operator+(v56, &v101, v55);
(*(void (__fastcall **)(_QWORD, __int128 **))(**(_QWORD **)(a1 + 1048) + 184LL))(*(_QWORD *)(a1 + 1048), &v101);
(*(void (__fastcall **)(struct cocos2d::CCSprite *))(*(_QWORD *)v50 + 120LL))(v50);
(*(void (__fastcall **)(struct cocos2d::CCSprite *))(*(_QWORD *)v50 + 136LL))(v50);
v57 = CCMenuItemSpriteExtra::create((int)v50, 0, a1, (__int64)SetupCameraOffsetTrigger::onEasingRate);
*(_QWORD *)(a1 + 1040) = v57;
(*(void (__fastcall **)(_QWORD, cocos2d::CCObject *))(**(_QWORD **)(a1 + 552) + 464LL))(*(_QWORD *)(a1 + 552), v57);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v102, 55.0, -2.0);
v59 = v58;
v60 = (*(__int64 (__fastcall **)(struct cocos2d::CCLabelBMFont *))(*(_QWORD *)v43 + 200LL))(v43);
cocos2d::CCPoint::operator+(v60, &v101, v59);
v61 = *(__int64 **)(a1 + 1040);
v62 = *v61;
cocos2d::CCNode::convertToNodeSpace(*(_QWORD *)(a1 + 552), v106, &v101);
(*(void (__fastcall **)(__int64 *, __int64))(v62 + 184))(v61, v63);
*(_DWORD *)(*(_QWORD *)(a1 + 1040) + 372LL) = 1067030938;
SetupCameraOffsetTrigger::updateEasingRateLabel(a1);
SetupCameraOffsetTrigger::toggleEasingRateVisibility(a1);
v64 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_arrow_01_001.png");
cocos2d::CCSprite::setFlipX(v64, 1);
(*(void (__fastcall **)(cocos2d::CCSprite *))(*(_QWORD *)v64 + 160LL))(v64);
v65 = CCMenuItemSpriteExtra::create((int)v64, 0, a1, (__int64)SetupCameraOffsetTrigger::onEasing);
(*(void (__fastcall **)(_QWORD, cocos2d::CCObject *))(**(_QWORD **)(a1 + 552) + 464LL))(*(_QWORD *)(a1 + 552), v65);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v102, 100.0, 0.0);
v67 = v66;
v68 = (*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 1024) + 200LL))(*(_QWORD *)(a1 + 1024));
cocos2d::CCPoint::operator+(v68, &v101, v67);
v69 = *(_QWORD *)v65;
cocos2d::CCNode::convertToNodeSpace(*(_QWORD *)(a1 + 552), v106, &v101);
(*(void (__fastcall **)(cocos2d::CCObject *, __int64))(v69 + 184))(v65, v70);
*((_DWORD *)v65 + 93) = 1068708659;
(*(void (__fastcall **)(cocos2d::CCObject *, __int64))(*(_QWORD *)v65 + 64LL))(v65, 1);
v71 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_arrow_01_001.png");
LODWORD(v69) = (_DWORD)v71;
(*(void (__fastcall **)(struct cocos2d::CCSprite *))(*(_QWORD *)v71 + 160LL))(v71);
v72 = CCMenuItemSpriteExtra::create(v69, 0, a1, (__int64)SetupCameraOffsetTrigger::onEasing);
(*(void (__fastcall **)(_QWORD, cocos2d::CCObject *))(**(_QWORD **)(a1 + 552) + 464LL))(*(_QWORD *)(a1 + 552), v72);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v102, -100.0, 0.0);
v74 = v73;
v75 = (*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 1024) + 200LL))(*(_QWORD *)(a1 + 1024));
cocos2d::CCPoint::operator+(v75, &v101, v74);
v76 = *(_QWORD *)v72;
cocos2d::CCNode::convertToNodeSpace(*(_QWORD *)(a1 + 552), v106, &v101);
(*(void (__fastcall **)(cocos2d::CCObject *, __int64))(v76 + 184))(v72, v77);
*((_DWORD *)v72 + 93) = 1068708659;
(*(void (__fastcall **)(cocos2d::CCObject *, _QWORD))(*(_QWORD *)v72 + 64LL))(v72, 0);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v102, v114 * 0.5, (float)(v115 * 0.5) + 95.0);
cocos2d::CCPoint::operator=(v105, v78);
v79 = cocos2d::CCLabelBMFont::create("Offset Y:", "goldFont.fnt");
(*(void (__fastcall **)(struct cocos2d::CCLabelBMFont *))(*(_QWORD *)v79 + 160LL))(v79);
(*(void (__fastcall **)(struct cocos2d::CCLabelBMFont *, _BYTE *))(*(_QWORD *)v79 + 184LL))(v79, v105);
v80 = *(_QWORD *)v79;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v102, 1.0, 0.5);
(*(void (__fastcall **)(struct cocos2d::CCLabelBMFont *, __int64))(v80 + 288))(v79, v81);
(*(void (__fastcall **)(_QWORD, struct cocos2d::CCLabelBMFont *))(**(_QWORD **)(a1 + 584) + 464LL))(
*(_QWORD *)(a1 + 584),
v79);
cocos2d::CCRect::CCRect((cocos2d::CCRect *)v113, 0.0, 0.0, 40.0, 40.0);
cocos2d::CCRect::CCRect((cocos2d::CCRect *)v106, (const struct cocos2d::CCRect *)v113);
v83 = (_QWORD *)cocos2d::extension::CCScale9Sprite::create("square02_small.png", v82);
v84 = v83[40];
v85 = *(void (__fastcall **)(_QWORD *, __int64))(v84 + 40);
LOBYTE(v84) = 100;
v85(v83 + 40, v84);
cocos2d::CCSize::CCSize((cocos2d::CCSize *)v108, 70.0, 30.0);
(*(void (__fastcall **)(_QWORD *, _BYTE *))(*v83 + 312LL))(v83, v108);
(*(void (__fastcall **)(_QWORD, _QWORD *, __int64))(**(_QWORD **)(a1 + 584) + 456LL))(
*(_QWORD *)(a1 + 584),
v83,
0xFFFFFFFFLL);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v102, 45.0, 0.0);
cocos2d::CCPoint::operator+(v105, &v101, v86);
(*(void (__fastcall **)(_QWORD *, __int128 **))(*v83 + 184LL))(v83, &v101);
if ( *(_DWORD *)(a1 + 1072) != -99999 )
v30 = "Num";
v89 = CCTextInputNode::create(v88, v87, (__int64)v30);
*(_QWORD *)(a1 + 1056) = v89;
(*(void (__fastcall **)(_QWORD, char *, __int64))(**(_QWORD **)(a1 + 584) + 456LL))(*(_QWORD *)(a1 + 584), v89, 20);
v90 = *(__int64 **)(a1 + 1056);
v91 = *v90;
v92 = (*(__int64 (__fastcall **)(_QWORD *))(*v83 + 200LL))(v83);
(*(void (__fastcall **)(__int64 *, __int64))(v91 + 184))(v90, v92);
v93 = *(_QWORD *)(a1 + 1056);
*(_DWORD *)(v93 + 564) = 1058642330;
CCTextInputNode::refreshLabel(v93);
v94 = *(_QWORD *)(a1 + 1056);
*(_DWORD *)(v94 + 560) = 1128792064;
CCTextInputNode::refreshLabel(v94);
(*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(*(_QWORD *)(a1 + 1056) + 592LL) + 336LL))(
*(_QWORD *)(*(_QWORD *)(a1 + 1056) + 592LL),
0);
*(_DWORD *)(*(_QWORD *)(a1 + 1056) + 608LL) = 5;
v103 = 11;
v104 = 15;
*(_QWORD *)&v102 = 0x3736353433323130LL;
*((_QWORD *)&v102 + 1) = 2963768;
CCTextInputNode::setAllowedChars(*(_QWORD *)(a1 + 1056), (void **)&v102);
v95 = *(_QWORD *)(a1 + 1056);
*(_WORD *)(v95 + 572) = -21896;
*(_BYTE *)(v95 + 574) = -16;
CCTextInputNode::refreshLabel(v95);
v96 = *(_QWORD *)(a1 + 1056);
*(_DWORD *)(v96 + 568) = 1056964608;
CCTextInputNode::refreshLabel(v96);
*(_QWORD *)(*(_QWORD *)(a1 + 1056) + 600LL) = v39;
*(_BYTE *)(*(_QWORD *)(a1 + 1056) + 424LL) = 1;
(*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 1056) + 64LL))(*(_QWORD *)(a1 + 1056), 1);
v98 = Slider::create(
a1,
(__int64)SetupMGTrigger::sliderYChanged,
v97,
"slidergroove.png",
(__int64)"sliderthumb.png",
(__int64)"sliderthumbsel.png",
0.80000001);
*(_QWORD *)(a1 + 1064) = v98;
(*(void (__fastcall **)(_QWORD, _QWORD))(**((_QWORD **)v98 + 52) + 336LL))(*((_QWORD *)v98 + 52), 0);
(*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(a1 + 584) + 464LL))(
*(_QWORD *)(a1 + 584),
*(_QWORD *)(a1 + 1064));
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v102, 0.0, -32.0);
cocos2d::CCPoint::operator+(v105, &v101, v99);
(*(void (__fastcall **)(_QWORD, __int128 **))(**(_QWORD **)(a1 + 1064) + 184LL))(*(_QWORD *)(a1 + 1064), &v101);
v100 = *(_DWORD *)(a1 + 1072);
if ( v100 != -99999 )
v10 = fmaxf(0.0, fminf(1.0, (float)(floorf((float)v100 / 3.0) / 200.0) + 0.5));
Slider::setValue(*(_QWORD *)(a1 + 1064), v10);
SetupTriggerPopup::createMultiTriggerItemsDefault(a1);
SetupMGTrigger::updateValueYLabel(a1);
SetupCameraOffsetTrigger::updateEasingLabel(a1);
*(_BYTE *)(a1 + 744) = 0;
return 1;
}
return result;
}