//
// DeathMarkerSettingsPopup::init from 0xca60e8 to 0xca7080 (3992 bytes)
//
// 2 xrefs:
// > DeathMarkerSettingsPopup::create @ 0xca7320
// > ??> @ 0x60868
//
// 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:06:03 +0000
//
__int64 __fastcall DeathMarkerSettingsPopup::init(Slider **this, GJGameLevel *a2)
{
cocos2d::CCDirector *v5; // x0
float v6; // s10
__int64 v7; // x21
__int64 v8; // x21
cocos2d::CCNode *v9; // x26
void (__fastcall *v10)(__int64, __int64 *); // x23
GameManager *v11; // x0
GameManager *v12; // x0
__int64 v13; // x22
cocos2d::CCNode *v14; // x23
void (__fastcall *v15)(__int64, __int64 *); // x21
float v16; // s12
float v17; // s9
const char *v18; // x2
__int64 v19; // x22
void (__fastcall *v20)(__int64, __int64 *); // x21
void (__fastcall *v21)(__int64, __int64 *); // x21
__int64 v22; // x22
cocos2d::CCNode *v23; // x23
void (__fastcall *v24)(__int64, __int64 *); // x21
const char *v25; // x2
__int64 v26; // x0
__int64 v27; // x21
void (__fastcall *v28)(__int64, __int64 *); // x22
__int64 v29; // x21
void (__fastcall *v30)(__int64, __int64 *); // x22
Slider *v31; // x0
__int64 v32; // x21
__int64 (__fastcall *v33)(__int64, __int64 *); // x22
GameManager *v34; // x0
GameManager *v35; // x0
int IntGameVariable; // w0
float v37; // s0
int v38; // w22
const char *v39; // x2
__int64 v40; // x21
void (__fastcall *v41)(__int64, __int64 *); // x22
void (__fastcall *v42)(__int64, __int64 *); // x22
__int64 v43; // x21
cocos2d::CCNode *v44; // x23
void (__fastcall *v45)(__int64, __int64 *); // x22
const char *v46; // x2
__int64 v47; // x0
__int64 v48; // x21
void (__fastcall *v49)(__int64, __int64 *); // x22
__int64 v50; // x21
void (__fastcall *v51)(__int64, __int64 *); // x22
Slider *v52; // x0
__int64 v53; // x22
__int64 (__fastcall *v54)(__int64, __int64 *); // x21
GameManager *v55; // x0
GameManager *v56; // x0
int v57; // w0
int v58; // w21
float v59; // s0
const char **v60; // x23
int v61; // w26
const char *v62; // x1
cocos2d::CCNode *v63; // x22
void (__fastcall *v64)(__int64, __int64 *); // x21
const char *v65; // x6
__int64 v66; // x21
const char *v67; // x1
__int64 v68; // x0
CCMenuItemToggler *v69; // x21
GameManager *v70; // x0
GameManager *v71; // x0
unsigned __int8 GameVariable; // w0
float v73; // s9
float v74; // s8
cocos2d::CCNode *v75; // x28
void (__fastcall *v76)(CCMenuItemToggler *, __int64 *); // x22
cocos2d::CCLabelBMFont *v77; // x22
const char *v78; // x2
__int64 v79; // x21
void (__fastcall *v80)(__int64, __int64 *); // x28
void (__fastcall *v81)(__int64, __int64 *); // x28
size_t v82; // x0
const char *v83; // x1
size_t v84; // x0
__int64 v85; // x28
__int64 v86; // x21
__int64 v87; // x21
cocos2d::CCNode *v88; // x22
void (__fastcall *v89)(__int64, __int64 *); // x20
float v90; // [xsp+D8h] [xbp+D8h]
unsigned __int8 v91; // [xsp+DFh] [xbp+DFh]
char *v92; // [xsp+E0h] [xbp+E0h]
__int64 v93; // [xsp+F8h] [xbp+F8h] BYREF
_BYTE v94[8]; // [xsp+100h] [xbp+100h] BYREF
__int64 v95; // [xsp+108h] [xbp+108h] BYREF
__int64 v96; // [xsp+110h] [xbp+110h] BYREF
size_t v97; // [xsp+118h] [xbp+118h]
void *v98; // [xsp+120h] [xbp+120h]
__int64 v99[2]; // [xsp+128h] [xbp+128h] BYREF
void *v100; // [xsp+138h] [xbp+138h]
__int64 v101; // [xsp+140h] [xbp+140h] BYREF
size_t v102; // [xsp+148h] [xbp+148h]
void *v103; // [xsp+150h] [xbp+150h]
__int64 v104[2]; // [xsp+158h] [xbp+158h] BYREF
void *v105; // [xsp+168h] [xbp+168h]
__int64 v106[2]; // [xsp+170h] [xbp+170h] BYREF
void *v107; // [xsp+180h] [xbp+180h]
__int64 v108[2]; // [xsp+188h] [xbp+188h] BYREF
void *v109; // [xsp+198h] [xbp+198h]
__int64 v110[2]; // [xsp+1A0h] [xbp+1A0h] BYREF
void *v111; // [xsp+1B0h] [xbp+1B0h]
__int64 v112[2]; // [xsp+1B8h] [xbp+1B8h] BYREF
void *v113; // [xsp+1C8h] [xbp+1C8h]
__int64 v114[2]; // [xsp+1D0h] [xbp+1D0h] BYREF
void *v115; // [xsp+1E0h] [xbp+1E0h]
const char *v116; // [xsp+1E8h] [xbp+1E8h] BYREF
const char *v117; // [xsp+1F0h] [xbp+1F0h]
void *v118[2]; // [xsp+1F8h] [xbp+1F8h]
float v119; // [xsp+208h] [xbp+208h]
float v120; // [xsp+20Ch] [xbp+20Ch]
const char *v121; // [xsp+210h] [xbp+210h]
const char *v122; // [xsp+218h] [xbp+218h]
const char *v123; // [xsp+220h] [xbp+220h]
GameManager *(__fastcall *v124)(DeathMarkerSettingsPopup *, cocos2d::CCObject *); // [xsp+228h] [xbp+228h]
float v125; // [xsp+238h] [xbp+238h]
float v126; // [xsp+23Ch] [xbp+23Ch]
const char *v127; // [xsp+240h] [xbp+240h]
const char *v128; // [xsp+248h] [xbp+248h]
const char *v129; // [xsp+250h] [xbp+250h]
__int64 (__fastcall *v130)(DeathMarkerSettingsPopup *, cocos2d::CCObject *); // [xsp+258h] [xbp+258h]
float v131; // [xsp+268h] [xbp+268h]
float v132; // [xsp+26Ch] [xbp+26Ch]
const char *v133; // [xsp+270h] [xbp+270h]
const char *v134; // [xsp+278h] [xbp+278h]
const char *v135; // [xsp+280h] [xbp+280h]
__int64 (__fastcall *v136)(DeathMarkerSettingsPopup *, cocos2d::CCObject *); // [xsp+288h] [xbp+288h]
float v137; // [xsp+298h] [xbp+298h]
float v138; // [xsp+29Ch] [xbp+29Ch]
const char *v139; // [xsp+2A0h] [xbp+2A0h]
const char *v140; // [xsp+2A8h] [xbp+2A8h]
const char *v141; // [xsp+2B0h] [xbp+2B0h]
__int64 (__fastcall *v142)(DeathMarkerSettingsPopup *, cocos2d::CCObject *); // [xsp+2B8h] [xbp+2B8h]
float v143; // [xsp+2C8h] [xbp+2C8h]
float v144; // [xsp+2CCh] [xbp+2CCh]
const char *v145; // [xsp+2D0h] [xbp+2D0h]
const char *v146; // [xsp+2D8h] [xbp+2D8h]
const char *v147; // [xsp+2E0h] [xbp+2E0h]
GameManager *(__fastcall *v148)(DeathMarkerSettingsPopup *, cocos2d::CCObject *); // [xsp+2E8h] [xbp+2E8h]
float v149; // [xsp+2F8h] [xbp+2F8h]
float v150; // [xsp+2FCh] [xbp+2FCh]
const char *v151; // [xsp+300h] [xbp+300h]
const char *v152; // [xsp+308h] [xbp+308h]
const char *v153; // [xsp+310h] [xbp+310h]
GameManager *(__fastcall *v154)(DeathMarkerSettingsPopup *, cocos2d::CCObject *); // [xsp+318h] [xbp+318h]
float v155; // [xsp+328h] [xbp+328h]
float v156; // [xsp+32Ch] [xbp+32Ch]
const char *v157; // [xsp+330h] [xbp+330h]
const char *v158; // [xsp+338h] [xbp+338h]
const char *v159; // [xsp+340h] [xbp+340h]
__int64 (__fastcall *v160)(DeathMarkerSettingsPopup *, cocos2d::CCObject *); // [xsp+348h] [xbp+348h]
float v161; // [xsp+358h] [xbp+358h]
float v162; // [xsp+35Ch] [xbp+35Ch]
const char *v163; // [xsp+360h] [xbp+360h]
const char *v164; // [xsp+368h] [xbp+368h]
const char *v165; // [xsp+370h] [xbp+370h]
GameManager *(__fastcall *v166)(DeathMarkerSettingsPopup *, cocos2d::CCObject *); // [xsp+378h] [xbp+378h]
float v167; // [xsp+388h] [xbp+388h]
float v168; // [xsp+38Ch] [xbp+38Ch]
const char *v169; // [xsp+390h] [xbp+390h]
v91 = SetupTriggerPopup::init((SetupTriggerPopup *)this, nullptr, nullptr, 360.0, 300.0, 1u, 0.0);
if ( !v91 )
return v91;
*(this + 132) = a2;
v5 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector((cocos2d::CCDirector *)v91);
cocos2d::CCDirector::getWinSize(&v93, v5);
v116 = nullptr;
v117 = nullptr;
v118[0] = nullptr;
v90 = *(float *)&v93 * 0.5;
v6 = (float)(*((float *)&v93 + 1) * 0.5) + 150.0;
std::string::__init((__int64 *)&v116, "Death Markers", 0xDu);
SetupTriggerPopup::addTitle((__int64)this, (__int64)&v116);
if ( ((unsigned __int8)v116 & 1) != 0 )
operator delete(v118[0]);
v7 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_closeBtn_001.png", (const char *)&v96);
(*(void (__fastcall **)(__int64, float))(*(_QWORD *)v7 + 160LL))(v7, 0.8);
v8 = CCMenuItemSpriteExtra::create(v7, 0, (__int64)this, 1368, 1);
CCMenuItemSpriteExtra::setSizeMult(v8, 1.5);
(*(void (__fastcall **)(_QWORD, __int64))(*(_QWORD *)*(this + 69) + 456LL))(*(this + 69), v8);
v9 = *(this + 69);
v10 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v8 + 184LL);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v94, (float)(v90 - 180.0) + 8.0, v6 - 12.0);
cocos2d::CCNode::convertToNodeSpace(&v95, v9, (const cocos2d::CCPoint *)v94);
v10(v8, &v95);
v96 = 0;
v97 = 0;
v98 = nullptr;
v11 = (GameManager *)std::string::__init(
&v96,
"Local Markers: Your deaths.\n"
"Label counts your deaths near that spot.\n"
" \n"
"Global Markers: Online players.\n",
0x7Fu);
v12 = *(GameManager **)(GameManager::sharedState(v11) + 544);
if ( v12 && !*(_BYTE *)(*(_QWORD *)(GameManager::sharedState(v12) + 544) + 1969LL) )
std::string::append(
(__int64)&v96,
"No Progress triggers in this level, less info:\n"
"Skull% of all players died here.\n"
"Wall% of the players that died here never beat the level.",
0xA1u);
else
std::string::append(
(__int64)&v96,
"Of the players that reached the spot:\nSkull% died here.\nWall% never got past it.",
0x68u);
v99[0] = 0;
v99[1] = 0;
v100 = nullptr;
std::string::__init(v99, "Death Markers", 0xDu);
v101 = 0;
v102 = 0;
v103 = nullptr;
if ( (v96 & 1) != 0 )
{
std::string::__init(&v101, v98, v97);
}
else
{
v103 = v98;
v101 = v96;
v102 = v97;
}
v13 = InfoAlertButton::create((char *)v99, (char *)&v101, 0.9);
if ( (v101 & 1) != 0 )
operator delete(v103);
if ( (v99[0] & 1) != 0 )
operator delete(v100);
(*(void (__fastcall **)(_QWORD, __int64))(*(_QWORD *)*(this + 69) + 456LL))(*(this + 69), v13);
v14 = *(this + 69);
v15 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v13 + 184LL);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v94, (float)(v90 + 180.0) - 16.0, v6 - 16.0);
cocos2d::CCNode::convertToNodeSpace(&v95, v14, (const cocos2d::CCPoint *)v94);
v15(v13, &v95);
v16 = v90 - 84.0;
v17 = v90 + 92.0;
v19 = cocos2d::CCLabelBMFont::create((cocos2d::CCLabelBMFont *)"Frequency:", "goldFont.fnt", v18);
(*(void (__fastcall **)(__int64, float))(*(_QWORD *)v19 + 160LL))(v19, 0.45);
v20 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v19 + 296LL);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v95, 1.0, 0.5);
v20(v19, &v95);
v21 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v19 + 184LL);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v95, (float)(v90 - 84.0) + 8.0, v6 - 44.0);
v21(v19, &v95);
(*(void (__fastcall **)(_QWORD, __int64, __int64))(*(_QWORD *)*(this + 73) + 464LL))(*(this + 73), v19, 1);
v104[0] = 0;
v104[1] = 0;
v105 = nullptr;
std::string::__init(v104, "Frequency", 9u);
v106[0] = 0;
v106[1] = 0;
v107 = nullptr;
std::string::__init(
v106,
"How often markers show when you die.\n"
"Lower settings only show them for new bests, repeated deaths at one spot, or spots deadly to eve"
"ryone.\n"
"Always shows them on every death.",
0xCDu);
v22 = InfoAlertButton::create((char *)v104, (char *)v106, 0.5);
if ( (v106[0] & 1) != 0 )
operator delete(v107);
if ( (v104[0] & 1) != 0 )
operator delete(v105);
(*(void (__fastcall **)(_QWORD, __int64))(*(_QWORD *)*(this + 69) + 456LL))(*(this + 69), v22);
v23 = *(this + 69);
v24 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v22 + 184LL);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v94, v16 - 62.0, v6 - 44.0);
cocos2d::CCNode::convertToNodeSpace(&v95, v23, (const cocos2d::CCPoint *)v94);
v24(v22, &v95);
v26 = cocos2d::CCLabelBMFont::create((cocos2d::CCLabelBMFont *)"Normal", "bigFont.fnt", v25);
*(this + 129) = (Slider *)v26;
(*(void (__fastcall **)(__int64, float))(*(_QWORD *)v26 + 160LL))(v26, 0.4);
v27 = (__int64)*(this + 129);
v28 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v27 + 296LL);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v95, 0.0, 0.5);
v28(v27, &v95);
v29 = (__int64)*(this + 129);
v30 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v29 + 184LL);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v95, v16 + 12.0, v6 - 44.0);
v30(v29, &v95);
(*(void (__fastcall **)(_QWORD, _QWORD, __int64))(*(_QWORD *)*(this + 73) + 464LL))(*(this + 73), *(this + 129), 1);
v31 = (Slider *)Slider::create((int)this, (int)DeathMarkerSettingsPopup::onFrequencySlider, 0, 0.65);
*(this + 128) = v31;
Slider::setBarVisibility(v31);
Slider::setSnapStep(*(this + 128), 0.2);
(*(void (__fastcall **)(_QWORD, _QWORD, __int64))(*(_QWORD *)*(this + 73) + 464LL))(*(this + 73), *(this + 128), 1);
v32 = (__int64)*(this + 128);
v33 = *(__int64 (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v32 + 184LL);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v95, v16, v6 - 70.0);
v34 = (GameManager *)v33(v32, &v95);
v35 = (GameManager *)GameManager::sharedState(v34);
IntGameVariable = GameManager::getIntGameVariable(v35, "0205");
if ( IntGameVariable <= 0 )
{
v37 = 0.4;
v38 = 2;
}
else if ( IntGameVariable <= 5 )
{
v38 = IntGameVariable - 1;
v37 = (float)(IntGameVariable - 1) / 5.0;
}
else
{
v37 = 1.0;
v38 = 5;
}
Slider::setValue(*(this + 128), v37);
DeathMarkerSettingsPopup::updateFrequencyLabel((DeathMarkerSettingsPopup *)this, v38);
v40 = cocos2d::CCLabelBMFont::create((cocos2d::CCLabelBMFont *)"Duration:", "goldFont.fnt", v39);
(*(void (__fastcall **)(__int64, float))(*(_QWORD *)v40 + 160LL))(v40, 0.45);
v41 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v40 + 296LL);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v95, 1.0, 0.5);
v41(v40, &v95);
v42 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v40 + 184LL);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v95, v17 + 13.0, v6 - 44.0);
v42(v40, &v95);
(*(void (__fastcall **)(_QWORD, __int64, __int64))(*(_QWORD *)*(this + 73) + 464LL))(*(this + 73), v40, 1);
v108[0] = 0;
v108[1] = 0;
v109 = nullptr;
std::string::__init(v108, "Display Duration", 0x10u);
v110[0] = 0;
v110[1] = 0;
v111 = nullptr;
std::string::__init(
v110,
"Increase or decrease the death marker display time.\nAnimations are not affected.",
0x70u);
v43 = InfoAlertButton::create((char *)v108, (char *)v110, 0.5);
if ( (v110[0] & 1) != 0 )
operator delete(v111);
if ( (v108[0] & 1) != 0 )
operator delete(v109);
(*(void (__fastcall **)(_QWORD, __int64))(*(_QWORD *)*(this + 69) + 456LL))(*(this + 69), v43);
v44 = *(this + 69);
v45 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v43 + 184LL);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v94, v17 - 57.0, v6 - 44.0);
cocos2d::CCNode::convertToNodeSpace(&v95, v44, (const cocos2d::CCPoint *)v94);
v45(v43, &v95);
v47 = cocos2d::CCLabelBMFont::create((cocos2d::CCLabelBMFont *)"1.0x", "bigFont.fnt", v46);
*(this + 131) = (Slider *)v47;
(*(void (__fastcall **)(__int64, float))(*(_QWORD *)v47 + 160LL))(v47, 0.4);
v48 = (__int64)*(this + 131);
v49 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v48 + 296LL);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v95, 0.0, 0.5);
v49(v48, &v95);
v50 = (__int64)*(this + 131);
v51 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v50 + 184LL);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v95, v17 + 17.0, v6 - 44.0);
v51(v50, &v95);
(*(void (__fastcall **)(_QWORD, _QWORD, __int64))(*(_QWORD *)*(this + 73) + 464LL))(*(this + 73), *(this + 131), 1);
v52 = (Slider *)Slider::create((int)this, (int)DeathMarkerSettingsPopup::onTimescaleSlider, 0, 0.65);
*(this + 130) = v52;
Slider::setBarVisibility(v52);
Slider::setSnapStep(*(this + 130), 0.066667);
(*(void (__fastcall **)(_QWORD, _QWORD, __int64))(*(_QWORD *)*(this + 73) + 464LL))(*(this + 73), *(this + 130), 1);
v53 = (__int64)*(this + 130);
v54 = *(__int64 (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v53 + 184LL);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v95, v17, v6 - 70.0);
v55 = (GameManager *)v54(v53, &v95);
v56 = (GameManager *)GameManager::sharedState(v55);
v57 = GameManager::getIntGameVariable(v56, "0211");
if ( v57 <= 0 )
{
v59 = 0.33333;
v58 = 100;
}
else
{
if ( v57 > 200 )
v58 = 200;
else
v58 = v57;
if ( v58 < 50 )
v58 = 50;
v59 = (float)(v58 - 50) / 150.0;
}
Slider::setValue(*(this + 130), v59);
DeathMarkerSettingsPopup::updateTimescaleLabel((__int64)this, v58);
v60 = &v116;
v61 = 0;
memset(&v116, 0, 0x1B0u);
v118[0] = DeathMarkerSettingsPopup::onToggleLocal;
v124 = DeathMarkerSettingsPopup::onToggleGlobal;
v130 = DeathMarkerSettingsPopup::onToggleColor;
v121 = "Shows your own deaths as markers in the level.";
v127 = "Shows where all players die. Downloaded automatically for online levels.";
v133 = "Tints your local markers with your primary color instead of your secondary color.";
v116 = "Local Markers";
v122 = "Global Markers";
v128 = "Switch Color";
v134 = "Disable Anim";
v136 = DeathMarkerSettingsPopup::onToggleAnimation;
v117 = "0200";
v123 = "0202";
v129 = "0204";
v135 = "0201";
v148 = DeathMarkerSettingsPopup::onToggleDisabled;
v142 = DeathMarkerSettingsPopup::onToggleSound;
v151 = "Hides all death markers.";
v145 = "Mutes the marker pop-in sound.";
v152 = "Hide Labels";
v146 = "Disable Markers";
v139 = "Markers appear instantly when you die, without the pop-in animation.";
v153 = "0208";
v147 = "0207";
v140 = "Disable Sound";
v141 = "0206";
v154 = DeathMarkerSettingsPopup::onToggleLabels;
v160 = DeathMarkerSettingsPopup::onToggleLimited;
v157 = "Hides the count and rate labels.";
v163 = "Only shows the global label where you died. Ignored in the editor.";
v158 = "Limited Labels";
v164 = "Live Practice Markers";
v166 = DeathMarkerSettingsPopup::onToggleLive;
v62 = "0216";
v159 = "0210";
v165 = "0216";
v169 = "Death markers stay visible in Practice mode,\n"
"from a Start pos, or in your local created levels.\n"
"Normal runs use the Frequency setting.";
v119 = v90 - 130.0;
v120 = v6 - 102.0;
v125 = v90 + 26.0;
v126 = v6 - 102.0;
v131 = v90 - 130.0;
v132 = v6 - 134.0;
v137 = v90 + 26.0;
v138 = v6 - 134.0;
v143 = v90 - 130.0;
v144 = v6 - 166.0;
v149 = v90 + 26.0;
v150 = v6 - 166.0;
v155 = v90 - 130.0;
v156 = v6 - 198.0;
v161 = v90 + 26.0;
v162 = v6 - 198.0;
v167 = v90 - 130.0;
v168 = v6 - 230.0;
do
{
v66 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_checkOff_001.png", v62);
v68 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_checkOn_001.png", v67);
v69 = (CCMenuItemToggler *)CCMenuItemToggler::create(
v66,
v68,
(__int64)this,
(__int64)v118[6 * v61],
(__int64)v118[6 * v61 + 1]);
v70 = (GameManager *)(*(__int64 (__fastcall **)(CCMenuItemToggler *, float))(*(_QWORD *)v69 + 160LL))(v69, 0.62);
v71 = (GameManager *)GameManager::sharedState(v70);
GameVariable = GameManager::getGameVariable(v71, (char *)v60[1]);
CCMenuItemToggler::toggle(v69, GameVariable);
(*(void (__fastcall **)(_QWORD, CCMenuItemToggler *))(*(_QWORD *)*(this + 69) + 456LL))(*(this + 69), v69);
v73 = *((float *)v60 + 8);
v74 = *((float *)v60 + 9);
v75 = *(this + 69);
v76 = *(void (__fastcall **)(CCMenuItemToggler *, __int64 *))(*(_QWORD *)v69 + 184LL);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v94, v73, v74);
cocos2d::CCNode::convertToNodeSpace(&v95, v75, (const cocos2d::CCPoint *)v94);
v76(v69, &v95);
v77 = (cocos2d::CCLabelBMFont *)*v60;
v79 = cocos2d::CCLabelBMFont::create((cocos2d::CCLabelBMFont *)*v60, "bigFont.fnt", v78);
v80 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v79 + 296LL);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v95, 0.0, 0.5);
v80(v79, &v95);
(*(void (__fastcall **)(__int64, float))(*(_QWORD *)v79 + 160LL))(v79, 0.33);
v81 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v79 + 184LL);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v95, v73 + 20.0, v74);
v81(v79, &v95);
(*(void (__fastcall **)(_QWORD, __int64, __int64))(*(_QWORD *)*(this + 73) + 464LL))(*(this + 73), v79, 1);
v112[0] = 0;
v112[1] = 0;
v113 = nullptr;
v82 = strlen((const char *)v77);
std::string::__init(v112, v77, v82);
v83 = v60[5];
v114[0] = 0;
v114[1] = 0;
v115 = nullptr;
v92 = (char *)v83;
v84 = strlen(v83);
std::string::__init(v114, v92, v84);
v85 = InfoAlertButton::create((char *)v112, (char *)v114, 0.5);
if ( (v114[0] & 1) != 0 )
{
operator delete(v115);
if ( (v112[0] & 1) == 0 )
goto LABEL_34;
}
else if ( (v112[0] & 1) == 0 )
{
goto LABEL_34;
}
operator delete(v113);
LABEL_34:
(*(void (__fastcall **)(_QWORD, __int64))(*(_QWORD *)*(this + 69) + 456LL))(*(this + 69), v85);
v63 = *(this + 69);
v64 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v85 + 184LL);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v94, v73 - 16.0, v74 + 13.0);
cocos2d::CCNode::convertToNodeSpace(&v95, v63, (const cocos2d::CCPoint *)v94);
v64(v85, &v95);
++v61;
v60 += 6;
}
while ( v61 != 9 );
v86 = ButtonSprite::create(
(ButtonSprite *)"Clear Markers",
(const char *)&qword_68 + 6,
0,
1,
0.6,
"bigFont.fnt",
"GJ_button_06.png",
v65,
30.0);
(*(void (__fastcall **)(__int64, float))(*(_QWORD *)v86 + 160LL))(v86, 0.85);
v87 = CCMenuItemSpriteExtra::create(v86, 0, (__int64)this, (__int64)DeathMarkerSettingsPopup::onClearMarkers, 0);
CCMenuItemSpriteExtra::setSizeMult(v87, 1.1);
(*(void (__fastcall **)(_QWORD, __int64))(*(_QWORD *)*(this + 69) + 456LL))(*(this + 69), v87);
v88 = *(this + 69);
v89 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v87 + 184LL);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v94, v90, v6 - 266.0);
cocos2d::CCNode::convertToNodeSpace(&v95, v88, (const cocos2d::CCPoint *)v94);
v89(v87, &v95);
if ( (v96 & 1) != 0 )
operator delete(v98);
return v91;
}