//
// GJAccountSettingsLayer::init from 0x10029f310 to 0x1002a1080 (7536 bytes)
//
// 1 xrefs:
// > GJAccountSettingsLayer::create @ 0x10029f2cd
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
bool __fastcall GJAccountSettingsLayer::init(GJAccountSettingsLayer *a1, int a2)
{
double v2; // xmm0_8
GJAccountSettingsLayer *v3; // r13
bool result; // al
GameLevelManager *v5; // rax
GJUserScore *v6; // rax
GJUserScore *v7; // r14
cocos2d::CCObject *p_pair1; // r15
cocos2d::CCObject_vtbl *left; // rax
cocos2d::CCObject *p_m_uID; // r13
cocos2d::CCObject *v11; // r12
char *v12; // rbx
GJAccountSettingsLayer *v13; // r12
std::__tree_end_node *> *v14; // rax
void (__cdecl **p_update)(cocos2d::CCObject *__hidden, float); // r12
double v16; // xmm0_8
cocos2d::CCObject_vtbl *v17; // rax
_QWORD *v18; // r13
_QWORD *p_copyWithZone; // r12
int acceptVisitor; // eax
char *v21; // rbx
GJAccountSettingsLayer *v22; // r12
std::__tree_end_node *> *v23; // rax
_QWORD *v24; // r12
double v25; // xmm0_8
cocos2d::CCObject_vtbl *v26; // rax
_QWORD *v27; // r13
_QWORD *v28; // r12
int v29; // eax
char *v30; // rbx
GJAccountSettingsLayer *v31; // r12
std::__tree_end_node *> *v32; // rax
_QWORD *v33; // r12
double v34; // xmm0_8
cocos2d::CCObject_vtbl *v35; // rax
_QWORD *v36; // r13
_QWORD *v37; // r12
int v38; // eax
char *v39; // rbx
GJAccountSettingsLayer *v40; // r12
std::__tree_end_node *> *v41; // rax
_QWORD *v42; // r12
double v43; // xmm0_8
cocos2d::CCObject_vtbl *v44; // rax
_QWORD *v45; // r13
_QWORD *v46; // r12
int v47; // eax
char *v48; // rbx
GJAccountSettingsLayer *v49; // r12
std::__tree_end_node *> *v50; // rax
_QWORD *v51; // r12
double v52; // xmm0_8
cocos2d::CCObject_vtbl *v53; // rax
_QWORD *v54; // r13
_QWORD *v55; // r12
int v56; // eax
char *v57; // rbx
GJAccountSettingsLayer *v58; // r12
std::__tree_end_node *> *v59; // rax
_QWORD *v60; // r12
double v61; // xmm0_8
std::string *p_m_customString; // r14
cocos2d::CCObject_vtbl *v63; // rax
_QWORD *v64; // r14
int v65; // eax
char *v66; // rbx
GJAccountSettingsLayer *v67; // r14
std::__tree_end_node *> *v68; // rax
_QWORD *v69; // r14
cocos2d::CCLayer *v70; // rax
cocos2d::extension::CCScale9Sprite *v71; // rbx
cocos2d::CCMenu *v72; // rax
cocos2d::CCLayer *m_mainLayer; // rdi
cocos2d::CCMenu *v74; // rsi
cocos2d::CCObject *v75; // rax
cocos2d::extension::CCScale9Sprite *v76; // r14
cocos2d::CCLabelBMFont *v77; // r14
cocos2d::CCMenu *m_buttonMenu; // rbx
_BYTE *ToggleButton; // r14
cocos2d::CCMenu *v80; // rbx
_BYTE *v81; // rbx
cocos2d::CCMenu *v82; // r15
_BYTE *v83; // r15
GJAccountSettingsLayer *v84; // r13
cocos2d::CCArray *m_messageSettings; // rdi
cocos2d::CCObject *v86; // rax
cocos2d::extension::CCScale9Sprite *v87; // r14
cocos2d::CCLabelBMFont *v88; // r14
cocos2d::CCMenu *v89; // rbx
_BYTE *v90; // rbx
cocos2d::CCMenu *v91; // r14
_BYTE *v92; // r14
GJAccountSettingsLayer *v93; // r13
cocos2d::CCObject *v94; // rax
cocos2d::extension::CCScale9Sprite *v95; // r14
cocos2d::CCLabelBMFont *v96; // r14
cocos2d::CCMenu *v97; // rbx
_BYTE *v98; // r14
cocos2d::CCMenu *v99; // rbx
_BYTE *v100; // rbx
cocos2d::CCMenu *v101; // r15
_BYTE *v102; // r15
GJAccountSettingsLayer *v103; // r12
cocos2d::CCArray *m_commentSettings; // rdi
cocos2d::CCObject *v105; // rax
__int64 v106; // rcx
double v107; // xmm0_8
__m128 v108; // xmm1
std::__compressed_pair *>> *v109; // r14
std::__compressed_pair *>> *v110; // rax
std::__compressed_pair *>> *v111; // r15
__int64 left_low; // rax
int v113; // r12d
char *v114; // rbx
GJAccountSettingsLayer *v115; // r14
std::__tree_end_node *> *v116; // rax
char *v117; // r14
const char *v118; // rbx
cocos2d::CCLabelBMFont *v119; // rax
GJAccountSettingsLayer *v120; // r14
cocos2d::CCLabelBMFont *v121; // r15
size_t v122; // rax
size_t v123; // r13
char *v124; // r12
size_t v125; // r14
char *v126; // rcx
const char *v127; // r13
size_t v128; // rax
size_t v129; // rbx
char *v130; // r12
size_t v131; // r14
__int64 v132; // rbx
GJAccountSettingsLayer *v133; // r14
const cocos2d::CCPoint *v134; // r13
unsigned __int64 *v135; // r12
float v136; // xmm0_4
cocos2d::extension::CCScale9Sprite *v137; // rbx
__m128 v138; // xmm0
CCTextInputNode *v139; // r15
void *m_inputs; // rdi
cocos2d::CCArray *v141; // rbx
ButtonSprite *v142; // rax
GJAccountSettingsLayer *v143; // r12
CCMenuItemSpriteExtra *v144; // r15
ButtonSprite *v145; // rax
CCMenuItemSpriteExtra *v146; // r14
cocos2d::CCPoint v147; // xmm1_8
cocos2d::CCArray *v148; // rax
cocos2d::ccArray *data; // rax
CCMenuItemToggler **arr; // r14
unsigned __int64 v151; // r15
CCMenuItemToggler *v152; // rbx
int v153; // eax
cocos2d::CCArray *m_friendRequestSettings; // rax
cocos2d::ccArray *v155; // rax
CCMenuItemToggler **v156; // r14
unsigned __int64 v157; // r15
CCMenuItemToggler *v158; // rbx
int v159; // eax
cocos2d::CCArray *v160; // rax
cocos2d::ccArray *v161; // rax
CCMenuItemToggler **v162; // r14
unsigned __int64 v163; // r15
CCMenuItemToggler *v164; // rbx
int v165; // eax
std::__compressed_pair *>> *v166; // [rsp+8h] [rbp-208h]
TextInputDelegate *v167; // [rsp+10h] [rbp-200h]
char v168; // [rsp+18h] [rbp-1F8h] BYREF
int v169; // [rsp+19h] [rbp-1F7h]
void *__p; // [rsp+28h] [rbp-1E8h]
char v171; // [rsp+30h] [rbp-1E0h] BYREF
int v172; // [rsp+31h] [rbp-1DFh]
void *v173; // [rsp+40h] [rbp-1D0h]
char v174; // [rsp+48h] [rbp-1C8h] BYREF
int v175; // [rsp+49h] [rbp-1C7h]
void *v176; // [rsp+58h] [rbp-1B8h]
char v177; // [rsp+60h] [rbp-1B0h] BYREF
char v178[15]; // [rsp+61h] [rbp-1AFh] BYREF
void *v179; // [rsp+70h] [rbp-1A0h]
char v180; // [rsp+78h] [rbp-198h] BYREF
char v181[15]; // [rsp+79h] [rbp-197h] BYREF
void *v182; // [rsp+88h] [rbp-188h]
char v183; // [rsp+90h] [rbp-180h] BYREF
char v184[15]; // [rsp+91h] [rbp-17Fh] BYREF
void *v185; // [rsp+A0h] [rbp-170h]
std::string v186; // [rsp+A8h] [rbp-168h] BYREF
__m128 v187; // [rsp+C0h] [rbp-150h] BYREF
void *v188; // [rsp+D0h] [rbp-140h]
float v189; // [rsp+E0h] [rbp-130h] BYREF
char v190; // [rsp+E8h] [rbp-128h] BYREF
char v191[15]; // [rsp+E9h] [rbp-127h] BYREF
void *v192; // [rsp+F8h] [rbp-118h]
char v193; // [rsp+100h] [rbp-110h] BYREF
char v194[15]; // [rsp+101h] [rbp-10Fh] BYREF
void *v195; // [rsp+110h] [rbp-100h]
_QWORD __dst[2]; // [rsp+118h] [rbp-F8h] BYREF
void *v197; // [rsp+128h] [rbp-E8h]
_QWORD v198[2]; // [rsp+130h] [rbp-E0h] BYREF
void *v199; // [rsp+140h] [rbp-D0h]
__m128 v200; // [rsp+14Ch] [rbp-C4h] BYREF
unsigned __int64 v201; // [rsp+15Ch] [rbp-B4h] BYREF
unsigned __int64 v202; // [rsp+164h] [rbp-ACh] BYREF
unsigned __int64 v203; // [rsp+16Ch] [rbp-A4h] BYREF
unsigned __int64 v204; // [rsp+174h] [rbp-9Ch] BYREF
float v205; // [rsp+17Ch] [rbp-94h]
unsigned __int64 v206; // [rsp+180h] [rbp-90h] BYREF
__int64 v207; // [rsp+188h] [rbp-88h]
float v208; // [rsp+190h] [rbp-80h]
float v209; // [rsp+194h] [rbp-7Ch]
__int64 v210; // [rsp+198h] [rbp-78h]
float v211; // [rsp+1A4h] [rbp-6Ch] BYREF
float v212; // [rsp+1A8h] [rbp-68h]
unsigned __int64 v213[2]; // [rsp+1ACh] [rbp-64h] BYREF
bool v214; // [rsp+1BFh] [rbp-51h]
__m128 v215; // [rsp+1C0h] [rbp-50h] BYREF
void *longStorage; // [rsp+1D0h] [rbp-40h]
GJAccountSettingsLayer *v217; // [rsp+1E0h] [rbp-30h]
double v218; // 0:xmm0_8.8
double v219; // 0:xmm0_8.8
cocos2d::CCRect v220; // 0:xmm0_8.8,8:xmm1_8.8
cocos2d::CCRect v221; // 0:xmm0_8.8,8:xmm1_8.8
cocos2d::CCRect v222; // 0:xmm0_8.8,8:xmm1_8.8
cocos2d::CCRect v223; // 0:xmm0_8.8,8:xmm1_8.8
v3 = a1;
FLAlertLayer::incrementForcePrio(a1);
v215.i32[0] = -1778384896;
result = cocos2d::CCLayerColor::initWithColor(a1, (const cocos2d::ccColor4B *)&v215);
if ( !result )
return result;
v214 = result;
a1->m_noElasticity = 1;
((void (__fastcall *)(GJAccountSettingsLayer *, __int64))a1->setTouchEnabled)(a1, 1);
((void (__fastcall *)(GJAccountSettingsLayer *, __int64))a1->setKeypadEnabled)(a1, 1);
((void (__fastcall *)(GJAccountSettingsLayer *, __int64))a1->setKeyboardEnabled)(a1, 1);
a1->m_accountID = a2;
v5 = GameLevelManager::sharedState();
v6 = GameLevelManager::userInfoForAccountID(v5, a2);
v217 = a1;
if ( !v6 )
goto LABEL_102;
v7 = v6;
*(_QWORD *)&a1->m_messageStatus = *(_QWORD *)&v6->m_messageState;
a1->m_commentHistoryStatus = v6->m_commentHistoryStatus;
if ( (v6->m_youtubeURL.m_data.m_short.sizex2 & 1) != 0 )
{
sub_100006B70(&v215, v6->m_youtubeURL.m_data.m_long.longStorage, v6->m_youtubeURL.m_data.m_long.size, v2);
}
else
{
longStorage = v6->m_youtubeURL.m_data.m_long.longStorage;
v215 = *(__m128 *)&v6->m_youtubeURL.m_data.m_short.sizex2;
}
p_pair1 = (cocos2d::CCObject *)&v217->m_links.__tree_.__pair1_;
left = (cocos2d::CCObject_vtbl *)v217->m_links.__tree_.__pair1_.__value_.__left_;
p_m_uID = (cocos2d::CCObject *)&v217->m_links.__tree_.__pair1_;
v11 = (cocos2d::CCObject *)&v217->m_links.__tree_.__pair1_;
LABEL_8:
if ( !left )
{
LABEL_13:
v12 = (char *)operator new(0x40u);
*((_DWORD *)v12 + 8) = 0;
*(_OWORD *)(v12 + 40) = 0;
*((_QWORD *)v12 + 7) = 0;
*(_OWORD *)v12 = 0;
*((_QWORD *)v12 + 2) = v11;
p_m_uID->__vftable = (cocos2d::CCObject_vtbl *)v12;
v13 = v217;
v14 = (std::__tree_end_node *> *)v217->m_links.__tree_.__begin_node_->__left_;
if ( v14 )
v217->m_links.__tree_.__begin_node_ = v14;
sub_100054DD0((__int64 *)v13->m_links.__tree_.__pair1_.__value_.__left_, (__int64 *)v12);
++v13->m_links.__tree_.__pair3_.__value_;
p_update = (void (__cdecl **)(cocos2d::CCObject *__hidden, float))(v12 + 40);
if ( (v12[40] & 1) == 0 )
goto LABEL_17;
goto LABEL_16;
}
while ( 1 )
{
v11 = (cocos2d::CCObject *)left;
if ( SLODWORD(left->acceptVisitor) > 0 )
{
left = (cocos2d::CCObject_vtbl *)left->copyWithZone;
p_m_uID = v11;
goto LABEL_8;
}
if ( SLODWORD(left->acceptVisitor) >= 0 )
break;
left = (cocos2d::CCObject_vtbl *)left->~CCObject;
if ( !left )
{
p_m_uID = (cocos2d::CCObject *)&v11->m_uID;
goto LABEL_13;
}
}
v12 = (char *)left;
p_update = &left->update;
if ( ((__int64)left->update & 1) != 0 )
LABEL_16:
operator delete(*((void **)v12 + 7));
LABEL_17:
p_update[2] = (void (__cdecl *)(cocos2d::CCObject *__hidden, float))longStorage;
v16 = *(double *)v215.i64;
*(__m128 *)p_update = v215;
if ( (v7->m_twitterURL.m_data.m_short.sizex2 & 1) != 0 )
{
sub_100006B70(&v215, v7->m_twitterURL.m_data.m_long.longStorage, v7->m_twitterURL.m_data.m_long.size, v16);
}
else
{
longStorage = v7->m_twitterURL.m_data.m_long.longStorage;
v215 = *(__m128 *)&v7->m_twitterURL.m_data.m_short.sizex2;
}
v17 = p_pair1->__vftable;
v18 = &p_pair1->__vftable;
p_copyWithZone = &p_pair1->__vftable;
LABEL_22:
if ( !v17 )
{
LABEL_27:
v21 = (char *)operator new(0x40u);
*((_DWORD *)v21 + 8) = 1;
*(_OWORD *)(v21 + 40) = 0;
*((_QWORD *)v21 + 7) = 0;
*(_OWORD *)v21 = 0;
*((_QWORD *)v21 + 2) = p_copyWithZone;
*v18 = v21;
v22 = v217;
v23 = (std::__tree_end_node *> *)v217->m_links.__tree_.__begin_node_->__left_;
if ( v23 )
v217->m_links.__tree_.__begin_node_ = v23;
sub_100054DD0((__int64 *)v22->m_links.__tree_.__pair1_.__value_.__left_, (__int64 *)v21);
++v22->m_links.__tree_.__pair3_.__value_;
v24 = v21 + 40;
if ( (v21[40] & 1) == 0 )
goto LABEL_31;
goto LABEL_30;
}
while ( 1 )
{
p_copyWithZone = &v17->copyWithZone;
acceptVisitor = (int)v17->acceptVisitor;
if ( acceptVisitor >= 2 )
{
v17 = (cocos2d::CCObject_vtbl *)*p_copyWithZone;
v18 = p_copyWithZone;
goto LABEL_22;
}
if ( acceptVisitor == 1 )
break;
v17 = (cocos2d::CCObject_vtbl *)p_copyWithZone[1];
if ( !v17 )
{
v18 = p_copyWithZone + 1;
goto LABEL_27;
}
}
v21 = (char *)p_copyWithZone;
v24 = p_copyWithZone + 5;
if ( (*(_BYTE *)v24 & 1) != 0 )
LABEL_30:
operator delete(*((void **)v21 + 7));
LABEL_31:
v24[2] = longStorage;
v25 = *(double *)v215.i64;
*(__m128 *)v24 = v215;
if ( (v7->m_twitchURL.m_data.m_short.sizex2 & 1) != 0 )
{
sub_100006B70(&v215, v7->m_twitchURL.m_data.m_long.longStorage, v7->m_twitchURL.m_data.m_long.size, v25);
}
else
{
longStorage = v7->m_twitchURL.m_data.m_long.longStorage;
v215 = *(__m128 *)&v7->m_twitchURL.m_data.m_short.sizex2;
}
v26 = p_pair1->__vftable;
v27 = &p_pair1->__vftable;
v28 = &p_pair1->__vftable;
LABEL_36:
if ( !v26 )
{
LABEL_41:
v30 = (char *)operator new(0x40u);
*((_DWORD *)v30 + 8) = 2;
*(_OWORD *)(v30 + 40) = 0;
*((_QWORD *)v30 + 7) = 0;
*(_OWORD *)v30 = 0;
*((_QWORD *)v30 + 2) = v28;
*v27 = v30;
v31 = v217;
v32 = (std::__tree_end_node *> *)v217->m_links.__tree_.__begin_node_->__left_;
if ( v32 )
v217->m_links.__tree_.__begin_node_ = v32;
sub_100054DD0((__int64 *)v31->m_links.__tree_.__pair1_.__value_.__left_, (__int64 *)v30);
++v31->m_links.__tree_.__pair3_.__value_;
v33 = v30 + 40;
if ( (v30[40] & 1) == 0 )
goto LABEL_45;
goto LABEL_44;
}
while ( 1 )
{
v28 = &v26->copyWithZone;
v29 = (int)v26->acceptVisitor;
if ( v29 >= 3 )
{
v26 = (cocos2d::CCObject_vtbl *)*v28;
v27 = v28;
goto LABEL_36;
}
if ( v29 == 2 )
break;
v26 = (cocos2d::CCObject_vtbl *)v28[1];
if ( !v26 )
{
v27 = v28 + 1;
goto LABEL_41;
}
}
v30 = (char *)v28;
v33 = v28 + 5;
if ( (*(_BYTE *)v33 & 1) != 0 )
LABEL_44:
operator delete(*((void **)v30 + 7));
LABEL_45:
v33[2] = longStorage;
v34 = *(double *)v215.i64;
*(__m128 *)v33 = v215;
if ( (v7->m_instagramURL.m_data.m_short.sizex2 & 1) != 0 )
{
sub_100006B70(&v215, v7->m_instagramURL.m_data.m_long.longStorage, v7->m_instagramURL.m_data.m_long.size, v34);
}
else
{
longStorage = v7->m_instagramURL.m_data.m_long.longStorage;
v215 = *(__m128 *)&v7->m_instagramURL.m_data.m_short.sizex2;
}
v35 = p_pair1->__vftable;
v36 = &p_pair1->__vftable;
v37 = &p_pair1->__vftable;
LABEL_50:
if ( !v35 )
{
LABEL_55:
v39 = (char *)operator new(0x40u);
*((_DWORD *)v39 + 8) = 3;
*(_OWORD *)(v39 + 40) = 0;
*((_QWORD *)v39 + 7) = 0;
*(_OWORD *)v39 = 0;
*((_QWORD *)v39 + 2) = v37;
*v36 = v39;
v40 = v217;
v41 = (std::__tree_end_node *> *)v217->m_links.__tree_.__begin_node_->__left_;
if ( v41 )
v217->m_links.__tree_.__begin_node_ = v41;
sub_100054DD0((__int64 *)v40->m_links.__tree_.__pair1_.__value_.__left_, (__int64 *)v39);
++v40->m_links.__tree_.__pair3_.__value_;
v42 = v39 + 40;
if ( (v39[40] & 1) == 0 )
goto LABEL_59;
goto LABEL_58;
}
while ( 1 )
{
v37 = &v35->copyWithZone;
v38 = (int)v35->acceptVisitor;
if ( v38 >= 4 )
{
v35 = (cocos2d::CCObject_vtbl *)*v37;
v36 = v37;
goto LABEL_50;
}
if ( v38 == 3 )
break;
v35 = (cocos2d::CCObject_vtbl *)v37[1];
if ( !v35 )
{
v36 = v37 + 1;
goto LABEL_55;
}
}
v39 = (char *)v37;
v42 = v37 + 5;
if ( (*(_BYTE *)v42 & 1) != 0 )
LABEL_58:
operator delete(*((void **)v39 + 7));
LABEL_59:
v42[2] = longStorage;
v43 = *(double *)v215.i64;
*(__m128 *)v42 = v215;
if ( (v7->m_tiktokURL.m_data.m_short.sizex2 & 1) != 0 )
{
sub_100006B70(&v215, v7->m_tiktokURL.m_data.m_long.longStorage, v7->m_tiktokURL.m_data.m_long.size, v43);
}
else
{
longStorage = v7->m_tiktokURL.m_data.m_long.longStorage;
v215 = *(__m128 *)&v7->m_tiktokURL.m_data.m_short.sizex2;
}
v44 = p_pair1->__vftable;
v45 = &p_pair1->__vftable;
v46 = &p_pair1->__vftable;
LABEL_64:
if ( !v44 )
{
LABEL_69:
v48 = (char *)operator new(0x40u);
*((_DWORD *)v48 + 8) = 4;
*(_OWORD *)(v48 + 40) = 0;
*((_QWORD *)v48 + 7) = 0;
*(_OWORD *)v48 = 0;
*((_QWORD *)v48 + 2) = v46;
*v45 = v48;
v49 = v217;
v50 = (std::__tree_end_node *> *)v217->m_links.__tree_.__begin_node_->__left_;
if ( v50 )
v217->m_links.__tree_.__begin_node_ = v50;
sub_100054DD0((__int64 *)v49->m_links.__tree_.__pair1_.__value_.__left_, (__int64 *)v48);
++v49->m_links.__tree_.__pair3_.__value_;
v51 = v48 + 40;
if ( (v48[40] & 1) == 0 )
goto LABEL_73;
goto LABEL_72;
}
while ( 1 )
{
v46 = &v44->copyWithZone;
v47 = (int)v44->acceptVisitor;
if ( v47 >= 5 )
{
v44 = (cocos2d::CCObject_vtbl *)*v46;
v45 = v46;
goto LABEL_64;
}
if ( v47 == 4 )
break;
v44 = (cocos2d::CCObject_vtbl *)v46[1];
if ( !v44 )
{
v45 = v46 + 1;
goto LABEL_69;
}
}
v48 = (char *)v46;
v51 = v46 + 5;
if ( (*(_BYTE *)v51 & 1) != 0 )
LABEL_72:
operator delete(*((void **)v48 + 7));
LABEL_73:
v51[2] = longStorage;
v52 = *(double *)v215.i64;
*(__m128 *)v51 = v215;
if ( (v7->m_discordUsername.m_data.m_short.sizex2 & 1) != 0 )
{
sub_100006B70(&v215, v7->m_discordUsername.m_data.m_long.longStorage, v7->m_discordUsername.m_data.m_long.size, v52);
}
else
{
longStorage = v7->m_discordUsername.m_data.m_long.longStorage;
v215 = *(__m128 *)&v7->m_discordUsername.m_data.m_short.sizex2;
}
v53 = p_pair1->__vftable;
v54 = &p_pair1->__vftable;
v55 = &p_pair1->__vftable;
LABEL_78:
if ( !v53 )
{
LABEL_83:
v57 = (char *)operator new(0x40u);
*((_DWORD *)v57 + 8) = 5;
*(_OWORD *)(v57 + 40) = 0;
*((_QWORD *)v57 + 7) = 0;
*(_OWORD *)v57 = 0;
*((_QWORD *)v57 + 2) = v55;
*v54 = v57;
v58 = v217;
v59 = (std::__tree_end_node *> *)v217->m_links.__tree_.__begin_node_->__left_;
if ( v59 )
v217->m_links.__tree_.__begin_node_ = v59;
sub_100054DD0((__int64 *)v58->m_links.__tree_.__pair1_.__value_.__left_, (__int64 *)v57);
++v58->m_links.__tree_.__pair3_.__value_;
v60 = v57 + 40;
if ( (v57[40] & 1) == 0 )
goto LABEL_87;
goto LABEL_86;
}
while ( 1 )
{
v55 = &v53->copyWithZone;
v56 = (int)v53->acceptVisitor;
if ( v56 >= 6 )
{
v53 = (cocos2d::CCObject_vtbl *)*v55;
v54 = v55;
goto LABEL_78;
}
if ( v56 == 5 )
break;
v53 = (cocos2d::CCObject_vtbl *)v55[1];
if ( !v53 )
{
v54 = v55 + 1;
goto LABEL_83;
}
}
v57 = (char *)v55;
v60 = v55 + 5;
if ( (*(_BYTE *)v60 & 1) != 0 )
LABEL_86:
operator delete(*((void **)v57 + 7));
LABEL_87:
v60[2] = longStorage;
v61 = *(double *)v215.i64;
*(__m128 *)v60 = v215;
if ( (v7->m_customString.m_data.m_short.sizex2 & 1) != 0 )
{
sub_100006B70(&v215, v7->m_customString.m_data.m_long.longStorage, v7->m_customString.m_data.m_long.size, v61);
}
else
{
p_m_customString = &v7->m_customString;
longStorage = p_m_customString->m_data.m_long.longStorage;
v215 = *(__m128 *)&p_m_customString->m_data.m_short.sizex2;
}
v63 = p_pair1->__vftable;
v64 = &p_pair1->__vftable;
LABEL_92:
if ( v63 )
{
while ( 1 )
{
v64 = &v63->copyWithZone;
v65 = (int)v63->acceptVisitor;
if ( v65 >= 7 )
{
v63 = (cocos2d::CCObject_vtbl *)*v64;
p_pair1 = (cocos2d::CCObject *)v64;
goto LABEL_92;
}
if ( v65 == 6 )
break;
v63 = (cocos2d::CCObject_vtbl *)v64[1];
if ( !v63 )
{
p_pair1 = (cocos2d::CCObject *)(v64 + 1);
goto LABEL_97;
}
}
v66 = (char *)v64;
v69 = v64 + 5;
if ( (*(_BYTE *)v69 & 1) == 0 )
goto LABEL_101;
}
else
{
LABEL_97:
v66 = (char *)operator new(0x40u);
*((_DWORD *)v66 + 8) = 6;
*(_OWORD *)(v66 + 40) = 0;
*((_QWORD *)v66 + 7) = 0;
*(_OWORD *)v66 = 0;
*((_QWORD *)v66 + 2) = v64;
p_pair1->__vftable = (cocos2d::CCObject_vtbl *)v66;
v67 = v217;
v68 = (std::__tree_end_node *> *)v217->m_links.__tree_.__begin_node_->__left_;
if ( v68 )
v217->m_links.__tree_.__begin_node_ = v68;
sub_100054DD0((__int64 *)v67->m_links.__tree_.__pair1_.__value_.__left_, (__int64 *)v66);
++v67->m_links.__tree_.__pair3_.__value_;
v69 = v66 + 40;
if ( (v66[40] & 1) == 0 )
goto LABEL_101;
}
operator delete(*((void **)v66 + 7));
LABEL_101:
v69[2] = longStorage;
*(__m128 *)v69 = v215;
v3 = v217;
LABEL_102:
cocos2d::CCDirector::sharedDirector();
*(cocos2d::CCSize *)&v218 = cocos2d::CCDirector::getWinSize((cocos2d::CCDirector *)&v211);
v70 = cocos2d::CCLayer::create();
v3->m_mainLayer = v70;
((void (__fastcall *)(GJAccountSettingsLayer *, cocos2d::CCLayer *, double))v3->addChild)(v3, v70, v218);
v220.origin = 0;
v220.size = 0;
sub_10028CC00((__int64)&v215, 0.0, 0.0, (__m128)0x42A00000u, (__m128)0x42A00000u);
v71 = cocos2d::extension::CCScale9Sprite::create_2("GJ_square01.png", v220);
((void (__fastcall *)(cocos2d::extension::CCScale9Sprite *, __int64))v71->setOpacity)(v71, 255);
sub_10028CBF0(v215.f32, 400.0, 300.0);
((void (__fastcall *)(cocos2d::extension::CCScale9Sprite *, __m128 *))v71->setContentSize)(v71, &v215);
((void (__fastcall *)(cocos2d::CCLayer *, cocos2d::extension::CCScale9Sprite *, __int64))v3->m_mainLayer->addChild_0)(
v3->m_mainLayer,
v71,
0xFFFFFFFFLL);
sub_10028CBE0(v215.f32, v211 * 0.5, v212 * 0.5);
((void (__fastcall *)(cocos2d::extension::CCScale9Sprite *, __m128 *))v71->setPosition)(v71, &v215);
v72 = cocos2d::CCMenu::create();
v3->m_buttonMenu = v72;
m_mainLayer = v3->m_mainLayer;
v74 = v72;
((void (__fastcall *)(cocos2d::CCLayer *, cocos2d::CCMenu *, __int64))m_mainLayer->addChild_0)(m_mainLayer, v72, 10);
v3->m_joystickConnected = -1;
v75 = (cocos2d::CCObject *)sub_10071F9E0(m_mainLayer, v74);
v3->m_messageSettings = (cocos2d::CCArray *)v75;
cocos2d::CCObject::retain(v75);
sub_10028CBE0((float *)&v206, v211 * 0.5, (float)(v212 * 0.5) + 138.0);
sub_10028CBF0(&v189, 400.0, 30.0);
v220.origin = 0;
v220.size = 0;
sub_10028CC00((__int64)&v215, 0.0, 0.0, (__m128)0x42200000u, (__m128)0x42200000u);
v76 = cocos2d::extension::CCScale9Sprite::create_2("square02_small.png", v220);
((void (__fastcall *)(cocos2d::extension::CCScale9Sprite *, __int64))v76->setOpacity)(v76, 50);
((void (__fastcall *)(cocos2d::extension::CCScale9Sprite *, float *))v76->setContentSize)(v76, &v189);
((void (__fastcall *)(cocos2d::extension::CCScale9Sprite *, float))v76->setScale)(v76, 0.69999999);
((void (__fastcall *)(cocos2d::CCLayer *, cocos2d::extension::CCScale9Sprite *, __int64))v3->m_mainLayer->addChild_0)(
v3->m_mainLayer,
v76,
0xFFFFFFFFLL);
sub_10028CBE0((float *)v213, 0.0, -20.0);
sub_10028CCE0((double *)v215.i64, &v206, v213);
((void (__fastcall *)(cocos2d::extension::CCScale9Sprite *, __m128 *))v76->setPosition)(v76, &v215);
v77 = cocos2d::CCLabelBMFont::create_3("Allow messages from:", "goldFont.fnt");
((void (__fastcall *)(cocos2d::CCLayer *, cocos2d::CCLabelBMFont *, __int64))v3->m_mainLayer->addChild_0)(
v3->m_mainLayer,
v77,
20);
((void (__fastcall *)(cocos2d::CCLabelBMFont *, unsigned __int64 *))v77->setPosition)(v77, &v206);
((void (__fastcall *)(cocos2d::CCLabelBMFont *, float))v77->setScale)(v77, 0.40000001);
v168 = 6;
v169 = 7105601;
m_buttonMenu = v3->m_buttonMenu;
sub_10028CBE0((float *)v213, -105.0, -20.0);
sub_10028CCE0((double *)v215.i64, &v206, v213);
ToggleButton = (_BYTE *)GJAccountSettingsLayer::createToggleButton(
(_DWORD)v217,
(unsigned int)&v168,
(unsigned int)GJAccountSettingsLayer::onMessageSetting,
0,
1,
(_DWORD)m_buttonMenu,
(__int64)&v215);
if ( (v168 & 1) != 0 )
operator delete(__p);
ToggleButton[393] = 1;
(*(void (__fastcall **)(_BYTE *, _QWORD, double, double))(*(_QWORD *)ToggleButton + 72LL))(
ToggleButton,
0,
COERCE_DOUBLE(1112014848),
COERCE_DOUBLE(1053609165));
v190 = 14;
strcpy(v191, "Friends");
v80 = v217->m_buttonMenu;
sub_10028CBE0((float *)v213, -30.0, -20.0);
sub_10028CCE0((double *)v215.i64, &v206, v213);
v81 = (_BYTE *)GJAccountSettingsLayer::createToggleButton(
(_DWORD)v217,
(unsigned int)&v190,
(unsigned int)GJAccountSettingsLayer::onMessageSetting,
0,
1,
(_DWORD)v80,
(__int64)&v215);
if ( (v190 & 1) != 0 )
operator delete(v192);
v81[393] = 1;
(*(void (__fastcall **)(_BYTE *, __int64, double, double))(*(_QWORD *)v81 + 72LL))(
v81,
1,
COERCE_DOUBLE(1112014848),
COERCE_DOUBLE(1053609165));
v177 = 8;
strcpy(v178, "None");
v82 = v217->m_buttonMenu;
sub_10028CBE0((float *)v213, 70.0, -20.0);
sub_10028CCE0((double *)v215.i64, &v206, v213);
v83 = (_BYTE *)GJAccountSettingsLayer::createToggleButton(
(_DWORD)v217,
(unsigned int)&v177,
(unsigned int)GJAccountSettingsLayer::onMessageSetting,
0,
1,
(_DWORD)v82,
(__int64)&v215);
if ( (v177 & 1) != 0 )
operator delete(v179);
v83[393] = 1;
(*(void (__fastcall **)(_BYTE *, __int64, double, double))(*(_QWORD *)v83 + 72LL))(
v83,
2,
COERCE_DOUBLE(1112014848),
COERCE_DOUBLE(1053609165));
v84 = v217;
sub_10071FCD0(v217->m_messageSettings, ToggleButton);
sub_10071FCD0(v84->m_messageSettings, v81);
m_messageSettings = v84->m_messageSettings;
sub_10071FCD0(m_messageSettings, v83);
v86 = (cocos2d::CCObject *)sub_10071F9E0(m_messageSettings, v83);
v84->m_friendRequestSettings = (cocos2d::CCArray *)v86;
cocos2d::CCObject::retain(v86);
sub_10028CBE0(v215.f32, 0.0, -40.0);
sub_10028CCE0((double *)&v201, &v206, (unsigned __int64 *)&v215);
v221.origin = 0;
v221.size = 0;
sub_10028CC00((__int64)&v215, 0.0, 0.0, (__m128)0x42200000u, (__m128)0x42200000u);
v87 = cocos2d::extension::CCScale9Sprite::create_2("square02_small.png", v221);
((void (__fastcall *)(cocos2d::extension::CCScale9Sprite *, __int64))v87->setOpacity)(v87, 50);
((void (__fastcall *)(cocos2d::extension::CCScale9Sprite *, float *))v87->setContentSize)(v87, &v189);
((void (__fastcall *)(cocos2d::extension::CCScale9Sprite *, float))v87->setScale)(v87, 0.69999999);
((void (__fastcall *)(cocos2d::CCLayer *, cocos2d::extension::CCScale9Sprite *, __int64))v84->m_mainLayer->addChild_0)(
v84->m_mainLayer,
v87,
0xFFFFFFFFLL);
sub_10028CBE0((float *)v213, 0.0, -20.0);
sub_10028CCE0((double *)v215.i64, &v201, v213);
((void (__fastcall *)(cocos2d::extension::CCScale9Sprite *, __m128 *))v87->setPosition)(v87, &v215);
v88 = cocos2d::CCLabelBMFont::create_3("Allow friend requests from:", "goldFont.fnt");
((void (__fastcall *)(cocos2d::CCLayer *, cocos2d::CCLabelBMFont *, __int64))v84->m_mainLayer->addChild_0)(
v84->m_mainLayer,
v88,
20);
((void (__fastcall *)(cocos2d::CCLabelBMFont *, unsigned __int64 *))v88->setPosition)(v88, &v201);
((void (__fastcall *)(cocos2d::CCLabelBMFont *, float))v88->setScale)(v88, 0.40000001);
v171 = 6;
v172 = 7105601;
v89 = v84->m_buttonMenu;
sub_10028CBE0((float *)v213, -70.0, -20.0);
sub_10028CCE0((double *)v215.i64, &v201, v213);
v90 = (_BYTE *)GJAccountSettingsLayer::createToggleButton(
(_DWORD)v217,
(unsigned int)&v171,
(unsigned int)GJAccountSettingsLayer::onFriendRequests,
0,
1,
(_DWORD)v89,
(__int64)&v215);
if ( (v171 & 1) != 0 )
operator delete(v173);
v90[393] = 1;
(*(void (__fastcall **)(_BYTE *, _QWORD, double, double))(*(_QWORD *)v90 + 72LL))(
v90,
0,
COERCE_DOUBLE(1112014848),
COERCE_DOUBLE(1053609165));
v180 = 8;
strcpy(v181, "None");
v91 = v217->m_buttonMenu;
sub_10028CBE0((float *)v213, 30.0, -20.0);
sub_10028CCE0((double *)v215.i64, &v201, v213);
v92 = (_BYTE *)GJAccountSettingsLayer::createToggleButton(
(_DWORD)v217,
(unsigned int)&v180,
(unsigned int)GJAccountSettingsLayer::onFriendRequests,
0,
1,
(_DWORD)v91,
(__int64)&v215);
if ( (v180 & 1) != 0 )
operator delete(v182);
v92[393] = 1;
(*(void (__fastcall **)(_BYTE *, __int64, double, double))(*(_QWORD *)v92 + 72LL))(
v92,
1,
COERCE_DOUBLE(1112014848),
COERCE_DOUBLE(1053609165));
v93 = v217;
sub_10071FCD0(v217->m_friendRequestSettings, v90);
sub_10071FCD0(v93->m_friendRequestSettings, v92);
sub_10028CBE0(v215.f32, 0.0, -40.0);
sub_10028CCE0((double *)&v202, &v201, (unsigned __int64 *)&v215);
v94 = (cocos2d::CCObject *)sub_10071F9E0(&v202, &v201);
v93->m_commentSettings = (cocos2d::CCArray *)v94;
cocos2d::CCObject::retain(v94);
v222.origin = 0;
v222.size = 0;
sub_10028CC00((__int64)&v215, 0.0, 0.0, (__m128)0x42200000u, (__m128)0x42200000u);
v95 = cocos2d::extension::CCScale9Sprite::create_2("square02_small.png", v222);
((void (__fastcall *)(cocos2d::extension::CCScale9Sprite *, __int64))v95->setOpacity)(v95, 50);
((void (__fastcall *)(cocos2d::extension::CCScale9Sprite *, float *))v95->setContentSize)(v95, &v189);
((void (__fastcall *)(cocos2d::extension::CCScale9Sprite *, float))v95->setScale)(v95, 0.69999999);
((void (__fastcall *)(cocos2d::CCLayer *, cocos2d::extension::CCScale9Sprite *, __int64))v93->m_mainLayer->addChild_0)(
v93->m_mainLayer,
v95,
0xFFFFFFFFLL);
sub_10028CBE0((float *)v213, 0.0, -20.0);
sub_10028CCE0((double *)v215.i64, &v202, v213);
((void (__fastcall *)(cocos2d::extension::CCScale9Sprite *, __m128 *))v95->setPosition)(v95, &v215);
v96 = cocos2d::CCLabelBMFont::create_3("Show Comment History to:", "goldFont.fnt");
((void (__fastcall *)(cocos2d::CCLayer *, cocos2d::CCLabelBMFont *, __int64))v93->m_mainLayer->addChild_0)(
v93->m_mainLayer,
v96,
20);
((void (__fastcall *)(cocos2d::CCLabelBMFont *, unsigned __int64 *))v96->setPosition)(v96, &v202);
((void (__fastcall *)(cocos2d::CCLabelBMFont *, float))v96->setScale)(v96, 0.40000001);
v174 = 6;
v175 = 7105601;
v97 = v93->m_buttonMenu;
sub_10028CBE0((float *)v213, -105.0, -20.0);
sub_10028CCE0((double *)v215.i64, &v202, v213);
v98 = (_BYTE *)GJAccountSettingsLayer::createToggleButton(
(_DWORD)v217,
(unsigned int)&v174,
(unsigned int)GJAccountSettingsLayer::onCommentSetting,
0,
1,
(_DWORD)v97,
(__int64)&v215);
if ( (v174 & 1) != 0 )
operator delete(v176);
v98[393] = 1;
(*(void (__fastcall **)(_BYTE *, _QWORD, double, double))(*(_QWORD *)v98 + 72LL))(
v98,
0,
COERCE_DOUBLE(1112014848),
COERCE_DOUBLE(1053609165));
v193 = 14;
strcpy(v194, "Friends");
v99 = v217->m_buttonMenu;
sub_10028CBE0((float *)v213, -30.0, -20.0);
sub_10028CCE0((double *)v215.i64, &v202, v213);
v100 = (_BYTE *)GJAccountSettingsLayer::createToggleButton(
(_DWORD)v217,
(unsigned int)&v193,
(unsigned int)GJAccountSettingsLayer::onCommentSetting,
0,
1,
(_DWORD)v99,
(__int64)&v215);
if ( (v193 & 1) != 0 )
operator delete(v195);
v100[393] = 1;
(*(void (__fastcall **)(_BYTE *, __int64, double, double))(*(_QWORD *)v100 + 72LL))(
v100,
1,
COERCE_DOUBLE(1112014848),
COERCE_DOUBLE(1053609165));
v183 = 4;
strcpy(v184, "Me");
v101 = v217->m_buttonMenu;
sub_10028CBE0((float *)v213, 70.0, -20.0);
sub_10028CCE0((double *)v215.i64, &v202, v213);
v102 = (_BYTE *)GJAccountSettingsLayer::createToggleButton(
(_DWORD)v217,
(unsigned int)&v183,
(unsigned int)GJAccountSettingsLayer::onCommentSetting,
0,
1,
(_DWORD)v101,
(__int64)&v215);
if ( (v183 & 1) != 0 )
operator delete(v185);
v102[393] = 1;
(*(void (__fastcall **)(_BYTE *, __int64, double, double))(*(_QWORD *)v102 + 72LL))(
v102,
2,
COERCE_DOUBLE(1112014848),
COERCE_DOUBLE(1053609165));
v103 = v217;
sub_10071FCD0(v217->m_commentSettings, v98);
sub_10071FCD0(v103->m_commentSettings, v100);
m_commentSettings = v103->m_commentSettings;
sub_10071FCD0(m_commentSettings, v102);
v105 = (cocos2d::CCObject *)sub_10071F9E0(m_commentSettings, v102);
v103->m_inputs = (cocos2d::CCArray *)v105;
cocos2d::CCObject::retain(v105);
v208 = v211 * 0.5;
v209 = (float)(v212 * 0.5) + -5.0;
v166 = &v103->m_links.__tree_.__pair1_;
v167 = &v103->TextInputDelegate;
v106 = 0;
do
{
v210 = v106;
HIDWORD(v107) = 0;
*(float *)&v107 = (float)((float)((v106 & 1) == 0 ? -1 : 1) * 90.0) + v208;
v108 = 0;
v108.f32[0] = (float)(int)v106 * 0.5;
sub_10028CBE0((float *)&v203, *(float *)&v107, (float)(_mm_round_ss(v108, v108, 9).f32[0] * -39.0) + v209);
v109 = v166;
while ( 1 )
{
v110 = (std::__compressed_pair *>> *)v109->__value_.__left_;
v111 = v109;
if ( !v109->__value_.__left_ )
break;
while ( 1 )
{
v109 = v110;
left_low = SLODWORD(v110[4].__value_.__left_);
if ( v210 < left_low )
break;
if ( v210 <= left_low )
goto LABEL_129;
v110 = (std::__compressed_pair *>> *)v109[1].__value_.__left_;
if ( !v110 )
{
v111 = v109 + 1;
goto LABEL_126;
}
}
}
LABEL_126:
v113 = v210;
v114 = (char *)operator new(0x40u);
*((_DWORD *)v114 + 8) = v113;
v107 = 0.0;
*(_OWORD *)(v114 + 40) = 0;
*((_QWORD *)v114 + 7) = 0;
*(_OWORD *)v114 = 0;
*((_QWORD *)v114 + 2) = v109;
v111->__value_.__left_ = (std::__tree_end_node *>::pointer)v114;
v115 = v217;
v116 = (std::__tree_end_node *> *)v217->m_links.__tree_.__begin_node_->__left_;
if ( v116 )
v217->m_links.__tree_.__begin_node_ = v116;
sub_100054DD0((__int64 *)v115->m_links.__tree_.__pair1_.__value_.__left_, (__int64 *)v114);
++v115->m_links.__tree_.__pair3_.__value_;
v109 = (std::__compressed_pair *>> *)v114;
LABEL_129:
if ( ((__int64)v109[5].__value_.__left_ & 1) != 0 )
{
sub_100006B70(&v215, v109[7].__value_.__left_, (unsigned __int64)v109[6].__value_.__left_, v107);
}
else
{
v117 = (char *)&v109[5];
longStorage = *((void **)v117 + 2);
v215 = *(__m128 *)v117;
}
v207 = 32 * v210;
v118 = off_1008F9B00[4 * v210];
v119 = cocos2d::CCLabelBMFont::create_3(v118, "goldFont.fnt");
v120 = v217;
v121 = v119;
((void (__fastcall *)(cocos2d::CCLayer *, cocos2d::CCLabelBMFont *))v217->m_mainLayer->addChild)(
v217->m_mainLayer,
v119);
((void (__fastcall *)(cocos2d::CCLabelBMFont *, float))v121->setScale)(v121, 0.44999999);
sub_10028CBE0((float *)v213, 0.5, 0.0);
((void (__fastcall *)(cocos2d::CCLabelBMFont *, unsigned __int64 *))v121->setAnchorPoint)(v121, v213);
sub_10028CBE0(v200.f32, 0.0, 12.0);
sub_10028CCE0((double *)v213, &v203, (unsigned __int64 *)&v200);
((void (__fastcall *)(cocos2d::CCLabelBMFont *, unsigned __int64 *))v121->setPosition)(v121, v213);
v122 = strlen(v118);
if ( v122 >= 0xFFFFFFFFFFFFFFF8LL )
sub_100006BF0(0.0);
v123 = v122;
if ( v122 >= 0x17 )
{
v125 = (v122 | 7) + 1;
if ( (v122 | 7) == 0x17 )
v125 = 26;
v124 = (char *)operator new(v125);
v197 = v124;
__dst[0] = v125 | 1;
__dst[1] = v123;
v120 = v217;
LABEL_139:
memmove(v124, v118, v123);
goto LABEL_140;
}
LOBYTE(__dst[0]) = 2 * v122;
v124 = (char *)__dst + 1;
if ( v122 )
goto LABEL_139;
LABEL_140:
v126 = (char *)off_1008F9B00 + v207;
v124[v123] = 0;
v207 = (__int64)v126;
v127 = *((const char **)v126 + 3);
v128 = strlen(v127);
if ( v128 >= 0xFFFFFFFFFFFFFFF8LL )
sub_100006BF0(0.0);
v129 = v128;
if ( v128 >= 0x17 )
{
v131 = (v128 | 7) + 1;
if ( (v128 | 7) == 0x17 )
v131 = 26;
v130 = (char *)operator new(v131);
v199 = v130;
v198[0] = v131 | 1;
v198[1] = v129;
v120 = v217;
LABEL_147:
memmove(v130, v127, v129);
goto LABEL_148;
}
LOBYTE(v198[0]) = 2 * v128;
v130 = (char *)v198 + 1;
if ( v128 )
goto LABEL_147;
LABEL_148:
v130[v129] = 0;
v132 = InfoAlertButton::create(__dst, v198, 0.5);
if ( (v198[0] & 1) != 0 )
operator delete(v199);
if ( (__dst[0] & 1) != 0 )
operator delete(v197);
((void (__fastcall *)(cocos2d::CCMenu *, __int64))v120->m_buttonMenu->addChild)(v120->m_buttonMenu, v132);
v133 = v217;
v134 = (const cocos2d::CCPoint *)v217->m_buttonMenu;
v135 = (unsigned __int64 *)((__int64 (__fastcall *)(cocos2d::CCLabelBMFont *))v121->getPosition)(v121);
v205 = *(float *)((__int64 (__fastcall *)(cocos2d::CCLabelBMFont *))v121->getContentSize)(v121);
v136 = ((float (__fastcall *)(cocos2d::CCLabelBMFont *))v121->getScale)(v121);
sub_10028CBE0((float *)&v204, (float)((float)(v205 * v136) * 0.5) + 10.0, 5.0);
sub_10028CCE0((double *)v200.i64, v135, &v204);
*(cocos2d::CCPoint *)&v219 = cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)v213, v134);
(*(void (__fastcall **)(__int64, unsigned __int64 *, double))(*(_QWORD *)v132 + 184LL))(v132, v213, v219);
v223.size = 0;
sub_10028CC00((__int64)v213, 0.0, 0.0, (__m128)0x42200000u, (__m128)0x42200000u);
*(double *)&v223.origin = sub_10028D180(&v200, v213);
v137 = cocos2d::extension::CCScale9Sprite::create_2("square02b_small.png", v223);
v200.i8[2] = 31;
v200.i16[0] = 13405;
((void (__fastcall *)(cocos2d::extension::CCScale9Sprite *, __m128 *))v137->setColor)(v137, &v200);
sub_10028CBF0(v200.f32, 160.0, 20.0);
((void (__fastcall *)(cocos2d::extension::CCScale9Sprite *, __m128 *))v137->setContentSize)(v137, &v200);
((void (__fastcall *)(cocos2d::CCLayer *, cocos2d::extension::CCScale9Sprite *, __int64))v133->m_mainLayer->addChild_0)(
v133->m_mainLayer,
v137,
0xFFFFFFFFLL);
sub_10028CBE0((float *)&v204, 0.0, -1.0);
sub_10028CCE0((double *)v200.i64, &v203, &v204);
((void (__fastcall *)(cocos2d::extension::CCScale9Sprite *, __m128 *))v137->setPosition)(v137, &v200);
v138 = (__m128)0x43200000u;
v139 = CCTextInputNode::create(160.0, 20.0, *(const char **)(v207 + 8), "Thonburi", 24, "bigFont.fnt");
if ( (v215.i8[0] & 1) != 0 )
{
if ( !v215.i64[1] )
goto LABEL_159;
sub_100006B70(&v187, longStorage, v215.u64[1], COERCE_DOUBLE(1126170624));
}
else
{
if ( !v215.i8[0] )
goto LABEL_159;
v188 = longStorage;
v138 = v215;
v187 = v215;
}
CCTextInputNode::setString(v139, (__int64)&v187, v138);
if ( (v187.i8[0] & 1) != 0 )
operator delete(v188);
LABEL_159:
((void (__fastcall *)(cocos2d::CCLayer *, CCTextInputNode *, __int64))v133->m_mainLayer->addChild_0)(
v133->m_mainLayer,
v139,
20);
v139->m_delegate = v167;
((void (__fastcall *)(CCTextInputNode *, unsigned __int64 *))v139->setPosition)(v139, &v203);
CCTextInputNode::setMaxLabelScale(v139, 0.5);
CCTextInputNode::setMaxLabelWidth(v139, 140.0);
((void (__fastcall *)(cocos2d::CCTextFieldTTF *, _QWORD))v139->m_textField->setVisible)(v139->m_textField, 0);
v139->m_maxLabelLength = *(_DWORD *)(v207 + 16);
v186.__r_.__value_.__r.__words[2] = (std::string::size_type)operator new(0x48u);
v186.__r_.__value_.__r.__words[0] = 73;
v186.__r_.__value_.__l.__size_ = 67;
strcpy(v186.__r_.__value_.__l.__data_, " abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_'.");
CCTextInputNode::setAllowedChars((std::string *)v139, &v186);
if ( (*(_BYTE *)&v186.__r_.__value_.__s.0 & 1) != 0 )
operator delete(v186.__r_.__value_.__l.__data_);
CCTextInputNode::setLabelPlaceholderColor(v139, (cocos2d::ccColor3B)-1004936);
CCTextInputNode::setLabelPlaceholderScale(v139, 0.44999999);
CCTextInputNode::forceOffset(v139);
((void (__fastcall *)(CCTextInputNode *, __int64))v139->setTag)(v139, v210);
m_inputs = v133->m_inputs;
sub_10071FCD0(m_inputs, v139);
if ( (v215.i8[0] & 1) != 0 )
{
m_inputs = longStorage;
operator delete(longStorage);
}
v106 = v210 + 1;
}
while ( v210 != 6 );
v141 = (cocos2d::CCArray *)sub_10071F9E0(m_inputs, v139);
v142 = ButtonSprite::create_1("Cancel", 50, 0, 0.5, 1, "bigFont.fnt", "GJ_button_05.png", 25.0);
v143 = v217;
v144 = CCMenuItemSpriteExtra::create(
v142,
nullptr,
v217,
(cocos2d::SEL_MenuHandler)(unsigned __int64)GJAccountSettingsLayer::onClose);
((void (__fastcall *)(cocos2d::CCMenu *, CCMenuItemSpriteExtra *))v143->m_buttonMenu->addChild)(
v143->m_buttonMenu,
v144);
sub_10071FCD0(v141, v144);
v145 = ButtonSprite::create_1("Update", 50, 0, 0.5, 1, "bigFont.fnt", "GJ_button_01.png", 25.0);
v146 = CCMenuItemSpriteExtra::create(
v145,
nullptr,
v143,
(cocos2d::SEL_MenuHandler)(unsigned __int64)GJAccountSettingsLayer::onUpdate);
((void (__fastcall *)(cocos2d::CCMenu *, CCMenuItemSpriteExtra *))v143->m_buttonMenu->addChild)(
v143->m_buttonMenu,
v146);
sub_10071FCD0(v141, v146);
v147 = (cocos2d::CCPoint)LODWORD(v209);
v147.x = v209 + -117.0;
sub_10028CBE0(v215.f32, v208 + 90.0, v209 + -117.0);
cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)v213, (const cocos2d::CCPoint *)v143->m_buttonMenu);
GameToolbox::alignItemsHorisontally(v141, 15.0, v147, (bool)v213);
v148 = v143->m_messageSettings;
if ( v148 )
{
data = v148->data;
if ( data->num )
{
arr = (CCMenuItemToggler **)data->arr;
v151 = (unsigned __int64)&arr[data->num - 1];
do
{
v152 = *arr;
if ( !*arr )
break;
v153 = ((__int64 (__fastcall *)(CCMenuItemToggler *))v152->getTag)(*arr);
CCMenuItemToggler::toggle(v152, v153 != v217->m_messageStatus);
++arr;
}
while ( (unsigned __int64)arr <= v151 );
}
}
m_friendRequestSettings = v217->m_friendRequestSettings;
if ( m_friendRequestSettings )
{
v155 = m_friendRequestSettings->data;
if ( v155->num )
{
v156 = (CCMenuItemToggler **)v155->arr;
v157 = (unsigned __int64)&v156[v155->num - 1];
do
{
v158 = *v156;
if ( !*v156 )
break;
v159 = ((__int64 (__fastcall *)(CCMenuItemToggler *))v158->getTag)(*v156);
CCMenuItemToggler::toggle(v158, v159 != v217->m_friendStatus);
++v156;
}
while ( (unsigned __int64)v156 <= v157 );
}
}
v160 = v217->m_commentSettings;
if ( v160 )
{
v161 = v160->data;
if ( v161->num )
{
v162 = (CCMenuItemToggler **)v161->arr;
v163 = (unsigned __int64)&v162[v161->num - 1];
do
{
v164 = *v162;
if ( !*v162 )
break;
v165 = ((__int64 (__fastcall *)(CCMenuItemToggler *))v164->getTag)(*v162);
CCMenuItemToggler::toggle(v164, v165 != v217->m_commentHistoryStatus);
++v162;
}
while ( (unsigned __int64)v162 <= v163 );
}
}
return v214;
}