//
// SetupObjectOptionsPopup::init from 0x140594a20 to 0x1405964a3 (6787 bytes)
//
// 2 xrefs:
// > SetupObjectOptionsPopup::create @ 0x1405949d2
// > ??> @ 0x14092d020
//
// 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:33 +0000
//
// Hidden C++ exception states: #wind=4
bool __fastcall SetupObjectOptionsPopup::init(__int64 a1, cocos2d::CCObject *a2, cocos2d::CCObject *a3)
{
bool result; // al
__int64 v7; // rdx
__int64 v8; // rcx
cocos2d::CCObject *v9; // rcx
__int64 v10; // rax
__int64 v11; // rax
__int64 *v12; // rdi
__int64 v13; // rbx
__int64 v14; // rax
__int64 v15; // rbx
__int64 v16; // rax
__int64 v17; // rcx
__int64 v18; // rax
__int64 v19; // rdi
__int64 v20; // rbx
__int64 v21; // rax
struct cocos2d::CCLabelBMFont *v22; // rdi
__int64 v23; // rbx
__int64 v24; // rax
cocos2d::CCObject *v25; // rbx
cocos2d::CCObject *v26; // rax
_QWORD *v27; // rax
_QWORD *v28; // rcx
const char *v29; // rdx
__int64 v30; // r8
char *v31; // rsi
__int64 v32; // rdi
__int64 v33; // rbx
__int64 v34; // rax
__int64 v35; // rax
__int64 v36; // rax
__int64 v37; // rbx
__int64 v38; // rdi
float *v39; // rax
__int64 v40; // rax
__int64 v41; // rbx
__int64 v42; // rdi
float *v43; // rax
__int64 v44; // rax
__int64 v45; // rbx
__int64 v46; // rdi
float *v47; // rax
__int64 v48; // rax
__int64 v49; // rbx
__int64 v50; // rdi
float *v51; // rax
__int64 v52; // rax
__int64 v53; // rbx
__int64 v54; // rdi
float *v55; // rax
__int64 v56; // rax
__int64 v57; // rbx
__int64 v58; // rdi
float *v59; // rax
__int64 v60; // rax
__int64 v61; // rbx
__int64 v62; // rdi
float *v63; // rax
__int64 v64; // rax
__int64 v65; // rbx
__int64 v66; // rdi
unsigned __int8 v67; // si
float *v68; // rax
__int64 v69; // rax
__int64 v70; // rbx
__int64 v71; // rdi
unsigned __int8 v72; // si
float *v73; // rax
__int64 v74; // rax
__int64 v75; // rbx
__int64 v76; // rdi
unsigned __int8 v77; // si
float *v78; // rax
__int64 v79; // rax
__int64 v80; // rbx
__int64 v81; // rdi
unsigned __int8 v82; // si
float *v83; // rax
__int64 v84; // rax
__int64 v85; // rbx
__int64 v86; // rdi
unsigned __int8 v87; // si
float *v88; // rax
__int64 v89; // rax
__int64 v90; // rbx
__int64 v91; // rdi
unsigned __int8 v92; // si
float *v93; // rax
__int64 v94; // rax
__int64 v95; // rbx
__int64 v96; // rdi
unsigned __int8 v97; // si
float *v98; // rax
__int64 v99; // rax
__int64 v100; // rbx
__int64 v101; // rdi
unsigned __int8 v102; // si
float *v103; // rax
__int64 v104; // rax
__int64 v105; // rbx
__int64 v106; // rdi
unsigned __int8 v107; // si
float *v108; // rax
__int64 v109; // rax
__int64 v110; // rbx
__int64 v111; // rdi
unsigned __int8 v112; // si
float *v113; // rax
__int64 v114; // rax
__int64 v115; // rbx
__int64 v116; // rdi
unsigned __int8 v117; // si
float *v118; // rax
__int64 v119; // rax
__int64 v120; // rbx
__int64 v121; // rdi
unsigned __int8 v122; // si
float *v123; // rax
__int64 v124; // rax
__int64 v125; // rbx
__int64 v126; // rdi
unsigned __int8 v127; // si
float *v128; // rax
__int64 v129; // rax
__int64 v130; // rbx
__int64 v131; // rdi
unsigned __int8 v132; // si
float *v133; // rax
__int64 v134; // rax
__int64 v135; // rbx
__int64 v136; // rdi
unsigned __int8 v137; // si
float *v138; // rax
__int64 v139; // rax
__int64 v140; // rbx
__int64 v141; // rdi
unsigned __int8 v142; // si
float *v143; // rax
_DWORD *v144; // rcx
__int64 v145; // rax
__int64 v146; // rbx
__int64 v147; // rdi
unsigned __int8 v148; // si
float *v149; // rax
__int128 *v150; // [rsp+88h] [rbp-80h] BYREF
__int128 v151; // [rsp+90h] [rbp-78h] BYREF
__int64 v152; // [rsp+A0h] [rbp-68h]
__int64 v153; // [rsp+A8h] [rbp-60h]
__int128 *v154; // [rsp+B0h] [rbp-58h] BYREF
_BYTE v155[8]; // [rsp+B8h] [rbp-50h] BYREF
float v156; // [rsp+C0h] [rbp-48h] BYREF
float v157; // [rsp+C4h] [rbp-44h]
__int128 v158; // [rsp+C8h] [rbp-40h] BYREF
__int64 v159; // [rsp+D8h] [rbp-30h]
__int64 v160; // [rsp+E0h] [rbp-28h]
float v161; // [rsp+170h] [rbp+68h] BYREF
result = FLAlertLayer::init_1(a1, 150);
if ( !result )
return result;
LOBYTE(v7) = 1;
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)a1 + 1008LL))(a1, v7);
if ( a2 )
{
*(_QWORD *)(a1 + 664) = a2;
v9 = a2;
LABEL_6:
cocos2d::CCObject::retain(v9);
goto LABEL_7;
}
if ( a3 )
{
*(_QWORD *)(a1 + 672) = a3;
v9 = a3;
goto LABEL_6;
}
LABEL_7:
*(_BYTE *)(a1 + 596) = 1;
v10 = cocos2d::CCDirector::sharedDirector(v8);
cocos2d::CCDirector::getWinSize(v10, &v156);
cocos2d::CCRect::CCRect((cocos2d::CCRect *)&v158, 0.0, 0.0, 80.0, 80.0);
v12 = (__int64 *)cocos2d::extension::CCScale9Sprite::create("GJ_square02.png", v11);
v13 = *v12;
cocos2d::CCSize::CCSize((cocos2d::CCSize *)&v150, 390.0, 310.0);
(*(void (__fastcall **)(__int64 *, __int64))(v13 + 312))(v12, v14);
(*(void (__fastcall **)(_QWORD, __int64 *, __int64))(**(_QWORD **)(a1 + 584) + 456LL))(
*(_QWORD *)(a1 + 584),
v12,
4294967294LL);
v15 = *v12;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v150, v156 * 0.5, v157 * 0.5);
(*(void (__fastcall **)(__int64 *, __int64))(v15 + 184))(v12, v16);
v18 = cocos2d::CCMenu::create(v17);
*(_QWORD *)(a1 + 552) = v18;
(*(void (__fastcall **)(_QWORD, __int64, __int64))(**(_QWORD **)(a1 + 584) + 456LL))(*(_QWORD *)(a1 + 584), v18, 10);
v19 = **(_QWORD **)(a1 + 552);
v20 = *(_QWORD *)(a1 + 552);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v150, v156 * 0.5, (float)((float)(v157 * 0.5) - 155.0) + 24.0);
(*(void (__fastcall **)(__int64, __int64))(v19 + 184))(v20, v21);
(*(void (__fastcall **)(__int64))(*(_QWORD *)a1 + 1080LL))(a1);
v22 = cocos2d::CCLabelBMFont::create("Object Options", "goldFont.fnt");
(*(void (__fastcall **)(__int64, struct cocos2d::CCLabelBMFont *))(*(_QWORD *)a1 + 464LL))(a1, v22);
(*(void (__fastcall **)(struct cocos2d::CCLabelBMFont *))(*(_QWORD *)v22 + 160LL))(v22);
v23 = *(_QWORD *)v22;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v150, v156 * 0.5, (float)((float)(v157 * 0.5) + 155.0) - 15.0);
(*(void (__fastcall **)(struct cocos2d::CCLabelBMFont *, __int64))(v23 + 184))(v22, v24);
v150 = (__int128 *)operator new(0x2C8u);
v25 = (cocos2d::CCObject *)ButtonSprite::ButtonSprite((__int64)v150);
if ( v25 )
{
if ( ButtonSprite::init_1(
(__int64)v25,
(__int64)"OK",
40,
0,
1061997773,
1,
"goldFont.fnt",
(__int64)"GJ_button_01.png",
1106247680) )
{
cocos2d::CCObject::autorelease(v25);
}
else
{
(*(void (__fastcall **)(cocos2d::CCObject *, __int64))(*(_QWORD *)v25 + 8LL))(v25, 1);
v25 = nullptr;
}
}
(*(void (__fastcall **)(cocos2d::CCObject *))(*(_QWORD *)v25 + 160LL))(v25);
v26 = CCMenuItemSpriteExtra::create((int)v25, 0, a1, (__int64)sub_140597EAC);
(*(void (__fastcall **)(_QWORD, cocos2d::CCObject *))(**(_QWORD **)(a1 + 552) + 464LL))(*(_QWORD *)(a1 + 552), v26);
v150 = &v151;
v151 = 0;
v152 = 0;
v153 = 0;
v27 = sub_14003D460(0x1B0u);
*(_QWORD *)&v151 = v27;
v152 = 430;
v153 = 431;
v28 = v27;
v29 = "NoTouch disables player collision for solid objects.\n"
"No Effects disables effects for portals.\n"
"Passable lets you jump through solid blocks.\n"
"Hide makes the opacity 0.\n"
"Dont BoostY and BoostX let you disable player being bounced from interaction with moving objects on each"
" axis.\n"
"IceBlock, GripSlope, NonStickX, NonStickY, ExtraSticky, and ScaleStick are meant for Platformer game type.";
v30 = 3;
do
{
*(_OWORD *)v28 = *(_OWORD *)v29;
*((_OWORD *)v28 + 1) = *((_OWORD *)v29 + 1);
*((_OWORD *)v28 + 2) = *((_OWORD *)v29 + 2);
*((_OWORD *)v28 + 3) = *((_OWORD *)v29 + 3);
*((_OWORD *)v28 + 4) = *((_OWORD *)v29 + 4);
*((_OWORD *)v28 + 5) = *((_OWORD *)v29 + 5);
*((_OWORD *)v28 + 6) = *((_OWORD *)v29 + 6);
v28 += 16;
*((_OWORD *)v28 - 1) = *((_OWORD *)v29 + 7);
v29 += 128;
--v30;
}
while ( v30 );
*(_OWORD *)v28 = *(_OWORD *)v29;
*((_OWORD *)v28 + 1) = *((_OWORD *)v29 + 1);
v28[4] = *((_QWORD *)v29 + 4);
*((_DWORD *)v28 + 10) = *((_DWORD *)v29 + 10);
*((_WORD *)v28 + 22) = *((_WORD *)v29 + 22);
*((_BYTE *)v27 + 430) = 0;
v158 = 0;
v159 = 4;
v160 = 15;
strcpy((char *)&v158, "Help");
v31 = InfoAlertButton::create((__int64)&v158, (__int64)&v151);
(*(void (__fastcall **)(char *))(*(_QWORD *)v31 + 160LL))(v31);
(*(void (__fastcall **)(_QWORD, char *))(**(_QWORD **)(a1 + 552) + 464LL))(*(_QWORD *)(a1 + 552), v31);
v32 = *(_QWORD *)v31;
v33 = *(_QWORD *)(a1 + 552);
cocos2d::CCPoint::CCPoint(
(cocos2d::CCPoint *)&v150,
(float)((float)(v156 * 0.5) - 195.0) + 16.0,
(float)((float)(v157 * 0.5) + 155.0) - 14.0);
cocos2d::CCNode::convertToNodeSpace(v33, &v154, v34);
(*(void (__fastcall **)(char *, __int64))(v32 + 184))(v31, v35);
cocos2d::CCPoint::CCPoint(
(cocos2d::CCPoint *)&v161,
(float)((float)(v156 * 0.5) - 60.0) - 90.0,
(float)(v157 * 0.5) + 112.0);
v154 = &v151;
*((_QWORD *)&v151 + 1) = 101;
v152 = 9;
v153 = 15;
*(_QWORD *)&v151 = 0x6461460A746E6F44LL;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v155, 0.0, -0.0);
cocos2d::CCPoint::operator+(&v161, &v150, v36);
v37 = *(_QWORD *)(a1 + 584);
v38 = *(_QWORD *)(a1 + 552);
LOBYTE(v31) = *(_BYTE *)(a1 + 681);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v158, 8.0, 0.0);
GameToolbox::createToggleButton(
(const char *)&v151,
(__int64)SetupObjectOptionsPopup::onDontFade,
(unsigned __int8)v31,
v38,
(__int64)&v150,
a1,
v37,
0.69999999,
0.34999999,
110.0,
v39,
(const char *)&qword_140704F78,
0,
0,
nullptr);
*(_QWORD *)&v158 = &v151;
*((_QWORD *)&v151 + 1) = 29285;
v152 = 10;
v153 = 15;
*(_QWORD *)&v151 = 0x746E450A746E6F44LL;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v155, 0.0, -30.0);
cocos2d::CCPoint::operator+(&v161, &v150, v40);
v41 = *(_QWORD *)(a1 + 584);
v42 = *(_QWORD *)(a1 + 552);
LOBYTE(v31) = *(_BYTE *)(a1 + 682);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v154, 8.0, 0.0);
GameToolbox::createToggleButton(
(const char *)&v151,
(__int64)SetupObjectOptionsPopup::onDontEnter,
(unsigned __int8)v31,
v42,
(__int64)&v150,
a1,
v41,
0.69999999,
0.34999999,
110.0,
v43,
(const char *)&qword_140704F78,
0,
0,
nullptr);
*(_QWORD *)&v158 = &v151;
*((_QWORD *)&v151 + 1) = 29556;
v152 = 10;
v153 = 15;
*(_QWORD *)&v151 = 0x63656666450A6F4ELL;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v155, 0.0, -60.0);
cocos2d::CCPoint::operator+(&v161, &v150, v44);
v45 = *(_QWORD *)(a1 + 584);
v46 = *(_QWORD *)(a1 + 552);
LOBYTE(v31) = *(_BYTE *)(a1 + 683);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v154, 8.0, 0.0);
GameToolbox::createToggleButton(
(const char *)&v151,
(__int64)SetupObjectOptionsPopup::onHideEffects,
(unsigned __int8)v31,
v46,
(__int64)&v150,
a1,
v45,
0.69999999,
0.34999999,
110.0,
v47,
(const char *)&qword_140704F78,
0,
0,
nullptr);
*(_QWORD *)&v158 = &v151;
v152 = 12;
v153 = 15;
strcpy((char *)&v151, "Group\nParent");
BYTE13(v151) = 0;
HIWORD(v151) = 0;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v155, 0.0, -90.0);
cocos2d::CCPoint::operator+(&v161, &v150, v48);
v49 = *(_QWORD *)(a1 + 584);
v50 = *(_QWORD *)(a1 + 552);
LOBYTE(v31) = *(_BYTE *)(a1 + 696);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v154, 8.0, 0.0);
GameToolbox::createToggleButton(
(const char *)&v151,
(__int64)SetupObjectOptionsPopup::onToggleGroupParent,
(unsigned __int8)v31,
v50,
(__int64)&v150,
a1,
v49,
0.69999999,
0.34999999,
110.0,
v51,
(const char *)&qword_140704F78,
0,
0,
nullptr);
*(_QWORD *)&v158 = &v151;
v152 = 11;
v153 = 15;
*(_QWORD *)&v151 = 0x7261500A61657241LL;
*((_QWORD *)&v151 + 1) = 7630437;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v155, 0.0, -120.0);
cocos2d::CCPoint::operator+(&v161, &v150, v52);
v53 = *(_QWORD *)(a1 + 584);
v54 = *(_QWORD *)(a1 + 552);
LOBYTE(v31) = *(_BYTE *)(a1 + 697);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v154, 8.0, 0.0);
GameToolbox::createToggleButton(
(const char *)&v151,
(__int64)SetupObjectOptionsPopup::onToggleAreaParent,
(unsigned __int8)v31,
v54,
(__int64)&v150,
a1,
v53,
0.69999999,
0.34999999,
110.0,
v55,
(const char *)&qword_140704F78,
0,
0,
nullptr);
*(_QWORD *)&v158 = &v151;
v152 = 11;
v153 = 15;
*(_QWORD *)&v151 = 0x6F6F420A746E6F44LL;
*((_QWORD *)&v151 + 1) = 5862515;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v155, 0.0, -150.0);
cocos2d::CCPoint::operator+(&v161, &v150, v56);
v57 = *(_QWORD *)(a1 + 584);
v58 = *(_QWORD *)(a1 + 552);
LOBYTE(v31) = *(_BYTE *)(a1 + 691);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v154, 8.0, 0.0);
GameToolbox::createToggleButton(
(const char *)&v151,
(__int64)SetupObjectOptionsPopup::onDontBoost,
(unsigned __int8)v31,
v58,
(__int64)&v150,
a1,
v57,
0.69999999,
0.34999999,
110.0,
v59,
(const char *)&qword_140704F78,
0,
0,
nullptr);
*(_QWORD *)&v158 = &v151;
v152 = 11;
v153 = 15;
*(_QWORD *)&v151 = 0x6F6F420A746E6F44LL;
*((_QWORD *)&v151 + 1) = 5796979;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v155, 0.0, -180.0);
cocos2d::CCPoint::operator+(&v161, &v150, v60);
v61 = *(_QWORD *)(a1 + 584);
v62 = *(_QWORD *)(a1 + 552);
LOBYTE(v31) = *(_BYTE *)(a1 + 692);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v154, 8.0, 0.0);
GameToolbox::createToggleButton(
(const char *)&v151,
(__int64)SetupObjectOptionsPopup::onDontBoostX,
(unsigned __int8)v31,
v62,
(__int64)&v150,
a1,
v61,
0.69999999,
0.34999999,
110.0,
v63,
(const char *)&qword_140704F78,
0,
0,
nullptr);
if ( *(_BYTE *)(a1 + 704) )
{
*(_QWORD *)&v158 = &v151;
v152 = 13;
v153 = 15;
strcpy((char *)&v151, "Single\nPTouch");
HIWORD(v151) = 0;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v155, 0.0, -210.0);
cocos2d::CCPoint::operator+(&v161, &v150, v64);
v65 = *(_QWORD *)(a1 + 584);
v66 = *(_QWORD *)(a1 + 552);
v67 = *(_BYTE *)(a1 + 705);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v154, 8.0, 0.0);
GameToolbox::createToggleButton(
(const char *)&v151,
(__int64)SetupObjectOptionsPopup::onSinglePlayerTouch,
v67,
v66,
(__int64)&v150,
a1,
v65,
0.69999999,
0.34999999,
110.0,
v68,
(const char *)&qword_140704F78,
0,
0,
nullptr);
}
v161 = v161 + 120.0;
*(_QWORD *)&v158 = &v151;
v152 = 11;
v153 = 15;
*(_QWORD *)&v151 = 0x7465440A68676948LL;
*((_QWORD *)&v151 + 1) = 7104865;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v155, 0.0, -0.0);
cocos2d::CCPoint::operator+(&v161, &v150, v69);
v70 = *(_QWORD *)(a1 + 584);
v71 = *(_QWORD *)(a1 + 552);
v72 = *(_BYTE *)(a1 + 695);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v154, 8.0, 0.0);
GameToolbox::createToggleButton(
(const char *)&v151,
(__int64)SetupObjectOptionsPopup::onHighDetail,
v72,
v71,
(__int64)&v150,
a1,
v70,
0.69999999,
0.34999999,
110.0,
v73,
(const char *)&qword_140704F78,
0,
0,
nullptr);
*(_QWORD *)&v158 = &v151;
v152 = 7;
v153 = 15;
v151 = 0x6863756F546F4EuLL;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v155, 0.0, -30.0);
cocos2d::CCPoint::operator+(&v161, &v150, v74);
v75 = *(_QWORD *)(a1 + 584);
v76 = *(_QWORD *)(a1 + 552);
v77 = *(_BYTE *)(a1 + 685);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v154, 8.0, 0.0);
GameToolbox::createToggleButton(
(const char *)&v151,
(__int64)SetupObjectOptionsPopup::onDisableObject,
v77,
v76,
(__int64)&v150,
a1,
v75,
0.69999999,
0.34999999,
110.0,
v78,
(const char *)&qword_140704F78,
0,
0,
nullptr);
*(_QWORD *)&v158 = &v151;
v152 = 8;
v153 = 15;
v151 = 0x656C626173736150uLL;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v155, 0.0, -60.0);
cocos2d::CCPoint::operator+(&v161, &v150, v79);
v80 = *(_QWORD *)(a1 + 584);
v81 = *(_QWORD *)(a1 + 552);
v82 = *(_BYTE *)(a1 + 686);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v154, 8.0, 0.0);
GameToolbox::createToggleButton(
(const char *)&v151,
(__int64)SetupObjectOptionsPopup::onPassable,
v82,
v81,
(__int64)&v150,
a1,
v80,
0.69999999,
0.34999999,
110.0,
v83,
(const char *)&qword_140704F78,
0,
0,
nullptr);
*(_QWORD *)&v158 = &v151;
v151 = 0;
v152 = 4;
v153 = 15;
strcpy((char *)&v151, "Hide");
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v155, 0.0, -90.0);
cocos2d::CCPoint::operator+(&v161, &v150, v84);
v85 = *(_QWORD *)(a1 + 584);
v86 = *(_QWORD *)(a1 + 552);
v87 = *(_BYTE *)(a1 + 687);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v154, 8.0, 0.0);
GameToolbox::createToggleButton(
(const char *)&v151,
(__int64)SetupObjectOptionsPopup::onAlwaysHide,
v87,
v86,
(__int64)&v150,
a1,
v85,
0.69999999,
0.34999999,
110.0,
v88,
(const char *)&qword_140704F78,
0,
0,
nullptr);
*(_QWORD *)&v158 = &v151;
*((_QWORD *)&v151 + 1) = 88;
v152 = 9;
v153 = 15;
*(_QWORD *)&v151 = 0x6B636974536E6F4ELL;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v155, 0.0, -120.0);
cocos2d::CCPoint::operator+(&v161, &v150, v89);
v90 = *(_QWORD *)(a1 + 584);
v91 = *(_QWORD *)(a1 + 552);
v92 = *(_BYTE *)(a1 + 688);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v154, 8.0, 0.0);
GameToolbox::createToggleButton(
(const char *)&v151,
(__int64)SetupObjectOptionsPopup::onNonStickX,
v92,
v91,
(__int64)&v150,
a1,
v90,
0.69999999,
0.34999999,
110.0,
v93,
(const char *)&qword_140704F78,
0,
0,
nullptr);
*(_QWORD *)&v158 = &v151;
v152 = 11;
v153 = 15;
*(_QWORD *)&v151 = 0x6974536172747845LL;
*((_QWORD *)&v151 + 1) = 7957347;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v155, 0.0, -150.0);
cocos2d::CCPoint::operator+(&v161, &v150, v94);
v95 = *(_QWORD *)(a1 + 584);
v96 = *(_QWORD *)(a1 + 552);
v97 = *(_BYTE *)(a1 + 690);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v154, 8.0, 0.0);
GameToolbox::createToggleButton(
(const char *)&v151,
(__int64)SetupObjectOptionsPopup::onExtraSticky,
v97,
v96,
(__int64)&v150,
a1,
v95,
0.69999999,
0.34999999,
110.0,
v98,
(const char *)&qword_140704F78,
0,
0,
nullptr);
*(_QWORD *)&v158 = &v151;
v151 = 0;
v152 = 0;
v153 = 0;
*(_QWORD *)&v151 = sub_14003D460(0x20u);
v152 = 18;
v153 = 31;
strcpy((char *)v151, "Extended\nCollision");
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v155, 0.0, -180.0);
cocos2d::CCPoint::operator+(&v161, &v150, v99);
v100 = *(_QWORD *)(a1 + 584);
v101 = *(_QWORD *)(a1 + 552);
v102 = *(_BYTE *)(a1 + 701);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v154, 8.0, 0.0);
GameToolbox::createToggleButton(
(const char *)&v151,
(__int64)SetupObjectOptionsPopup::onExtendedCollision,
v102,
v101,
(__int64)&v150,
a1,
v100,
0.69999999,
0.34999999,
110.0,
v103,
(const char *)&qword_140704F78,
0,
0,
nullptr);
if ( *(_BYTE *)(a1 + 704) )
{
*(_QWORD *)&v158 = &v151;
v152 = 13;
v153 = 15;
strcpy((char *)&v151, "Center\nEffect");
HIWORD(v151) = 0;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v155, 0.0, -210.0);
cocos2d::CCPoint::operator+(&v161, &v150, v104);
v105 = *(_QWORD *)(a1 + 584);
v106 = *(_QWORD *)(a1 + 552);
v107 = *(_BYTE *)(a1 + 706);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v154, 8.0, 0.0);
GameToolbox::createToggleButton(
(const char *)&v151,
(__int64)SetupObjectOptionsPopup::onCenterEffect,
v107,
v106,
(__int64)&v150,
a1,
v105,
0.69999999,
0.34999999,
110.0,
v108,
(const char *)&qword_140704F78,
0,
0,
nullptr);
}
v161 = v161 + 120.0;
*(_QWORD *)&v158 = &v151;
v152 = 8;
v153 = 15;
v151 = 0x6B636F6C42656349uLL;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v155, 0.0, -0.0);
cocos2d::CCPoint::operator+(&v161, &v150, v109);
v110 = *(_QWORD *)(a1 + 584);
v111 = *(_QWORD *)(a1 + 552);
v112 = *(_BYTE *)(a1 + 680);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v154, 8.0, 0.0);
GameToolbox::createToggleButton(
(const char *)&v151,
(__int64)SetupObjectOptionsPopup::onIceBlock,
v112,
v111,
(__int64)&v150,
a1,
v110,
0.69999999,
0.34999999,
110.0,
v113,
(const char *)&qword_140704F78,
0,
0,
nullptr);
*(_QWORD *)&v158 = &v151;
*((_QWORD *)&v151 + 1) = 101;
v152 = 9;
v153 = 15;
*(_QWORD *)&v151 = 0x706F6C5370697247LL;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v155, 0.0, -30.0);
cocos2d::CCPoint::operator+(&v161, &v150, v114);
v115 = *(_QWORD *)(a1 + 584);
v116 = *(_QWORD *)(a1 + 552);
v117 = *(_BYTE *)(a1 + 698);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v154, 8.0, 0.0);
GameToolbox::createToggleButton(
(const char *)&v151,
(__int64)SetupObjectOptionsPopup::onGripSlope,
v117,
v116,
(__int64)&v150,
a1,
v115,
0.69999999,
0.34999999,
110.0,
v118,
(const char *)&qword_140704F78,
0,
0,
nullptr);
*(_QWORD *)&v158 = &v151;
v151 = 0;
v152 = 6;
v153 = 15;
strcpy((char *)&v151, "NoGlow");
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v155, 0.0, -60.0);
cocos2d::CCPoint::operator+(&v161, &v150, v119);
v120 = *(_QWORD *)(a1 + 584);
v121 = *(_QWORD *)(a1 + 552);
v122 = *(_BYTE *)(a1 + 699);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v154, 8.0, 0.0);
GameToolbox::createToggleButton(
(const char *)&v151,
(__int64)SetupObjectOptionsPopup::onDisableGlow,
v122,
v121,
(__int64)&v150,
a1,
v120,
0.69999999,
0.34999999,
110.0,
v123,
(const char *)&qword_140704F78,
0,
0,
nullptr);
*(_QWORD *)&v158 = &v151;
*((_QWORD *)&v151 + 1) = 25964;
v152 = 10;
v153 = 15;
*(_QWORD *)&v151 = 0x6369747261506F4ELL;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v155, 0.0, -90.0);
cocos2d::CCPoint::operator+(&v161, &v150, v124);
v125 = *(_QWORD *)(a1 + 584);
v126 = *(_QWORD *)(a1 + 552);
v127 = *(_BYTE *)(a1 + 684);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v154, 8.0, 0.0);
GameToolbox::createToggleButton(
(const char *)&v151,
(__int64)SetupObjectOptionsPopup::onNoParticle,
v127,
v126,
(__int64)&v150,
a1,
v125,
0.69999999,
0.34999999,
110.0,
v128,
(const char *)&qword_140704F78,
0,
0,
nullptr);
*(_QWORD *)&v158 = &v151;
*((_QWORD *)&v151 + 1) = 89;
v152 = 9;
v153 = 15;
*(_QWORD *)&v151 = 0x6B636974536E6F4ELL;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v155, 0.0, -120.0);
cocos2d::CCPoint::operator+(&v161, &v150, v129);
v130 = *(_QWORD *)(a1 + 584);
v131 = *(_QWORD *)(a1 + 552);
v132 = *(_BYTE *)(a1 + 689);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v154, 8.0, 0.0);
GameToolbox::createToggleButton(
(const char *)&v151,
(__int64)SetupObjectOptionsPopup::onNonStickY,
v132,
v131,
(__int64)&v150,
a1,
v130,
0.69999999,
0.34999999,
110.0,
v133,
(const char *)&qword_140704F78,
0,
0,
nullptr);
*(_QWORD *)&v158 = &v151;
*((_QWORD *)&v151 + 1) = 27491;
v152 = 10;
v153 = 15;
*(_QWORD *)&v151 = 0x697453656C616353LL;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v155, 0.0, -150.0);
cocos2d::CCPoint::operator+(&v161, &v150, v134);
v135 = *(_QWORD *)(a1 + 584);
v136 = *(_QWORD *)(a1 + 552);
v137 = *(_BYTE *)(a1 + 694);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v154, 8.0, 0.0);
GameToolbox::createToggleButton(
(const char *)&v151,
(__int64)SetupObjectOptionsPopup::onApplyScaleStick,
v137,
v136,
(__int64)&v150,
a1,
v135,
0.69999999,
0.34999999,
110.0,
v138,
(const char *)&qword_140704F78,
0,
0,
nullptr);
*(_QWORD *)&v158 = &v151;
v152 = 14;
v153 = 15;
strcpy((char *)&v151, "No Audio\nScale");
HIBYTE(v151) = 0;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v155, 0.0, -180.0);
cocos2d::CCPoint::operator+(&v161, &v150, v139);
v140 = *(_QWORD *)(a1 + 584);
v141 = *(_QWORD *)(a1 + 552);
v142 = *(_BYTE *)(a1 + 693);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v154, 8.0, 0.0);
GameToolbox::createToggleButton(
(const char *)&v151,
(__int64)SetupObjectOptionsPopup::onNoAudioScale,
v142,
v141,
(__int64)&v150,
a1,
v140,
0.69999999,
0.34999999,
110.0,
v143,
(const char *)&qword_140704F78,
0,
0,
nullptr);
v144 = *(_DWORD **)(a1 + 664);
if ( v144 && v144[314] == 1 )
{
if ( (*(unsigned __int8 (__fastcall **)(_DWORD *))(*(_QWORD *)v144 + 1528LL))(v144) )
{
*(_QWORD *)&v158 = &v151;
v152 = 7;
v153 = 15;
v151 = 0x65737265766552uLL;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v155, 0.0, -210.0);
cocos2d::CCPoint::operator+(&v161, &v150, v145);
v146 = *(_QWORD *)(a1 + 584);
v147 = *(_QWORD *)(a1 + 552);
v148 = *(_BYTE *)(a1 + 700);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v154, 8.0, 0.0);
GameToolbox::createToggleButton(
(const char *)&v151,
(__int64)SetupObjectOptionsPopup::onReverse,
v148,
v147,
(__int64)&v150,
a1,
v146,
0.69999999,
0.34999999,
110.0,
v149,
(const char *)&qword_140704F78,
0,
0,
nullptr);
}
}
return 1;
}