//
// SetupCameraOffsetTrigger::init from 0x1405ac890 to 0x1405adb28 (4760 bytes)
//
// 2 xrefs:
// > SetupCameraOffsetTrigger::create @ 0x1405ac839
// > ??> @ 0x14092d86c
//
// 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:41 +0000
//
// Hidden C++ exception states: #wind=2
char __fastcall SetupCameraOffsetTrigger::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
__int64 v10; // rax
int v11; // eax
cocos2d::CCObject *v12; // rax
char *v13; // rsi
__int64 v14; // rdi
__int64 v15; // rbx
__int64 v16; // rax
__int64 v17; // rax
struct cocos2d::CCLabelBMFont *v18; // rdi
__int64 v19; // rbx
__int64 v20; // rax
__int64 v21; // rax
_QWORD *v22; // rsi
__int64 v23; // rdx
void (__fastcall *v24)(_QWORD *, __int64); // r8
__int64 v25; // rax
__int64 v26; // rdx
__int64 v27; // rcx
const char *v28; // r8
char *v29; // rax
__int64 *v30; // rdi
__int64 v31; // rbx
__int64 v32; // rax
__int64 v33; // rcx
__int64 v34; // rcx
__int64 v35; // rcx
__int64 v36; // rcx
__int64 v37; // rcx
__int64 v38; // r8
cocos2d::CCLayer *v39; // rax
__int64 v40; // rax
float v41; // xmm1_4
struct cocos2d::CCLabelBMFont *v42; // rsi
__int64 v43; // rbx
__int64 v44; // rax
struct cocos2d::CCLabelBMFont *v45; // rax
__int64 v46; // rax
__int64 v47; // rbx
__int64 v48; // rax
struct cocos2d::CCSprite *v49; // rdi
__int64 v50; // rdx
void (__fastcall *v51)(char *, __int64); // r8
struct cocos2d::CCLabelBMFont *v52; // rax
__int64 v53; // rax
__int64 v54; // rbx
__int64 v55; // rax
cocos2d::CCObject *v56; // rax
__int64 v57; // rax
__int64 v58; // rbx
__int64 v59; // rax
__int64 *v60; // rdi
__int64 v61; // rbx
__int64 v62; // rax
cocos2d::CCSprite *v63; // rbx
cocos2d::CCObject *v64; // rdi
__int64 v65; // rax
__int64 v66; // rbx
__int64 v67; // rax
__int64 v68; // rbx
__int64 v69; // rax
struct cocos2d::CCSprite *v70; // rax
cocos2d::CCObject *v71; // rdi
__int64 v72; // rax
__int64 v73; // rbx
__int64 v74; // rax
__int64 v75; // rbx
__int64 v76; // rax
int v77; // r15d
float v78; // xmm0_4
__int64 (__fastcall *v79)(); // r12
const char *v80; // rbx
struct cocos2d::CCLabelBMFont *v81; // rdi
__int64 v82; // rbx
__int64 v83; // rax
__int64 v84; // rax
_QWORD *v85; // rdi
__int64 v86; // rdx
void (__fastcall *v87)(_QWORD *, __int64); // r8
__int64 v88; // rax
__int64 v89; // rdx
__int64 v90; // rcx
__int64 v91; // rax
int v92; // r13d
const char *v93; // r8
char *v94; // rsi
__int64 v95; // rbx
__int64 v96; // rax
__int64 v97; // rdx
__int64 v98; // r8
cocos2d::CCLayer *v99; // rbx
__int64 v100; // rax
float v101; // xmm1_4
int v102; // r12d
__int64 v103; // rsi
float v104; // xmm7_4
float v105; // xmm6_4
__int64 v106; // rdi
float *v107; // rax
float *v108; // rbx
__int64 v109; // rax
cocos2d::CCMenuItem *ToggleButton; // rax
__int64 v111; // rsi
float v112; // xmm7_4
float v113; // xmm6_4
__int64 v114; // rdi
float *v115; // rax
float *v116; // rbx
__int64 v117; // rax
cocos2d::CCMenuItem *v118; // rax
__int128 *v119; // [rsp+88h] [rbp-80h] BYREF
_BYTE v120[8]; // [rsp+90h] [rbp-78h] BYREF
float v121; // [rsp+98h] [rbp-70h] BYREF
float v122; // [rsp+9Ch] [rbp-6Ch]
__int128 v123; // [rsp+A0h] [rbp-68h] BYREF
__int64 v124; // [rsp+B0h] [rbp-58h]
__int64 v125; // [rsp+B8h] [rbp-50h]
_BYTE v126[8]; // [rsp+C0h] [rbp-48h] BYREF
__int128 v127; // [rsp+C8h] [rbp-40h] BYREF
__int64 v128; // [rsp+D8h] [rbp-30h]
__int64 v129; // [rsp+E0h] [rbp-28h]
_BYTE v130[8]; // [rsp+E8h] [rbp-20h] BYREF
_QWORD v131[2]; // [rsp+F0h] [rbp-18h] BYREF
_BYTE v132[8]; // [rsp+100h] [rbp-8h] BYREF
_BYTE v133[8]; // [rsp+108h] [rbp+0h] BYREF
_BYTE v134[16]; // [rsp+110h] [rbp+8h] BYREF
_BYTE v135[8]; // [rsp+120h] [rbp+18h] BYREF
_BYTE v136[8]; // [rsp+128h] [rbp+20h] BYREF
_BYTE v137[8]; // [rsp+130h] [rbp+28h] BYREF
_BYTE v138[8]; // [rsp+138h] [rbp+30h] BYREF
_BYTE v139[8]; // [rsp+140h] [rbp+38h] BYREF
_BYTE v140[8]; // [rsp+148h] [rbp+40h] BYREF
_BYTE v141[184]; // [rsp+150h] [rbp+48h] BYREF
float v142; // [rsp+250h] [rbp+148h] BYREF
float v143; // [rsp+254h] [rbp+14Ch]
result = SetupTriggerPopup::init(a1, a2, a3, a4, 1134231552, 1, 0);
if ( result )
{
v7 = cocos2d::CCDirector::sharedDirector(v6);
cocos2d::CCDirector::getWinSize(v7, &v142);
v8 = cocos2d::CCLabelBMFont::create("Setup camera offset", (const char *)&qword_140704F78);
v9 = *(_QWORD *)v8;
cocos2d::CCPoint::CCPoint(
(cocos2d::CCPoint *)&v119,
v142 * 0.5,
(float)((float)(v143 * 0.5) + (float)(*(float *)(a1 + 736) * 0.5)) - 15.0);
(*(void (__fastcall **)(struct cocos2d::CCLabelBMFont *, __int64))(v9 + 184))(v8, v10);
(*(void (__fastcall **)(_QWORD, struct cocos2d::CCLabelBMFont *))(**(_QWORD **)(a1 + 584) + 464LL))(
*(_QWORD *)(a1 + 584),
v8);
(*(void (__fastcall **)(struct cocos2d::CCLabelBMFont *))(*(_QWORD *)v8 + 160LL))(v8);
v11 = (unsigned int)ButtonSprite::create_1(
(int)"OK",
0,
0,
1.0,
0,
(__int64)"goldFont.fnt",
(__int64)"GJ_button_01.png",
0);
v12 = CCMenuItemSpriteExtra::create(v11, 0, a1, (__int64)sub_14009D628);
(*(void (__fastcall **)(_QWORD, cocos2d::CCObject *))(**(_QWORD **)(a1 + 552) + 464LL))(*(_QWORD *)(a1 + 552), v12);
v119 = &v123;
v123 = 0;
v124 = 0;
v125 = 0;
*(_QWORD *)&v123 = sub_14003D460(0x80u);
v124 = 126;
v125 = 127;
strcpy(
(char *)v123,
"Lets you change the camera by a given value in X and Y direction. Offset X and Offset Y specify how much respectively.");
v127 = 0;
v128 = 4;
v129 = 15;
strcpy((char *)&v127, "Help");
v13 = InfoAlertButton::create((__int64)&v127, (__int64)&v123);
(*(void (__fastcall **)(_QWORD, char *))(**(_QWORD **)(a1 + 552) + 464LL))(*(_QWORD *)(a1 + 552), v13);
v14 = *(_QWORD *)v13;
v15 = *(_QWORD *)(a1 + 552);
cocos2d::CCPoint::CCPoint(
(cocos2d::CCPoint *)&v119,
(float)((float)(v142 * 0.5) - (float)(*(float *)(a1 + 732) * 0.5)) + 18.0,
(float)((float)(v143 * 0.5) + (float)(*(float *)(a1 + 736) * 0.5)) - 18.0);
cocos2d::CCNode::convertToNodeSpace(v15, v131, v16);
(*(void (__fastcall **)(char *, __int64))(v14 + 184))(v13, v17);
(*(void (__fastcall **)(__int64))(*(_QWORD *)a1 + 1096LL))(a1);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v130, v142 * 0.5, (float)(v143 * 0.5) - 60.0);
v18 = cocos2d::CCLabelBMFont::create("Move Time: ", "goldFont.fnt");
(*(void (__fastcall **)(struct cocos2d::CCLabelBMFont *))(*(_QWORD *)v18 + 160LL))(v18);
(*(void (__fastcall **)(struct cocos2d::CCLabelBMFont *, _BYTE *))(*(_QWORD *)v18 + 184LL))(v18, v130);
v19 = *(_QWORD *)v18;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v119, 1.0, 0.5);
(*(void (__fastcall **)(struct cocos2d::CCLabelBMFont *, __int64))(v19 + 288))(v18, v20);
(*(void (__fastcall **)(_QWORD, struct cocos2d::CCLabelBMFont *))(**(_QWORD **)(a1 + 584) + 464LL))(
*(_QWORD *)(a1 + 584),
v18);
cocos2d::CCRect::CCRect((cocos2d::CCRect *)v141, 0.0, 0.0, 40.0, 40.0);
cocos2d::CCRect::CCRect((cocos2d::CCRect *)v134, (const struct cocos2d::CCRect *)v141);
v22 = (_QWORD *)cocos2d::extension::CCScale9Sprite::create("square02_small.png", v21);
v23 = v22[40];
v24 = *(void (__fastcall **)(_QWORD *, __int64))(v23 + 40);
LOBYTE(v23) = 100;
v24(v22 + 40, v23);
cocos2d::CCSize::CCSize((cocos2d::CCSize *)v132, 70.0, 30.0);
(*(void (__fastcall **)(_QWORD *, _BYTE *))(*v22 + 312LL))(v22, v132);
(*(void (__fastcall **)(_QWORD, _QWORD *, __int64))(**(_QWORD **)(a1 + 584) + 456LL))(
*(_QWORD *)(a1 + 584),
v22,
0xFFFFFFFFLL);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v119, 45.0, 0.0);
cocos2d::CCPoint::operator+(v130, &v121, v25);
(*(void (__fastcall **)(_QWORD *, float *))(*v22 + 184LL))(v22, &v121);
v28 = "Num";
if ( *(float *)(a1 + 1016) == -99999.0 )
v28 = "Mixed";
v29 = CCTextInputNode::create(v27, v26, (__int64)v28);
*(_QWORD *)(a1 + 1000) = v29;
(*(void (__fastcall **)(_QWORD, char *, __int64))(**(_QWORD **)(a1 + 584) + 456LL))(*(_QWORD *)(a1 + 584), v29, 20);
v30 = *(__int64 **)(a1 + 1000);
v31 = *v30;
v32 = (*(__int64 (__fastcall **)(_QWORD *))(*v22 + 200LL))(v22);
(*(void (__fastcall **)(__int64 *, __int64))(v31 + 184))(v30, v32);
v33 = *(_QWORD *)(a1 + 1000);
*(_DWORD *)(v33 + 564) = 1058642330;
CCTextInputNode::refreshLabel(v33);
v34 = *(_QWORD *)(a1 + 1000);
*(_DWORD *)(v34 + 560) = 1128792064;
CCTextInputNode::refreshLabel(v34);
(*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(*(_QWORD *)(a1 + 1000) + 592LL) + 336LL))(
*(_QWORD *)(*(_QWORD *)(a1 + 1000) + 592LL),
0);
*(_DWORD *)(*(_QWORD *)(a1 + 1000) + 608LL) = 4;
v128 = 11;
v129 = 15;
*(_QWORD *)&v127 = 0x3736353433323130LL;
*((_QWORD *)&v127 + 1) = 3029304;
CCTextInputNode::setAllowedChars(*(_QWORD *)(a1 + 1000), (void **)&v127);
v35 = *(_QWORD *)(a1 + 1000);
*(_WORD *)(v35 + 572) = -21896;
*(_BYTE *)(v35 + 574) = -16;
CCTextInputNode::refreshLabel(v35);
v36 = *(_QWORD *)(a1 + 1000);
*(_DWORD *)(v36 + 568) = 1056964608;
CCTextInputNode::refreshLabel(v36);
*(_BYTE *)(*(_QWORD *)(a1 + 1000) + 424LL) = 1;
v37 = a1 + 544;
if ( !a1 )
v37 = 0;
v131[0] = v37;
*(_QWORD *)(*(_QWORD *)(a1 + 1000) + 600LL) = v37;
(*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 1000) + 64LL))(*(_QWORD *)(a1 + 1000), 3);
v39 = Slider::create(
a1,
(__int64)SetupCameraOffsetTrigger::sliderChanged,
v38,
"slidergroove.png",
(__int64)"sliderthumb.png",
(__int64)"sliderthumbsel.png",
0.80000001);
*(_QWORD *)(a1 + 1008) = v39;
(*(void (__fastcall **)(_QWORD, _QWORD))(**((_QWORD **)v39 + 52) + 336LL))(*((_QWORD *)v39 + 52), 0);
(*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(a1 + 584) + 464LL))(
*(_QWORD *)(a1 + 584),
*(_QWORD *)(a1 + 1008));
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v119, 0.0, -32.0);
cocos2d::CCPoint::operator+(v130, v120, v40);
(*(void (__fastcall **)(_QWORD, _BYTE *))(**(_QWORD **)(a1 + 1008) + 184LL))(*(_QWORD *)(a1 + 1008), v120);
v41 = fminf(1.0, *(float *)(a1 + 1016) / 10.0);
if ( v41 < 0.0 )
v41 = 0.0;
Slider::setValue(*(_QWORD *)(a1 + 1008), v41);
SetupCameraOffsetTrigger::updateDurLabel(a1, 0);
v42 = cocos2d::CCLabelBMFont::create((const char *)&dword_1407EA4CC, "goldFont.fnt");
v43 = *(_QWORD *)v42;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v119, v142 * 0.5, (float)(v143 * 0.5) + 10.0);
(*(void (__fastcall **)(struct cocos2d::CCLabelBMFont *, __int64))(v43 + 184))(v42, v44);
(*(void (__fastcall **)(_QWORD, struct cocos2d::CCLabelBMFont *))(**(_QWORD **)(a1 + 584) + 464LL))(
*(_QWORD *)(a1 + 584),
v42);
(*(void (__fastcall **)(struct cocos2d::CCLabelBMFont *))(*(_QWORD *)v42 + 160LL))(v42);
v45 = cocos2d::CCLabelBMFont::create(" ", (const char *)&qword_140704F78);
*(_QWORD *)(a1 + 1024) = v45;
(*(void (__fastcall **)(_QWORD, struct cocos2d::CCLabelBMFont *))(**(_QWORD **)(a1 + 584) + 464LL))(
*(_QWORD *)(a1 + 584),
v45);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v119, 0.0, -30.0);
v47 = v46;
v48 = (*(__int64 (__fastcall **)(struct cocos2d::CCLabelBMFont *))(*(_QWORD *)v42 + 200LL))(v42);
cocos2d::CCPoint::operator+(v48, v120, v47);
(*(void (__fastcall **)(_QWORD, _BYTE *))(**(_QWORD **)(a1 + 1024) + 184LL))(*(_QWORD *)(a1 + 1024), v120);
(*(void (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 1024) + 160LL))(*(_QWORD *)(a1 + 1024));
v49 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_colorBtn_001.png");
(**((void (__fastcall ***)(__int64, void *))v49 + 40))((__int64)v49 + 320, &unk_140704688);
v50 = *((_QWORD *)v49 + 40);
v51 = *(void (__fastcall **)(char *, __int64))(v50 + 40);
LOBYTE(v50) = 100;
v51((char *)v49 + 320, v50);
v52 = cocos2d::CCLabelBMFont::create("0", (const char *)&qword_140704F78);
*(_QWORD *)(a1 + 1048) = v52;
(*(void (__fastcall **)(struct cocos2d::CCSprite *, struct cocos2d::CCLabelBMFont *))(*(_QWORD *)v49 + 464LL))(
v49,
v52);
(*(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 *)&v119, 1.0, 1.5);
v54 = v53;
cocos2d::CCNode::convertToNodeSpace(v49, v126, &unk_14090B788);
cocos2d::CCPoint::operator+(v55, v120, v54);
(*(void (__fastcall **)(_QWORD, _BYTE *))(**(_QWORD **)(a1 + 1048) + 184LL))(*(_QWORD *)(a1 + 1048), v120);
(*(void (__fastcall **)(struct cocos2d::CCSprite *))(*(_QWORD *)v49 + 120LL))(v49);
(*(void (__fastcall **)(struct cocos2d::CCSprite *))(*(_QWORD *)v49 + 136LL))(v49);
v56 = CCMenuItemSpriteExtra::create((int)v49, 0, a1, (__int64)SetupCameraOffsetTrigger::onEasingRate);
*(_QWORD *)(a1 + 1040) = v56;
(*(void (__fastcall **)(_QWORD, cocos2d::CCObject *))(**(_QWORD **)(a1 + 552) + 464LL))(*(_QWORD *)(a1 + 552), v56);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v126, 55.0, -2.0);
v58 = v57;
v59 = (*(__int64 (__fastcall **)(struct cocos2d::CCLabelBMFont *))(*(_QWORD *)v42 + 200LL))(v42);
cocos2d::CCPoint::operator+(v59, v120, v58);
v60 = *(__int64 **)(a1 + 1040);
v61 = *v60;
cocos2d::CCNode::convertToNodeSpace(*(_QWORD *)(a1 + 552), &v119, v120);
(*(void (__fastcall **)(__int64 *, __int64))(v61 + 184))(v60, v62);
*(_DWORD *)(*(_QWORD *)(a1 + 1040) + 372LL) = 1067030938;
SetupCameraOffsetTrigger::updateEasingRateLabel(a1);
SetupCameraOffsetTrigger::toggleEasingRateVisibility(a1);
v63 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_arrow_01_001.png");
cocos2d::CCSprite::setFlipX(v63, 1);
(*(void (__fastcall **)(cocos2d::CCSprite *))(*(_QWORD *)v63 + 160LL))(v63);
v64 = CCMenuItemSpriteExtra::create((int)v63, 0, a1, (__int64)SetupCameraOffsetTrigger::onEasing);
(*(void (__fastcall **)(_QWORD, cocos2d::CCObject *))(**(_QWORD **)(a1 + 552) + 464LL))(*(_QWORD *)(a1 + 552), v64);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v126, 100.0, 0.0);
v66 = v65;
v67 = (*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 1024) + 200LL))(*(_QWORD *)(a1 + 1024));
cocos2d::CCPoint::operator+(v67, v120, v66);
v68 = *(_QWORD *)v64;
cocos2d::CCNode::convertToNodeSpace(*(_QWORD *)(a1 + 552), &v119, v120);
(*(void (__fastcall **)(cocos2d::CCObject *, __int64))(v68 + 184))(v64, v69);
*((_DWORD *)v64 + 93) = 1068708659;
(*(void (__fastcall **)(cocos2d::CCObject *, __int64))(*(_QWORD *)v64 + 64LL))(v64, 1);
v70 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_arrow_01_001.png");
LODWORD(v68) = (_DWORD)v70;
(*(void (__fastcall **)(struct cocos2d::CCSprite *))(*(_QWORD *)v70 + 160LL))(v70);
v71 = CCMenuItemSpriteExtra::create(v68, 0, a1, (__int64)SetupCameraOffsetTrigger::onEasing);
(*(void (__fastcall **)(_QWORD, cocos2d::CCObject *))(**(_QWORD **)(a1 + 552) + 464LL))(*(_QWORD *)(a1 + 552), v71);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v126, -100.0, 0.0);
v73 = v72;
v74 = (*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 1024) + 200LL))(*(_QWORD *)(a1 + 1024));
cocos2d::CCPoint::operator+(v74, v120, v73);
v75 = *(_QWORD *)v71;
cocos2d::CCNode::convertToNodeSpace(*(_QWORD *)(a1 + 552), &v119, v120);
(*(void (__fastcall **)(cocos2d::CCObject *, __int64))(v75 + 184))(v71, v76);
*((_DWORD *)v71 + 93) = 1068708659;
(*(void (__fastcall **)(cocos2d::CCObject *, _QWORD))(*(_QWORD *)v71 + 64LL))(v71, 0);
v77 = 0;
LABEL_9:
v78 = -105.0;
do
{
v79 = SetupCameraOffsetTrigger::sliderXChanged;
if ( v77 )
v79 = SetupCameraOffsetTrigger::sliderYChanged;
v80 = "Offset X:";
if ( v77 )
{
v80 = "Offset Y:";
v78 = 105.0;
}
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v121, (float)(v142 * 0.5) + v78, (float)(v143 * 0.5) + 95.0);
v81 = cocos2d::CCLabelBMFont::create(v80, "goldFont.fnt");
(*(void (__fastcall **)(struct cocos2d::CCLabelBMFont *))(*(_QWORD *)v81 + 160LL))(v81);
(*(void (__fastcall **)(struct cocos2d::CCLabelBMFont *, float *))(*(_QWORD *)v81 + 184LL))(v81, &v121);
v82 = *(_QWORD *)v81;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v126, 1.0, 0.5);
(*(void (__fastcall **)(struct cocos2d::CCLabelBMFont *, __int64))(v82 + 288))(v81, v83);
(*(void (__fastcall **)(_QWORD, struct cocos2d::CCLabelBMFont *))(**(_QWORD **)(a1 + 584) + 464LL))(
*(_QWORD *)(a1 + 584),
v81);
cocos2d::CCRect::CCRect((cocos2d::CCRect *)v134, 0.0, 0.0, 40.0, 40.0);
cocos2d::CCRect::CCRect((cocos2d::CCRect *)&v127, (const struct cocos2d::CCRect *)v134);
v85 = (_QWORD *)cocos2d::extension::CCScale9Sprite::create("square02_small.png", v84);
v86 = v85[40];
v87 = *(void (__fastcall **)(_QWORD *, __int64))(v86 + 40);
LOBYTE(v86) = 100;
v87(v85 + 40, v86);
cocos2d::CCSize::CCSize((cocos2d::CCSize *)v133, 70.0, 30.0);
(*(void (__fastcall **)(_QWORD *, _BYTE *))(*v85 + 312LL))(v85, v133);
(*(void (__fastcall **)(_QWORD, _QWORD *, __int64))(**(_QWORD **)(a1 + 584) + 456LL))(
*(_QWORD *)(a1 + 584),
v85,
0xFFFFFFFFLL);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v135, 45.0, 0.0);
cocos2d::CCPoint::operator+(&v121, v120, v88);
(*(void (__fastcall **)(_QWORD *, _BYTE *))(*v85 + 184LL))(v85, v120);
v91 = 1088;
if ( v77 )
v91 = 1092;
v92 = *(_DWORD *)(v91 + a1);
v93 = "Mixed";
if ( v92 != -99999 )
v93 = "Num";
v94 = CCTextInputNode::create(v90, v89, (__int64)v93);
(*(void (__fastcall **)(_QWORD, char *, __int64))(**(_QWORD **)(a1 + 584) + 456LL))(
*(_QWORD *)(a1 + 584),
v94,
20);
v95 = *(_QWORD *)v94;
v96 = (*(__int64 (__fastcall **)(_QWORD *))(*v85 + 200LL))(v85);
(*(void (__fastcall **)(char *, __int64))(v95 + 184))(v94, v96);
*((_DWORD *)v94 + 141) = 1058642330;
CCTextInputNode::refreshLabel((__int64)v94);
*((_DWORD *)v94 + 140) = 1128792064;
CCTextInputNode::refreshLabel((__int64)v94);
(*(void (__fastcall **)(_QWORD, _QWORD))(**((_QWORD **)v94 + 74) + 336LL))(*((_QWORD *)v94 + 74), 0);
*((_DWORD *)v94 + 152) = 5;
v124 = 11;
v125 = 15;
*(_QWORD *)&v123 = 0x3736353433323130LL;
*((_QWORD *)&v123 + 1) = 2963768;
CCTextInputNode::setAllowedChars((__int64)v94, (void **)&v123);
*((_WORD *)v94 + 286) = -21896;
v94[574] = -16;
CCTextInputNode::refreshLabel((__int64)v94);
*((_DWORD *)v94 + 142) = 1056964608;
CCTextInputNode::refreshLabel((__int64)v94);
*((_QWORD *)v94 + 75) = v131[0];
v94[424] = 1;
if ( v77 )
{
*(_QWORD *)(a1 + 1064) = v94;
v97 = 1;
}
else
{
*(_QWORD *)(a1 + 1056) = v94;
v97 = 0;
}
(*(void (__fastcall **)(char *, __int64))(*(_QWORD *)v94 + 64LL))(v94, v97);
v99 = Slider::create(
a1,
(__int64)v79,
v98,
"slidergroove.png",
(__int64)"sliderthumb.png",
(__int64)"sliderthumbsel.png",
0.80000001);
(*(void (__fastcall **)(_QWORD, _QWORD))(**((_QWORD **)v99 + 52) + 336LL))(*((_QWORD *)v99 + 52), 0);
(*(void (__fastcall **)(_QWORD, cocos2d::CCLayer *))(**(_QWORD **)(a1 + 584) + 464LL))(*(_QWORD *)(a1 + 584), v99);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v136, 0.0, -32.0);
cocos2d::CCPoint::operator+(&v121, &v119, v100);
(*(void (__fastcall **)(cocos2d::CCLayer *, __int128 **))(*(_QWORD *)v99 + 184LL))(v99, &v119);
v101 = 0.5;
if ( v92 != -99999 )
{
v101 = fminf(1.0, (float)(floorf((float)v92 / 3.0) / 200.0) + 0.5);
if ( v101 < 0.0 )
v101 = 0.0;
}
Slider::setValue((__int64)v99, v101);
if ( v77 )
*(_QWORD *)(a1 + 1080) = v99;
else
*(_QWORD *)(a1 + 1072) = v99;
v102 = *(_DWORD *)(a1 + 1096);
v124 = 6;
v125 = 15;
v131[1] = &v123;
v123 = 0;
BYTE6(v123) = 0;
if ( !v77 )
{
qmemcpy(&v123, "X Only", 6);
v103 = *(_QWORD *)(a1 + 584);
v104 = v122 - 60.0;
v105 = v121 - 60.0;
v106 = *(_QWORD *)(a1 + 552);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v137, 8.0, 0.0);
v108 = v107;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v138, v105, v104);
ToggleButton = GameToolbox::createToggleButton(
(const char *)&v123,
(__int64)SetupCameraOffsetTrigger::onTargetMode,
v102 == 1,
v106,
v109,
a1,
v103,
0.60000002,
0.40000001,
0.0,
v108,
(const char *)&qword_140704F78,
0,
0,
nullptr);
*(_QWORD *)(a1 + 1104) = ToggleButton;
(*(void (__fastcall **)(cocos2d::CCMenuItem *, __int64))(*(_QWORD *)ToggleButton + 64LL))(ToggleButton, 1);
*(_BYTE *)(*(_QWORD *)(a1 + 1104) + 393LL) = 1;
v77 = 1;
goto LABEL_9;
}
qmemcpy(&v123, "Y Only", 6);
v111 = *(_QWORD *)(a1 + 584);
v112 = v122 - 60.0;
v113 = v121 - 60.0;
v114 = *(_QWORD *)(a1 + 552);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v139, 8.0, 0.0);
v116 = v115;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v140, v113, v112);
v118 = GameToolbox::createToggleButton(
(const char *)&v123,
(__int64)SetupCameraOffsetTrigger::onTargetMode,
v102 == 2,
v114,
v117,
a1,
v111,
0.60000002,
0.40000001,
0.0,
v116,
(const char *)&qword_140704F78,
0,
0,
nullptr);
*(_QWORD *)(a1 + 1112) = v118;
(*(void (__fastcall **)(cocos2d::CCMenuItem *, __int64))(*(_QWORD *)v118 + 64LL))(v118, 2);
*(_BYTE *)(*(_QWORD *)(a1 + 1112) + 393LL) = 1;
++v77;
v78 = -105.0;
}
while ( v77 < 2 );
SetupTriggerPopup::createMultiTriggerItemsDefault(a1);
SetupCameraOffsetTrigger::updateValueXLabel(a1);
SetupCameraOffsetTrigger::updateValueYLabel(a1);
SetupCameraOffsetTrigger::updateEasingLabel(a1);
*(_BYTE *)(a1 + 744) = 0;
return 1;
}
return result;
}