// // GJAccountSettingsLayer::init from 0x8de218 to 0x8e0570 (9048 bytes) // // 2 xrefs: // > GJAccountSettingsLayer::create @ 0x8e06b4 // > @ 0xa6710 // // 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 GJAccountSettingsLayer::init(GJAccountSettingsLayer *a1, int a2) { GJAccountSettingsLayer_vtbl *v5; // x2 GameLevelManager *v6; // x0 GJUserScore *v7; // x0 GJUserScore *v8; // x19 std::_rb_tree_base *p_m_header; // x21 std::_rb_tree_base *m_parent; // x0 void *v11; // x0 std::_rb_tree_base *v12; // x0 std::_rb_tree_base *v13; // x21 void *v14; // x0 std::_rb_tree_base *v15; // x0 std::_rb_tree_base *v16; // x21 void *v17; // x0 std::_rb_tree_base *v18; // x0 std::_rb_tree_base *v19; // x21 void *v20; // x0 std::_rb_tree_base *v21; // x0 std::_rb_tree_base *v22; // x21 void *v23; // x0 std::_rb_tree_base *v24; // x0 std::_rb_tree_base *v25; // x21 void *v26; // x0 std::_rb_tree_base *v27; // x0 std::_rb_tree_base *v28; // x21 void *v29; // x0 cocos2d::CCDirector *v30; // x0 cocos2d::CCLayer *v31; // x0 cocos2d::CCNode *v32; // x26 void (__fastcall *setContentSize)(cocos2d::CCNode *__hidden, const cocos2d::CCSize *); // x27 void (__fastcall *setPosition)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // x27 cocos2d::CCMenu *v35; // x0 cocos2d::CCLayer *m_mainLayer; // x3 cocos2d::CCArray *v37; // x0 cocos2d::CCArray *v38; // x0 cocos2d::CCNode *v39; // x26 void (__fastcall *v40)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // x25 cocos2d::CCLabelBMFont *v41; // x25 cocos2d::CCMenu *m_buttonMenu; // x25 CCMenuItemToggler *ToggleButton; // x27 void *v44; // x0 CCMenuItemToggler_vtbl *v45; // x2 cocos2d::CCMenu *v46; // x25 CCMenuItemToggler *v47; // x26 void *v48; // x0 CCMenuItemToggler_vtbl *v49; // x2 cocos2d::CCMenu *v50; // x25 CCMenuItemToggler *v51; // x21 void *v52; // x0 CCMenuItemToggler_vtbl *v53; // x2 cocos2d::CCArray *v54; // x0 cocos2d::CCArray *v55; // x0 cocos2d::CCNode *v56; // x19 void (__fastcall *v57)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // x21 cocos2d::CCLabelBMFont *v58; // x19 cocos2d::CCMenu *v59; // x19 CCMenuItemToggler *v60; // x26 void *v61; // x0 CCMenuItemToggler_vtbl *v62; // x2 cocos2d::CCMenu *v63; // x19 CCMenuItemToggler *v64; // x27 void *v65; // x0 CCMenuItemToggler_vtbl *v66; // x2 cocos2d::CCArray *v67; // x0 cocos2d::CCArray *v68; // x0 cocos2d::CCNode *v69; // x25 void (__fastcall *v70)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // x26 cocos2d::CCLabelBMFont *v71; // x25 cocos2d::CCMenu *v72; // x25 CCMenuItemToggler *v73; // x26 void *v74; // x0 CCMenuItemToggler_vtbl *v75; // x2 cocos2d::CCMenu *v76; // x25 CCMenuItemToggler *v77; // x27 void *v78; // x0 CCMenuItemToggler_vtbl *v79; // x2 cocos2d::CCMenu *v80; // x25 CCMenuItemToggler *v81; // x3 void *v82; // x0 CCMenuItemToggler_vtbl *v83; // x2 int v84; // w19 _BYTE *v85; // x25 cocos2d::CCArray *v86; // x0 cocos2d::CCArray *v87; // x0 float v88; // s13 float i; // s1 float v90; // s0 float v91; // s1 std::_rb_tree_base *v92; // x21 std::_rb_tree_base *v93; // x0 __int64 v94; // x21 __int64 v95; // x0 __int64 v96; // x1 _BOOL8 v97; // x0 char *v98; // x26 cocos2d::CCLabelBMFont *v99; // x21 void (__fastcall *setAnchorPoint)(cocos2d::CCLabelBMFont *__hidden, const cocos2d::CCPoint *); // x27 void (__fastcall *v101)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // x27 cocos2d::CCNode *v102; // x26 void *v103; // x0 void *v104; // x0 cocos2d::CCMenu *v105; // x27 float width; // s8 float v107; // s0 cocos2d::CCNode *v108; // x27 int (__fastcall *getTag)(const cocos2d::CCObject *__hidden); // x2 void (__fastcall *v110)(cocos2d::CCNode *__hidden, const cocos2d::CCSize *); // x26 void (__fastcall *v111)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // x26 CCTextInputNode *v112; // x27 void *v113; // x0 CCTextInputNode_vtbl *v114; // x2 void *v115; // x0 cocos2d::CCArray *v116; // x0 __int64 v117; // x0 __int64 v118; // x1 std::_rb_tree_base *v119; // x24 _BOOL8 v120; // x0 __int64 v121; // x0 __int64 v122; // x1 std::_rb_tree_base *v123; // x24 _BOOL8 v124; // x0 __int64 insert_hint_unique_pos; // x0 __int64 v126; // x1 std::_rb_tree_base *v127; // x24 _BOOL8 v128; // x0 __int64 v129; // x0 __int64 v130; // x1 std::_rb_tree_base *v131; // x24 _BOOL8 v132; // x0 __int64 v133; // x0 __int64 v134; // x1 std::_rb_tree_base *v135; // x24 _BOOL8 v136; // x0 __int64 v137; // x0 __int64 v138; // x1 std::_rb_tree_base *v139; // x24 _BOOL8 v140; // x0 __int64 v141; // x0 __int64 v142; // x1 std::_rb_tree_base *v143; // x24 _BOOL8 v144; // x0 unsigned int *v145; // x1 int v146; // w2 unsigned int *v147; // x1 int v148; // w2 unsigned int *v149; // x1 int v150; // w2 cocos2d::CCArray *v151; // x19 const char *v152; // x6 cocos2d::CCNode *v153; // x0 CCMenuItemSpriteExtra *v154; // x21 const char *v155; // x6 cocos2d::CCNode *v156; // x0 CCMenuItemSpriteExtra *v157; // x21 unsigned int *v158; // x1 int v159; // w2 unsigned int *v160; // x1 int v161; // w2 __int64 v162; // x2 unsigned int *v163; // x1 int v164; // w2 unsigned int *v165; // x1 int v166; // w2 unsigned int *v167; // x4 int v168; // w1 unsigned int *v169; // x1 int v170; // w2 unsigned int *v171; // x1 int v172; // w2 unsigned int *v173; // x1 int v174; // w2 unsigned int *v175; // x1 int v176; // w2 unsigned int *v177; // x1 int v178; // w2 unsigned int *v179; // x1 int v180; // w2 unsigned int *v181; // x1 int v182; // w2 unsigned int *v183; // x1 int v184; // w2 unsigned int *v185; // x1 int v186; // w2 unsigned int *v187; // x1 int v188; // w2 unsigned int *v189; // x1 int v190; // w2 unsigned int *v191; // x1 int v192; // w2 unsigned int *v193; // x1 int v194; // w2 std::_rb_tree_base *v195; // x2 std::_rb_tree_base *v196; // x0 std::_rb_tree_base *v197; // x2 std::_rb_tree_base *v198; // x0 std::_rb_tree_base *v199; // x2 std::_rb_tree_base *v200; // x0 std::_rb_tree_base *v201; // x2 std::_rb_tree_base *v202; // x0 std::_rb_tree_base *v203; // x2 std::_rb_tree_base *v204; // x0 std::_rb_tree_base *v205; // x2 std::_rb_tree_base *v206; // x0 std::_rb_tree_base *v207; // x2 std::_rb_tree_base *v208; // x0 unsigned int *v209; // x3 int v210; // w1 unsigned int *v211; // x3 int v212; // w1 unsigned int *v213; // x3 int v214; // w1 unsigned int *p_m_right; // x3 int m_right; // w1 unsigned int *v217; // x3 int v218; // w1 unsigned int *v219; // x3 int v220; // w1 unsigned int *v221; // x3 int v222; // w1 char v223; // [xsp+A7h] [xbp+A7h] cocos2d::CCObject *v224; // [xsp+B0h] [xbp+B0h] cocos2d::CCObject *v225; // [xsp+B0h] [xbp+B0h] __int64 v226; // [xsp+B8h] [xbp+B8h] void (__fastcall *v227)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // [xsp+B8h] [xbp+B8h] std::_rb_tree_base *v228; // [xsp+C0h] [xbp+C0h] std::_rb_tree_base *v229; // [xsp+C0h] [xbp+C0h] cocos2d::CCPoint *v230; // [xsp+D0h] [xbp+D0h] __int64 v231; // [xsp+D8h] [xbp+D8h] __int64 v232; // [xsp+D8h] [xbp+D8h] __int64 v233; // [xsp+D8h] [xbp+D8h] __int64 v234; // [xsp+D8h] [xbp+D8h] __int64 v235; // [xsp+D8h] [xbp+D8h] __int64 v236; // [xsp+D8h] [xbp+D8h] __int64 v237; // [xsp+D8h] [xbp+D8h] cocos2d::ccColor3B v238; // [xsp+F0h] [xbp+F0h] float v239; // [xsp+F8h] [xbp+F8h] float v240; // [xsp+FCh] [xbp+FCh] cocos2d::CCPoint v241; // [xsp+100h] [xbp+100h] BYREF cocos2d::CCSize v242; // [xsp+108h] [xbp+108h] BYREF __int64 v243; // [xsp+110h] [xbp+110h] BYREF __int64 v244; // [xsp+118h] [xbp+118h] BYREF cocos2d::CCPoint v245; // [xsp+120h] [xbp+120h] BYREF __int64 v246; // [xsp+128h] [xbp+128h] BYREF __int64 v247; // [xsp+130h] [xbp+130h] BYREF __int64 v248; // [xsp+138h] [xbp+138h] BYREF cocos2d::CCPoint v249; // [xsp+140h] [xbp+140h] BYREF cocos2d::CCRect v250; // [xsp+148h] [xbp+148h] BYREF cocos2d::CCRect v251; // [xsp+158h] [xbp+158h] BYREF _BYTE v252[224]; // [xsp+168h] [xbp+168h] BYREF std::string v253; // 0:x2.8 cocos2d::CCPoint v254; // 0:kr08_8.8 cocos2d::SEL_MenuHandler v255; // 0:x2.16 cocos2d::SEL_MenuHandler v256; // 0:x2.16 cocos2d::CCPoint v257; // 0:s1.4,4:s2.4 cocos2d::CCRect v258; // 0:s0.4,4:s1.4,8:s2.4,12:s3.4 cocos2d::CCRect v259; // 0:s0.4,4:s1.4,8:s2.4,12:s3.4 cocos2d::CCRect v260; // 0:s0.4,4:s1.4,8:s2.4,12:s3.4 cocos2d::CCRect v261; // 0:s0.4,4:s1.4,8:s2.4,12:s3.4 cocos2d::CCRect v262; // 0:s0.4,4:s1.4,8:s2.4,12:s3.4 FLAlertLayer::incrementForcePrio(a1); v251.origin.x = -1.034e-25; v223 = cocos2d::CCLayerColor::initWithColor(a1, (const cocos2d::_ccColor4B *)&v251); if ( v223 ) { v5 = a1->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable; a1->m_noElasticity = 1; v5->setTouchEnabled(a1, 1); a1->setKeypadEnabled(a1, 1); a1->setKeyboardEnabled(a1, 1); a1->m_accountID = a2; v6 = GameLevelManager::sharedState(); v7 = GameLevelManager::userInfoForAccountID(v6, a2); v8 = v7; if ( !v7 ) goto LABEL_46; a1->m_messageStatus = v7->m_messageState; p_m_header = &a1->m_links.m_header; v228 = &a1->m_links.m_header; a1->m_friendStatus = v7->m_friendStatus; m_parent = a1->m_links.m_header.m_parent; a1->m_commentHistoryStatus = v8->m_commentHistoryStatus; if ( m_parent ) { do { while ( (*(_DWORD *)&m_parent[1].m_isblack & 0x80000000) == 0 ) { p_m_header = m_parent; m_parent = m_parent->m_left; if ( !m_parent ) goto LABEL_7; } m_parent = m_parent->m_right; } while ( m_parent ); LABEL_7: if ( v228 != p_m_header && *(int *)&p_m_header[1].m_isblack <= 0 ) goto LABEL_9; } else { p_m_header = &a1->m_links.m_header; } v233 = (__int64)p_m_header; p_m_header = (std::_rb_tree_base *)operator new(0x30u); *(_DWORD *)&p_m_header[1].m_isblack = 0; p_m_header[1].m_parent = (std::_rb_tree_base *)&byte_124B6C8; insert_hint_unique_pos = std::_Rb_tree,std::_Select1st>,std::less,std::allocator>>::_M_get_insert_hint_unique_pos( &a1->m_links.compare.pad, v233, (int *)&p_m_header[1].m_isblack); v127 = (std::_rb_tree_base *)insert_hint_unique_pos; if ( v126 ) { v128 = insert_hint_unique_pos || v228 == (std::_rb_tree_base *)v126 || *(_DWORD *)&p_m_header[1].m_isblack < *(_DWORD *)(v126 + 32); sub_CFAD74(v128, p_m_header, v126, v228); ++a1->m_links.m_nodecount; } else { v195 = p_m_header[1].m_parent; if ( &v195[-1].m_parent != (std::_rb_tree_base **)&qword_124B6B0 ) { p_m_right = (unsigned int *)&v195[-1].m_right; if ( &pthread_create ) { do m_right = __ldaxr(p_m_right); while ( __stlxr(m_right - 1, p_m_right) ); } else { m_right = (int)v195[-1].m_right; LODWORD(v195[-1].m_right) = m_right - 1; } if ( m_right <= 0 ) operator delete(&v195[-1].m_parent); } v196 = p_m_header; p_m_header = v127; operator delete(v196); } LABEL_9: sub_D18D28(&v251); sub_D163D4(&p_m_header[1].m_parent, &v251); v11 = (void *)(*(_QWORD *)&v251.origin - 24LL); if ( (__int64 *)(*(_QWORD *)&v251.origin - 24LL) != &qword_124B6B0 ) { if ( &pthread_create ) { v169 = (unsigned int *)(*(_QWORD *)&v251.origin - 8LL); do v170 = __ldaxr(v169); while ( __stlxr(v170 - 1, v169) ); } else { v170 = *(_DWORD *)(*(_QWORD *)&v251.origin - 8LL); *(_DWORD *)(*(_QWORD *)&v251.origin - 8LL) = v170 - 1; } if ( v170 <= 0 ) operator delete(v11); } v12 = a1->m_links.m_header.m_parent; v13 = &a1->m_links.m_header; if ( !v12 ) goto LABEL_96; do { while ( *(int *)&v12[1].m_isblack > 0 ) { v13 = v12; v12 = v12->m_left; if ( !v12 ) goto LABEL_13; } v12 = v12->m_right; } while ( v12 ); LABEL_13: if ( v228 == v13 || *(int *)&v13[1].m_isblack > 1 ) { LABEL_96: v235 = (__int64)v13; v13 = (std::_rb_tree_base *)operator new(0x30u); *(_DWORD *)&v13[1].m_isblack = 1; v13[1].m_parent = (std::_rb_tree_base *)&byte_124B6C8; v133 = std::_Rb_tree,std::_Select1st>,std::less,std::allocator>>::_M_get_insert_hint_unique_pos( &a1->m_links.compare.pad, v235, (int *)&v13[1].m_isblack); v135 = (std::_rb_tree_base *)v133; if ( v134 ) { v136 = v133 || v228 == (std::_rb_tree_base *)v134 || *(_DWORD *)&v13[1].m_isblack < *(_DWORD *)(v134 + 32); sub_CFAD74(v136, v13, v134, v228); ++a1->m_links.m_nodecount; } else { v199 = v13[1].m_parent; if ( &v199[-1].m_parent != (std::_rb_tree_base **)&qword_124B6B0 ) { v211 = (unsigned int *)&v199[-1].m_right; if ( &pthread_create ) { do v212 = __ldaxr(v211); while ( __stlxr(v212 - 1, v211) ); } else { v212 = (int)v199[-1].m_right; LODWORD(v199[-1].m_right) = v212 - 1; } if ( v212 <= 0 ) operator delete(&v199[-1].m_parent); } v200 = v13; v13 = v135; operator delete(v200); } } sub_D18D28(&v251); sub_D163D4(&v13[1].m_parent, &v251); v14 = (void *)(*(_QWORD *)&v251.origin - 24LL); if ( (__int64 *)(*(_QWORD *)&v251.origin - 24LL) != &qword_124B6B0 ) { if ( &pthread_create ) { v177 = (unsigned int *)(*(_QWORD *)&v251.origin - 8LL); do v178 = __ldaxr(v177); while ( __stlxr(v178 - 1, v177) ); } else { v178 = *(_DWORD *)(*(_QWORD *)&v251.origin - 8LL); *(_DWORD *)(*(_QWORD *)&v251.origin - 8LL) = v178 - 1; } if ( v178 <= 0 ) operator delete(v14); } v15 = a1->m_links.m_header.m_parent; v16 = &a1->m_links.m_header; if ( !v15 ) goto LABEL_80; do { while ( *(int *)&v15[1].m_isblack > 1 ) { v16 = v15; v15 = v15->m_left; if ( !v15 ) goto LABEL_19; } v15 = v15->m_right; } while ( v15 ); LABEL_19: if ( v228 == v16 || *(int *)&v16[1].m_isblack > 2 ) { LABEL_80: v232 = (__int64)v16; v16 = (std::_rb_tree_base *)operator new(0x30u); *(_DWORD *)&v16[1].m_isblack = 2; v16[1].m_parent = (std::_rb_tree_base *)&byte_124B6C8; v121 = std::_Rb_tree,std::_Select1st>,std::less,std::allocator>>::_M_get_insert_hint_unique_pos( &a1->m_links.compare.pad, v232, (int *)&v16[1].m_isblack); v123 = (std::_rb_tree_base *)v121; if ( v122 ) { v124 = v121 || v228 == (std::_rb_tree_base *)v122 || *(_DWORD *)&v16[1].m_isblack < *(_DWORD *)(v122 + 32); sub_CFAD74(v124, v16, v122, v228); ++a1->m_links.m_nodecount; } else { v207 = v16[1].m_parent; if ( &v207[-1].m_parent != (std::_rb_tree_base **)&qword_124B6B0 ) { v221 = (unsigned int *)&v207[-1].m_right; if ( &pthread_create ) { do v222 = __ldaxr(v221); while ( __stlxr(v222 - 1, v221) ); } else { v222 = (int)v207[-1].m_right; LODWORD(v207[-1].m_right) = v222 - 1; } if ( v222 <= 0 ) operator delete(&v207[-1].m_parent); } v208 = v16; v16 = v123; operator delete(v208); } } sub_D18D28(&v251); sub_D163D4(&v16[1].m_parent, &v251); v17 = (void *)(*(_QWORD *)&v251.origin - 24LL); if ( (__int64 *)(*(_QWORD *)&v251.origin - 24LL) != &qword_124B6B0 ) { if ( &pthread_create ) { v175 = (unsigned int *)(*(_QWORD *)&v251.origin - 8LL); do v176 = __ldaxr(v175); while ( __stlxr(v176 - 1, v175) ); } else { v176 = *(_DWORD *)(*(_QWORD *)&v251.origin - 8LL); *(_DWORD *)(*(_QWORD *)&v251.origin - 8LL) = v176 - 1; } if ( v176 <= 0 ) operator delete(v17); } v18 = a1->m_links.m_header.m_parent; v19 = &a1->m_links.m_header; if ( !v18 ) goto LABEL_91; do { while ( *(int *)&v18[1].m_isblack > 2 ) { v19 = v18; v18 = v18->m_left; if ( !v18 ) goto LABEL_25; } v18 = v18->m_right; } while ( v18 ); LABEL_25: if ( v228 == v19 || *(int *)&v19[1].m_isblack > 3 ) { LABEL_91: v234 = (__int64)v19; v19 = (std::_rb_tree_base *)operator new(0x30u); *(_DWORD *)&v19[1].m_isblack = 3; v19[1].m_parent = (std::_rb_tree_base *)&byte_124B6C8; v129 = std::_Rb_tree,std::_Select1st>,std::less,std::allocator>>::_M_get_insert_hint_unique_pos( &a1->m_links.compare.pad, v234, (int *)&v19[1].m_isblack); v131 = (std::_rb_tree_base *)v129; if ( v130 ) { v132 = v129 || v228 == (std::_rb_tree_base *)v130 || *(_DWORD *)&v19[1].m_isblack < *(_DWORD *)(v130 + 32); sub_CFAD74(v132, v19, v130, v228); ++a1->m_links.m_nodecount; } else { v197 = v19[1].m_parent; if ( &v197[-1].m_parent != (std::_rb_tree_base **)&qword_124B6B0 ) { v209 = (unsigned int *)&v197[-1].m_right; if ( &pthread_create ) { do v210 = __ldaxr(v209); while ( __stlxr(v210 - 1, v209) ); } else { v210 = (int)v197[-1].m_right; LODWORD(v197[-1].m_right) = v210 - 1; } if ( v210 <= 0 ) operator delete(&v197[-1].m_parent); } v198 = v19; v19 = v131; operator delete(v198); } } sub_D18D28(&v251); sub_D163D4(&v19[1].m_parent, &v251); v20 = (void *)(*(_QWORD *)&v251.origin - 24LL); if ( (__int64 *)(*(_QWORD *)&v251.origin - 24LL) != &qword_124B6B0 ) { if ( &pthread_create ) { v173 = (unsigned int *)(*(_QWORD *)&v251.origin - 8LL); do v174 = __ldaxr(v173); while ( __stlxr(v174 - 1, v173) ); } else { v174 = *(_DWORD *)(*(_QWORD *)&v251.origin - 8LL); *(_DWORD *)(*(_QWORD *)&v251.origin - 8LL) = v174 - 1; } if ( v174 <= 0 ) operator delete(v20); } v21 = a1->m_links.m_header.m_parent; v22 = &a1->m_links.m_header; if ( !v21 ) goto LABEL_106; do { while ( *(int *)&v21[1].m_isblack > 3 ) { v22 = v21; v21 = v21->m_left; if ( !v21 ) goto LABEL_31; } v21 = v21->m_right; } while ( v21 ); LABEL_31: if ( v228 == v22 || *(int *)&v22[1].m_isblack > 4 ) { LABEL_106: v237 = (__int64)v22; v22 = (std::_rb_tree_base *)operator new(0x30u); *(_DWORD *)&v22[1].m_isblack = 4; v22[1].m_parent = (std::_rb_tree_base *)&byte_124B6C8; v141 = std::_Rb_tree,std::_Select1st>,std::less,std::allocator>>::_M_get_insert_hint_unique_pos( &a1->m_links.compare.pad, v237, (int *)&v22[1].m_isblack); v143 = (std::_rb_tree_base *)v141; if ( v142 ) { v144 = v141 || v228 == (std::_rb_tree_base *)v142 || *(_DWORD *)&v22[1].m_isblack < *(_DWORD *)(v142 + 32); sub_CFAD74(v144, v22, v142, v228); ++a1->m_links.m_nodecount; } else { v203 = v22[1].m_parent; if ( &v203[-1].m_parent != (std::_rb_tree_base **)&qword_124B6B0 ) { v219 = (unsigned int *)&v203[-1].m_right; if ( &pthread_create ) { do v220 = __ldaxr(v219); while ( __stlxr(v220 - 1, v219) ); } else { v220 = (int)v203[-1].m_right; LODWORD(v203[-1].m_right) = v220 - 1; } if ( v220 <= 0 ) operator delete(&v203[-1].m_parent); } v204 = v22; v22 = v143; operator delete(v204); } } sub_D18D28(&v251); sub_D163D4(&v22[1].m_parent, &v251); v23 = (void *)(*(_QWORD *)&v251.origin - 24LL); if ( (__int64 *)(*(_QWORD *)&v251.origin - 24LL) != &qword_124B6B0 ) { if ( &pthread_create ) { v171 = (unsigned int *)(*(_QWORD *)&v251.origin - 8LL); do v172 = __ldaxr(v171); while ( __stlxr(v172 - 1, v171) ); } else { v172 = *(_DWORD *)(*(_QWORD *)&v251.origin - 8LL); *(_DWORD *)(*(_QWORD *)&v251.origin - 8LL) = v172 - 1; } if ( v172 <= 0 ) operator delete(v23); } v24 = a1->m_links.m_header.m_parent; v25 = &a1->m_links.m_header; if ( !v24 ) goto LABEL_101; do { while ( *(int *)&v24[1].m_isblack > 4 ) { v25 = v24; v24 = v24->m_left; if ( !v24 ) goto LABEL_37; } v24 = v24->m_right; } while ( v24 ); LABEL_37: if ( v228 == v25 || *(int *)&v25[1].m_isblack > 5 ) { LABEL_101: v236 = (__int64)v25; v25 = (std::_rb_tree_base *)operator new(0x30u); *(_DWORD *)&v25[1].m_isblack = 5; v25[1].m_parent = (std::_rb_tree_base *)&byte_124B6C8; v137 = std::_Rb_tree,std::_Select1st>,std::less,std::allocator>>::_M_get_insert_hint_unique_pos( &a1->m_links.compare.pad, v236, (int *)&v25[1].m_isblack); v139 = (std::_rb_tree_base *)v137; if ( v138 ) { v140 = v137 || v228 == (std::_rb_tree_base *)v138 || *(_DWORD *)&v25[1].m_isblack < *(_DWORD *)(v138 + 32); sub_CFAD74(v140, v25, v138, v228); ++a1->m_links.m_nodecount; } else { v201 = v25[1].m_parent; if ( &v201[-1].m_parent != (std::_rb_tree_base **)&qword_124B6B0 ) { v217 = (unsigned int *)&v201[-1].m_right; if ( &pthread_create ) { do v218 = __ldaxr(v217); while ( __stlxr(v218 - 1, v217) ); } else { v218 = (int)v201[-1].m_right; LODWORD(v201[-1].m_right) = v218 - 1; } if ( v218 <= 0 ) operator delete(&v201[-1].m_parent); } v202 = v25; v25 = v139; operator delete(v202); } } sub_D18D28(&v251); sub_D163D4(&v25[1].m_parent, &v251); v26 = (void *)(*(_QWORD *)&v251.origin - 24LL); if ( (__int64 *)(*(_QWORD *)&v251.origin - 24LL) != &qword_124B6B0 ) { if ( &pthread_create ) { v193 = (unsigned int *)(*(_QWORD *)&v251.origin - 8LL); do v194 = __ldaxr(v193); while ( __stlxr(v194 - 1, v193) ); } else { v194 = *(_DWORD *)(*(_QWORD *)&v251.origin - 8LL); *(_DWORD *)(*(_QWORD *)&v251.origin - 8LL) = v194 - 1; } if ( v194 <= 0 ) operator delete(v26); } v27 = a1->m_links.m_header.m_parent; v28 = &a1->m_links.m_header; if ( !v27 ) goto LABEL_75; do { while ( *(int *)&v27[1].m_isblack > 5 ) { v28 = v27; v27 = v27->m_left; if ( !v27 ) goto LABEL_43; } v27 = v27->m_right; } while ( v27 ); LABEL_43: if ( v228 == v28 || *(int *)&v28[1].m_isblack > 6 ) { LABEL_75: v231 = (__int64)v28; v28 = (std::_rb_tree_base *)operator new(0x30u); *(_DWORD *)&v28[1].m_isblack = 6; v28[1].m_parent = (std::_rb_tree_base *)&byte_124B6C8; v117 = std::_Rb_tree,std::_Select1st>,std::less,std::allocator>>::_M_get_insert_hint_unique_pos( &a1->m_links.compare.pad, v231, (int *)&v28[1].m_isblack); v119 = (std::_rb_tree_base *)v117; if ( v118 ) { v120 = v117 || v228 == (std::_rb_tree_base *)v118 || *(_DWORD *)&v28[1].m_isblack < *(_DWORD *)(v118 + 32); sub_CFAD74(v120, v28, v118, v228); ++a1->m_links.m_nodecount; } else { v205 = v28[1].m_parent; if ( &v205[-1].m_parent != (std::_rb_tree_base **)&qword_124B6B0 ) { v213 = (unsigned int *)&v205[-1].m_right; if ( &pthread_create ) { do v214 = __ldaxr(v213); while ( __stlxr(v214 - 1, v213) ); } else { v214 = (int)v205[-1].m_right; LODWORD(v205[-1].m_right) = v214 - 1; } if ( v214 <= 0 ) operator delete(&v205[-1].m_parent); } v206 = v28; v28 = v119; operator delete(v206); } } sub_D18D28(&v251); sub_D163D4(&v28[1].m_parent, &v251); v29 = (void *)(*(_QWORD *)&v251.origin - 24LL); if ( (__int64 *)(*(_QWORD *)&v251.origin - 24LL) != &qword_124B6B0 ) { if ( &pthread_create ) { v191 = (unsigned int *)(*(_QWORD *)&v251.origin - 8LL); do v192 = __ldaxr(v191); while ( __stlxr(v192 - 1, v191) ); } else { v192 = *(_DWORD *)(*(_QWORD *)&v251.origin - 8LL); *(_DWORD *)(*(_QWORD *)&v251.origin - 8LL) = v192 - 1; } if ( v192 <= 0 ) operator delete(v29); } LABEL_46: v30 = cocos2d::CCDirector::sharedDirector(); cocos2d::CCDirector::getWinSize(v30); v31 = cocos2d::CCLayer::create(); a1->m_mainLayer = v31; a1->addChild(a1, v31); cocos2d::CCRect::CCRect(&v251, 0.0, 0.0, 80.0, 80.0); v32 = (cocos2d::CCNode *)cocos2d::extension::CCScale9Sprite::create( (cocos2d::extension::CCScale9Sprite *)"GJ_square01.png", (const char *)&v251, v258); ((void (__fastcall *)(cocos2d::CCNode *, __int64))v32->__vftable[1].~CCNode_0)(v32, 0xFFFFFFFFLL); setContentSize = v32->setContentSize; cocos2d::CCSize::CCSize((cocos2d::CCSize *)&v251, 400.0, 300.0); setContentSize(v32, (const cocos2d::CCSize *)&v251); a1->m_mainLayer->addChild_0(a1->m_mainLayer, v32, -1); setPosition = v32->setPosition; cocos2d::CCPoint::CCPoint(&v251.origin, v239 * 0.5, v240 * 0.5); setPosition(v32, &v251.origin); v35 = cocos2d::CCMenu::create(); m_mainLayer = a1->m_mainLayer; a1->m_buttonMenu = v35; v37 = (cocos2d::CCArray *)((__int64 (__fastcall *)(cocos2d::CCLayer *, cocos2d::CCMenu *, __int64))m_mainLayer->addChild_0)( m_mainLayer, v35, 10); a1->m_joystickConnected = -1; v38 = (cocos2d::CCArray *)cocos2d::CCArray::create(v37); a1->m_messageSettings = v38; cocos2d::CCObject::retain(v38); cocos2d::CCPoint::CCPoint(&v241, v239 * 0.5, (float)(v240 * 0.5) + 138.0); cocos2d::CCSize::CCSize(&v242, 400.0, 30.0); cocos2d::CCRect::CCRect(&v251, 0.0, 0.0, 40.0, 40.0); v39 = (cocos2d::CCNode *)cocos2d::extension::CCScale9Sprite::create( (cocos2d::extension::CCScale9Sprite *)"square02_small.png", (const char *)&v251, v259); ((void (__fastcall *)(cocos2d::CCNode *, __int64))v39->__vftable[1].~CCNode_0)(v39, 50); v39->setContentSize(v39, &v242); v39->setScale(v39, 0.7); a1->m_mainLayer->addChild_0(a1->m_mainLayer, v39, -1); v40 = v39->setPosition; cocos2d::CCPoint::CCPoint(&v250.origin, 0.0, -20.0); cocos2d::CCPoint::operator+(&v251, &v241, &v250); v40(v39, &v251.origin); v41 = cocos2d::CCLabelBMFont::create(); a1->m_mainLayer->addChild_0(a1->m_mainLayer, v41, 20); v41->setPosition(v41, &v241); v41->setScale(v41, 0.4); sub_D153B8((int)&v251, "All"); m_buttonMenu = a1->m_buttonMenu; cocos2d::CCPoint::CCPoint(&v249, -105.0, -20.0); cocos2d::CCPoint::operator+(&v250, &v241, &v249); ToggleButton = GJAccountSettingsLayer::createToggleButton( (__int64)a1, 50.0, 0.4, (__int64)&v251, (void (__cdecl *)(cocos2d::CCObject *))GJAccountSettingsLayer::onMessageSetting, 0, 1, m_buttonMenu, &v250.origin); v44 = (void *)(*(_QWORD *)&v251.origin - 24LL); if ( (__int64 *)(*(_QWORD *)&v251.origin - 24LL) != &qword_124B6B0 ) { if ( &pthread_create ) { v189 = (unsigned int *)(*(_QWORD *)&v251.origin - 8LL); do v190 = __ldaxr(v189); while ( __stlxr(v190 - 1, v189) ); } else { v190 = *(_DWORD *)(*(_QWORD *)&v251.origin - 8LL); *(_DWORD *)(*(_QWORD *)&v251.origin - 8LL) = v190 - 1; } if ( v190 <= 0 ) operator delete(v44); } v45 = ToggleButton->cocos2d::CCMenuItem::cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable; ToggleButton->m_notClickable = 1; v45->setTag(ToggleButton, 0); sub_D153B8((int)&v251, "Friends"); v46 = a1->m_buttonMenu; cocos2d::CCPoint::CCPoint(&v249, -30.0, -20.0); cocos2d::CCPoint::operator+(&v250, &v241, &v249); v47 = GJAccountSettingsLayer::createToggleButton( (__int64)a1, 50.0, 0.4, (__int64)&v251, (void (__cdecl *)(cocos2d::CCObject *))GJAccountSettingsLayer::onMessageSetting, 0, 1, v46, &v250.origin); v48 = (void *)(*(_QWORD *)&v251.origin - 24LL); if ( (__int64 *)(*(_QWORD *)&v251.origin - 24LL) != &qword_124B6B0 ) { if ( &pthread_create ) { v187 = (unsigned int *)(*(_QWORD *)&v251.origin - 8LL); do v188 = __ldaxr(v187); while ( __stlxr(v188 - 1, v187) ); } else { v188 = *(_DWORD *)(*(_QWORD *)&v251.origin - 8LL); *(_DWORD *)(*(_QWORD *)&v251.origin - 8LL) = v188 - 1; } if ( v188 <= 0 ) operator delete(v48); } v49 = v47->cocos2d::CCMenuItem::cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable; v47->m_notClickable = 1; v49->setTag(v47, 1); sub_D153B8((int)&v251, "None"); v50 = a1->m_buttonMenu; cocos2d::CCPoint::CCPoint(&v249, 70.0, -20.0); cocos2d::CCPoint::operator+(&v250, &v241, &v249); v51 = GJAccountSettingsLayer::createToggleButton( (__int64)a1, 50.0, 0.4, (__int64)&v251, (void (__cdecl *)(cocos2d::CCObject *))GJAccountSettingsLayer::onMessageSetting, 0, 1, v50, &v250.origin); v52 = (void *)(*(_QWORD *)&v251.origin - 24LL); if ( (__int64 *)(*(_QWORD *)&v251.origin - 24LL) != &qword_124B6B0 ) { if ( &pthread_create ) { v185 = (unsigned int *)(*(_QWORD *)&v251.origin - 8LL); do v186 = __ldaxr(v185); while ( __stlxr(v186 - 1, v185) ); } else { v186 = *(_DWORD *)(*(_QWORD *)&v251.origin - 8LL); *(_DWORD *)(*(_QWORD *)&v251.origin - 8LL) = v186 - 1; } if ( v186 <= 0 ) operator delete(v52); } v53 = v51->cocos2d::CCMenuItem::cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable; v51->m_notClickable = 1; v53->setTag(v51, 2); cocos2d::CCArray::addObject(a1->m_messageSettings, ToggleButton); cocos2d::CCArray::addObject(a1->m_messageSettings, v47); v54 = (cocos2d::CCArray *)cocos2d::CCArray::addObject(a1->m_messageSettings, v51); v55 = (cocos2d::CCArray *)cocos2d::CCArray::create(v54); a1->m_friendRequestSettings = v55; cocos2d::CCObject::retain(v55); cocos2d::CCPoint::CCPoint(&v251.origin, 0.0, -40.0); cocos2d::CCPoint::operator+(&v243, &v241, &v251); cocos2d::CCRect::CCRect(&v251, 0.0, 0.0, 40.0, 40.0); v56 = (cocos2d::CCNode *)cocos2d::extension::CCScale9Sprite::create( (cocos2d::extension::CCScale9Sprite *)"square02_small.png", (const char *)&v251, v260); ((void (__fastcall *)(cocos2d::CCNode *, __int64))v56->__vftable[1].~CCNode_0)(v56, 50); v56->setContentSize(v56, &v242); v56->setScale(v56, 0.7); a1->m_mainLayer->addChild_0(a1->m_mainLayer, v56, -1); v57 = v56->setPosition; cocos2d::CCPoint::CCPoint(&v250.origin, 0.0, -20.0); cocos2d::CCPoint::operator+(&v251, &v243, &v250); v57(v56, &v251.origin); v58 = cocos2d::CCLabelBMFont::create(); a1->m_mainLayer->addChild_0(a1->m_mainLayer, v58, 20); v58->setPosition(v58, (const cocos2d::CCPoint *)&v243); v58->setScale(v58, 0.4); sub_D153B8((int)&v251, "All"); v59 = a1->m_buttonMenu; cocos2d::CCPoint::CCPoint(&v249, -70.0, -20.0); cocos2d::CCPoint::operator+(&v250, &v243, &v249); v60 = GJAccountSettingsLayer::createToggleButton( (__int64)a1, 50.0, 0.4, (__int64)&v251, (void (__cdecl *)(cocos2d::CCObject *))GJAccountSettingsLayer::onFriendRequests, 0, 1, v59, &v250.origin); v61 = (void *)(*(_QWORD *)&v251.origin - 24LL); if ( (__int64 *)(*(_QWORD *)&v251.origin - 24LL) != &qword_124B6B0 ) { if ( &pthread_create ) { v183 = (unsigned int *)(*(_QWORD *)&v251.origin - 8LL); do v184 = __ldaxr(v183); while ( __stlxr(v184 - 1, v183) ); } else { v184 = *(_DWORD *)(*(_QWORD *)&v251.origin - 8LL); *(_DWORD *)(*(_QWORD *)&v251.origin - 8LL) = v184 - 1; } if ( v184 <= 0 ) operator delete(v61); } v62 = v60->cocos2d::CCMenuItem::cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable; v60->m_notClickable = 1; v62->setTag(v60, 0); sub_D153B8((int)&v251, "None"); v63 = a1->m_buttonMenu; cocos2d::CCPoint::CCPoint(&v249, 30.0, -20.0); cocos2d::CCPoint::operator+(&v250, &v243, &v249); v64 = GJAccountSettingsLayer::createToggleButton( (__int64)a1, 50.0, 0.4, (__int64)&v251, (void (__cdecl *)(cocos2d::CCObject *))GJAccountSettingsLayer::onFriendRequests, 0, 1, v63, &v250.origin); v65 = (void *)(*(_QWORD *)&v251.origin - 24LL); if ( (__int64 *)(*(_QWORD *)&v251.origin - 24LL) != &qword_124B6B0 ) { if ( &pthread_create ) { v181 = (unsigned int *)(*(_QWORD *)&v251.origin - 8LL); do v182 = __ldaxr(v181); while ( __stlxr(v182 - 1, v181) ); } else { v182 = *(_DWORD *)(*(_QWORD *)&v251.origin - 8LL); *(_DWORD *)(*(_QWORD *)&v251.origin - 8LL) = v182 - 1; } if ( v182 <= 0 ) operator delete(v65); } v66 = v64->cocos2d::CCMenuItem::cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable; v64->m_notClickable = 1; v66->setTag(v64, 1); cocos2d::CCArray::addObject(a1->m_friendRequestSettings, v60); cocos2d::CCArray::addObject(a1->m_friendRequestSettings, v64); cocos2d::CCPoint::CCPoint(&v251.origin, 0.0, -40.0); v67 = (cocos2d::CCArray *)cocos2d::CCPoint::operator+(&v244, &v243, &v251); v68 = (cocos2d::CCArray *)cocos2d::CCArray::create(v67); a1->m_commentSettings = v68; cocos2d::CCObject::retain(v68); cocos2d::CCRect::CCRect(&v251, 0.0, 0.0, 40.0, 40.0); v69 = (cocos2d::CCNode *)cocos2d::extension::CCScale9Sprite::create( (cocos2d::extension::CCScale9Sprite *)"square02_small.png", (const char *)&v251, v261); ((void (__fastcall *)(cocos2d::CCNode *, __int64))v69->__vftable[1].~CCNode_0)(v69, 50); v69->setContentSize(v69, &v242); v69->setScale(v69, 0.7); a1->m_mainLayer->addChild_0(a1->m_mainLayer, v69, -1); v70 = v69->setPosition; cocos2d::CCPoint::CCPoint(&v250.origin, 0.0, -20.0); cocos2d::CCPoint::operator+(&v251, &v244, &v250); v70(v69, &v251.origin); v71 = cocos2d::CCLabelBMFont::create(); a1->m_mainLayer->addChild_0(a1->m_mainLayer, v71, 20); v71->setPosition(v71, (const cocos2d::CCPoint *)&v244); v71->setScale(v71, 0.4); sub_D153B8((int)&v251, "All"); v72 = a1->m_buttonMenu; cocos2d::CCPoint::CCPoint(&v249, -105.0, -20.0); cocos2d::CCPoint::operator+(&v250, &v244, &v249); v73 = GJAccountSettingsLayer::createToggleButton( (__int64)a1, 50.0, 0.4, (__int64)&v251, (void (__cdecl *)(cocos2d::CCObject *))GJAccountSettingsLayer::onCommentSetting, 0, 1, v72, &v250.origin); v74 = (void *)(*(_QWORD *)&v251.origin - 24LL); if ( (__int64 *)(*(_QWORD *)&v251.origin - 24LL) != &qword_124B6B0 ) { if ( &pthread_create ) { v179 = (unsigned int *)(*(_QWORD *)&v251.origin - 8LL); do v180 = __ldaxr(v179); while ( __stlxr(v180 - 1, v179) ); } else { v180 = *(_DWORD *)(*(_QWORD *)&v251.origin - 8LL); *(_DWORD *)(*(_QWORD *)&v251.origin - 8LL) = v180 - 1; } if ( v180 <= 0 ) operator delete(v74); } v75 = v73->cocos2d::CCMenuItem::cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable; v73->m_notClickable = 1; v75->setTag(v73, 0); sub_D153B8((int)&v251, "Friends"); v76 = a1->m_buttonMenu; cocos2d::CCPoint::CCPoint(&v249, -30.0, -20.0); cocos2d::CCPoint::operator+(&v250, &v244, &v249); v77 = GJAccountSettingsLayer::createToggleButton( (__int64)a1, 50.0, 0.4, (__int64)&v251, (void (__cdecl *)(cocos2d::CCObject *))GJAccountSettingsLayer::onCommentSetting, 0, 1, v76, &v250.origin); v78 = (void *)(*(_QWORD *)&v251.origin - 24LL); if ( (__int64 *)(*(_QWORD *)&v251.origin - 24LL) != &qword_124B6B0 ) { if ( &pthread_create ) { v163 = (unsigned int *)(*(_QWORD *)&v251.origin - 8LL); do v164 = __ldaxr(v163); while ( __stlxr(v164 - 1, v163) ); } else { v164 = *(_DWORD *)(*(_QWORD *)&v251.origin - 8LL); *(_DWORD *)(*(_QWORD *)&v251.origin - 8LL) = v164 - 1; } if ( v164 <= 0 ) operator delete(v78); } v79 = v77->cocos2d::CCMenuItem::cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable; v77->m_notClickable = 1; v79->setTag(v77, 1); sub_D153B8((int)&v251, "Me"); v80 = a1->m_buttonMenu; cocos2d::CCPoint::CCPoint(&v249, 70.0, -20.0); cocos2d::CCPoint::operator+(&v250, &v244, &v249); v81 = GJAccountSettingsLayer::createToggleButton( (__int64)a1, 50.0, 0.4, (__int64)&v251, (void (__cdecl *)(cocos2d::CCObject *))GJAccountSettingsLayer::onCommentSetting, 0, 1, v80, &v250.origin); v82 = (void *)(*(_QWORD *)&v251.origin - 24LL); if ( (__int64 *)(*(_QWORD *)&v251.origin - 24LL) != &qword_124B6B0 ) { if ( &pthread_create ) { v165 = (unsigned int *)(*(_QWORD *)&v251.origin - 8LL); do v166 = __ldaxr(v165); while ( __stlxr(v166 - 1, v165) ); } else { v166 = *(_DWORD *)(*(_QWORD *)&v251.origin - 8LL); *(_DWORD *)(*(_QWORD *)&v251.origin - 8LL) = v166 - 1; } if ( v166 <= 0 ) { v230 = (cocos2d::CCPoint *)v81; operator delete(v82); v81 = (CCMenuItemToggler *)v230; } } v83 = v81->cocos2d::CCMenuItem::cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable; v81->m_notClickable = 1; v224 = v81; v229 = &a1->m_links.m_header; v84 = 0; v83->setTag(v81, 2); v85 = v252; cocos2d::CCArray::addObject(a1->m_commentSettings, v73); cocos2d::CCArray::addObject(a1->m_commentSettings, v77); v86 = (cocos2d::CCArray *)cocos2d::CCArray::addObject(a1->m_commentSettings, v224); v87 = (cocos2d::CCArray *)cocos2d::CCArray::create(v86); a1->m_inputs = v87; cocos2d::CCObject::retain(v87); v88 = v239 * 0.5; memcpy(v252, off_122F068, sizeof(v252)); for ( i = 0.0; ; i = floorf((float)v84 * 0.5) ) { v90 = -90.0; if ( (v84 & 1) != 0 ) v90 = 90.0; v91 = (float)((float)(v240 * 0.5) + -5.0) - i * 39.0; cocos2d::CCPoint::CCPoint(&v245, v88 + v90, v91); v92 = &a1->m_links.m_header; v93 = a1->m_links.m_header.m_parent; if ( !v93 ) goto LABEL_62; do { while ( *(_DWORD *)&v93[1].m_isblack >= v84 ) { v92 = v93; v93 = v93->m_left; if ( !v93 ) goto LABEL_60; } v93 = v93->m_right; } while ( v93 ); LABEL_60: if ( v229 == v92 || v84 < *(_DWORD *)&v92[1].m_isblack ) { LABEL_62: v226 = (__int64)v92; v94 = operator new(0x30u); *(_DWORD *)(v94 + 32) = v84; *(_QWORD *)(v94 + 40) = &byte_124B6C8; v95 = std::_Rb_tree,std::_Select1st>,std::less,std::allocator>>::_M_get_insert_hint_unique_pos( &a1->m_links.compare.pad, v226, (int *)(v94 + 32)); if ( v96 ) { v97 = v95 || v229 == (std::_rb_tree_base *)v96 || *(_DWORD *)(v94 + 32) < *(_DWORD *)(v96 + 32); sub_CFAD74(v97, v94, v96, v229); ++a1->m_links.m_nodecount; } else { v162 = *(_QWORD *)(v94 + 40); if ( (__int64 *)(v162 - 24) != &qword_124B6B0 ) { v167 = (unsigned int *)(v162 - 8); if ( &pthread_create ) { do v168 = __ldaxr(v167); while ( __stlxr(v168 - 1, v167) ); } else { v168 = *(_DWORD *)(v162 - 8); *(_DWORD *)(v162 - 8) = v168 - 1; } if ( v168 <= 0 ) operator delete((void *)(v162 - 24)); } operator delete((void *)v94); } } sub_D18D28(&v246); v98 = *(char **)v85; v99 = cocos2d::CCLabelBMFont::create(); a1->m_mainLayer->addChild(a1->m_mainLayer, v99); v99->setScale(v99, 0.45); setAnchorPoint = v99->setAnchorPoint; cocos2d::CCPoint::CCPoint(&v251.origin, 0.5, 0.0); setAnchorPoint(v99, &v251.origin); v101 = v99->setPosition; cocos2d::CCPoint::CCPoint(&v250.origin, 0.0, 12.0); cocos2d::CCPoint::operator+(&v251, &v245, &v250); v101(v99, &v251.origin); sub_D153B8((int)&v247, v98); sub_D153B8((int)&v248, *((char **)v85 + 3)); v102 = (cocos2d::CCNode *)InfoAlertButton::create((InfoAlertButton *)&v247, (std::string)&v248, v253, 0.5); v103 = (void *)(v248 - 24); if ( (__int64 *)(v248 - 24) != &qword_124B6B0 ) { if ( &pthread_create ) { v147 = (unsigned int *)(v248 - 8); do v148 = __ldaxr(v147); while ( __stlxr(v148 - 1, v147) ); } else { v148 = *(_DWORD *)(v248 - 8); *(_DWORD *)(v248 - 8) = v148 - 1; } if ( v148 <= 0 ) operator delete(v103); } v104 = (void *)(v247 - 24); if ( (__int64 *)(v247 - 24) != &qword_124B6B0 ) { if ( &pthread_create ) { v145 = (unsigned int *)(v247 - 8); do v146 = __ldaxr(v145); while ( __stlxr(v146 - 1, v145) ); } else { v146 = *(_DWORD *)(v247 - 8); *(_DWORD *)(v247 - 8) = v146 - 1; } if ( v146 <= 0 ) operator delete(v104); } a1->m_buttonMenu->addChild(a1->m_buttonMenu, v102); v105 = a1->m_buttonMenu; v227 = v102->setPosition; v225 = (cocos2d::CCObject *)v99->getPosition(v99); width = v99->getContentSize(v99)->width; v107 = v99->getScale(v99); cocos2d::CCPoint::CCPoint(&v249, (float)((float)(width * v107) * 0.5) + 10.0, 5.0); cocos2d::CCPoint::operator+(&v250, v225, &v249); v254 = cocos2d::CCNode::convertToNodeSpace(v105, &v250.origin); ((void (__fastcall *)(cocos2d::CCNode *, cocos2d::CCRect *, float, float))v227)(v102, &v251, v254.x, v254.y); cocos2d::CCRect::CCRect(&v250, 0.0, 0.0, 40.0, 40.0); cocos2d::CCRect::CCRect(&v251, &v250); v108 = (cocos2d::CCNode *)cocos2d::extension::CCScale9Sprite::create( (cocos2d::extension::CCScale9Sprite *)"square02b_small.png", (const char *)&v251, v262); getTag = v108->__vftable[1].getTag; LOWORD(v251.origin.x) = 13405; BYTE2(v251.origin.x) = 31; ((void (__fastcall *)(cocos2d::CCNode *, cocos2d::CCRect *))getTag)(v108, &v251); v110 = v108->setContentSize; cocos2d::CCSize::CCSize((cocos2d::CCSize *)&v251, 160.0, 20.0); v110(v108, (const cocos2d::CCSize *)&v251); a1->m_mainLayer->addChild_0(a1->m_mainLayer, v108, -1); v111 = v108->setPosition; cocos2d::CCPoint::CCPoint(&v249, 0.0, -1.0); cocos2d::CCPoint::operator+(&v251, &v245, &v249); v111(v108, &v251.origin); v112 = CCTextInputNode::create(160.0, 20.0, *((const char **)v85 + 1), "Thonburi"); if ( *(_QWORD *)(v246 - 24) ) { sub_D18D28(&v249); CCTextInputNode::setString(v112, (const unsigned __int8 **)&v249); v113 = (void *)(*(_QWORD *)&v249 - 24LL); if ( (__int64 *)(*(_QWORD *)&v249 - 24LL) != &qword_124B6B0 ) { if ( &pthread_create ) { v160 = (unsigned int *)(*(_QWORD *)&v249 - 8LL); do v161 = __ldaxr(v160); while ( __stlxr(v161 - 1, v160) ); } else { v161 = *(_DWORD *)(*(_QWORD *)&v249 - 8LL); *(_DWORD *)(*(_QWORD *)&v249 - 8LL) = v161 - 1; } if ( v161 <= 0 ) operator delete(v113); } } a1->m_mainLayer->addChild_0(a1->m_mainLayer, v112, 20); v114 = v112->cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable; v112->m_delegate = &a1->TextInputDelegate; v114->setPosition(v112, &v245); CCTextInputNode::setMaxLabelScale(v112, 0.5); CCTextInputNode::setMaxLabelWidth(v112, 140.0); v112->m_textField->setVisible(v112->m_textField, 0); v112->m_maxLabelLength = *((_DWORD *)v85 + 4); sub_D153B8((int)&v251, " abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_'."); CCTextInputNode::setAllowedChars((__int64)v112, (__int64)&v251); v115 = (void *)(*(_QWORD *)&v251.origin - 24LL); if ( (__int64 *)(*(_QWORD *)&v251.origin - 24LL) != &qword_124B6B0 ) { if ( &pthread_create ) { v158 = (unsigned int *)(*(_QWORD *)&v251.origin - 8LL); do v159 = __ldaxr(v158); while ( __stlxr(v159 - 1, v158) ); } else { v159 = *(_DWORD *)(*(_QWORD *)&v251.origin - 8LL); *(_DWORD *)(*(_QWORD *)&v251.origin - 8LL) = v159 - 1; } if ( v159 <= 0 ) operator delete(v115); } *(_WORD *)&v238.r = -21896; v238.b = -16; CCTextInputNode::setLabelPlaceholderColor(v112, v238); CCTextInputNode::setLabelPlaceholderScale(v112, 0.45); CCTextInputNode::forceOffset(v112); v112->setTag(v112, v84); cocos2d::CCArray::addObject(a1->m_inputs, v112); v116 = (cocos2d::CCArray *)(v246 - 24); if ( (__int64 *)(v246 - 24) == &qword_124B6B0 ) goto LABEL_73; if ( &pthread_create ) { v149 = (unsigned int *)(v246 - 8); do v150 = __ldaxr(v149); while ( __stlxr(v150 - 1, v149) ); } else { v150 = *(_DWORD *)(v246 - 8); *(_DWORD *)(v246 - 8) = v150 - 1; } if ( v150 > 0 ) { LABEL_73: ++v84; v85 += 32; if ( v84 == 7 ) goto LABEL_128; } else { ++v84; v85 += 32; operator delete(v116); if ( v84 == 7 ) { LABEL_128: v151 = (cocos2d::CCArray *)cocos2d::CCArray::create(v116); v153 = (cocos2d::CCNode *)ButtonSprite::create( (ButtonSprite *)"Cancel", (const char *)&dword_30 + 2, 0, 1, 0.5, "bigFont.fnt", "GJ_button_05.png", v152, 25.0); v255.ptr = (void (__cdecl *)(cocos2d::CCObject *))a1; v255.adj = (size_t)GJAccountSettingsLayer::onClose; v154 = CCMenuItemSpriteExtra::create(v153, nullptr, v255); a1->m_buttonMenu->addChild(a1->m_buttonMenu, v154); cocos2d::CCArray::addObject(v151, v154); v156 = (cocos2d::CCNode *)ButtonSprite::create( (ButtonSprite *)"Update", (const char *)&dword_30 + 2, 0, 1, 0.5, "bigFont.fnt", "GJ_button_01.png", v155, 25.0); v256.ptr = (void (__cdecl *)(cocos2d::CCObject *))a1; v256.adj = (size_t)GJAccountSettingsLayer::onUpdate; v157 = CCMenuItemSpriteExtra::create(v156, nullptr, v256); a1->m_buttonMenu->addChild(a1->m_buttonMenu, v157); cocos2d::CCArray::addObject(v151, v157); cocos2d::CCPoint::CCPoint(&v250.origin, v88 + 90.0, (float)((float)(v240 * 0.5) + -5.0) - 117.0); LODWORD(v257.x) = COERCE_UNSIGNED_INT(cocos2d::CCNode::convertToNodeSpace(a1->m_buttonMenu, &v250.origin).y); GameToolbox::alignItemsHorisontally(v151, 15.0, v257, (bool)&v251); GJAccountSettingsLayer::onMessageSetting(a1, nullptr); GJAccountSettingsLayer::onFriendRequests(a1, nullptr); GJAccountSettingsLayer::onCommentSetting(a1, nullptr); return v223; } } } } return v223; }
GD Web Decomp Icon

GD Web Decomp

Raw Source