//
// GJAccountSettingsLayer::init from 0xa37144 to 0xa38e6c (7464 bytes)
//
// 2 xrefs:
// > GJAccountSettingsLayer::create @ 0xa39028
// > ??> @ 0xda950
//
// 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 12:59:52 +0000
//
__int64 __fastcall GJAccountSettingsLayer::init(GJAccountSettingsLayer *this, int a2)
{
unsigned __int8 v4; // w0
unsigned int v5; // w25
__int64 v7; // x2
GameLevelManager *v8; // x0
cocos2d::CCDictionary **v9; // x0
_DWORD *v10; // x0
_DWORD *v11; // x24
int v12; // w1
__int64 v13; // x0
__int64 v14; // x3
__int64 v15; // x28
__int64 v16; // x1
__int64 v17; // x5
__int64 v18; // x0
__int64 v19; // x3
__int64 v20; // x28
__int64 v21; // x1
__int64 v22; // x5
__int64 v23; // x0
__int64 v24; // x3
__int64 v25; // x28
__int64 v26; // x1
__int64 v27; // x5
__int64 v28; // x0
__int64 v29; // x3
__int64 v30; // x28
__int64 v31; // x1
__int64 v32; // x5
__int64 v33; // x0
__int64 v34; // x3
__int64 v35; // x28
__int64 v36; // x1
__int64 v37; // x5
__int64 v38; // x0
__int64 v39; // x3
__int64 v40; // x28
__int64 v41; // x1
__int64 v42; // x5
__int64 v43; // x0
__int64 v44; // x26
__int64 v45; // x23
__int64 v46; // x1
__int64 v47; // x1
unsigned __int64 v48; // x0
GameManager *v49; // x0
cocos2d::CCDirector *v50; // x0
cocos2d::CCDirector *v51; // x0
cocos2d::CCLayer *WinSize; // x0
__int64 v53; // x0
__int64 v54; // x27
void (__fastcall *v55)(__int64, _DWORD **); // x28
void (__fastcall *v56)(__int64, _DWORD **); // x28
const char *v57; // x2
__int64 v58; // x27
void (__fastcall *v59)(__int64, _DWORD **); // x28
cocos2d::CCMenu *v60; // x0
__int64 v61; // x0
cocos2d::CCArray *v62; // x0
cocos2d::CCObject *v63; // x0
__int64 v64; // x27
void (__fastcall *v65)(__int64, _DWORD **); // x26
const char *v66; // x2
__int64 v67; // x24
__int64 v68; // x27
__int64 v69; // x0
__int64 (__fastcall *v70)(__int64); // x1
void (__fastcall *v71)(__int64, _DWORD **); // x24
float *v72; // x0
cocos2d::CCNode *v73; // x27
CCMenuItemToggler *ToggleButton; // x24
__int64 v75; // x2
cocos2d::CCNode *v76; // x24
float v77; // s0
CCMenuItemToggler *v78; // x27
__int64 v79; // x2
cocos2d::CCNode *v80; // x24
float v81; // s0
CCMenuItemToggler *v82; // x28
__int64 v83; // x2
cocos2d::CCArray *v84; // x0
cocos2d::CCObject *v85; // x0
__int64 v86; // x23
void (__fastcall *v87)(__int64, _DWORD **); // x27
const char *v88; // x2
__int64 v89; // x27
__int64 v90; // x28
__int64 v91; // x0
__int64 (__fastcall *v92)(__int64); // x1
void (__fastcall *v93)(__int64, _DWORD **); // x27
float *v94; // x0
cocos2d::CCNode *v95; // x27
__int64 v96; // x2
cocos2d::CCNode *v97; // x27
CCMenuItemToggler *v98; // x28
__int64 v99; // x2
CCMenuItemToggler *v100; // x2
__int64 v101; // x3
cocos2d::CCArray *v102; // x0
cocos2d::CCObject *v103; // x0
__int64 v104; // x24
void (__fastcall *v105)(__int64, _DWORD **); // x28
const char *v106; // x2
__int64 v107; // x24
__int64 v108; // x26
cocos2d::CCNode *v109; // x28
__int64 v110; // x0
__int64 (__fastcall *v111)(__int64); // x1
void (__fastcall *v112)(__int64, _DWORD **); // x24
float *v113; // x0
cocos2d::CCNode *v114; // x26
CCMenuItemToggler *v115; // x24
__int64 v116; // x2
cocos2d::CCNode *v117; // x24
float v118; // s0
CCMenuItemToggler *v119; // x24
__int64 v120; // x2
cocos2d::CCNode *v121; // x26
float v122; // s0
CCMenuItemToggler *v123; // x28
__int64 v124; // x2
cocos2d::CCArray *v125; // x0
cocos2d::CCObject *v126; // x0
__int64 v127; // x24
void (__fastcall *v128)(__int64, _DWORD **); // x27
const char *v129; // x2
__int64 v130; // x24
cocos2d::CCNode *v131; // x24
CCMenuItemToggler *v132; // x27
__int64 v133; // x2
cocos2d::CCNode *v134; // x24
CCMenuItemToggler *v135; // x24
__int64 v136; // x2
cocos2d::CCNode *v137; // x28
CCMenuItemToggler *v138; // x26
__int64 v139; // x2
const char *v140; // x6
__int64 v141; // x24
__int64 v142; // x24
cocos2d::CCNode *v143; // x28
__int64 (__fastcall *v144)(__int64, _DWORD **); // x27
cocos2d::CCArray *v145; // x0
cocos2d::CCArray *v146; // x24
const char *v147; // x6
__int64 v148; // x0
cocos2d::CCObject *v149; // x27
const char *v150; // x6
__int64 v151; // x0
cocos2d::CCObject *v152; // x23
cocos2d::CCNode *v153; // x23
__int64 v154; // x3
__int64 v155; // x2
__int64 v156; // x23
void *v157; // x1
__int64 v158; // x0
unsigned int *v159; // x0
__int64 *v160; // x21
__int64 *v161; // x24
__int64 v162; // x19
__int64 v163; // x0
cocos2d::CCObject *v164; // [xsp+90h] [xbp+90h]
cocos2d::CCObject *v165; // [xsp+90h] [xbp+90h]
cocos2d::CCObject *v166; // [xsp+90h] [xbp+90h]
int v167; // [xsp+9Ch] [xbp+9Ch]
cocos2d::CCNode *v168; // [xsp+A0h] [xbp+A0h]
cocos2d::CCObject *v169; // [xsp+A8h] [xbp+A8h]
cocos2d::CCObject *v170; // [xsp+A8h] [xbp+A8h]
int v171; // [xsp+B8h] [xbp+B8h]
__int64 v172; // [xsp+B8h] [xbp+B8h]
__int64 v173; // [xsp+B8h] [xbp+B8h]
__int64 v174; // [xsp+B8h] [xbp+B8h]
__int64 v175; // [xsp+B8h] [xbp+B8h]
__int64 v176; // [xsp+B8h] [xbp+B8h]
__int64 v177; // [xsp+B8h] [xbp+B8h]
__int64 v178; // [xsp+C0h] [xbp+C0h] BYREF
char v179[8]; // [xsp+C8h] [xbp+C8h] BYREF
char v180[8]; // [xsp+D0h] [xbp+D0h] BYREF
__int64 v181; // [xsp+D8h] [xbp+D8h] BYREF
__int64 v182; // [xsp+E0h] [xbp+E0h] BYREF
__int64 v183; // [xsp+E8h] [xbp+E8h] BYREF
__int64 v184; // [xsp+F0h] [xbp+F0h] BYREF
_DWORD *v185[2]; // [xsp+F8h] [xbp+F8h] BYREF
__int64 v186; // [xsp+108h] [xbp+108h] BYREF
__int64 v187; // [xsp+110h] [xbp+110h]
void *v188; // [xsp+118h] [xbp+118h]
__int64 v189; // [xsp+120h] [xbp+120h] BYREF
__int64 v190; // [xsp+128h] [xbp+128h]
void *v191; // [xsp+130h] [xbp+130h]
FLAlertLayer::incrementForcePrio(this);
LODWORD(v185[0]) = -1778384896;
v4 = cocos2d::CCLayerColor::initWithColor(this, v185);
v5 = v4;
if ( v4 )
{
v7 = *(_QWORD *)this;
*((_BYTE *)this + 596) = 1;
(*(void (__fastcall **)(GJAccountSettingsLayer *, __int64))(v7 + 1000))(this, 1);
(*(void (__fastcall **)(GJAccountSettingsLayer *, __int64))(*(_QWORD *)this + 1072LL))(this, 1);
v8 = (GameLevelManager *)(*(__int64 (__fastcall **)(GJAccountSettingsLayer *, __int64))(*(_QWORD *)this + 1088LL))(
this,
1);
*((_DWORD *)this + 165) = a2;
v9 = (cocos2d::CCDictionary **)GameLevelManager::sharedState(v8);
v10 = (_DWORD *)GameLevelManager::userInfoForAccountID(v9, a2);
v11 = v10;
if ( !v10 )
goto LABEL_120;
*((_DWORD *)this + 166) = v10[109];
*((_DWORD *)this + 167) = v10[110];
*((_DWORD *)this + 168) = v10[111];
v12 = v10[112];
LODWORD(v184) = 0;
*((_DWORD *)this + 169) = v12;
v185[0] = &v184;
v13 = std::__tree,std::__map_value_compare,std::less,true>,std::allocator>>::__emplace_unique_key_args,std::tuple<>>(
(__int64 **)this + 87,
(int *)&v184,
(__int64)&unk_116D8A8,
v185);
v189 = 0;
v190 = 0;
v14 = v13;
v191 = nullptr;
v15 = v13 + 40;
if ( (v11[116] & 1) != 0 )
{
v172 = v13;
std::string::__init(&v189, *((void **)v11 + 60), *((_QWORD *)v11 + 59));
v14 = v172;
}
else
{
v16 = *((_QWORD *)v11 + 59);
v189 = *((_QWORD *)v11 + 58);
v190 = v16;
v191 = *((void **)v11 + 60);
}
if ( (*(_BYTE *)(v14 + 40) & 1) != 0 )
{
**(_BYTE **)(v15 + 16) = 0;
*(_QWORD *)(v15 + 8) = 0;
}
else
{
*(_BYTE *)(v14 + 41) = 0;
*(_BYTE *)(v14 + 40) = 0;
}
std::string::reserve((__int64 *)v15, 0);
v17 = v190;
*(_QWORD *)v15 = v189;
*(_QWORD *)(v15 + 8) = v17;
*(_QWORD *)(v15 + 16) = v191;
v185[0] = &v184;
LODWORD(v184) = 1;
v18 = std::__tree,std::__map_value_compare,std::less,true>,std::allocator>>::__emplace_unique_key_args,std::tuple<>>(
(__int64 **)this + 87,
(int *)&v184,
(__int64)&unk_116D8A8,
v185);
v189 = 0;
v19 = v18;
v190 = 0;
v20 = v18 + 40;
v191 = nullptr;
if ( (v11[122] & 1) != 0 )
{
v173 = v18;
std::string::__init(&v189, *((void **)v11 + 63), *((_QWORD *)v11 + 62));
v19 = v173;
}
else
{
v21 = *((_QWORD *)v11 + 62);
v189 = *((_QWORD *)v11 + 61);
v190 = v21;
v191 = *((void **)v11 + 63);
}
if ( (*(_BYTE *)(v19 + 40) & 1) != 0 )
{
**(_BYTE **)(v20 + 16) = 0;
*(_QWORD *)(v20 + 8) = 0;
}
else
{
*(_BYTE *)(v19 + 41) = 0;
*(_BYTE *)(v19 + 40) = 0;
}
std::string::reserve((__int64 *)v20, 0);
v22 = v190;
*(_QWORD *)v20 = v189;
*(_QWORD *)(v20 + 8) = v22;
*(_QWORD *)(v20 + 16) = v191;
v185[0] = &v184;
LODWORD(v184) = 2;
v23 = std::__tree,std::__map_value_compare,std::less,true>,std::allocator>>::__emplace_unique_key_args,std::tuple<>>(
(__int64 **)this + 87,
(int *)&v184,
(__int64)&unk_116D8A8,
v185);
v189 = 0;
v24 = v23;
v190 = 0;
v25 = v23 + 40;
v191 = nullptr;
if ( (v11[128] & 1) != 0 )
{
v175 = v23;
std::string::__init(&v189, *((void **)v11 + 66), *((_QWORD *)v11 + 65));
v24 = v175;
}
else
{
v26 = *((_QWORD *)v11 + 65);
v189 = *((_QWORD *)v11 + 64);
v190 = v26;
v191 = *((void **)v11 + 66);
}
if ( (*(_BYTE *)(v24 + 40) & 1) != 0 )
{
**(_BYTE **)(v25 + 16) = 0;
*(_QWORD *)(v25 + 8) = 0;
}
else
{
*(_BYTE *)(v24 + 41) = 0;
*(_BYTE *)(v24 + 40) = 0;
}
std::string::reserve((__int64 *)v25, 0);
v27 = v190;
*(_QWORD *)v25 = v189;
*(_QWORD *)(v25 + 8) = v27;
*(_QWORD *)(v25 + 16) = v191;
v185[0] = &v184;
LODWORD(v184) = 3;
v28 = std::__tree,std::__map_value_compare,std::less,true>,std::allocator>>::__emplace_unique_key_args,std::tuple<>>(
(__int64 **)this + 87,
(int *)&v184,
(__int64)&unk_116D8A8,
v185);
v189 = 0;
v29 = v28;
v190 = 0;
v30 = v28 + 40;
v191 = nullptr;
if ( (v11[140] & 1) != 0 )
{
v174 = v28;
std::string::__init(&v189, *((void **)v11 + 72), *((_QWORD *)v11 + 71));
v29 = v174;
}
else
{
v31 = *((_QWORD *)v11 + 71);
v189 = *((_QWORD *)v11 + 70);
v190 = v31;
v191 = *((void **)v11 + 72);
}
if ( (*(_BYTE *)(v29 + 40) & 1) != 0 )
{
**(_BYTE **)(v30 + 16) = 0;
*(_QWORD *)(v30 + 8) = 0;
}
else
{
*(_BYTE *)(v29 + 41) = 0;
*(_BYTE *)(v29 + 40) = 0;
}
std::string::reserve((__int64 *)v30, 0);
v32 = v190;
*(_QWORD *)v30 = v189;
*(_QWORD *)(v30 + 8) = v32;
*(_QWORD *)(v30 + 16) = v191;
v185[0] = &v184;
LODWORD(v184) = 4;
v33 = std::__tree,std::__map_value_compare,std::less,true>,std::allocator>>::__emplace_unique_key_args,std::tuple<>>(
(__int64 **)this + 87,
(int *)&v184,
(__int64)&unk_116D8A8,
v185);
v189 = 0;
v34 = v33;
v190 = 0;
v35 = v33 + 40;
v191 = nullptr;
if ( (v11[146] & 1) != 0 )
{
v177 = v33;
std::string::__init(&v189, *((void **)v11 + 75), *((_QWORD *)v11 + 74));
v34 = v177;
}
else
{
v36 = *((_QWORD *)v11 + 74);
v189 = *((_QWORD *)v11 + 73);
v190 = v36;
v191 = *((void **)v11 + 75);
}
if ( (*(_BYTE *)(v34 + 40) & 1) != 0 )
{
**(_BYTE **)(v35 + 16) = 0;
*(_QWORD *)(v35 + 8) = 0;
}
else
{
*(_BYTE *)(v34 + 41) = 0;
*(_BYTE *)(v34 + 40) = 0;
}
std::string::reserve((__int64 *)v35, 0);
v37 = v190;
*(_QWORD *)v35 = v189;
*(_QWORD *)(v35 + 8) = v37;
*(_QWORD *)(v35 + 16) = v191;
v185[0] = &v184;
LODWORD(v184) = 5;
v38 = std::__tree,std::__map_value_compare,std::less,true>,std::allocator>>::__emplace_unique_key_args,std::tuple<>>(
(__int64 **)this + 87,
(int *)&v184,
(__int64)&unk_116D8A8,
v185);
v189 = 0;
v39 = v38;
v190 = 0;
v40 = v38 + 40;
v191 = nullptr;
if ( (v11[134] & 1) != 0 )
{
v176 = v38;
std::string::__init(&v189, *((void **)v11 + 69), *((_QWORD *)v11 + 68));
v39 = v176;
}
else
{
v41 = *((_QWORD *)v11 + 68);
v189 = *((_QWORD *)v11 + 67);
v190 = v41;
v191 = *((void **)v11 + 69);
}
if ( (*(_BYTE *)(v39 + 40) & 1) != 0 )
{
**(_BYTE **)(v40 + 16) = 0;
*(_QWORD *)(v40 + 8) = 0;
}
else
{
*(_BYTE *)(v39 + 41) = 0;
*(_BYTE *)(v39 + 40) = 0;
}
std::string::reserve((__int64 *)v40, 0);
v42 = v190;
*(_QWORD *)v40 = v189;
*(_QWORD *)(v40 + 8) = v42;
*(_QWORD *)(v40 + 16) = v191;
v185[0] = &v184;
LODWORD(v184) = 6;
v43 = std::__tree,std::__map_value_compare,std::less,true>,std::allocator>>::__emplace_unique_key_args,std::tuple<>>(
(__int64 **)this + 87,
(int *)&v184,
(__int64)&unk_116D8A8,
v185);
v189 = 0;
v44 = v43;
v190 = 0;
v45 = v43 + 40;
v191 = nullptr;
if ( (v11[152] & 1) != 0 )
{
std::string::__init(&v189, *((void **)v11 + 78), *((_QWORD *)v11 + 77));
}
else
{
v46 = *((_QWORD *)v11 + 77);
v189 = *((_QWORD *)v11 + 76);
v190 = v46;
v191 = *((void **)v11 + 78);
}
if ( (*(_BYTE *)(v44 + 40) & 1) != 0 )
{
**(_BYTE **)(v45 + 16) = 0;
*(_QWORD *)(v45 + 8) = 0;
}
else
{
*(_BYTE *)(v44 + 41) = 0;
*(_BYTE *)(v44 + 40) = 0;
}
std::string::reserve((__int64 *)v45, 0);
v47 = v190;
*(_QWORD *)v45 = v189;
*(_QWORD *)(v45 + 8) = v47;
*(_QWORD *)(v45 + 16) = v191;
if ( *((_BYTE *)v11 + 721) || (unsigned int)(v11[170] - 1) <= 1 )
{
if ( !*((_DWORD *)this + 169) )
*((_DWORD *)this + 169) = 1;
v48 = (unsigned int)v11[113];
*((_DWORD *)this + 170) = v48;
v171 = 1;
if ( !(_DWORD)v48 )
{
v48 = 1;
*((_DWORD *)this + 170) = 1;
}
}
else
{
LABEL_120:
if ( !*((_DWORD *)this + 166) )
*((_DWORD *)this + 166) = 1;
if ( !*((_DWORD *)this + 169) )
{
*((_DWORD *)this + 169) = 1;
if ( !v11 )
*((_DWORD *)this + 170) = 2;
}
v48 = (unsigned __int64)&dword_0 + 2;
v171 = 0;
*((_DWORD *)this + 170) = (unsigned int)&dword_0 + 2;
}
v49 = (GameManager *)GameManager::sharedState((GameManager *)v48);
v50 = (cocos2d::CCDirector *)(unsigned __int8)GameManager::privacyPushWanted(v49);
v167 = (unsigned __int8)v50;
if ( (_BYTE)v50 )
{
v50 = (cocos2d::CCDirector *)((char *)&dword_0 + 2);
*((_DWORD *)this + 166) = (unsigned int)&dword_0 + 2;
*((_DWORD *)this + 167) = 1;
*((_DWORD *)this + 169) = (unsigned int)&dword_0 + 2;
*((_DWORD *)this + 170) = (unsigned int)&dword_0 + 2;
}
v51 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v50);
WinSize = (cocos2d::CCLayer *)cocos2d::CCDirector::getWinSize(&v178, v51);
v53 = cocos2d::CCLayer::create(WinSize);
*((_QWORD *)this + 73) = v53;
(*(void (__fastcall **)(GJAccountSettingsLayer *, __int64))(*(_QWORD *)this + 456LL))(this, v53);
cocos2d::CCRect::CCRect((cocos2d::CCRect *)v185, 0.0, 0.0, 80.0, 80.0);
v54 = cocos2d::extension::CCScale9Sprite::create("GJ_square01.png", v185);
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v54 + 912LL))(v54, 0xFFFFFFFFLL);
v55 = *(void (__fastcall **)(__int64, _DWORD **))(*(_QWORD *)v54 + 320LL);
cocos2d::CCSize::CCSize((cocos2d::CCSize *)v185, 400.0, 280.0);
v55(v54, v185);
(*(void (__fastcall **)(_QWORD, __int64, __int64))(**((_QWORD **)this + 73) + 464LL))(
*((_QWORD *)this + 73),
v54,
0xFFFFFFFFLL);
v56 = *(void (__fastcall **)(__int64, _DWORD **))(*(_QWORD *)v54 + 184LL);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v185, *(float *)&v178 * 0.5, *((float *)&v178 + 1) * 0.5);
v56(v54, v185);
v58 = cocos2d::CCLabelBMFont::create((cocos2d::CCLabelBMFont *)"Account Settings", "goldFont.fnt", v57);
(*(void (__fastcall **)(__int64, float))(*(_QWORD *)v58 + 160LL))(v58, 0.7);
v59 = *(void (__fastcall **)(__int64, _DWORD **))(*(_QWORD *)v58 + 184LL);
cocos2d::CCPoint::CCPoint(
(cocos2d::CCPoint *)v185,
*(float *)&v178 * 0.5,
(float)((float)(*((float *)&v178 + 1) * 0.5) + 140.0) - 18.0);
v59(v58, v185);
v60 = (cocos2d::CCMenu *)(*(__int64 (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 73) + 456LL))(
*((_QWORD *)this + 73),
v58);
v61 = cocos2d::CCMenu::create(v60);
*((_QWORD *)this + 69) = v61;
v62 = (cocos2d::CCArray *)(*(__int64 (__fastcall **)(_QWORD, __int64, __int64))(**((_QWORD **)this + 73) + 464LL))(
*((_QWORD *)this + 73),
v61,
10);
*((_DWORD *)this + 160) = -1;
v63 = (cocos2d::CCObject *)cocos2d::CCArray::create(v62);
*((_QWORD *)this + 90) = v63;
cocos2d::CCObject::retain(v63);
cocos2d::CCPoint::CCPoint(
(cocos2d::CCPoint *)v179,
*(float *)&v178 * 0.5,
(float)(*((float *)&v178 + 1) * 0.5) + 96.0);
cocos2d::CCSize::CCSize((cocos2d::CCSize *)v180, 400.0, 30.0);
cocos2d::CCRect::CCRect((cocos2d::CCRect *)v185, 0.0, 0.0, 40.0, 40.0);
v64 = cocos2d::extension::CCScale9Sprite::create("square02_small.png", v185);
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v64 + 912LL))(v64, 50);
(*(void (__fastcall **)(__int64, char *))(*(_QWORD *)v64 + 320LL))(v64, v180);
(*(void (__fastcall **)(__int64, float))(*(_QWORD *)v64 + 160LL))(v64, 0.7);
(*(void (__fastcall **)(_QWORD, __int64, __int64))(**((_QWORD **)this + 73) + 464LL))(
*((_QWORD *)this + 73),
v64,
0xFFFFFFFFLL);
v65 = *(void (__fastcall **)(__int64, _DWORD **))(*(_QWORD *)v64 + 184LL);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v184, 0.0, -20.0);
cocos2d::CCPoint::operator+(v185, v179);
v65(v64, v185);
v67 = cocos2d::CCLabelBMFont::create((cocos2d::CCLabelBMFont *)"Direct messages:", "goldFont.fnt", v66);
(*(void (__fastcall **)(_QWORD, __int64, __int64))(**((_QWORD **)this + 73) + 464LL))(
*((_QWORD *)this + 73),
v67,
20);
(*(void (__fastcall **)(__int64, char *))(*(_QWORD *)v67 + 184LL))(v67, v179);
(*(void (__fastcall **)(__int64, float))(*(_QWORD *)v67 + 160LL))(v67, 0.4);
if ( v171 )
{
v186 = 0;
v187 = 0;
v188 = nullptr;
std::string::__init(&v186, "Direct Messages", 0xFu);
v189 = 0;
v190 = 0;
v191 = nullptr;
std::string::__init(
&v189,
"Who can send you direct messages?\n"
"All: Anyone, as a message request you accept or ignore.\n"
"Friends: Friends can message you.\n"
"Off: No messages.",
0xADu);
v68 = InfoAlertButton::create(&v186, &v189, 0.5);
if ( (v189 & 1) != 0 )
operator delete(v191);
if ( (v186 & 1) != 0 )
operator delete(v188);
(*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 69) + 456LL))(*((_QWORD *)this + 69), v68);
v69 = v67;
v70 = *(__int64 (__fastcall **)(__int64))(*(_QWORD *)v67 + 328LL);
v168 = *((cocos2d::CCNode **)this + 69);
v71 = *(void (__fastcall **)(__int64, _DWORD **))(*(_QWORD *)v68 + 184LL);
v72 = (float *)v70(v69);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v183, (float)((float)(*v72 * 0.4) * 0.5) + 10.0, 0.0);
cocos2d::CCPoint::operator+(&v184, v179);
cocos2d::CCNode::convertToNodeSpace((__int64 *)v185, v168, (const cocos2d::CCPoint *)&v184);
v71(v68, v185);
v189 = 0;
v190 = 0;
v191 = nullptr;
std::string::__init(&v189, "All", 3u);
v73 = *((cocos2d::CCNode **)this + 69);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v184, -105.0, -20.0);
cocos2d::CCPoint::operator+(v185, v179);
ToggleButton = GJAccountSettingsLayer::createToggleButton(
(__int64)this,
(__int64)&v189,
(__int64)GJAccountSettingsLayer::onMessageSetting,
0,
1u,
v73,
(const cocos2d::CCPoint *)v185,
50.0,
0.4);
if ( (v189 & 1) != 0 )
operator delete(v191);
v75 = *(_QWORD *)ToggleButton;
*((_BYTE *)ToggleButton + 393) = 1;
(*(void (__fastcall **)(CCMenuItemToggler *, _QWORD))(v75 + 72))(ToggleButton, 0);
cocos2d::CCArray::addObject(*((cocos2d::CCArray **)this + 90), ToggleButton);
v189 = 0;
v190 = 0;
v191 = nullptr;
std::string::__init(&v189, "Friends", 7u);
v76 = *((cocos2d::CCNode **)this + 69);
v77 = -30.0;
}
else
{
v189 = 0;
v190 = 0;
v191 = nullptr;
std::string::__init(&v189, "Friends", 7u);
v77 = -70.0;
v76 = *((cocos2d::CCNode **)this + 69);
}
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v184, v77, -20.0);
cocos2d::CCPoint::operator+(v185, v179);
v78 = GJAccountSettingsLayer::createToggleButton(
(__int64)this,
(__int64)&v189,
(__int64)GJAccountSettingsLayer::onMessageSetting,
0,
1u,
v76,
(const cocos2d::CCPoint *)v185,
50.0,
0.4);
if ( (v189 & 1) != 0 )
operator delete(v191);
v79 = *(_QWORD *)v78;
*((_BYTE *)v78 + 393) = 1;
(*(void (__fastcall **)(CCMenuItemToggler *, __int64))(v79 + 72))(v78, 1);
v189 = 0;
v190 = 0;
v191 = nullptr;
std::string::__init(&v189, "Off", 3u);
v80 = *((cocos2d::CCNode **)this + 69);
if ( v171 )
v81 = 70.0;
else
v81 = 30.0;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v184, v81, -20.0);
cocos2d::CCPoint::operator+(v185, v179);
v82 = GJAccountSettingsLayer::createToggleButton(
(__int64)this,
(__int64)&v189,
(__int64)GJAccountSettingsLayer::onMessageSetting,
0,
1u,
v80,
(const cocos2d::CCPoint *)v185,
50.0,
0.4);
if ( (v189 & 1) != 0 )
operator delete(v191);
v83 = *(_QWORD *)v82;
*((_BYTE *)v82 + 393) = 1;
(*(void (__fastcall **)(CCMenuItemToggler *, __int64))(v83 + 72))(v82, 2);
cocos2d::CCArray::addObject(*((cocos2d::CCArray **)this + 90), v78);
v84 = (cocos2d::CCArray *)cocos2d::CCArray::addObject(*((cocos2d::CCArray **)this + 90), v82);
v85 = (cocos2d::CCObject *)cocos2d::CCArray::create(v84);
*((_QWORD *)this + 91) = v85;
cocos2d::CCObject::retain(v85);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v185, 0.0, -40.0);
cocos2d::CCPoint::operator+(&v181, v179);
cocos2d::CCRect::CCRect((cocos2d::CCRect *)v185, 0.0, 0.0, 40.0, 40.0);
v86 = cocos2d::extension::CCScale9Sprite::create("square02_small.png", v185);
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v86 + 912LL))(v86, 50);
(*(void (__fastcall **)(__int64, char *))(*(_QWORD *)v86 + 320LL))(v86, v180);
(*(void (__fastcall **)(__int64, float))(*(_QWORD *)v86 + 160LL))(v86, 0.7);
(*(void (__fastcall **)(_QWORD, __int64, __int64))(**((_QWORD **)this + 73) + 464LL))(
*((_QWORD *)this + 73),
v86,
0xFFFFFFFFLL);
v87 = *(void (__fastcall **)(__int64, _DWORD **))(*(_QWORD *)v86 + 184LL);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v184, 0.0, -20.0);
cocos2d::CCPoint::operator+(v185, &v181);
v87(v86, v185);
v89 = cocos2d::CCLabelBMFont::create((cocos2d::CCLabelBMFont *)"Friend requests:", "goldFont.fnt", v88);
(*(void (__fastcall **)(_QWORD, __int64, __int64))(**((_QWORD **)this + 73) + 464LL))(
*((_QWORD *)this + 73),
v89,
20);
(*(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v89 + 184LL))(v89, &v181);
(*(void (__fastcall **)(__int64, float))(*(_QWORD *)v89 + 160LL))(v89, 0.4);
v186 = 0;
v187 = 0;
v188 = nullptr;
std::string::__init(&v186, "Friend Requests", 0xFu);
v189 = 0;
v190 = 0;
v191 = nullptr;
std::string::__init(
&v189,
"Who can send you friend requests?\n"
"Messages: Anyone, and a request can carry a short message.\n"
"On: Anyone, without a message.\n"
"Off: No requests.",
0xADu);
v90 = InfoAlertButton::create(&v186, &v189, 0.5);
if ( (v189 & 1) != 0 )
operator delete(v191);
if ( (v186 & 1) != 0 )
operator delete(v188);
(*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 69) + 456LL))(*((_QWORD *)this + 69), v90);
v91 = v89;
v92 = *(__int64 (__fastcall **)(__int64))(*(_QWORD *)v89 + 328LL);
v169 = *((cocos2d::CCObject **)this + 69);
v93 = *(void (__fastcall **)(__int64, _DWORD **))(*(_QWORD *)v90 + 184LL);
v94 = (float *)v92(v91);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v183, (float)((float)(*v94 * 0.4) * 0.5) + 10.0, 0.0);
cocos2d::CCPoint::operator+(&v184, &v181);
cocos2d::CCNode::convertToNodeSpace((__int64 *)v185, v169, (const cocos2d::CCPoint *)&v184);
v93(v90, v185);
v189 = 0;
v190 = 0;
v191 = nullptr;
std::string::__init(&v189, "Messages", 8u);
v95 = *((cocos2d::CCNode **)this + 69);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v184, -112.0, -20.0);
cocos2d::CCPoint::operator+(v185, &v181);
v170 = GJAccountSettingsLayer::createToggleButton(
(__int64)this,
(__int64)&v189,
(__int64)GJAccountSettingsLayer::onFriendRequests,
0,
1u,
v95,
(const cocos2d::CCPoint *)v185,
50.0,
0.4);
if ( (v189 & 1) != 0 )
operator delete(v191);
v96 = *(_QWORD *)v170;
*((_BYTE *)v170 + 393) = 1;
(*(void (__fastcall **)(cocos2d::CCObject *, __int64))(v96 + 72))(v170, 2);
v189 = 0;
v190 = 0;
v191 = nullptr;
std::string::__init(&v189, "On", 2u);
v97 = *((cocos2d::CCNode **)this + 69);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v184, -10.0, -20.0);
cocos2d::CCPoint::operator+(v185, &v181);
v98 = GJAccountSettingsLayer::createToggleButton(
(__int64)this,
(__int64)&v189,
(__int64)GJAccountSettingsLayer::onFriendRequests,
0,
1u,
v97,
(const cocos2d::CCPoint *)v185,
50.0,
0.4);
if ( (v189 & 1) != 0 )
operator delete(v191);
v99 = *(_QWORD *)v98;
*((_BYTE *)v98 + 393) = 1;
(*(void (__fastcall **)(CCMenuItemToggler *, _QWORD))(v99 + 72))(v98, 0);
v189 = 0;
v190 = 0;
v191 = nullptr;
std::string::__init(&v189, "Off", 3u);
v164 = *((cocos2d::CCObject **)this + 69);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v184, 68.0, -20.0);
cocos2d::CCPoint::operator+(v185, &v181);
v100 = GJAccountSettingsLayer::createToggleButton(
(__int64)this,
(__int64)&v189,
(__int64)GJAccountSettingsLayer::onFriendRequests,
0,
1u,
v164,
(const cocos2d::CCPoint *)v185,
50.0,
0.4);
if ( (v189 & 1) != 0 )
{
v166 = v100;
operator delete(v191);
v100 = v166;
}
v101 = *(_QWORD *)v100;
*((_BYTE *)v100 + 393) = 1;
v165 = v100;
(*(void (__fastcall **)(CCMenuItemToggler *, __int64))(v101 + 72))(v100, 1);
cocos2d::CCArray::addObject(*((cocos2d::CCArray **)this + 91), v170);
cocos2d::CCArray::addObject(*((cocos2d::CCArray **)this + 91), v98);
cocos2d::CCArray::addObject(*((cocos2d::CCArray **)this + 91), v165);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v185, 0.0, -40.0);
v102 = (cocos2d::CCArray *)cocos2d::CCPoint::operator+(&v182, &v181);
v103 = (cocos2d::CCObject *)cocos2d::CCArray::create(v102);
*((_QWORD *)this + 93) = v103;
cocos2d::CCObject::retain(v103);
cocos2d::CCRect::CCRect((cocos2d::CCRect *)v185, 0.0, 0.0, 40.0, 40.0);
v104 = cocos2d::extension::CCScale9Sprite::create("square02_small.png", v185);
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v104 + 912LL))(v104, 50);
(*(void (__fastcall **)(__int64, char *))(*(_QWORD *)v104 + 320LL))(v104, v180);
(*(void (__fastcall **)(__int64, float))(*(_QWORD *)v104 + 160LL))(v104, 0.7);
(*(void (__fastcall **)(_QWORD, __int64, __int64))(**((_QWORD **)this + 73) + 464LL))(
*((_QWORD *)this + 73),
v104,
0xFFFFFFFFLL);
v105 = *(void (__fastcall **)(__int64, _DWORD **))(*(_QWORD *)v104 + 184LL);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v184, 0.0, -20.0);
cocos2d::CCPoint::operator+(v185, &v182);
v105(v104, v185);
v107 = cocos2d::CCLabelBMFont::create((cocos2d::CCLabelBMFont *)"Group invites:", "goldFont.fnt", v106);
(*(void (__fastcall **)(_QWORD, __int64, __int64))(**((_QWORD **)this + 73) + 464LL))(
*((_QWORD *)this + 73),
v107,
20);
(*(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v107 + 184LL))(v107, &v182);
(*(void (__fastcall **)(__int64, float))(*(_QWORD *)v107 + 160LL))(v107, 0.4);
v186 = 0;
v187 = 0;
v188 = nullptr;
std::string::__init(&v186, "Group Chats", 0xBu);
v189 = 0;
v190 = 0;
v191 = nullptr;
std::string::__init(
&v189,
"Who can invite you to group chats?\n"
"All: Anyone can invite you.\n"
"Friends: Friends can invite you.\n"
"Off: No invites.\n"
"All invites must be accepted first.",
0xBCu);
v108 = InfoAlertButton::create(&v186, &v189, 0.5);
if ( (v189 & 1) != 0 )
operator delete(v191);
if ( (v186 & 1) != 0 )
operator delete(v188);
(*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 69) + 456LL))(*((_QWORD *)this + 69), v108);
v109 = *((cocos2d::CCNode **)this + 69);
v110 = v107;
v111 = *(__int64 (__fastcall **)(__int64))(*(_QWORD *)v107 + 328LL);
v112 = *(void (__fastcall **)(__int64, _DWORD **))(*(_QWORD *)v108 + 184LL);
v113 = (float *)v111(v110);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v183, (float)((float)(*v113 * 0.4) * 0.5) + 10.0, 0.0);
cocos2d::CCPoint::operator+(&v184, &v182);
cocos2d::CCNode::convertToNodeSpace((__int64 *)v185, v109, (const cocos2d::CCPoint *)&v184);
v112(v108, v185);
if ( v171 )
{
v189 = 0;
v190 = 0;
v191 = nullptr;
std::string::__init(&v189, "All", 3u);
v114 = *((cocos2d::CCNode **)this + 69);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v184, -105.0, -20.0);
cocos2d::CCPoint::operator+(v185, &v182);
v115 = GJAccountSettingsLayer::createToggleButton(
(__int64)this,
(__int64)&v189,
(__int64)GJAccountSettingsLayer::onGroupFriends,
0,
1u,
v114,
(const cocos2d::CCPoint *)v185,
50.0,
0.4);
if ( (v189 & 1) != 0 )
operator delete(v191);
v116 = *(_QWORD *)v115;
*((_BYTE *)v115 + 393) = 1;
(*(void (__fastcall **)(CCMenuItemToggler *, __int64))(v116 + 72))(v115, 3);
cocos2d::CCArray::addObject(*((cocos2d::CCArray **)this + 93), v115);
v189 = 0;
v190 = 0;
v191 = nullptr;
std::string::__init(&v189, "Friends", 7u);
v117 = *((cocos2d::CCNode **)this + 69);
v118 = -30.0;
}
else
{
v189 = 0;
v190 = 0;
v191 = nullptr;
std::string::__init(&v189, "Friends", 7u);
v118 = -70.0;
v117 = *((cocos2d::CCNode **)this + 69);
}
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v184, v118, -20.0);
cocos2d::CCPoint::operator+(v185, &v182);
v119 = GJAccountSettingsLayer::createToggleButton(
(__int64)this,
(__int64)&v189,
(__int64)GJAccountSettingsLayer::onGroupFriends,
0,
1u,
v117,
(const cocos2d::CCPoint *)v185,
50.0,
0.4);
if ( (v189 & 1) != 0 )
operator delete(v191);
v120 = *(_QWORD *)v119;
*((_BYTE *)v119 + 393) = 1;
(*(void (__fastcall **)(CCMenuItemToggler *, __int64))(v120 + 72))(v119, 1);
v189 = 0;
v190 = 0;
v191 = nullptr;
std::string::__init(&v189, "Off", 3u);
v121 = *((cocos2d::CCNode **)this + 69);
if ( v171 )
v122 = 70.0;
else
v122 = 30.0;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v184, v122, -20.0);
cocos2d::CCPoint::operator+(v185, &v182);
v123 = GJAccountSettingsLayer::createToggleButton(
(__int64)this,
(__int64)&v189,
(__int64)GJAccountSettingsLayer::onGroupFriends,
0,
1u,
v121,
(const cocos2d::CCPoint *)v185,
50.0,
0.4);
if ( (v189 & 1) != 0 )
operator delete(v191);
v124 = *(_QWORD *)v123;
*((_BYTE *)v123 + 393) = 1;
(*(void (__fastcall **)(CCMenuItemToggler *, __int64))(v124 + 72))(v123, 2);
cocos2d::CCArray::addObject(*((cocos2d::CCArray **)this + 93), v119);
cocos2d::CCArray::addObject(*((cocos2d::CCArray **)this + 93), v123);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v185, 0.0, -40.0);
v125 = (cocos2d::CCArray *)cocos2d::CCPoint::operator+(&v183, &v182);
v126 = (cocos2d::CCObject *)cocos2d::CCArray::create(v125);
*((_QWORD *)this + 92) = v126;
cocos2d::CCObject::retain(v126);
cocos2d::CCRect::CCRect((cocos2d::CCRect *)v185, 0.0, 0.0, 40.0, 40.0);
v127 = cocos2d::extension::CCScale9Sprite::create("square02_small.png", v185);
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v127 + 912LL))(v127, 50);
(*(void (__fastcall **)(__int64, char *))(*(_QWORD *)v127 + 320LL))(v127, v180);
(*(void (__fastcall **)(__int64, float))(*(_QWORD *)v127 + 160LL))(v127, 0.7);
(*(void (__fastcall **)(_QWORD, __int64, __int64))(**((_QWORD **)this + 73) + 464LL))(
*((_QWORD *)this + 73),
v127,
0xFFFFFFFFLL);
v128 = *(void (__fastcall **)(__int64, _DWORD **))(*(_QWORD *)v127 + 184LL);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v184, 0.0, -20.0);
cocos2d::CCPoint::operator+(v185, &v183);
v128(v127, v185);
v130 = cocos2d::CCLabelBMFont::create((cocos2d::CCLabelBMFont *)"Show Comment History to:", "goldFont.fnt", v129);
(*(void (__fastcall **)(_QWORD, __int64, __int64))(**((_QWORD **)this + 73) + 464LL))(
*((_QWORD *)this + 73),
v130,
20);
(*(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v130 + 184LL))(v130, &v183);
(*(void (__fastcall **)(__int64, float))(*(_QWORD *)v130 + 160LL))(v130, 0.4);
v189 = 0;
v190 = 0;
v191 = nullptr;
std::string::__init(&v189, "All", 3u);
v131 = *((cocos2d::CCNode **)this + 69);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v184, -105.0, -20.0);
cocos2d::CCPoint::operator+(v185, &v183);
v132 = GJAccountSettingsLayer::createToggleButton(
(__int64)this,
(__int64)&v189,
(__int64)GJAccountSettingsLayer::onCommentSetting,
0,
1u,
v131,
(const cocos2d::CCPoint *)v185,
50.0,
0.4);
if ( (v189 & 1) != 0 )
operator delete(v191);
v133 = *(_QWORD *)v132;
*((_BYTE *)v132 + 393) = 1;
(*(void (__fastcall **)(CCMenuItemToggler *, _QWORD))(v133 + 72))(v132, 0);
v189 = 0;
v190 = 0;
v191 = nullptr;
std::string::__init(&v189, "Friends", 7u);
v134 = *((cocos2d::CCNode **)this + 69);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v184, -30.0, -20.0);
cocos2d::CCPoint::operator+(v185, &v183);
v135 = GJAccountSettingsLayer::createToggleButton(
(__int64)this,
(__int64)&v189,
(__int64)GJAccountSettingsLayer::onCommentSetting,
0,
1u,
v134,
(const cocos2d::CCPoint *)v185,
50.0,
0.4);
if ( (v189 & 1) != 0 )
operator delete(v191);
v136 = *(_QWORD *)v135;
*((_BYTE *)v135 + 393) = 1;
(*(void (__fastcall **)(CCMenuItemToggler *, __int64))(v136 + 72))(v135, 1);
v189 = 0;
v190 = 0;
v191 = nullptr;
std::string::__init(&v189, "Me", 2u);
v137 = *((cocos2d::CCNode **)this + 69);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v184, 70.0, -20.0);
cocos2d::CCPoint::operator+(v185, &v183);
v138 = GJAccountSettingsLayer::createToggleButton(
(__int64)this,
(__int64)&v189,
(__int64)GJAccountSettingsLayer::onCommentSetting,
0,
1u,
v137,
(const cocos2d::CCPoint *)v185,
50.0,
0.4);
if ( (v189 & 1) != 0 )
operator delete(v191);
v139 = *(_QWORD *)v138;
*((_BYTE *)v138 + 393) = 1;
(*(void (__fastcall **)(CCMenuItemToggler *, __int64))(v139 + 72))(v138, 2);
cocos2d::CCArray::addObject(*((cocos2d::CCArray **)this + 92), v132);
cocos2d::CCArray::addObject(*((cocos2d::CCArray **)this + 92), v135);
cocos2d::CCArray::addObject(*((cocos2d::CCArray **)this + 92), v138);
v141 = ButtonSprite::create(
(ButtonSprite *)"Social Link Settings",
(const char *)&qword_A0,
0,
1,
0.5,
"bigFont.fnt",
"GJ_button_04.png",
v140,
28.0);
(*(void (__fastcall **)(__int64, float))(*(_QWORD *)v141 + 160LL))(v141, 0.9);
v142 = CCMenuItemSpriteExtra::create(v141, 0, (__int64)this, (__int64)GJAccountSettingsLayer::onSocialLinks, 0);
CCMenuItemSpriteExtra::setSizeMult(v142, 1.1);
(*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 69) + 456LL))(*((_QWORD *)this + 69), v142);
v143 = *((cocos2d::CCNode **)this + 69);
v144 = *(__int64 (__fastcall **)(__int64, _DWORD **))(*(_QWORD *)v142 + 184LL);
cocos2d::CCPoint::CCPoint(
(cocos2d::CCPoint *)&v184,
*(float *)&v178 * 0.5,
(float)(*((float *)&v178 + 1) * 0.5) + -81.0);
cocos2d::CCNode::convertToNodeSpace((__int64 *)v185, v143, (const cocos2d::CCPoint *)&v184);
v145 = (cocos2d::CCArray *)v144(v142, v185);
v146 = (cocos2d::CCArray *)cocos2d::CCArray::create(v145);
v148 = ButtonSprite::create(
(ButtonSprite *)"Cancel",
(const char *)&dword_30 + 2,
0,
1,
0.5,
"bigFont.fnt",
"GJ_button_05.png",
v147,
25.0);
v149 = (cocos2d::CCObject *)CCMenuItemSpriteExtra::create(
v148,
0,
(__int64)this,
(__int64)GJAccountSettingsLayer::onClose,
0);
(*(void (__fastcall **)(_QWORD, cocos2d::CCObject *))(**((_QWORD **)this + 69) + 456LL))(
*((_QWORD *)this + 69),
v149);
cocos2d::CCArray::addObject(v146, v149);
v151 = ButtonSprite::create(
(ButtonSprite *)"Update",
(const char *)&dword_30 + 2,
0,
1,
0.5,
"bigFont.fnt",
"GJ_button_01.png",
v150,
25.0);
v152 = (cocos2d::CCObject *)CCMenuItemSpriteExtra::create(
v151,
0,
(__int64)this,
(__int64)GJAccountSettingsLayer::onUpdate,
0);
(*(void (__fastcall **)(_QWORD, cocos2d::CCObject *))(**((_QWORD **)this + 69) + 456LL))(
*((_QWORD *)this + 69),
v152);
cocos2d::CCArray::addObject(v146, v152);
v153 = *((cocos2d::CCNode **)this + 69);
cocos2d::CCPoint::CCPoint(
(cocos2d::CCPoint *)&v184,
*(float *)&v178 * 0.5,
(float)(*((float *)&v178 + 1) * 0.5) + -118.0);
cocos2d::CCNode::convertToNodeSpace((__int64 *)v185, v153, (const cocos2d::CCPoint *)&v184);
GameToolbox::alignItemsHorisontally((__int64)v146, (__int64)v185, 0, 15.0);
GJAccountSettingsLayer::onMessageSetting(this, nullptr);
GJAccountSettingsLayer::onFriendRequests(this, nullptr);
GJAccountSettingsLayer::onCommentSetting(this, nullptr);
GJAccountSettingsLayer::onGroupFriends(this, nullptr);
if ( v167 )
{
v154 = *((_QWORD *)this + 90);
v155 = *((_QWORD *)this + 93);
v156 = 0;
v157 = *((void **)this + 91);
LOWORD(v185[0]) = -26986;
BYTE2(v185[0]) = -106;
v189 = v154;
v190 = v155;
v191 = v157;
do
{
v158 = *(__int64 *)((char *)&v189 + v156);
if ( v158 )
{
v159 = *(unsigned int **)(v158 + 56);
if ( *v159 )
{
v160 = *((__int64 **)v159 + 2);
v161 = &v160[*v159 - 1];
while ( v161 >= v160 )
{
v162 = *v160;
if ( !*v160 )
break;
v163 = *v160++;
(*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v162 + 1056LL))(v163, 0);
CCMenuItemToggler::setSpriteColor(v162, (__int64)v185);
}
}
}
v156 += 8;
}
while ( v156 != 24 );
}
}
return v5;
}