//
// SetGroupIDLayer::init from 0xabed80 to 0xac0bf0 (7792 bytes)
//
// 2 xrefs:
// > SetGroupIDLayer::create @ 0xac0e60
// > ??> @ 0xa4f20
//
// 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:05 +0000
//
__int64 __fastcall SetGroupIDLayer::init(SetGroupIDLayer *this, GameObject *a2, cocos2d::CCArray *a3)
{
cocos2d::CCArray *v5; // x0
cocos2d::CCObject *v6; // x0
cocos2d::CCObject *v7; // x0
cocos2d::CCDictionary *v8; // x0
cocos2d::CCObject *v9; // x0
cocos2d::CCDirector *v10; // x0
cocos2d::CCDirector *v11; // x0
cocos2d::CCLayer *WinSize; // x0
__int64 v13; // x0
__int64 v14; // x2
cocos2d::CCArray *v15; // x0
cocos2d::CCObject *v16; // x0
GameManager *v17; // x0
__int64 v18; // x22
void (__fastcall *v19)(__int64, __int64 *); // x23
void (__fastcall *v20)(__int64, __int64 *); // x23
__int64 v21; // x25
void (__fastcall *v22)(__int64, __int64 *); // x22
void (__fastcall *v23)(__int64, __int64 *); // x22
const char *v24; // x2
__int64 v25; // x22
void (__fastcall *v26)(__int64, __int64 *); // x23
const char *v27; // x2
__int64 v28; // x24
void (__fastcall *v29)(__int64, __int64 *); // x23
const char *v30; // x2
__int64 v31; // x23
void (__fastcall *v32)(__int64, __int64 *); // x26
const char *v33; // x2
__int64 v34; // x26
const char *v35; // x2
cocos2d::CCMenu *v36; // x0
__int64 v37; // x0
__int64 v38; // x0
__int64 v39; // x0
__int64 v40; // x27
const char *v41; // x1
__int64 v42; // x27
__int64 v43; // x27
const cocos2d::CCPoint *v44; // x0
const char *v45; // x1
__int64 v46; // x27
__int64 v47; // x27
void (__fastcall *v48)(__int64, __int64 *); // x28
const cocos2d::CCPoint *v49; // x0
const char *v50; // x1
__int64 v51; // x27
__int64 v52; // x27
void (__fastcall *v53)(__int64, __int64 *); // x28
const cocos2d::CCPoint *v54; // x0
_DWORD *v55; // x27
void (__fastcall *v56)(_DWORD *, __int64 *); // x28
__int64 v57; // x22
__int64 TextInput; // x0
char v59; // w1
__int64 v60; // x22
__int64 v61; // x0
char v62; // w1
__int64 v63; // x24
__int64 v64; // x0
const char *v65; // x6
char v66; // w1
float v67; // s8
__int64 v68; // x0
__int64 v69; // x22
void (__fastcall *v70)(__int64, __int64 *); // x27
__int64 v71; // x0
const char *v72; // x6
__int64 v73; // x0
__int64 v74; // x23
__int64 v75; // x0
__int64 (__fastcall *v76)(__int64); // x1
void (__fastcall *v77)(__int64, __int64 *); // x22
__int64 v78; // x24
__int64 v79; // x22
__int64 v80; // x0
char v81; // w1
int v82; // w27
unsigned int v83; // w22
__int64 v84; // x0
__int64 v85; // x23
__int64 v86; // x0
__int64 (__fastcall *v87)(__int64); // x1
void (__fastcall *v88)(__int64, __int64 *); // x25
long double v89; // q0
cocos2d::CCMenu *v90; // x0
__int64 v91; // x0
cocos2d::CCArray *v92; // x0
const char *v93; // x6
cocos2d::CCArray *v94; // x25
char *v95; // x0
cocos2d::CCObject *v96; // x23
cocos2d::CCObject *v97; // x26
long double v98; // q0
void (__fastcall *v99)(__int64, __int64 *); // x27
void (__fastcall *v100)(__int64, __int64 *); // x23
void (__fastcall *v101)(__int64, __int64 *); // x23
unsigned __int64 v102; // x0
unsigned __int8 v103; // w27
cocos2d::CCNode *v104; // x26
GameManager *v105; // x0
GameObject *v106; // x24
cocos2d::CCNode *v107; // x26
GameManager *v108; // x0
GameObject *v109; // x24
cocos2d::CCNode *v110; // x25
GameManager *v111; // x0
GameObject *v112; // x24
cocos2d::CCNode *v113; // x26
char v114; // w0
cocos2d::CCNode *v116; // x22
__int64 v117; // x23
float v118; // s13
GameObject *v119; // x0
unsigned int ParentMode; // w23
cocos2d::CCString *v121; // x0
const char *CString; // x1
size_t v123; // x0
const char *v124; // x2
cocos2d::CCLabelBMFont *v125; // x0
__int64 v126; // x22
void (__fastcall *v127)(__int64, __int64 *); // x23
__int64 v128; // x24
__int64 v129; // x0
char v130; // w1
__int64 v131; // x0
char v132; // w1
const char *v133; // x1
__int64 v134; // x23
__int64 v135; // x23
void (__fastcall *v136)(__int64, __int64 *); // x22
cocos2d::CCNode *v137; // x23
const char *v138; // x6
__int64 v139; // x27
const char *v140; // x6
__int64 v141; // x26
const char *v142; // x6
__int64 v143; // x23
const char *v144; // x6
__int64 v145; // x24
const char *v146; // x6
__int64 v147; // x25
__int64 v148; // x28
__int64 v149; // x27
__int64 v150; // x23
__int64 v151; // x24
__int64 v152; // x25
__int64 v153; // x0
cocos2d::CCArray *v154; // x0
unsigned int v155; // w22
unsigned int v156; // w1
GameObject *v157; // x0
cocos2d::CCArray *v158; // x0
unsigned int v159; // w25
char *v160; // x1
const char *v161; // x1
cocos2d::CCNode *v162; // x22
void *v163; // x1
const char *v164; // x2
cocos2d::CCLabelBMFont *v165; // x0
__int64 v166; // x23
void (__fastcall *v167)(__int64, __int64 *); // x24
__int64 v168; // x22
cocos2d::CCNode *v169; // x23
void (__fastcall *v170)(__int64, __int64 *); // x26
__int64 v171; // x24
float v172; // s0
unsigned __int8 v173; // [xsp+E7h] [xbp+B7h]
cocos2d::CCNode *v174; // [xsp+E8h] [xbp+B8h]
cocos2d::CCNode *v175; // [xsp+E8h] [xbp+B8h]
cocos2d::CCNode *v176; // [xsp+E8h] [xbp+B8h]
void (__fastcall *v178)(__int64, __int64 *); // [xsp+F8h] [xbp+C8h]
__int64 v179; // [xsp+F8h] [xbp+C8h]
__int64 v180; // [xsp+100h] [xbp+D0h]
void (__fastcall *v181)(__int64, __int64 *); // [xsp+100h] [xbp+D0h]
void (__fastcall *v182)(__int64, __int64 *); // [xsp+100h] [xbp+D0h]
void (__fastcall *v183)(__int64, __int64 *); // [xsp+100h] [xbp+D0h]
cocos2d::CCNode *v184; // [xsp+100h] [xbp+D0h]
cocos2d::CCNode *v185; // [xsp+100h] [xbp+D0h]
cocos2d::CCNode *v186; // [xsp+100h] [xbp+D0h]
float v187; // [xsp+100h] [xbp+D0h]
char *v188; // [xsp+100h] [xbp+D0h]
__int64 v190; // [xsp+128h] [xbp+F8h] BYREF
__int64 v191; // [xsp+130h] [xbp+100h] BYREF
__int64 v192; // [xsp+138h] [xbp+108h] BYREF
_BYTE v193[4]; // [xsp+140h] [xbp+110h] BYREF
float v194; // [xsp+144h] [xbp+114h]
_BYTE v195[8]; // [xsp+148h] [xbp+118h] BYREF
__int64 v196; // [xsp+150h] [xbp+120h] BYREF
__int64 v197; // [xsp+158h] [xbp+128h] BYREF
__int64 v198[2]; // [xsp+160h] [xbp+130h] BYREF
__int64 v199[2]; // [xsp+170h] [xbp+140h] BYREF
cocos2d::CCLabelBMFont *v200; // [xsp+180h] [xbp+150h]
__int64 v201[2]; // [xsp+188h] [xbp+158h] BYREF
void *v202; // [xsp+198h] [xbp+168h]
__int64 v203[2]; // [xsp+1A0h] [xbp+170h] BYREF
void *v204; // [xsp+1B0h] [xbp+180h]
__int64 v205[2]; // [xsp+1B8h] [xbp+188h] BYREF
void *v206; // [xsp+1C8h] [xbp+198h]
__int64 v207[2]; // [xsp+1D0h] [xbp+1A0h] BYREF
void *v208; // [xsp+1E0h] [xbp+1B0h]
__int64 v209; // [xsp+1E8h] [xbp+1B8h] BYREF
__int64 v210; // [xsp+1F0h] [xbp+1C0h]
void *v211; // [xsp+1F8h] [xbp+1C8h]
__int64 v212; // [xsp+200h] [xbp+1D0h] BYREF
__int64 v213; // [xsp+208h] [xbp+1D8h]
void *v214; // [xsp+210h] [xbp+1E0h]
LODWORD(v198[0]) = 1258291200;
v173 = cocos2d::CCLayerColor::initWithColor(this, v198);
if ( !v173 )
return v173;
v5 = (cocos2d::CCArray *)((char *)&dword_0 + 1);
*((_BYTE *)this + 797) = (unsigned __int8)&dword_0 + 1;
*((_BYTE *)this + 596) = (unsigned __int8)&dword_0 + 1;
if ( a2 )
{
*((_QWORD *)this + 84) = a2;
}
else
{
*((_QWORD *)this + 85) = a3;
v5 = (cocos2d::CCArray *)cocos2d::CCObject::retain(a3);
}
v6 = (cocos2d::CCObject *)cocos2d::CCArray::create(v5);
*((_QWORD *)this + 86) = v6;
cocos2d::CCObject::retain(v6);
v7 = (cocos2d::CCObject *)cocos2d::CCDictionary::create((cocos2d::CCDictionary *)"Path of Light Rank 1");
*((_QWORD *)this + 102) = v7;
v8 = (cocos2d::CCDictionary *)cocos2d::CCObject::retain(v7);
v9 = (cocos2d::CCObject *)cocos2d::CCDictionary::create(v8);
*((_QWORD *)this + 103) = v9;
cocos2d::CCObject::retain(v9);
FLAlertLayer::incrementForcePrio(this);
(*(void (__fastcall **)(SetGroupIDLayer *, __int64))(*(_QWORD *)this + 1000LL))(this, 1);
v10 = (cocos2d::CCDirector *)(*(__int64 (__fastcall **)(SetGroupIDLayer *, __int64))(*(_QWORD *)this + 1072LL))(
this,
1);
v11 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v10);
WinSize = (cocos2d::CCLayer *)cocos2d::CCDirector::getWinSize(&v190, v11);
v13 = cocos2d::CCLayer::create(WinSize);
v14 = *(_QWORD *)this;
*((_QWORD *)this + 73) = v13;
(*(void (__fastcall **)(SetGroupIDLayer *))(v14 + 456))(this);
v15 = (cocos2d::CCArray *)(*(__int64 (__fastcall **)(SetGroupIDLayer *, __int64))(*(_QWORD *)this + 1168LL))(
this,
4294967240LL);
v16 = (cocos2d::CCObject *)cocos2d::CCArray::create(v15);
*((_QWORD *)this + 87) = v16;
v17 = (GameManager *)cocos2d::CCObject::retain(v16);
*((_DWORD *)this + 191) = *(_DWORD *)(GameManager::sharedState(v17) + 976);
cocos2d::CCRect::CCRect((cocos2d::CCRect *)v198, 0.0, 0.0, 80.0, 80.0);
v18 = cocos2d::extension::CCScale9Sprite::create("GJ_square01.png", v198);
v19 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v18 + 320LL);
cocos2d::CCSize::CCSize((cocos2d::CCSize *)v198, 390.0, 310.0);
v19(v18, v198);
(*(void (__fastcall **)(_QWORD, __int64, __int64))(**((_QWORD **)this + 73) + 464LL))(
*((_QWORD *)this + 73),
v18,
4294967294LL);
v20 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v18 + 184LL);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v198, *(float *)&v190 * 0.5, *((float *)&v190 + 1) * 0.5);
v20(v18, v198);
cocos2d::CCRect::CCRect((cocos2d::CCRect *)v198, 0.0, 0.0, 80.0, 80.0);
v21 = cocos2d::extension::CCScale9Sprite::create("square02_001.png", v198);
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v21 + 912LL))(v21, 50);
v22 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v21 + 320LL);
cocos2d::CCSize::CCSize((cocos2d::CCSize *)v198, 360.0, 68.0);
v22(v21, v198);
(*(void (__fastcall **)(_QWORD, __int64, __int64))(**((_QWORD **)this + 73) + 464LL))(
*((_QWORD *)this + 73),
v21,
0xFFFFFFFFLL);
v23 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v21 + 184LL);
cocos2d::CCPoint::CCPoint(
(cocos2d::CCPoint *)v198,
*(float *)&v190 * 0.5,
(float)(*((float *)&v190 + 1) * 0.5) + -17.0);
v23(v21, v198);
v25 = cocos2d::CCLabelBMFont::create((cocos2d::CCLabelBMFont *)"Editor L", "goldFont.fnt", v24);
v26 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v25 + 184LL);
cocos2d::CCPoint::CCPoint(
(cocos2d::CCPoint *)v198,
(float)(*(float *)&v190 * 0.5) + -125.0,
(float)((float)(*((float *)&v190 + 1) * 0.5) + 155.0) - 16.0);
v26(v25, v198);
(*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 73) + 456LL))(*((_QWORD *)this + 73), v25);
(*(void (__fastcall **)(__int64, float))(*(_QWORD *)v25 + 160LL))(v25, 0.65);
v28 = cocos2d::CCLabelBMFont::create((cocos2d::CCLabelBMFont *)"Editor L2", "goldFont.fnt", v27);
v29 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v28 + 184LL);
cocos2d::CCPoint::CCPoint(
(cocos2d::CCPoint *)v198,
*(float *)&v190 * 0.5,
(float)((float)(*((float *)&v190 + 1) * 0.5) + 155.0) - 16.0);
v29(v28, v198);
(*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 73) + 456LL))(*((_QWORD *)this + 73), v28);
(*(void (__fastcall **)(__int64, float))(*(_QWORD *)v28 + 160LL))(v28, 0.65);
v31 = cocos2d::CCLabelBMFont::create((cocos2d::CCLabelBMFont *)"Add Group ID", "goldFont.fnt", v30);
v32 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v31 + 184LL);
cocos2d::CCPoint::CCPoint(
(cocos2d::CCPoint *)v198,
*(float *)&v190 * 0.5,
(float)(*((float *)&v190 + 1) * 0.5) + 80.0);
v32(v31, v198);
(*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 73) + 456LL))(*((_QWORD *)this + 73), v31);
(*(void (__fastcall **)(__int64, float))(*(_QWORD *)v31 + 160LL))(v31, 0.65);
v34 = cocos2d::CCLabelBMFont::create((cocos2d::CCLabelBMFont *)"Z Order", "goldFont.fnt", v33);
v178 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v34 + 184LL);
v180 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v25 + 192LL))(v25);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v197, 250.0, 0.0);
cocos2d::CCPoint::operator+(v198, v180);
v178(v34, v198);
(*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 73) + 456LL))(*((_QWORD *)this + 73), v34);
(*(void (__fastcall **)(__int64, float))(*(_QWORD *)v34 + 160LL))(v34, 0.65);
v179 = cocos2d::CCLabelBMFont::create((cocos2d::CCLabelBMFont *)"Z Layer", "goldFont.fnt", v35);
v181 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v179 + 184LL);
cocos2d::CCPoint::CCPoint(
(cocos2d::CCPoint *)v198,
*(float *)&v190 * 0.5,
(float)(*((float *)&v190 + 1) * 0.5) + -64.0);
v181(v179, v198);
(*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 73) + 456LL))(*((_QWORD *)this + 73), v179);
v36 = (cocos2d::CCMenu *)(*(__int64 (__fastcall **)(__int64, float))(*(_QWORD *)v179 + 160LL))(v179, 0.65);
v37 = cocos2d::CCMenu::create(v36);
*((_QWORD *)this + 69) = v37;
(*(void (__fastcall **)(_QWORD, __int64, __int64))(**((_QWORD **)this + 73) + 464LL))(*((_QWORD *)this + 73), v37, 10);
*((_DWORD *)this + 160) = -1;
v38 = ButtonSprite::create(
(ButtonSprite *)"OK",
(const char *)&qword_28,
0,
1,
0.8,
"goldFont.fnt",
"GJ_button_01.png",
(const char *)0xFFFFFFFFLL,
30.0);
v39 = CCMenuItemSpriteExtra::create(v38, 0, (__int64)this, (__int64)SetGroupIDLayer::onClose, 0);
(*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 69) + 456LL))(*((_QWORD *)this + 69), v39);
v40 = *((_QWORD *)this + 69);
v182 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v40 + 184LL);
cocos2d::CCPoint::CCPoint(
(cocos2d::CCPoint *)v198,
*(float *)&v190 * 0.5,
(float)((float)(*((float *)&v190 + 1) * 0.5) + -155.0) + 23.0);
v182(v40, v198);
v42 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_plus2Btn_001.png", v41);
(*(void (__fastcall **)(__int64, float))(*(_QWORD *)v42 + 160LL))(v42, 0.8);
v43 = CCMenuItemSpriteExtra::create(v42, 0, (__int64)this, (__int64)SetGroupIDLayer::onNextFreeEditorLayer1, 0);
(*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 69) + 456LL))(*((_QWORD *)this + 69), v43);
v183 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v43 + 184LL);
v174 = *((cocos2d::CCNode **)this + 69);
v44 = (const cocos2d::CCPoint *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v25 + 192LL))(v25);
cocos2d::CCNode::convertToNodeSpace(&v196, v174, v44);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v197, 50.0, 0.0);
cocos2d::CCPoint::operator+(v198, &v196);
v183(v43, v198);
v46 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_plus2Btn_001.png", v45);
(*(void (__fastcall **)(__int64, float))(*(_QWORD *)v46 + 160LL))(v46, 0.8);
v47 = CCMenuItemSpriteExtra::create(v46, 0, (__int64)this, (__int64)SetGroupIDLayer::onNextFreeEditorLayer2, 0);
(*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 69) + 456LL))(*((_QWORD *)this + 69), v47);
v184 = *((cocos2d::CCNode **)this + 69);
v48 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v47 + 184LL);
v49 = (const cocos2d::CCPoint *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v28 + 192LL))(v28);
cocos2d::CCNode::convertToNodeSpace(&v196, v184, v49);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v197, 54.0, 0.0);
cocos2d::CCPoint::operator+(v198, &v196);
v48(v47, v198);
v51 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_optionsBtn_001.png", v50);
(*(void (__fastcall **)(__int64, float))(*(_QWORD *)v51 + 160LL))(v51, 0.35);
v52 = CCMenuItemSpriteExtra::create(v51, 0, (__int64)this, (__int64)SetGroupIDLayer::onGroupIDOptions, 0);
(*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 69) + 456LL))(*((_QWORD *)this + 69), v52);
v185 = *((cocos2d::CCNode **)this + 69);
v53 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v52 + 184LL);
v54 = (const cocos2d::CCPoint *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v31 + 192LL))(v31);
cocos2d::CCNode::convertToNodeSpace(&v196, v185, v54);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v197, 73.0, 0.0);
cocos2d::CCPoint::operator+(v198, &v196);
v53(v52, v198);
v209 = 0;
v210 = 0;
v211 = nullptr;
std::string::__init(&v209, "Help", 4u);
v212 = 0;
v213 = 0;
v214 = nullptr;
std::string::__init(
&v212,
"Add assigns up to 10 groups to the selected object(s).\n"
" P sets a single object as group parent.\n"
"Editor L1 and L2 places the object(s) on an editor layer.\n"
"Z layer sets the draw layer of the object(s). T layers are above, while B layers are below the player.\n"
"Z order sets the draw order of the object(s) within the Z layer.\n"
"CH sets the channel of the object(s).\n"
"ORD sets the order of the object(s).\n"
"Extra has more advanced options.\n"
"Preview makes touch toggled triggers preview in editor.\n"
"Playback starts playback from this object.",
0x260u);
v55 = (_DWORD *)InfoAlertButton::create((char *)&v209, (char *)&v212, 0.8);
if ( (v212 & 1) != 0 )
{
operator delete(v214);
if ( (v209 & 1) == 0 )
goto LABEL_6;
}
else if ( (v209 & 1) == 0 )
{
goto LABEL_6;
}
operator delete(v211);
LABEL_6:
v55[138] = 1063675494;
(*(void (__fastcall **)(_QWORD, _DWORD *))(**((_QWORD **)this + 69) + 456LL))(*((_QWORD *)this + 69), v55);
v56 = *(void (__fastcall **)(_DWORD *, __int64 *))(*(_QWORD *)v55 + 184LL);
v186 = *((cocos2d::CCNode **)this + 69);
cocos2d::CCPoint::CCPoint(
(cocos2d::CCPoint *)&v197,
(float)((float)(*(float *)&v190 * 0.5) + 195.0) - 17.0,
(float)((float)(*((float *)&v190 + 1) * 0.5) + 155.0) - 17.0);
cocos2d::CCNode::convertToNodeSpace(v198, v186, (const cocos2d::CCPoint *)&v197);
v56(v55, v198);
v57 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v25 + 192LL))(v25);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v197, 0.0, -30.0);
cocos2d::CCPoint::operator+(v198, v57);
v212 = 0;
v213 = 0;
v214 = nullptr;
std::string::__init(&v212, "L1", 2u);
TextInput = SetGroupIDLayer::createTextInput((__int64)this, (__int64)v198, 5u, 6, (__int64)&v212, 2u, 50.0);
v59 = v212;
*((_QWORD *)this + 88) = TextInput;
if ( (v59 & 1) != 0 )
operator delete(v214);
v60 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v28 + 192LL))(v28);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v197, 0.0, -30.0);
cocos2d::CCPoint::operator+(v198, v60);
v212 = 0;
v213 = 0;
v214 = nullptr;
std::string::__init(&v212, "L2", 2u);
v61 = SetGroupIDLayer::createTextInput((__int64)this, (__int64)v198, 6u, 6, (__int64)&v212, 3u, 50.0);
v62 = v212;
*((_QWORD *)this + 89) = v61;
if ( (v62 & 1) != 0 )
operator delete(v214);
v63 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v31 + 192LL))(v31);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v198, -80.0, -31.0);
cocos2d::CCPoint::operator+(&v191, v63);
v212 = 0;
v213 = 0;
v214 = nullptr;
std::string::__init(&v212, &byte_11B8890, 0);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v198, (const cocos2d::CCPoint *)&v191);
v64 = IDNameInput::create(this, (char *)this + 544, 1, 1, &v212, v198, 6, 0, 1.0, 0, 0);
v66 = v212;
*((_QWORD *)this + 107) = v64;
if ( (v66 & 1) != 0 )
{
operator delete(v214);
v64 = *((_QWORD *)this + 107);
}
*((_QWORD *)this + 91) = *(_QWORD *)(v64 + 384);
v67 = 0.0;
if ( a2 )
v67 = -20.0;
v68 = ButtonSprite::create(
(ButtonSprite *)"Add",
(const char *)&dword_30 + 2,
0,
1,
0.7,
"goldFont.fnt",
"GJ_button_04.png",
v65,
25.0);
v69 = CCMenuItemSpriteExtra::create(v68, 0, (__int64)this, (__int64)SetGroupIDLayer::onAddGroup, 0);
(*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 69) + 456LL))(*((_QWORD *)this + 69), v69);
v175 = *((cocos2d::CCNode **)this + 69);
v70 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v69 + 184LL);
v187 = v67 + (float)((float)(*(float *)&v190 * 0.5) + 85.0);
v71 = (*(__int64 (__fastcall **)(_QWORD))(**((_QWORD **)this + 91) + 192LL))(*((_QWORD *)this + 91));
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v197, v187, *(float *)(v71 + 4));
cocos2d::CCNode::convertToNodeSpace(v198, v175, (const cocos2d::CCPoint *)&v197);
v70(v69, v198);
if ( a2 )
{
v73 = ButtonSprite::create(
(ButtonSprite *)"P",
(const char *)&dword_30 + 2,
0,
0,
0.7,
"goldFont.fnt",
"GJ_button_04.png",
v72,
25.0);
v74 = CCMenuItemSpriteExtra::create(v73, 0, (__int64)this, (__int64)SetGroupIDLayer::onAddGroupParent, 0);
(*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 69) + 456LL))(*((_QWORD *)this + 69), v74);
v75 = v69;
v76 = *(__int64 (__fastcall **)(__int64))(*(_QWORD *)v69 + 192LL);
v77 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v74 + 184LL);
v78 = v76(v75);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v197, 60.0, 0.0);
cocos2d::CCPoint::operator+(v198, v78);
v77(v74, v198);
}
v79 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v34 + 192LL))(v34);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v197, 0.0, -30.0);
cocos2d::CCPoint::operator+(v198, v79);
v212 = 0;
v213 = 0;
v214 = nullptr;
std::string::__init(&v212, "Z", 1u);
v80 = SetGroupIDLayer::createTextInput((__int64)this, (__int64)v198, 7u, 6, (__int64)&v212, 2u, 50.0);
v81 = v212;
*((_QWORD *)this + 90) = v80;
if ( (v81 & 1) != 0 )
operator delete(v214);
v82 = 0;
v83 = -5;
cocos2d::CCSize::CCSize((cocos2d::CCSize *)v198, 360.0, 68.0);
v84 = ScrollableContentLayer::create((const cocos2d::CCSize *)v198);
*((_QWORD *)this + 104) = v84;
v85 = v84;
v86 = v21;
v87 = *(__int64 (__fastcall **)(__int64))(*(_QWORD *)v21 + 192LL);
v88 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v85 + 184LL);
v176 = (cocos2d::CCNode *)v87(v86);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v197, 180.0, 34.0);
cocos2d::CCPoint::operator-(v198, v176, &v197, v89);
v88(v85, v198);
v90 = (cocos2d::CCMenu *)(*(__int64 (__fastcall **)(_QWORD, _QWORD, _QWORD))(**((_QWORD **)this + 73) + 464LL))(
*((_QWORD *)this + 73),
*((_QWORD *)this + 104),
0);
v91 = cocos2d::CCMenu::create(v90);
*((_QWORD *)this + 105) = v91;
(*(void (__fastcall **)(__int64, void *))(*(_QWORD *)v91 + 296LL))(v91, &unk_155DDF8);
(*(void (__fastcall **)(_QWORD, void *))(**((_QWORD **)this + 105) + 320LL))(*((_QWORD *)this + 105), &unk_155DE00);
(*(void (__fastcall **)(_QWORD, void *))(**((_QWORD **)this + 105) + 184LL))(*((_QWORD *)this + 105), &unk_155DDF8);
v92 = (cocos2d::CCArray *)(*(__int64 (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(*((_QWORD *)this + 104) + 416LL)
+ 456LL))(
*(_QWORD *)(*((_QWORD *)this + 104) + 416LL),
*((_QWORD *)this + 105));
v94 = (cocos2d::CCArray *)cocos2d::CCArray::create(v92);
v95 = "B5";
while ( 1 )
{
++v82;
v96 = (cocos2d::CCObject *)ButtonSprite::create(
(ButtonSprite *)v95,
(const char *)&qword_D8 + 4,
0,
0,
0.3,
"bigFont.fnt",
"GJ_button_04.png",
v93,
25.0);
cocos2d::CCArray::addObject(*((cocos2d::CCArray **)this + 86), v96);
v97 = (cocos2d::CCObject *)CCMenuItemSpriteExtra::create(
(__int64)v96,
0,
(__int64)this,
(__int64)SetGroupIDLayer::onZLayer,
0);
(*(void (__fastcall **)(cocos2d::CCObject *, _QWORD))(*(_QWORD *)v97 + 72LL))(v97, v83);
(*(void (__fastcall **)(cocos2d::CCObject *, _QWORD))(*(_QWORD *)v96 + 72LL))(v96, v83);
(*(void (__fastcall **)(_QWORD, cocos2d::CCObject *))(**((_QWORD **)this + 69) + 456LL))(
*((_QWORD *)this + 69),
v97);
cocos2d::CCArray::addObject(v94, v97);
if ( v82 == 10 )
break;
switch ( v82 )
{
case 1:
v83 = -3;
v95 = "B4";
break;
case 2:
v83 = -1;
v95 = "B3";
break;
case 3:
v83 = 1;
v95 = "B2";
break;
case 4:
v83 = 3;
v95 = "B1";
break;
case 5:
v83 = 5;
v95 = "T1";
break;
case 6:
v83 = 7;
v95 = "T2";
break;
case 7:
v83 = 9;
v95 = "T3";
break;
case 8:
v83 = 11;
v95 = "T4";
break;
default:
v83 = 0;
v95 = "Default";
break;
}
}
v116 = *((cocos2d::CCNode **)this + 69);
v117 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v179 + 192LL))(v179);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v196, 0.0, -28.0);
cocos2d::CCPoint::operator+(&v197, v117);
cocos2d::CCNode::convertToNodeSpace(v198, v116, (const cocos2d::CCPoint *)&v197);
GameToolbox::alignItemsHorisontally((__int64)v94, (__int64)v198, 0, 5.0);
SetGroupIDLayer::determineStartValues(this);
if ( *((_DWORD *)this + 197) == -100
&& (v158 = *((cocos2d::CCArray **)this + 85)) != nullptr
&& (unsigned int)cocos2d::CCArray::count(v158) )
{
v159 = 0;
v160 = &byte_1191DE0;
while ( 1 )
{
v212 = 0;
v213 = 0;
v214 = nullptr;
std::string::__init(&v212, v160, 1u);
v162 = (cocos2d::CCNode *)cocos2d::CCSprite::createWithSpriteFrameName(
(cocos2d::CCSprite *)"GJ_colorBtn_001.png",
v161);
v163 = &unk_117C4B8;
if ( v159 )
v163 = &unk_117C4C0;
(*(void (__fastcall **)(cocos2d::CCNode *, void *))(*(_QWORD *)v162 + 960LL))(v162, v163);
(*(void (__fastcall **)(cocos2d::CCNode *, __int64))(*(_QWORD *)v162 + 912LL))(v162, 100);
v165 = (cocos2d::CCLabelBMFont *)((char *)&v212 + 1);
if ( (v212 & 1) != 0 )
v165 = (cocos2d::CCLabelBMFont *)v214;
v166 = cocos2d::CCLabelBMFont::create(v165, "bigFont.fnt", v164);
(*(void (__fastcall **)(cocos2d::CCNode *, __int64))(*(_QWORD *)v162 + 456LL))(v162, v166);
(*(void (__fastcall **)(__int64, float))(*(_QWORD *)v166 + 160LL))(v166, 1.4);
v167 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v166 + 184LL);
cocos2d::CCNode::convertToNodeSpace(&v196, v162, (const cocos2d::CCPoint *)&unk_155DDF8);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v197, 2.0, 2.5);
cocos2d::CCPoint::operator+(v198, &v196);
v167(v166, v198);
(*(void (__fastcall **)(cocos2d::CCNode *, float))(*(_QWORD *)v162 + 160LL))(v162, 0.3);
v168 = CCMenuItemSpriteExtra::create((__int64)v162, 0, (__int64)this, (__int64)SetGroupIDLayer::onZLayerShift, 0);
(*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 69) + 456LL))(*((_QWORD *)this + 69), v168);
(*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v168 + 72LL))(v168, v159);
v169 = *((cocos2d::CCNode **)this + 69);
v170 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v168 + 184LL);
v171 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v179 + 192LL))(v179);
if ( v159 )
v172 = 40.0;
else
v172 = -40.0;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v196, v172, -2.0);
cocos2d::CCPoint::operator+(&v197, v171);
cocos2d::CCNode::convertToNodeSpace(v198, v169, (const cocos2d::CCPoint *)&v197);
v170(v168, v198);
CCMenuItemSpriteExtra::setSizeMult(v168, 2.0);
if ( (v212 & 1) != 0 )
operator delete(v214);
v160 = "+";
if ( v159 )
break;
v159 = 1;
}
v118 = 55.0;
}
else
{
v118 = 40.0;
}
v119 = *((GameObject **)this + 84);
if ( v119 )
{
ParentMode = GameObject::getParentMode(v119);
}
else
{
v154 = *((cocos2d::CCArray **)this + 85);
if ( !v154 )
goto LABEL_67;
v155 = 0;
ParentMode = -1;
while ( v155 < (unsigned int)cocos2d::CCArray::count(v154) )
{
v157 = (GameObject *)cocos2d::CCArray::objectAtIndex(*((cocos2d::CCArray **)this + 85), v155);
if ( ParentMode == -1 )
{
v156 = GameObject::getParentMode(v157);
}
else
{
v156 = GameObject::getParentMode(v157);
if ( ParentMode != v156 )
goto LABEL_67;
}
v154 = *((cocos2d::CCArray **)this + 85);
++v155;
ParentMode = v156;
}
}
if ( ParentMode != -1 )
{
v121 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(
(cocos2d::CCString *)"(%i)",
(const char *)ParentMode);
CString = (const char *)cocos2d::CCString::getCString(v121);
goto LABEL_56;
}
LABEL_67:
CString = "(-)";
LABEL_56:
v188 = (char *)CString;
v199[0] = 0;
v199[1] = 0;
v200 = nullptr;
v123 = strlen(CString);
std::string::__init(v199, v188, v123);
v125 = (cocos2d::CCLabelBMFont *)((char *)v199 + 1);
if ( (v199[0] & 1) != 0 )
v125 = v200;
v126 = cocos2d::CCLabelBMFont::create(v125, "chatFont.fnt", v124);
v127 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v126 + 184LL);
v128 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v179 + 192LL))(v179);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v197, v118, -2.0);
cocos2d::CCPoint::operator+(v198, v128);
v127(v126, v198);
(*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 73) + 456LL))(*((_QWORD *)this + 73), v126);
(*(void (__fastcall **)(__int64, float))(*(_QWORD *)v126 + 160LL))(v126, 0.6);
(*(void (__fastcall **)(__int64, void *))(*(_QWORD *)v126 + 1072LL))(v126, &unk_117C4C8);
if ( *((_BYTE *)this + 752) )
{
cocos2d::CCPoint::CCPoint(
(cocos2d::CCPoint *)v193,
(float)(*(float *)&v190 * 0.5) + -125.0,
(float)((float)(*((float *)&v190 + 1) * 0.5) + -155.0) + 25.0);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v195, (float)(*(float *)&v190 * 0.5) + 125.0, v194);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v198, (const cocos2d::CCPoint *)v193);
v201[0] = 0;
v201[1] = 0;
v202 = nullptr;
std::string::__init(v201, "ORD", 3u);
v129 = SetGroupIDLayer::createTextInput((__int64)this, (__int64)v198, 3u, 6, (__int64)v201, 2u, 50.0);
v130 = v201[0];
*((_QWORD *)this + 92) = v129;
if ( (v130 & 1) != 0 )
operator delete(v202);
SetGroupIDLayer::updateEditorOrderLabel(this);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v198, (const cocos2d::CCPoint *)v195);
v203[0] = 0;
v203[1] = 0;
v204 = nullptr;
std::string::__init(v203, "CH", 2u);
v131 = SetGroupIDLayer::createTextInput((__int64)this, (__int64)v198, 4u, 6, (__int64)v203, 2u, 50.0);
v132 = v203[0];
*((_QWORD *)this + 93) = v131;
if ( (v132 & 1) != 0 )
operator delete(v204);
SetGroupIDLayer::updateOrderChannelLabel(this);
v134 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_plus2Btn_001.png", v133);
(*(void (__fastcall **)(__int64, float))(*(_QWORD *)v134 + 160LL))(v134, 0.8);
v135 = CCMenuItemSpriteExtra::create(v134, 0, (__int64)this, (__int64)SetGroupIDLayer::onNextFreeOrderChannel, 0);
(*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 69) + 456LL))(*((_QWORD *)this + 69), v135);
v136 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v135 + 184LL);
cocos2d::CCNode::convertToNodeSpace(&v196, *((cocos2d::CCNode **)this + 69), (const cocos2d::CCPoint *)v195);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v197, -75.0, 0.0);
cocos2d::CCPoint::operator+(v198, &v196);
v136(v135, v198);
}
SetGroupIDLayer::updateGroupIDLabel(this);
SetGroupIDLayer::updateEditorLabel(this);
SetGroupIDLayer::updateEditorLabel2(this);
SetGroupIDLayer::updateZOrderLabel(this);
SetGroupIDLayer::updateZLayerButtons((cocos2d::CCArray **)this);
SetGroupIDLayer::updateGroupIDButtons((cocos2d::CCArray **)this);
v137 = *((cocos2d::CCNode **)this + 69);
cocos2d::CCPoint::CCPoint(
(cocos2d::CCPoint *)v198,
(float)(*(float *)&v190 * 0.5) + 217.0,
(float)(*((float *)&v190 + 1) * 0.5) + 142.0);
cocos2d::CCNode::convertToNodeSpace(&v192, v137, (const cocos2d::CCPoint *)v198);
v139 = ButtonSprite::create(
(ButtonSprite *)"Copy",
(const char *)&dword_14,
0,
1,
0.5,
"goldFont.fnt",
"GJ_button_04.png",
v138,
25.0);
v141 = ButtonSprite::create(
(ButtonSprite *)"Paste",
(const char *)&dword_14,
0,
1,
0.5,
"goldFont.fnt",
"GJ_button_04.png",
v140,
25.0);
v143 = ButtonSprite::create(
(ButtonSprite *)"Extra",
(const char *)&dword_14,
0,
1,
0.5,
"goldFont.fnt",
"GJ_button_04.png",
v142,
25.0);
v145 = ButtonSprite::create(
(ButtonSprite *)"Extra2",
(const char *)&dword_14,
0,
1,
0.5,
"goldFont.fnt",
"GJ_button_04.png",
v144,
25.0);
v147 = ButtonSprite::create(
(ButtonSprite *)"Anim",
(const char *)&dword_14,
0,
1,
0.5,
"goldFont.fnt",
"GJ_button_04.png",
v146,
25.0);
v148 = CCMenuItemSpriteExtra::create(v139, 0, (__int64)this, (__int64)SetGroupIDLayer::onCopy, 0);
v149 = CCMenuItemSpriteExtra::create(v141, 0, (__int64)this, (__int64)SetGroupIDLayer::onPaste, 0);
v150 = CCMenuItemSpriteExtra::create(v143, 0, (__int64)this, (__int64)SetGroupIDLayer::onExtra, 0);
v151 = CCMenuItemSpriteExtra::create(v145, 0, (__int64)this, (__int64)SetGroupIDLayer::onExtra2, 0);
v152 = CCMenuItemSpriteExtra::create(v147, 0, (__int64)this, (__int64)SetGroupIDLayer::onAnim, 0);
if ( a2 )
{
(*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 69) + 456LL))(*((_QWORD *)this + 69), v148);
(*(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v148 + 184LL))(v148, &v192);
LABEL_32:
(*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 69) + 456LL))(*((_QWORD *)this + 69), v149);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v196, (const cocos2d::CCPoint *)&v192);
if ( a2 )
{
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v197, 0.0, -31.0);
cocos2d::CCPoint::operator+(v198, &v196);
*(__n128 *)&v98 = cocos2d::CCPoint::operator=(&v196, v198);
}
(*(void (__fastcall **)(__int64, __int64 *, long double))(*(_QWORD *)v149 + 184LL))(v149, &v196, v98);
goto LABEL_35;
}
v153 = GameManager::sharedState(nullptr);
if ( LevelEditorLayer::canPasteState(*(LevelEditorLayer **)(v153 + 552)) )
goto LABEL_32;
LABEL_35:
(*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 69) + 456LL))(*((_QWORD *)this + 69), v150);
v99 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v150 + 184LL);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v197, 0.0, -62.0);
cocos2d::CCPoint::operator+(v198, &v192);
v99(v150, v198);
(*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 69) + 456LL))(*((_QWORD *)this + 69), v151);
v100 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v151 + 184LL);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v197, 0.0, -93.0);
cocos2d::CCPoint::operator+(v198, &v192);
v100(v151, v198);
(*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 69) + 456LL))(*((_QWORD *)this + 69), v152);
v101 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v152 + 184LL);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v197, 0.0, -124.0);
cocos2d::CCPoint::operator+(v198, &v192);
v101(v152, v198);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v193, 0.0, 2.0);
cocos2d::CCPoint::CCPoint(
(cocos2d::CCPoint *)v195,
(float)(*(float *)&v190 * 0.5) + 217.0,
(float)((float)(*((float *)&v190 + 1) * 0.5) + 142.0) - 164.0);
if ( a2 )
{
v102 = *((unsigned int *)a2 + 312);
if ( (_DWORD)v102 == 1 )
{
v102 = *(_QWORD *)(GameManager::sharedState((GameManager *)v102) + 552);
if ( v102 )
{
v205[0] = 0;
v205[1] = 0;
v206 = nullptr;
std::string::__init(v205, "Preview", 7u);
v103 = *((_BYTE *)a2 + 1768);
v104 = *((cocos2d::CCNode **)this + 69);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v196, 0.0, -0.0);
cocos2d::CCPoint::operator+(&v197, v195);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v198, (const cocos2d::CCPoint *)v193);
GameToolbox::createToggleButton(
(__int64)v205,
(const char *)SetGroupIDLayer::onToggleGuide,
0,
v103,
v104,
(const cocos2d::CCPoint *)&v197,
(__int64)this,
(__int64)this,
0.7,
0.3,
80.0,
(float *)v198,
"goldFont.fnt",
1,
0,
nullptr);
v105 = (GameManager *)LOBYTE(v205[0]);
if ( (v205[0] & 1) != 0 )
operator delete(v206);
v106 = *(GameObject **)(*(_QWORD *)(GameManager::sharedState(v105) + 552) + 14816LL);
v207[0] = 0;
v207[1] = 0;
v208 = nullptr;
std::string::__init(v207, "Playback", 8u);
v107 = *((cocos2d::CCNode **)this + 69);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v196, 0.0, -38.0);
cocos2d::CCPoint::operator+(&v197, v195);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v198, (const cocos2d::CCPoint *)v193);
GameToolbox::createToggleButton(
(__int64)v207,
(const char *)SetGroupIDLayer::onToggleSelectedOrder,
0,
a2 == v106,
v107,
(const cocos2d::CCPoint *)&v197,
(__int64)this,
(__int64)this,
0.7,
0.3,
80.0,
(float *)v198,
"goldFont.fnt",
1,
0,
nullptr);
v108 = (GameManager *)LOBYTE(v207[0]);
if ( (v207[0] & 1) != 0 )
operator delete(v208);
v109 = *(GameObject **)(*(_QWORD *)(GameManager::sharedState(v108) + 552) + 14832LL);
v209 = 0;
v210 = 0;
v211 = nullptr;
std::string::__init(&v209, "Trace Out", 9u);
v110 = *((cocos2d::CCNode **)this + 69);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v196, 0.0, -76.0);
cocos2d::CCPoint::operator+(&v197, v195);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v198, (const cocos2d::CCPoint *)v193);
GameToolbox::createToggleButton(
(__int64)&v209,
(const char *)SetGroupIDLayer::onToggleTraceOut,
0,
a2 == v109,
v110,
(const cocos2d::CCPoint *)&v197,
(__int64)this,
(__int64)this,
0.7,
0.3,
80.0,
(float *)v198,
"goldFont.fnt",
1,
0,
nullptr);
v102 = (unsigned __int8)v209;
if ( (v209 & 1) != 0 )
operator delete(v211);
}
}
v111 = *(GameManager **)(GameManager::sharedState((GameManager *)v102) + 552);
if ( v111 )
{
v112 = *(GameObject **)(*(_QWORD *)(GameManager::sharedState(v111) + 552) + 14824LL);
v212 = 0;
v213 = 0;
v214 = nullptr;
std::string::__init(&v212, "Trace In", 8u);
v113 = *((cocos2d::CCNode **)this + 69);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v196, 0.0, -114.0);
cocos2d::CCPoint::operator+(&v197, v195);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v198, (const cocos2d::CCPoint *)v193);
GameToolbox::createToggleButton(
(__int64)&v212,
(const char *)SetGroupIDLayer::onToggleTraceIn,
0,
a2 == v112,
v113,
(const cocos2d::CCPoint *)&v197,
(__int64)this,
(__int64)this,
0.7,
0.3,
80.0,
(float *)v198,
"goldFont.fnt",
1,
0,
nullptr);
if ( (v212 & 1) != 0 )
operator delete(v214);
}
}
v114 = v199[0];
*((_BYTE *)this + 797) = 0;
if ( (v114 & 1) != 0 )
operator delete(v200);
return v173;
}