//
// SetupObjectOptionsPopup::init from 0xabc6b8 to 0xabdf48 (6288 bytes)
//
// 2 xrefs:
// > SetupObjectOptionsPopup::create @ 0xabe138
// > ??> @ 0x6c328
//
// This function is hookable on this platform (idp: arm, 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 13:01:03 +0000
//
__int64 __fastcall SetupObjectOptionsPopup::init(SetupObjectOptionsPopup *this, GameObject *a2, cocos2d::CCArray *a3)
{
unsigned __int8 v6; // w0
unsigned int v7; // w27
cocos2d::CCDirector *v9; // x0
cocos2d::CCDirector *v10; // x0
__int64 v11; // x21
void (__fastcall *v12)(__int64, __int64 *); // x24
__int64 (__fastcall *v13)(__int64, __int64 *); // x24
cocos2d::CCMenu *v14; // x0
__int64 v15; // x0
__int64 v16; // x21
void (__fastcall *v17)(__int64, __int64 *); // x24
const char *v18; // x2
__int64 v19; // x21
void (__fastcall *v20)(__int64, __int64 *); // x24
const char *v21; // x6
__int64 v22; // x21
__int64 v23; // x0
__int64 v24; // x25
void (__fastcall *v25)(__int64, __int64 *); // x28
__int64 v26; // x28
__int64 v27; // x28
__int64 v28; // x28
__int64 v29; // x28
__int64 v30; // x28
__int64 v31; // x28
__int64 v32; // x28
__int64 v33; // x28
__int64 v34; // x28
__int64 v35; // x28
__int64 v36; // x28
__int64 v37; // x28
__int64 v38; // x28
__int64 v39; // x28
_DWORD *v40; // x0
unsigned __int8 v41; // w0
cocos2d::CCNode *v42; // x28
__int64 v43; // x23
__int64 v44; // x28
__int64 v45; // x28
__int64 v46; // [xsp+D8h] [xbp+A8h]
__int64 v47; // [xsp+D8h] [xbp+A8h]
__int64 v48; // [xsp+D8h] [xbp+A8h]
__int64 v49; // [xsp+D8h] [xbp+A8h]
__int64 v50; // [xsp+D8h] [xbp+A8h]
__int64 v51; // [xsp+D8h] [xbp+A8h]
__int64 v52; // [xsp+D8h] [xbp+A8h]
cocos2d::CCNode *v53; // [xsp+E0h] [xbp+B0h]
cocos2d::CCNode *v54; // [xsp+E0h] [xbp+B0h]
cocos2d::CCNode *v55; // [xsp+E0h] [xbp+B0h]
cocos2d::CCNode *v56; // [xsp+E0h] [xbp+B0h]
cocos2d::CCNode *v57; // [xsp+E0h] [xbp+B0h]
cocos2d::CCNode *v58; // [xsp+E0h] [xbp+B0h]
cocos2d::CCNode *v59; // [xsp+E0h] [xbp+B0h]
cocos2d::CCNode *v60; // [xsp+E0h] [xbp+B0h]
cocos2d::CCNode *v61; // [xsp+E0h] [xbp+B0h]
cocos2d::CCNode *v62; // [xsp+E0h] [xbp+B0h]
cocos2d::CCNode *v63; // [xsp+E0h] [xbp+B0h]
cocos2d::CCNode *v64; // [xsp+E0h] [xbp+B0h]
cocos2d::CCNode *v65; // [xsp+E0h] [xbp+B0h]
cocos2d::CCNode *v66; // [xsp+E0h] [xbp+B0h]
cocos2d::CCNode *v67; // [xsp+E0h] [xbp+B0h]
cocos2d::CCNode *v68; // [xsp+E0h] [xbp+B0h]
cocos2d::CCNode *v69; // [xsp+E0h] [xbp+B0h]
cocos2d::CCNode *v70; // [xsp+E0h] [xbp+B0h]
cocos2d::CCNode *v71; // [xsp+E0h] [xbp+B0h]
cocos2d::CCNode *v72; // [xsp+E0h] [xbp+B0h]
cocos2d::CCNode *v73; // [xsp+E0h] [xbp+B0h]
unsigned int v74; // [xsp+E0h] [xbp+B0h]
cocos2d::CCNode *v75; // [xsp+E0h] [xbp+B0h]
cocos2d::CCNode *v76; // [xsp+E0h] [xbp+B0h]
cocos2d::CCNode *v77; // [xsp+E8h] [xbp+B8h]
unsigned __int8 v78; // [xsp+E8h] [xbp+B8h]
unsigned __int8 v79; // [xsp+E8h] [xbp+B8h]
unsigned __int8 v80; // [xsp+E8h] [xbp+B8h]
unsigned __int8 v81; // [xsp+E8h] [xbp+B8h]
unsigned __int8 v82; // [xsp+E8h] [xbp+B8h]
unsigned __int8 v83; // [xsp+E8h] [xbp+B8h]
unsigned __int8 v84; // [xsp+E8h] [xbp+B8h]
unsigned __int8 v85; // [xsp+E8h] [xbp+B8h]
unsigned __int8 v86; // [xsp+E8h] [xbp+B8h]
unsigned __int8 v87; // [xsp+E8h] [xbp+B8h]
unsigned __int8 v88; // [xsp+E8h] [xbp+B8h]
unsigned __int8 v89; // [xsp+E8h] [xbp+B8h]
unsigned __int8 v90; // [xsp+E8h] [xbp+B8h]
unsigned __int8 v91; // [xsp+E8h] [xbp+B8h]
unsigned __int8 v92; // [xsp+E8h] [xbp+B8h]
unsigned __int8 v93; // [xsp+E8h] [xbp+B8h]
unsigned __int8 v94; // [xsp+E8h] [xbp+B8h]
unsigned __int8 v95; // [xsp+E8h] [xbp+B8h]
unsigned __int8 v96; // [xsp+E8h] [xbp+B8h]
unsigned __int8 v97; // [xsp+E8h] [xbp+B8h]
unsigned __int8 v98; // [xsp+E8h] [xbp+B8h]
unsigned __int8 v99; // [xsp+E8h] [xbp+B8h]
unsigned __int8 v100; // [xsp+E8h] [xbp+B8h]
__int64 v101; // [xsp+F8h] [xbp+C8h] BYREF
float v102; // [xsp+100h] [xbp+D0h] BYREF
_BYTE v103[8]; // [xsp+108h] [xbp+D8h] BYREF
__int64 v104; // [xsp+110h] [xbp+E0h] BYREF
__int64 v105[2]; // [xsp+118h] [xbp+E8h] BYREF
__int64 v106[2]; // [xsp+128h] [xbp+F8h] BYREF
void *v107; // [xsp+138h] [xbp+108h]
__int64 v108; // [xsp+140h] [xbp+110h] BYREF
__int64 v109; // [xsp+148h] [xbp+118h]
void *v110; // [xsp+150h] [xbp+120h]
v6 = FLAlertLayer::init(this, 150);
v7 = v6;
if ( !v6 )
return v7;
v9 = (cocos2d::CCDirector *)(*(__int64 (__fastcall **)(SetupObjectOptionsPopup *, __int64))(*(_QWORD *)this + 1088LL))(
this,
1);
if ( a2 )
{
*((_QWORD *)this + 83) = a2;
v9 = (cocos2d::CCDirector *)cocos2d::CCObject::retain(a2);
}
else if ( a3 )
{
*((_QWORD *)this + 84) = a3;
v9 = (cocos2d::CCDirector *)cocos2d::CCObject::retain(a3);
}
*((_BYTE *)this + 596) = 1;
v10 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v9);
cocos2d::CCDirector::getWinSize(&v101, v10);
cocos2d::CCRect::CCRect((cocos2d::CCRect *)v105, 0.0, 0.0, 80.0, 80.0);
v11 = cocos2d::extension::CCScale9Sprite::create("GJ_square02.png", v105);
v12 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v11 + 320LL);
cocos2d::CCSize::CCSize((cocos2d::CCSize *)v105, 390.0, 310.0);
v12(v11, v105);
(*(void (__fastcall **)(_QWORD, __int64, __int64))(**((_QWORD **)this + 73) + 464LL))(
*((_QWORD *)this + 73),
v11,
4294967294LL);
v13 = *(__int64 (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v11 + 184LL);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v105, *(float *)&v101 * 0.5, *((float *)&v101 + 1) * 0.5);
v14 = (cocos2d::CCMenu *)v13(v11, v105);
v15 = cocos2d::CCMenu::create(v14);
*((_QWORD *)this + 69) = v15;
(*(void (__fastcall **)(_QWORD, __int64, __int64))(**((_QWORD **)this + 73) + 464LL))(*((_QWORD *)this + 73), v15, 10);
v16 = *((_QWORD *)this + 69);
v17 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v16 + 184LL);
cocos2d::CCPoint::CCPoint(
(cocos2d::CCPoint *)v105,
*(float *)&v101 * 0.5,
(float)((float)(*((float *)&v101 + 1) * 0.5) + -155.0) + 24.0);
v17(v16, v105);
(*(void (__fastcall **)(SetupObjectOptionsPopup *))(*(_QWORD *)this + 1344LL))(this);
v19 = cocos2d::CCLabelBMFont::create((cocos2d::CCLabelBMFont *)"Object Options", "goldFont.fnt", v18);
(*(void (__fastcall **)(SetupObjectOptionsPopup *, __int64))(*(_QWORD *)this + 456LL))(this, v19);
(*(void (__fastcall **)(__int64, float))(*(_QWORD *)v19 + 160LL))(v19, 0.5);
v20 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v19 + 184LL);
cocos2d::CCPoint::CCPoint(
(cocos2d::CCPoint *)v105,
*(float *)&v101 * 0.5,
(float)((float)(*((float *)&v101 + 1) * 0.5) + 155.0) - 15.0);
v20(v19, v105);
v22 = ButtonSprite::create(
(ButtonSprite *)"OK",
(const char *)&qword_28,
0,
1,
0.8,
"goldFont.fnt",
"GJ_button_01.png",
v21,
30.0);
(*(void (__fastcall **)(__int64, float))(*(_QWORD *)v22 + 160LL))(v22, 0.8);
v23 = CCMenuItemSpriteExtra::create(v22, 0, (__int64)this, 1352, 1);
(*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 69) + 456LL))(*((_QWORD *)this + 69), v23);
v106[0] = 0;
v106[1] = 0;
v107 = nullptr;
std::string::__init(v106, "Help", 4u);
v108 = 0;
v109 = 0;
v110 = nullptr;
std::string::__init(
&v108,
"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 axi"
"s.\n"
"IceBlock, GripSlope, NonStickX, NonStickY, ExtraSticky, and ScaleStick are meant for Platformer game type.",
0x1AEu);
v24 = InfoAlertButton::create((char *)v106, (char *)&v108, 1.0);
if ( (v108 & 1) != 0 )
{
operator delete(v110);
if ( (v106[0] & 1) == 0 )
goto LABEL_7;
LABEL_64:
operator delete(v107);
goto LABEL_7;
}
if ( (v106[0] & 1) != 0 )
goto LABEL_64;
LABEL_7:
(*(void (__fastcall **)(__int64, float))(*(_QWORD *)v24 + 160LL))(v24, 0.8);
(*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 69) + 456LL))(*((_QWORD *)this + 69), v24);
v25 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v24 + 184LL);
v77 = *((cocos2d::CCNode **)this + 69);
cocos2d::CCPoint::CCPoint(
(cocos2d::CCPoint *)&v104,
(float)((float)(*(float *)&v101 * 0.5) + -195.0) + 16.0,
(float)((float)(*((float *)&v101 + 1) * 0.5) + 155.0) - 14.0);
cocos2d::CCNode::convertToNodeSpace(v105, v77, (const cocos2d::CCPoint *)&v104);
v25(v24, v105);
cocos2d::CCPoint::CCPoint(
(cocos2d::CCPoint *)&v102,
(float)((float)(*(float *)&v101 * 0.5) + -60.0) - 90.0,
(float)(*((float *)&v101 + 1) * 0.5) + 112.0);
v108 = 0;
v109 = 0;
v110 = nullptr;
std::string::__init(&v108, "Dont\nFade", 9u);
LOBYTE(v77) = *((_BYTE *)this + 681);
v53 = *((cocos2d::CCNode **)this + 69);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v103, 0.0, -0.0);
cocos2d::CCPoint::operator+(&v104, &v102);
v46 = *((_QWORD *)this + 73);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v105, 8.0, 0.0);
GameToolbox::createToggleButton(
(__int64)&v108,
(const char *)SetupObjectOptionsPopup::onDontFade,
0,
(unsigned __int8)v77,
v53,
(const cocos2d::CCPoint *)&v104,
(__int64)this,
v46,
0.7,
0.35,
110.0,
(float *)v105,
"bigFont.fnt",
0,
0,
nullptr);
if ( (v108 & 1) != 0 )
operator delete(v110);
v108 = 0;
v109 = 0;
v110 = nullptr;
std::string::__init(&v108, "Dont\nEnter", 0xAu);
v78 = *((_BYTE *)this + 682);
v54 = *((cocos2d::CCNode **)this + 69);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v103, 0.0, -30.0);
cocos2d::CCPoint::operator+(&v104, &v102);
v47 = *((_QWORD *)this + 73);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v105, 8.0, 0.0);
GameToolbox::createToggleButton(
(__int64)&v108,
(const char *)SetupObjectOptionsPopup::onDontEnter,
0,
v78,
v54,
(const cocos2d::CCPoint *)&v104,
(__int64)this,
v47,
0.7,
0.35,
110.0,
(float *)v105,
"bigFont.fnt",
0,
0,
nullptr);
if ( (v108 & 1) != 0 )
operator delete(v110);
v108 = 0;
v109 = 0;
v110 = nullptr;
std::string::__init(&v108, "No\nEffects", 0xAu);
v79 = *((_BYTE *)this + 683);
v55 = *((cocos2d::CCNode **)this + 69);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v103, 0.0, -60.0);
cocos2d::CCPoint::operator+(&v104, &v102);
v48 = *((_QWORD *)this + 73);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v105, 8.0, 0.0);
GameToolbox::createToggleButton(
(__int64)&v108,
(const char *)SetupObjectOptionsPopup::onHideEffects,
0,
v79,
v55,
(const cocos2d::CCPoint *)&v104,
(__int64)this,
v48,
0.7,
0.35,
110.0,
(float *)v105,
"bigFont.fnt",
0,
0,
nullptr);
if ( (v108 & 1) != 0 )
operator delete(v110);
v108 = 0;
v109 = 0;
v110 = nullptr;
std::string::__init(&v108, "Group\nParent", 0xCu);
v80 = *((_BYTE *)this + 696);
v56 = *((cocos2d::CCNode **)this + 69);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v103, 0.0, -90.0);
cocos2d::CCPoint::operator+(&v104, &v102);
v49 = *((_QWORD *)this + 73);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v105, 8.0, 0.0);
GameToolbox::createToggleButton(
(__int64)&v108,
(const char *)SetupObjectOptionsPopup::onToggleGroupParent,
0,
v80,
v56,
(const cocos2d::CCPoint *)&v104,
(__int64)this,
v49,
0.7,
0.35,
110.0,
(float *)v105,
"bigFont.fnt",
0,
0,
nullptr);
if ( (v108 & 1) != 0 )
operator delete(v110);
v108 = 0;
v109 = 0;
v110 = nullptr;
std::string::__init(&v108, "Area\nParent", 0xBu);
v81 = *((_BYTE *)this + 697);
v57 = *((cocos2d::CCNode **)this + 69);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v103, 0.0, -120.0);
cocos2d::CCPoint::operator+(&v104, &v102);
v50 = *((_QWORD *)this + 73);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v105, 8.0, 0.0);
GameToolbox::createToggleButton(
(__int64)&v108,
(const char *)SetupObjectOptionsPopup::onToggleAreaParent,
0,
v81,
v57,
(const cocos2d::CCPoint *)&v104,
(__int64)this,
v50,
0.7,
0.35,
110.0,
(float *)v105,
"bigFont.fnt",
0,
0,
nullptr);
if ( (v108 & 1) != 0 )
operator delete(v110);
v108 = 0;
v109 = 0;
v110 = nullptr;
std::string::__init(&v108, "Dont\nBoostY", 0xBu);
v82 = *((_BYTE *)this + 691);
v58 = *((cocos2d::CCNode **)this + 69);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v103, 0.0, -150.0);
cocos2d::CCPoint::operator+(&v104, &v102);
v51 = *((_QWORD *)this + 73);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v105, 8.0, 0.0);
GameToolbox::createToggleButton(
(__int64)&v108,
(const char *)SetupObjectOptionsPopup::onDontBoost,
0,
v82,
v58,
(const cocos2d::CCPoint *)&v104,
(__int64)this,
v51,
0.7,
0.35,
110.0,
(float *)v105,
"bigFont.fnt",
0,
0,
nullptr);
if ( (v108 & 1) != 0 )
operator delete(v110);
v108 = 0;
v109 = 0;
v110 = nullptr;
std::string::__init(&v108, "Dont\nBoostX", 0xBu);
v83 = *((_BYTE *)this + 692);
v59 = *((cocos2d::CCNode **)this + 69);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v103, 0.0, -180.0);
cocos2d::CCPoint::operator+(&v104, &v102);
v26 = *((_QWORD *)this + 73);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v105, 8.0, 0.0);
GameToolbox::createToggleButton(
(__int64)&v108,
(const char *)SetupObjectOptionsPopup::onDontBoostX,
0,
v83,
v59,
(const cocos2d::CCPoint *)&v104,
(__int64)this,
v26,
0.7,
0.35,
110.0,
(float *)v105,
"bigFont.fnt",
0,
0,
nullptr);
if ( (v108 & 1) != 0 )
operator delete(v110);
if ( *((_BYTE *)this + 704) )
{
v108 = 0;
v109 = 0;
v110 = nullptr;
std::string::__init(&v108, "Single\nPTouch", 0xDu);
v100 = *((_BYTE *)this + 705);
v76 = *((cocos2d::CCNode **)this + 69);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v103, 0.0, -210.0);
cocos2d::CCPoint::operator+(&v104, &v102);
v45 = *((_QWORD *)this + 73);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v105, 8.0, 0.0);
GameToolbox::createToggleButton(
(__int64)&v108,
(const char *)SetupObjectOptionsPopup::onSinglePlayerTouch,
0,
v100,
v76,
(const cocos2d::CCPoint *)&v104,
(__int64)this,
v45,
0.7,
0.35,
110.0,
(float *)v105,
"bigFont.fnt",
0,
0,
nullptr);
if ( (v108 & 1) != 0 )
operator delete(v110);
}
v108 = 0;
v109 = 0;
v110 = nullptr;
v102 = v102 + 120.0;
std::string::__init(&v108, "High\nDetail", 0xBu);
v84 = *((_BYTE *)this + 695);
v60 = *((cocos2d::CCNode **)this + 69);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v103, 0.0, -0.0);
cocos2d::CCPoint::operator+(&v104, &v102);
v27 = *((_QWORD *)this + 73);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v105, 8.0, 0.0);
GameToolbox::createToggleButton(
(__int64)&v108,
(const char *)SetupObjectOptionsPopup::onHighDetail,
0,
v84,
v60,
(const cocos2d::CCPoint *)&v104,
(__int64)this,
v27,
0.7,
0.35,
110.0,
(float *)v105,
"bigFont.fnt",
0,
0,
nullptr);
if ( (v108 & 1) != 0 )
operator delete(v110);
v108 = 0;
v109 = 0;
v110 = nullptr;
std::string::__init(&v108, "NoTouch", 7u);
v85 = *((_BYTE *)this + 685);
v61 = *((cocos2d::CCNode **)this + 69);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v103, 0.0, -30.0);
cocos2d::CCPoint::operator+(&v104, &v102);
v28 = *((_QWORD *)this + 73);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v105, 8.0, 0.0);
GameToolbox::createToggleButton(
(__int64)&v108,
(const char *)SetupObjectOptionsPopup::onDisableObject,
0,
v85,
v61,
(const cocos2d::CCPoint *)&v104,
(__int64)this,
v28,
0.7,
0.35,
110.0,
(float *)v105,
"bigFont.fnt",
0,
0,
nullptr);
if ( (v108 & 1) != 0 )
operator delete(v110);
v108 = 0;
v109 = 0;
v110 = nullptr;
std::string::__init(&v108, "Passable", 8u);
v86 = *((_BYTE *)this + 686);
v62 = *((cocos2d::CCNode **)this + 69);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v103, 0.0, -60.0);
cocos2d::CCPoint::operator+(&v104, &v102);
v29 = *((_QWORD *)this + 73);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v105, 8.0, 0.0);
GameToolbox::createToggleButton(
(__int64)&v108,
(const char *)SetupObjectOptionsPopup::onPassable,
0,
v86,
v62,
(const cocos2d::CCPoint *)&v104,
(__int64)this,
v29,
0.7,
0.35,
110.0,
(float *)v105,
"bigFont.fnt",
0,
0,
nullptr);
if ( (v108 & 1) != 0 )
operator delete(v110);
v108 = 0;
v109 = 0;
v110 = nullptr;
std::string::__init(&v108, "Hide", 4u);
v87 = *((_BYTE *)this + 687);
v63 = *((cocos2d::CCNode **)this + 69);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v103, 0.0, -90.0);
cocos2d::CCPoint::operator+(&v104, &v102);
v30 = *((_QWORD *)this + 73);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v105, 8.0, 0.0);
GameToolbox::createToggleButton(
(__int64)&v108,
(const char *)SetupObjectOptionsPopup::onAlwaysHide,
0,
v87,
v63,
(const cocos2d::CCPoint *)&v104,
(__int64)this,
v30,
0.7,
0.35,
110.0,
(float *)v105,
"bigFont.fnt",
0,
0,
nullptr);
if ( (v108 & 1) != 0 )
operator delete(v110);
v108 = 0;
v109 = 0;
v110 = nullptr;
std::string::__init(&v108, "NonStickX", 9u);
v88 = *((_BYTE *)this + 688);
v64 = *((cocos2d::CCNode **)this + 69);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v103, 0.0, -120.0);
cocos2d::CCPoint::operator+(&v104, &v102);
v31 = *((_QWORD *)this + 73);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v105, 8.0, 0.0);
GameToolbox::createToggleButton(
(__int64)&v108,
(const char *)SetupObjectOptionsPopup::onNonStickX,
0,
v88,
v64,
(const cocos2d::CCPoint *)&v104,
(__int64)this,
v31,
0.7,
0.35,
110.0,
(float *)v105,
"bigFont.fnt",
0,
0,
nullptr);
if ( (v108 & 1) != 0 )
operator delete(v110);
v108 = 0;
v109 = 0;
v110 = nullptr;
std::string::__init(&v108, "ExtraSticky", 0xBu);
v89 = *((_BYTE *)this + 690);
v65 = *((cocos2d::CCNode **)this + 69);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v103, 0.0, -150.0);
cocos2d::CCPoint::operator+(&v104, &v102);
v32 = *((_QWORD *)this + 73);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v105, 8.0, 0.0);
GameToolbox::createToggleButton(
(__int64)&v108,
(const char *)SetupObjectOptionsPopup::onExtraSticky,
0,
v89,
v65,
(const cocos2d::CCPoint *)&v104,
(__int64)this,
v32,
0.7,
0.35,
110.0,
(float *)v105,
"bigFont.fnt",
0,
0,
nullptr);
if ( (v108 & 1) != 0 )
operator delete(v110);
v108 = 0;
v109 = 0;
v110 = nullptr;
std::string::__init(&v108, "Extended\nCollision", 0x12u);
v90 = *((_BYTE *)this + 701);
v66 = *((cocos2d::CCNode **)this + 69);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v103, 0.0, -180.0);
cocos2d::CCPoint::operator+(&v104, &v102);
v33 = *((_QWORD *)this + 73);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v105, 8.0, 0.0);
GameToolbox::createToggleButton(
(__int64)&v108,
(const char *)SetupObjectOptionsPopup::onExtendedCollision,
0,
v90,
v66,
(const cocos2d::CCPoint *)&v104,
(__int64)this,
v33,
0.7,
0.35,
110.0,
(float *)v105,
"bigFont.fnt",
0,
0,
nullptr);
if ( (v108 & 1) != 0 )
operator delete(v110);
if ( *((_BYTE *)this + 704) )
{
v108 = 0;
v109 = 0;
v110 = nullptr;
std::string::__init(&v108, "Center\nEffect", 0xDu);
v99 = *((_BYTE *)this + 706);
v75 = *((cocos2d::CCNode **)this + 69);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v103, 0.0, -210.0);
cocos2d::CCPoint::operator+(&v104, &v102);
v44 = *((_QWORD *)this + 73);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v105, 8.0, 0.0);
GameToolbox::createToggleButton(
(__int64)&v108,
(const char *)SetupObjectOptionsPopup::onCenterEffect,
0,
v99,
v75,
(const cocos2d::CCPoint *)&v104,
(__int64)this,
v44,
0.7,
0.35,
110.0,
(float *)v105,
"bigFont.fnt",
0,
0,
nullptr);
if ( (v108 & 1) != 0 )
operator delete(v110);
}
v108 = 0;
v109 = 0;
v110 = nullptr;
v102 = v102 + 120.0;
std::string::__init(&v108, "IceBlock", 8u);
v91 = *((_BYTE *)this + 680);
v67 = *((cocos2d::CCNode **)this + 69);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v103, 0.0, -0.0);
cocos2d::CCPoint::operator+(&v104, &v102);
v34 = *((_QWORD *)this + 73);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v105, 8.0, 0.0);
GameToolbox::createToggleButton(
(__int64)&v108,
(const char *)SetupObjectOptionsPopup::onIceBlock,
0,
v91,
v67,
(const cocos2d::CCPoint *)&v104,
(__int64)this,
v34,
0.7,
0.35,
110.0,
(float *)v105,
"bigFont.fnt",
0,
0,
nullptr);
if ( (v108 & 1) != 0 )
operator delete(v110);
v108 = 0;
v109 = 0;
v110 = nullptr;
std::string::__init(&v108, "GripSlope", 9u);
v92 = *((_BYTE *)this + 698);
v68 = *((cocos2d::CCNode **)this + 69);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v103, 0.0, -30.0);
cocos2d::CCPoint::operator+(&v104, &v102);
v35 = *((_QWORD *)this + 73);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v105, 8.0, 0.0);
GameToolbox::createToggleButton(
(__int64)&v108,
(const char *)SetupObjectOptionsPopup::onGripSlope,
0,
v92,
v68,
(const cocos2d::CCPoint *)&v104,
(__int64)this,
v35,
0.7,
0.35,
110.0,
(float *)v105,
"bigFont.fnt",
0,
0,
nullptr);
if ( (v108 & 1) != 0 )
operator delete(v110);
v108 = 0;
v109 = 0;
v110 = nullptr;
std::string::__init(&v108, "NoGlow", 6u);
v93 = *((_BYTE *)this + 699);
v69 = *((cocos2d::CCNode **)this + 69);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v103, 0.0, -60.0);
cocos2d::CCPoint::operator+(&v104, &v102);
v36 = *((_QWORD *)this + 73);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v105, 8.0, 0.0);
GameToolbox::createToggleButton(
(__int64)&v108,
(const char *)SetupObjectOptionsPopup::onDisableGlow,
0,
v93,
v69,
(const cocos2d::CCPoint *)&v104,
(__int64)this,
v36,
0.7,
0.35,
110.0,
(float *)v105,
"bigFont.fnt",
0,
0,
nullptr);
if ( (v108 & 1) != 0 )
operator delete(v110);
v108 = 0;
v109 = 0;
v110 = nullptr;
std::string::__init(&v108, "NoParticle", 0xAu);
v94 = *((_BYTE *)this + 684);
v70 = *((cocos2d::CCNode **)this + 69);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v103, 0.0, -90.0);
cocos2d::CCPoint::operator+(&v104, &v102);
v37 = *((_QWORD *)this + 73);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v105, 8.0, 0.0);
GameToolbox::createToggleButton(
(__int64)&v108,
(const char *)SetupObjectOptionsPopup::onNoParticle,
0,
v94,
v70,
(const cocos2d::CCPoint *)&v104,
(__int64)this,
v37,
0.7,
0.35,
110.0,
(float *)v105,
"bigFont.fnt",
0,
0,
nullptr);
if ( (v108 & 1) != 0 )
operator delete(v110);
v108 = 0;
v109 = 0;
v110 = nullptr;
std::string::__init(&v108, "NonStickY", 9u);
v95 = *((_BYTE *)this + 689);
v71 = *((cocos2d::CCNode **)this + 69);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v103, 0.0, -120.0);
cocos2d::CCPoint::operator+(&v104, &v102);
v38 = *((_QWORD *)this + 73);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v105, 8.0, 0.0);
GameToolbox::createToggleButton(
(__int64)&v108,
(const char *)SetupObjectOptionsPopup::onNonStickY,
0,
v95,
v71,
(const cocos2d::CCPoint *)&v104,
(__int64)this,
v38,
0.7,
0.35,
110.0,
(float *)v105,
"bigFont.fnt",
0,
0,
nullptr);
if ( (v108 & 1) != 0 )
operator delete(v110);
v108 = 0;
v109 = 0;
v110 = nullptr;
std::string::__init(&v108, "ScaleStick", 0xAu);
v96 = *((_BYTE *)this + 694);
v72 = *((cocos2d::CCNode **)this + 69);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v103, 0.0, -150.0);
cocos2d::CCPoint::operator+(&v104, &v102);
v39 = *((_QWORD *)this + 73);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v105, 8.0, 0.0);
GameToolbox::createToggleButton(
(__int64)&v108,
(const char *)SetupObjectOptionsPopup::onApplyScaleStick,
0,
v96,
v72,
(const cocos2d::CCPoint *)&v104,
(__int64)this,
v39,
0.7,
0.35,
110.0,
(float *)v105,
"bigFont.fnt",
0,
0,
nullptr);
if ( (v108 & 1) != 0 )
operator delete(v110);
v108 = 0;
v109 = 0;
v110 = nullptr;
std::string::__init(&v108, "No Audio\nScale", 0xEu);
v97 = *((_BYTE *)this + 693);
v73 = *((cocos2d::CCNode **)this + 69);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v103, 0.0, -180.0);
cocos2d::CCPoint::operator+(&v104, &v102);
v52 = *((_QWORD *)this + 73);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v105, 8.0, 0.0);
GameToolbox::createToggleButton(
(__int64)&v108,
(const char *)SetupObjectOptionsPopup::onNoAudioScale,
0,
v97,
v73,
(const cocos2d::CCPoint *)&v104,
(__int64)this,
v52,
0.7,
0.35,
110.0,
(float *)v105,
"bigFont.fnt",
0,
0,
nullptr);
if ( (v108 & 1) != 0 )
operator delete(v110);
v40 = *((_DWORD **)this + 83);
if ( v40 )
{
if ( v40[312] == 1 )
{
v41 = (*(__int64 (__fastcall **)(_DWORD *))(*(_QWORD *)v40 + 1680LL))(v40);
v74 = v41;
if ( v41 )
{
v108 = 0;
v109 = 0;
v110 = nullptr;
std::string::__init(&v108, "Reverse", 7u);
v98 = *((_BYTE *)this + 700);
v42 = *((cocos2d::CCNode **)this + 69);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v103, 0.0, -210.0);
cocos2d::CCPoint::operator+(&v104, &v102);
v43 = *((_QWORD *)this + 73);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v105, 8.0, 0.0);
GameToolbox::createToggleButton(
(__int64)&v108,
(const char *)SetupObjectOptionsPopup::onReverse,
0,
v98,
v42,
(const cocos2d::CCPoint *)&v104,
(__int64)this,
v43,
0.7,
0.35,
110.0,
(float *)v105,
"bigFont.fnt",
0,
0,
nullptr);
if ( (v108 & 1) != 0 )
operator delete(v110);
return v74;
}
}
}
return v7;
}