//
// MessageThreadsPage::init from 0x750068 to 0x750f82 (3866 bytes)
//
// 1 xrefs:
// > MessageThreadsPage::create @ 0x7467f0
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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 11:58:50 +0000
//
int __fastcall MessageThreadsPage::init(MessageThreadsPage *this)
{
int v2; // r3
cocos2d::CCDirector *v3; // r0
cocos2d::CCLayer *v4; // r0
int v5; // r0
int v6; // r3
int v7; // r6
void (__fastcall *v8)(int, _DWORD *); // r10
const char *v9; // r2
int v10; // r6
void (__fastcall *v11)(int, _DWORD *); // r9
cocos2d::CCMenu *v12; // r0
int v13; // r0
int v14; // r9
float v15; // s17
int v16; // r0
void (__fastcall *v17)(int, _DWORD *); // r8
float v18; // s15
float v19; // s16
float v20; // r0
const char *v21; // r1
int v22; // r8
int v23; // r8
void (__fastcall *v24)(int, _DWORD *); // r9
ButtonSprite *v25; // r8
int v26; // r8
void (__fastcall *v27)(int, _DWORD *); // r9
float v28; // s24
float v29; // s17
float v30; // s16
float v31; // s24
float v32; // s25
int v33; // r8
void (__fastcall *v34)(int, _DWORD *); // r9
void (__fastcall *v35)(int, _DWORD *); // r3
void (__fastcall *v36)(int, _DWORD *); // r9
float v37; // s16
int InputNode; // r0
int v39; // r9
void (__fastcall *v40)(int, _DWORD *); // r8
ButtonSprite *v41; // r9
int v42; // r8
float v43; // s16
float v44; // s17
float *v45; // r0
const char *v46; // r1
int v47; // r8
float v48; // s16
float v49; // s21
int v50; // r9
float *v51; // r0
void (__fastcall *v52)(int, _DWORD *); // r8
float v53; // s25
float v54; // s16
const char *v55; // r1
int v56; // r8
int v57; // r0
int v58; // r9
int (__fastcall *v59)(int, _DWORD *); // r8
cocos2d::CCArray *v60; // r0
cocos2d::CCObject *v61; // r0
const char *v62; // r1
int v63; // r0
int v64; // r0
int v65; // r8
void (__fastcall *v66)(int, _DWORD *); // r9
const char *v67; // r2
int v68; // r0
int v69; // r8
void (__fastcall *v70)(int, _DWORD *); // r9
float *v71; // r0
int v72; // r0
int v73; // r8
char *v74; // r9
bool v75; // r2
const char *v76; // r12
float v77; // s17
char *v78; // r0
int v79; // r0
int v80; // r10
int v81; // r3
LoadingCircle *updated; // r0
cocos2d::CCLayerColor *v83; // r0
int v84; // r3
const char *v85; // r1
int v86; // r6
int v87; // r0
int v88; // r9
void (__fastcall *v89)(int, _DWORD *); // r10
const char *v90; // r1
cocos2d::CCSprite *v91; // r8
int v92; // r0
int v93; // r8
void (__fastcall *v94)(int, _DWORD *); // r9
const char *v95; // r2
int v96; // r0
int v97; // r9
void (__fastcall *v98)(int, _DWORD *); // r8
const char *v99; // r1
int v100; // r8
int v101; // r0
void (__fastcall *v102)(GameToolbox *, _DWORD *); // r8
const char *v103; // r1
cocos2d::CCSprite *v104; // r8
int v105; // r0
void (__fastcall *v106)(GameToolbox *, _DWORD *); // r8
int v107; // r8
GJSelectionStrip *v108; // r0
int v109; // r0
int v110; // r0
const char *v111; // r1
int v112; // r0
int v113; // r8
int v114; // r0
void (__fastcall *v115)(GameToolbox *, _DWORD *); // r9
const char *v116; // r2
int v117; // r9
const char *v118; // r1
int v119; // r0
const char *v120; // r2
int v121; // r0
int v122; // r9
void (__fastcall *v123)(int, _DWORD *); // r10
float v124; // s16
int v125; // r0
cocos2d::CCNotificationCenter *v126; // r0
int v127; // r0
cocos2d::CCNotificationCenter *v128; // r0
int v129; // r0
GameLevelManager *v130; // r0
int v131; // r0
char *v133; // [sp+0h] [bp-ECh]
float v134; // [sp+10h] [bp-DCh]
float v135; // [sp+10h] [bp-DCh]
int v136; // [sp+14h] [bp-D8h]
GameToolbox *v137; // [sp+1Ch] [bp-D0h]
GameToolbox *v138; // [sp+1Ch] [bp-D0h]
GameToolbox *v139; // [sp+1Ch] [bp-D0h]
GameToolbox *v140; // [sp+1Ch] [bp-D0h]
GameToolbox *v141; // [sp+1Ch] [bp-D0h]
GameToolbox *v142; // [sp+1Ch] [bp-D0h]
char *v143; // [sp+20h] [bp-CCh]
const char *v144; // [sp+24h] [bp-C8h]
float v145[2]; // [sp+2Ch] [bp-C0h] BYREF
float v146; // [sp+34h] [bp-B8h] BYREF
float v147; // [sp+38h] [bp-B4h]
int (__fastcall *v148)(cocos2d::CCObject **, cocos2d::CCObject *); // [sp+3Ch] [bp-B0h]
int v149; // [sp+40h] [bp-ACh]
int (__fastcall *v150)(cocos2d::CCObject **, cocos2d::CCObject *); // [sp+44h] [bp-A8h]
int v151; // [sp+48h] [bp-A4h]
_DWORD (*v152)(MessageThreadsPage *__hidden, cocos2d::CCObject *); // [sp+4Ch] [bp-A0h]
int v153; // [sp+50h] [bp-9Ch]
_DWORD (__fastcall *v154)(MessageThreadsPage *__hidden, cocos2d::CCObject *); // [sp+54h] [bp-98h]
int v155; // [sp+58h] [bp-94h]
_DWORD (*v156)(MessageThreadsPage *__hidden, cocos2d::CCObject *); // [sp+5Ch] [bp-90h]
int v157; // [sp+60h] [bp-8Ch]
int (__fastcall *v158)(MessageThreadsPage *, cocos2d::CCObject *); // [sp+64h] [bp-88h]
int v159; // [sp+68h] [bp-84h]
_DWORD (*v160)(MessageThreadsPage *__hidden, cocos2d::CCObject *); // [sp+6Ch] [bp-80h]
int v161; // [sp+70h] [bp-7Ch]
_DWORD (*v162)(MessageThreadsPage *__hidden, cocos2d::CCObject *); // [sp+74h] [bp-78h]
int v163; // [sp+78h] [bp-74h]
_DWORD (*v164)(MessageThreadsPage *__hidden, cocos2d::CCObject *); // [sp+7Ch] [bp-70h]
int v165; // [sp+80h] [bp-6Ch]
_DWORD (*v166)(MessageThreadsPage *__hidden, cocos2d::CCObject *); // [sp+84h] [bp-68h]
int v167; // [sp+88h] [bp-64h]
int (__fastcall *v168)(MessageThreadsPage *, cocos2d::CCObject *, int); // [sp+8Ch] [bp-60h]
int v169; // [sp+90h] [bp-5Ch]
CCMenuItemToggler *(__fastcall *v170)(MessageThreadsPage *, cocos2d::CCObject *); // [sp+94h] [bp-58h]
int v171; // [sp+98h] [bp-54h]
int (__fastcall *v172)(cocos2d::CCArray **, cocos2d::CCObject *, int, int); // [sp+9Ch] [bp-50h]
int v173; // [sp+A0h] [bp-4Ch]
_DWORD (*v174)(MessageThreadsPage *__hidden, cocos2d::CCObject *); // [sp+A4h] [bp-48h]
int v175; // [sp+A8h] [bp-44h]
int (__fastcall *v176)(MessageThreadsPage *, cocos2d::CCObject *); // [sp+ACh] [bp-40h]
int v177; // [sp+B0h] [bp-3Ch]
_DWORD (*v178)(MessageThreadsPage *__hidden, cocos2d::CCObject *); // [sp+B4h] [bp-38h]
int v179; // [sp+B8h] [bp-34h]
int v180[3]; // [sp+BCh] [bp-30h] BYREF
int v181; // [sp+C8h] [bp-24h] BYREF
int v182; // [sp+CCh] [bp-20h]
int v183; // [sp+D0h] [bp-1Ch]
_DWORD v184[4]; // [sp+D4h] [bp-18h] BYREF
v184[0] = -1778384896;
v136 = cocos2d::CCLayerColor::initWithColor(this, v184);
if ( v136 )
{
(*(void (__fastcall **)(MessageThreadsPage *, int))(*(_DWORD *)this + 584))(this, 150);
FLAlertLayer::incrementForcePrio(this);
v2 = *(_DWORD *)this;
*((_BYTE *)this + 468) = 1;
(*(void (__fastcall **)(MessageThreadsPage *, int))(v2 + 500))(this, 1);
v3 = (cocos2d::CCDirector *)(*(int (__fastcall **)(MessageThreadsPage *, int))(*(_DWORD *)this + 536))(this, 1);
cocos2d::CCDirector::sharedDirector(v3);
cocos2d::CCDirector::getWinSize((cocos2d::CCDirector *)v145);
v4 = (cocos2d::CCLayer *)cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v146, v145[0] * 0.5, v145[1] * 0.5);
v5 = cocos2d::CCLayer::create(v4);
v6 = *(_DWORD *)this;
*((_DWORD *)this + 115) = v5;
(*(void (__fastcall **)(MessageThreadsPage *, int))(v6 + 228))(this, v5);
cocos2d::CCRect::CCRect((cocos2d::CCRect *)v184, 0.0, 0.0, 80.0, 80.0);
v7 = cocos2d::extension::CCScale9Sprite::create("GJ_square01.png", v184);
v8 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v7 + 160);
cocos2d::CCSize::CCSize((cocos2d::CCSize *)v184, 440.0, 300.0);
v8(v7, v184);
(*(void (__fastcall **)(int, float *))(*(_DWORD *)v7 + 92))(v7, &v146);
(*(void (__fastcall **)(_DWORD, int, int))(**((_DWORD **)this + 115) + 232))(*((_DWORD *)this + 115), v7, -2);
v10 = cocos2d::CCLabelBMFont::create((cocos2d::CCLabelBMFont *)"Messages", "bigFont.fnt", v9);
(*(void (__fastcall **)(int, float))(*(_DWORD *)v10 + 80))(v10, 0.5);
v11 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v10 + 92);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v184, v146, (float)(v147 + 145.0) - 10.0);
v11(v10, v184);
v12 = (cocos2d::CCMenu *)(*(int (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 115) + 228))(
*((_DWORD *)this + 115),
v10);
v13 = cocos2d::CCMenu::create(v12);
*((_DWORD *)this + 111) = v13;
(*(void (__fastcall **)(_DWORD, int, int))(**((_DWORD **)this + 115) + 232))(*((_DWORD *)this + 115), v13, 10);
(*(void (__fastcall **)(_DWORD, void *))(**((_DWORD **)this + 111) + 92))(*((_DWORD *)this + 111), &unk_D2DF00);
*((_DWORD *)this + 125) = -1;
memset(v180, 0, sizeof(v180));
std::string::__init(v180, "Messaging Rules", 0xFu);
v181 = 0;
v182 = 0;
v183 = 0;
std::string::__init(
&v181,
"1. Do not harass, threaten, or bully other players.\n"
"2. Do not share personal info such as your address, passwords, or contact details.\n"
"3. Do not spam, scam, or send inappropriate content.\n"
"4. Do not try to bypass filters or safety systems.\n"
"Messages are filtered automatically and may be reviewed when reported or flagged for safety.\n"
"Report or Block users who break these rules.",
0x1A8u);
v14 = InfoAlertButton::create((char *)v180, (int)&v181, COERCE_INT(0.5));
std::string::~string((int)&v181);
std::string::~string((int)v180);
(*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 111) + 228))(*((_DWORD *)this + 111), v14);
v15 = *(float *)(*(int (__fastcall **)(int))(*(_DWORD *)v10 + 164))(v10);
*(float *)&v16 = COERCE_FLOAT((*(int (__fastcall **)(int))(*(_DWORD *)v10 + 84))(v10));
v17 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v14 + 92);
v18 = *(float *)&v16;
v19 = COERCE_FLOAT((*(int (__fastcall **)(int))(*(_DWORD *)v10 + 112))(v10));
v20 = (*(float (__fastcall **)(int))(*(_DWORD *)v10 + 120))(v10);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v184, (float)(v19 - (float)((float)(v15 * v18) * 0.5)) - 14.0, v20);
v17(v14, v184);
v22 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_backBtn_001.png", v21);
(*(void (__fastcall **)(int, int))(*(_DWORD *)v22 + 80))(v22, 1061997773);
v149 = 0;
v148 = MessageThreadsPage::onClose;
v23 = CCMenuItemSpriteExtra::create(v22, 0, (int)this, (int)MessageThreadsPage::onClose, 0);
CCMenuItemSpriteExtra::setSizeMult(v23, 1.5);
(*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 111) + 228))(*((_DWORD *)this + 111), v23);
v24 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v23 + 92);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v184, (float)(v146 - 220.0) + 5.0, (float)(v147 + 145.0) - 5.0);
v24(v23, v184);
v25 = ButtonSprite::create(
(ButtonSprite *)"Legacy",
(const char *)&word_30,
0,
0.4,
1,
"bigFont.fnt",
"GJ_button_04.png",
(const char *)0x41B00000,
v134);
(*(void (__fastcall **)(ButtonSprite *, int))(*(_DWORD *)v25 + 80))(v25, 1061997773);
v151 = 0;
v150 = MessageThreadsPage::onLegacyMessages;
v26 = CCMenuItemSpriteExtra::create((int)v25, 0, (int)this, (int)MessageThreadsPage::onLegacyMessages, 0);
CCMenuItemSpriteExtra::setSizeMult(v26, 1.2);
(*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 111) + 228))(*((_DWORD *)this + 111), v26);
v27 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v26 + 92);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v184, (float)(v146 + 220.0) - 32.0, (float)(v147 + 145.0) - 12.0);
v27(v26, v184);
v28 = v146;
v29 = (float)(v147 + 145.0) - 39.0;
cocos2d::CCRect::CCRect((cocos2d::CCRect *)v184, 0.0, 0.0, 40.0, 40.0);
v30 = v28 - 170.0;
v31 = v28 - 20.0;
v32 = v31 - v30;
v33 = cocos2d::extension::CCScale9Sprite::create("square02b_small.png", v184);
v34 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v33 + 160);
cocos2d::CCSize::CCSize((cocos2d::CCSize *)v184, v31 - v30, 24.0);
v34(v33, v184);
v35 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v33 + 480);
LOWORD(v184[0]) = 13405;
BYTE2(v184[0]) = 31;
v35(v33, v184);
v36 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v33 + 92);
v37 = (float)(v30 + v31) * 0.5;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v184, v37, v29);
v36(v33, v184);
(*(void (__fastcall **)(_DWORD, int, _DWORD))(**((_DWORD **)this + 115) + 232))(*((_DWORD *)this + 115), v33, 0);
InputNode = GameToolbox::createInputNode(
COERCE_GAMETOOLBOX_(v32 - 12.0),
24.0,
COERCE_FLOAT("Search name or title"),
(const char *)&dword_1C + 2,
(int)v133);
*((_DWORD *)this + 145) = InputNode;
v39 = InputNode;
v40 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)InputNode + 92);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v184, v37, v29);
v40(v39, v184);
CCTextInputNode::setLabelPlaceholderScale(*((_DWORD *)this + 145), 0.6);
*(_DWORD *)(*((_DWORD *)this + 145) + 420) = (char *)this + 440;
(*(void (__fastcall **)(_DWORD, _DWORD, int))(**((_DWORD **)this + 115) + 232))(
*((_DWORD *)this + 115),
*((_DWORD *)this + 145),
5);
v41 = ButtonSprite::create(
(ButtonSprite *)"New",
(const char *)&dword_48,
0,
0.5,
1,
"bigFont.fnt",
"GJ_button_01.png",
COERCE_CONST_CHAR_(26.0),
v135);
(*(void (__fastcall **)(ButtonSprite *, int))(*(_DWORD *)v41 + 80))(v41, 1061997773);
v153 = 0;
v152 = MessageThreadsPage::onNewThread;
v42 = CCMenuItemSpriteExtra::create((int)v41, 0, (int)this, (int)MessageThreadsPage::onNewThread, 0);
CCMenuItemSpriteExtra::setSizeMult(v42, 1.1);
(*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 111) + 228))(*((_DWORD *)this + 111), v42);
v137 = *(GameToolbox **)(*(_DWORD *)v42 + 92);
v43 = (float)(v146 + 220.0) - 51.0;
v44 = v29 - 1.0;
v45 = (float *)(*(int (__fastcall **)(ButtonSprite *))(*(_DWORD *)v41 + 164))(v41);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v184, v43 - (float)((float)(*v45 * 0.8) * 0.5), v44);
((void (__fastcall *)(int, _DWORD *))v137)(v42, v184);
v47 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_longBtn06_001.png", v46);
v48 = *(float *)((*(int (__fastcall **)(ButtonSprite *))(*(_DWORD *)v41 + 164))(v41) + 4);
v49 = (float)(v48 * 0.8) / *(float *)((*(int (__fastcall **)(int))(*(_DWORD *)v47 + 164))(v47) + 4);
(*(void (__fastcall **)(int, _DWORD))(*(_DWORD *)v47 + 80))(v47, LODWORD(v49));
v155 = 0;
v154 = MessageThreadsPage::onSearch;
v50 = CCMenuItemSpriteExtra::create(v47, 0, (int)this, (int)MessageThreadsPage::onSearch, 0);
CCMenuItemSpriteExtra::setSizeMult(v50, 1.2);
(*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 111) + 228))(*((_DWORD *)this + 111), v50);
v51 = (float *)(*(int (__fastcall **)(int))(*(_DWORD *)v47 + 164))(v47);
v52 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v50 + 92);
v53 = v49 * *v51;
v54 = (float)((float)(v146 - 20.0) + 4.0) + (float)(v53 * 0.5);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v184, v54, v44);
v52(v50, v184);
v56 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_longBtn07_001.png", v55);
(*(void (__fastcall **)(int, _DWORD))(*(_DWORD *)v56 + 80))(v56, LODWORD(v49));
v157 = 0;
v156 = MessageThreadsPage::onClearSearch;
v57 = CCMenuItemSpriteExtra::create(v56, 0, (int)this, (int)MessageThreadsPage::onClearSearch, 0);
*((_DWORD *)this + 140) = v57;
CCMenuItemSpriteExtra::setSizeMult(v57, 1.2);
(*(void (__fastcall **)(_DWORD, _DWORD))(**((_DWORD **)this + 111) + 228))(
*((_DWORD *)this + 111),
*((_DWORD *)this + 140));
v58 = *((_DWORD *)this + 140);
v59 = *(int (__fastcall **)(int, _DWORD *))(*(_DWORD *)v58 + 92);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v184, (float)(v54 + v53) + 4.0, v44);
v60 = (cocos2d::CCArray *)v59(v58, v184);
v61 = (cocos2d::CCObject *)cocos2d::CCArray::create(v60);
*((_DWORD *)this + 159) = v61;
cocos2d::CCObject::retain(v61);
v63 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_longBtn05_001.png", v62);
*((_DWORD *)this + 163) = v63;
(*(void (__fastcall **)(int, _DWORD))(*(_DWORD *)v63 + 80))(v63, LODWORD(v49));
v64 = *((_DWORD *)this + 163);
v159 = 0;
v158 = MessageThreadsPage::onUserFilter;
v65 = CCMenuItemSpriteExtra::create(v64, 0, (int)this, (int)MessageThreadsPage::onUserFilter, 0);
CCMenuItemSpriteExtra::setSizeMult(v65, 1.2);
(*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 111) + 228))(*((_DWORD *)this + 111), v65);
v66 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v65 + 92);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v184, (float)((float)(v54 + (float)(v53 * 1.5)) + 4.0) + 28.0, v44);
v66(v65, v184);
v68 = cocos2d::CCLabelBMFont::create((cocos2d::CCLabelBMFont *)&unk_B6B226, "bigFont.fnt", v67);
*((_DWORD *)this + 164) = v68;
(*(void (__fastcall **)(int, int))(*(_DWORD *)v68 + 80))(v68, 1058642330);
v69 = *((_DWORD *)this + 164);
v70 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v69 + 92);
v71 = (float *)(*(int (__fastcall **)(_DWORD))(**((_DWORD **)this + 163) + 164))(*((_DWORD *)this + 163));
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v184, *v71 - 8.0, 10.0);
v72 = v69;
v73 = 0;
v70(v72, v184);
v74 = (char *)this + 620;
(*(void (__fastcall **)(_DWORD, _DWORD, int))(**((_DWORD **)this + 163) + 232))(
*((_DWORD *)this + 163),
*((_DWORD *)this + 164),
1);
MessageThreadsPage::refreshUserFilterBtn(this);
v76 = "threadBtn_groupOn_001.png";
v77 = (float)(v146 - 220.0) + 26.0;
do
{
if ( v73 == 1 )
{
v78 = "threadBtn_dm_001.png";
}
else if ( v73 == 2 )
{
v78 = (char *)v76;
}
else
{
v78 = "threadBtn_allOn_001.png";
}
v144 = v76;
v79 = GameToolbox::createOnOffSprite((GameToolbox *)v78, nullptr, v75);
*((_DWORD *)v74 + 1) = v79;
v74 += 4;
v161 = 0;
v160 = MessageThreadsPage::onSelectFilter;
v80 = CCMenuItemSpriteExtra::create(v79, 0, (int)this, (int)MessageThreadsPage::onSelectFilter, 0);
CCMenuItemSpriteExtra::setSizeMult(v80, 1.2);
(*(void (__fastcall **)(int, int))(*(_DWORD *)v80 + 36))(v80, v73);
(*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 111) + 228))(*((_DWORD *)this + 111), v80);
v143 = *(char **)(*(_DWORD *)v80 + 92);
v81 = 37 * v73++;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v184, v77, (float)(v147 + 68.0) - (float)v81);
((void (__fastcall *)(int, _DWORD *))v143)(v80, v184);
v76 = v144;
}
while ( v73 != 3 );
updated = (LoadingCircle *)MessageThreadsPage::updateFilterButtons(this);
v83 = LoadingCircle::create(updated);
v84 = *((_DWORD *)this + 115);
*((_DWORD *)this + 134) = v83;
*((_DWORD *)v83 + 111) = v84;
*(_BYTE *)(*((_DWORD *)this + 134) + 448) = 0;
LoadingCircle::show(*((cocos2d::CCNode ***)this + 134));
(*(void (__fastcall **)(_DWORD, _DWORD))(**((_DWORD **)this + 134) + 172))(*((_DWORD *)this + 134), 0);
v181 = 0;
v182 = 0;
v183 = 0;
std::string::__init(&v181, "Something went wrong...", 0x17u);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v184, 0.5, 1.0);
*((_DWORD *)this + 135) = TextArea::create(
(int)&v181,
"bigFont.fnt",
1065353216,
1142292480,
(const cocos2d::CCPoint *)v184,
1101004800,
0,
0);
std::string::~string((int)&v181);
(*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 135) + 80))(*((_DWORD *)this + 135), 1058642330);
(*(void (__fastcall **)(_DWORD, float *))(**((_DWORD **)this + 135) + 92))(*((_DWORD *)this + 135), &v146);
(*(void (__fastcall **)(_DWORD, _DWORD))(**((_DWORD **)this + 135) + 172))(*((_DWORD *)this + 135), 0);
(*(void (__fastcall **)(_DWORD, _DWORD, int))(**((_DWORD **)this + 115) + 232))(
*((_DWORD *)this + 115),
*((_DWORD *)this + 135),
10);
v86 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_arrow_01_001.png", v85);
(*(void (__fastcall **)(int, int))(*(_DWORD *)v86 + 80))(v86, 1061997773);
v163 = 0;
v162 = MessageThreadsPage::onPrevPage;
v87 = CCMenuItemSpriteExtra::create(v86, 0, (int)this, (int)MessageThreadsPage::onPrevPage, 0);
*((_DWORD *)this + 136) = v87;
CCMenuItemSpriteExtra::setSizeMult(v87, 2.0);
(*(void (__fastcall **)(_DWORD, _DWORD))(**((_DWORD **)this + 111) + 228))(
*((_DWORD *)this + 111),
*((_DWORD *)this + 136));
v88 = *((_DWORD *)this + 136);
v89 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v88 + 92);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v184, v146 - 195.0, v147 - 59.0);
v89(v88, v184);
(*(void (__fastcall **)(_DWORD, _DWORD))(**((_DWORD **)this + 136) + 172))(*((_DWORD *)this + 136), 0);
v91 = (cocos2d::CCSprite *)cocos2d::CCSprite::createWithSpriteFrameName(
(cocos2d::CCSprite *)"GJ_arrow_01_001.png",
v90);
cocos2d::CCSprite::setFlipX(v91, 1);
(*(void (__fastcall **)(cocos2d::CCSprite *, int))(*(_DWORD *)v91 + 80))(v91, 1061997773);
v165 = 0;
v164 = MessageThreadsPage::onNextPage;
v92 = CCMenuItemSpriteExtra::create((int)v91, 0, (int)this, (int)MessageThreadsPage::onNextPage, 0);
*((_DWORD *)this + 137) = v92;
CCMenuItemSpriteExtra::setSizeMult(v92, 2.0);
(*(void (__fastcall **)(_DWORD, _DWORD))(**((_DWORD **)this + 111) + 228))(
*((_DWORD *)this + 111),
*((_DWORD *)this + 137));
v93 = *((_DWORD *)this + 137);
v94 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v93 + 92);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v184, v146 + 195.0, v147 - 59.0);
v94(v93, v184);
(*(void (__fastcall **)(_DWORD, _DWORD))(**((_DWORD **)this + 137) + 172))(*((_DWORD *)this + 137), 0);
v96 = cocos2d::CCLabelBMFont::create((cocos2d::CCLabelBMFont *)&unk_B6B226, "chatFont.fnt", v95);
*((_DWORD *)this + 146) = v96;
(*(void (__fastcall **)(int, int))(*(_DWORD *)v96 + 80))(v96, 1056964608);
(*(void (__fastcall **)(_DWORD, void *))(**((_DWORD **)this + 146) + 536))(*((_DWORD *)this + 146), &unk_BF077C);
(*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 146) + 512))(*((_DWORD *)this + 146), 150);
v97 = *((_DWORD *)this + 146);
v98 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v97 + 92);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v184, v146, (float)(v147 - 145.0) + 8.0);
v98(v97, v184);
(*(void (__fastcall **)(_DWORD, _DWORD))(**((_DWORD **)this + 115) + 228))(
*((_DWORD *)this + 115),
*((_DWORD *)this + 146));
v100 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_updateBtn_001.png", v99);
(*(void (__fastcall **)(int, int))(*(_DWORD *)v100 + 80))(v100, 1061997773);
v167 = 0;
v166 = MessageThreadsPage::onRefresh;
v101 = CCMenuItemSpriteExtra::create(v100, 0, (int)this, (int)MessageThreadsPage::onRefresh, 0);
*((_DWORD *)this + 138) = v101;
CCMenuItemSpriteExtra::setSizeMult(v101, 1.2);
(*(void (__fastcall **)(_DWORD, _DWORD))(**((_DWORD **)this + 111) + 228))(
*((_DWORD *)this + 111),
*((_DWORD *)this + 138));
v138 = *((GameToolbox **)this + 138);
v102 = *(void (__fastcall **)(GameToolbox *, _DWORD *))(*(_DWORD *)v138 + 92);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v184, (float)(v146 + 220.0) - 24.0, (float)(v147 - 145.0) + 21.0);
v102(v138, v184);
(*(void (__fastcall **)(_DWORD, _DWORD))(**((_DWORD **)this + 138) + 172))(*((_DWORD *)this + 138), 0);
v104 = (cocos2d::CCSprite *)cocos2d::CCSprite::createWithSpriteFrameName(
(cocos2d::CCSprite *)"downArrowBtn_001.png",
v103);
cocos2d::CCSprite::setFlipY(v104, 1);
v169 = 0;
v168 = MessageThreadsPage::onScrollToTop;
v105 = CCMenuItemSpriteExtra::create((int)v104, 0, (int)this, (int)MessageThreadsPage::onScrollToTop, 0);
*((_DWORD *)this + 139) = v105;
CCMenuItemSpriteExtra::setSizeMult(v105, 1.5);
(*(void (__fastcall **)(_DWORD, _DWORD))(**((_DWORD **)this + 111) + 228))(
*((_DWORD *)this + 111),
*((_DWORD *)this + 139));
v139 = *((GameToolbox **)this + 139);
v106 = *(void (__fastcall **)(GameToolbox *, _DWORD *))(*(_DWORD *)v139 + 92);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v184, v146, (float)((float)(v147 + 98.0) - 12.0) - 16.0);
v106(v139, v184);
(*(void (__fastcall **)(_DWORD, _DWORD))(**((_DWORD **)this + 139) + 172))(*((_DWORD *)this + 139), 0);
v107 = *((_DWORD *)this + 115);
v140 = *((GameToolbox **)this + 111);
cocos2d::CCPoint::CCPoint(
(cocos2d::CCPoint *)v184,
(float)(v146 - 220.0) + 21.0,
(float)((float)(v147 - 145.0) + 13.0) + 3.0);
v171 = 0;
v170 = MessageThreadsPage::onSelectAll;
v108 = (GJSelectionStrip *)GJSelectionStrip::create(
(int)v140,
v107,
(const cocos2d::CCPoint *)v184,
1065353216,
(int)this,
(int)MessageThreadsPage::onSelectAll,
0);
*((_DWORD *)this + 141) = v108;
GJSelectionStrip::addCountLabel(v108, 31.0, &byte_5);
v109 = *((_DWORD *)this + 141);
v172 = MessageThreadsPage::onMarkRead;
v173 = 0;
GJSelectionStrip::addAction(
v109,
(cocos2d::CCSprite *)"threadBtn_markRead_001.png",
63.0,
(int)MessageThreadsPage::onMarkRead,
0,
1.4);
v110 = *((_DWORD *)this + 141);
v174 = MessageThreadsPage::onDeleteSelected;
v175 = 0;
GJSelectionStrip::addAction(
v110,
(cocos2d::CCSprite *)"threadBtn_delete_001.png",
99.0,
(int)MessageThreadsPage::onDeleteSelected,
0,
1.2);
MessageThreadsPage::updateSelectUI((GJSelectionStrip **)this);
v112 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"accountBtn_invites_001.png", v111);
v177 = 0;
v176 = MessageThreadsPage::onShowInvites;
v113 = v112;
v114 = CCMenuItemSpriteExtra::create(v112, 0, (int)this, (int)MessageThreadsPage::onShowInvites, 0);
*((_DWORD *)this + 142) = v114;
CCMenuItemSpriteExtra::setSizeMult(v114, 1.2);
(*(void (__fastcall **)(_DWORD, _DWORD))(**((_DWORD **)this + 111) + 228))(
*((_DWORD *)this + 111),
*((_DWORD *)this + 142));
v141 = *((GameToolbox **)this + 142);
v115 = *(void (__fastcall **)(GameToolbox *, _DWORD *))(*(_DWORD *)v141 + 92);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v184, (float)(v146 + 220.0) - 26.0, v147 + 68.0);
v115(v141, v184);
v117 = cocos2d::CCLabelBMFont::create((cocos2d::CCLabelBMFont *)"Invites", "bigFont.fnt", v116);
(*(void (__fastcall **)(int, int))(*(_DWORD *)v117 + 80))(v117, 1048576000);
(*(void (__fastcall **)(int, int))(*(_DWORD *)v117 + 512))(v117, 140);
v142 = *(GameToolbox **)(*(_DWORD *)v117 + 92);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v184, (float)(v146 + 220.0) - 26.0, v147 + 45.5);
((void (__fastcall *)(int, _DWORD *))v142)(v117, v184);
(*(void (__fastcall **)(_DWORD, int, int))(**((_DWORD **)this + 115) + 232))(*((_DWORD *)this + 115), v117, 5);
v119 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"d_ball_01_001.png", v118);
*((_DWORD *)this + 143) = v119;
(*(void (__fastcall **)(int, void *))(*(_DWORD *)v119 + 480))(v119, &unk_BF0733);
(*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 143) + 80))(*((_DWORD *)this + 143), 1058642330);
v121 = cocos2d::CCLabelBMFont::create((cocos2d::CCLabelBMFont *)&unk_B6B226, "bigFont.fnt", v120);
*((_DWORD *)this + 144) = v121;
(*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 143) + 228))(*((_DWORD *)this + 143), v121);
(*(void (__fastcall **)(int, _DWORD, int))(*(_DWORD *)v113 + 232))(v113, *((_DWORD *)this + 143), 1);
v122 = *((_DWORD *)this + 143);
v123 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v122 + 92);
v124 = *(float *)(*(int (__fastcall **)(int))(*(_DWORD *)v113 + 164))(v113);
v125 = (*(int (__fastcall **)(int))(*(_DWORD *)v113 + 164))(v113);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v184, v124 - 4.0, *(float *)(v125 + 4) - 4.0);
v123(v122, v184);
v126 = (cocos2d::CCNotificationCenter *)(*(int (__fastcall **)(_DWORD, _DWORD))(**((_DWORD **)this + 143) + 172))(
*((_DWORD *)this + 143),
0);
v127 = cocos2d::CCNotificationCenter::sharedNotificationCenter(v126);
v179 = 0;
v178 = MessageThreadsPage::onThreadsChanged;
v128 = (cocos2d::CCNotificationCenter *)cocos2d::CCNotificationCenter::addObserver(
v127,
(int)this,
(int)MessageThreadsPage::onThreadsChanged,
0,
"ThreadsChangedNotification",
0);
v129 = cocos2d::CCNotificationCenter::sharedNotificationCenter(v128);
v184[1] = 0;
v184[0] = MessageThreadsPage::onSelectionChanged;
v130 = (GameLevelManager *)cocos2d::CCNotificationCenter::addObserver(
v129,
(int)this,
(int)MessageThreadsPage::onSelectionChanged,
0,
"ThreadSelectionChangedNotification",
0);
v131 = GameLevelManager::sharedState(v130);
MessageThreadsPage::setInboxPoll(this, (float)*(int *)(v131 + 352));
MessageThreadsPage::loadPage(this, 0, 0);
}
return v136;
}