//
// ThreadViewPopup::init from 0x75c0cc to 0x75cdf8 (3372 bytes)
//
// 2 xrefs:
// > ThreadViewPopup::create @ 0x75ce3e
// > ThreadViewPopup::createModView @ 0x75d418
//
// 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:59:00 +0000
//
int __fastcall ThreadViewPopup::init(ThreadViewPopup *this, GJMessageThread *a2)
{
int result; // r0
int v5; // r10
int v6; // r3
cocos2d::CCDirector *v7; // r0
cocos2d::CCLayer *v8; // r0
int v9; // r0
int v10; // r3
int v11; // r6
void (__fastcall *v12)(int, _DWORD *); // r9
const char *v13; // r2
int v14; // r0
int v15; // r3
cocos2d::CCLabelBMFont *v16; // r0
int v17; // r0
int v18; // r6
void (__fastcall *v19)(int, _DWORD *); // r8
const char *v20; // r2
int v21; // r0
int v22; // r6
void (__fastcall *v23)(int, _DWORD *); // r9
int v24; // r0
void (__fastcall *v25)(int, _DWORD *); // r3
int v26; // r6
void (__fastcall *v27)(int, _DWORD *); // r11
cocos2d::CCMenu *v28; // r0
int v29; // r3
int v30; // r0
const char *v31; // r1
int v32; // r8
int v33; // r8
void (__fastcall *v34)(int, _DWORD *); // r9
const char *v35; // r2
int v36; // r8
int v37; // r6
void (__fastcall *v38)(int, _DWORD *); // r8
const char *v39; // r1
int v40; // r3
int v41; // r6
int v42; // r8
int v43; // r6
void (__fastcall *v44)(int, _DWORD *); // r8
float v45; // s20
int v46; // r8
int v47; // r8
void (__fastcall *v48)(int, _DWORD *); // r9
float v49; // s14
const char *v50; // r1
int v51; // r8
int v52; // r8
void (__fastcall *v53)(int, _DWORD *); // r9
void (__fastcall *v54)(int, bool); // r9
bool v55; // r0
float v56; // s14
float v57; // r1
float v58; // s15
float v59; // s14
int v60; // r8
void (__fastcall *v61)(int, _DWORD *); // r3
void (__fastcall *v62)(int, _DWORD *); // r11
float v63; // r1
float v64; // r2
int v65; // r1
int v66; // r2
int v67; // r3
int *v68; // r0
float v69; // s15
float v70; // s14
float v71; // s12
int *v72; // r8
void (__fastcall *v73)(int *, _DWORD *); // r9
ScrollableContentLayer *v74; // r8
float v75; // s16
const char *v76; // r1
int v77; // r8
int v78; // r0
int v79; // r8
void (__fastcall *v80)(int, _DWORD *); // r9
int v81; // r1
int v82; // r2
int v83; // r3
cocos2d::CCSprite *v84; // r6
int v85; // r0
int v86; // r8
void (__fastcall *v87)(int, _DWORD *); // r11
int v88; // r8
void (__fastcall *v89)(int, _DWORD *); // r11
void (__fastcall *v90)(int, _DWORD *); // r3
void (__fastcall *v91)(int, _DWORD *); // r11
const char *v92; // r2
int v93; // r0
const char *v94; // r1
int v95; // r0
int v96; // r0
const char *v97; // r1
int v98; // r0
int v99; // r0
int *v100; // r0
int v101; // r0
int *v102; // r0
int v103; // r8
EmoteSprite *v104; // r0
CCTextInputNode *v105; // r8
int v106; // r0
int v107; // r8
TextArea *v108; // r5
int v109; // r3
ButtonSprite *v110; // r0
int v111; // r0
int v112; // r6
void (__fastcall *v113)(int, _BYTE *); // r7
cocos2d::CCArray *v114; // r0
cocos2d::CCObject *v115; // r0
GameLevelManager *v116; // r0
int v117; // r1
int v118; // r3
GJAccountManager *v119; // r5
int v120; // r0
int v121; // r0
int v122; // r3
GameLevelManager *refreshed; // r0
__int64 v124; // r2
char *v125; // [sp+8h] [bp-ACh]
float v126; // [sp+10h] [bp-A4h]
void (__fastcall *v127)(int, _DWORD *); // [sp+14h] [bp-A0h]
void (__fastcall *v128)(int *, int); // [sp+14h] [bp-A0h]
int v129; // [sp+1Ch] [bp-98h]
int *v130; // [sp+1Ch] [bp-98h]
int v131; // [sp+24h] [bp-90h]
float v132[2]; // [sp+28h] [bp-8Ch] BYREF
float v133; // [sp+30h] [bp-84h] BYREF
float v134; // [sp+34h] [bp-80h]
_BYTE v135[8]; // [sp+38h] [bp-7Ch] BYREF
int (__fastcall *v136)(int, float); // [sp+40h] [bp-74h]
int v137; // [sp+44h] [bp-70h]
int (__fastcall *v138)(ThreadViewPopup *, cocos2d::CCObject *); // [sp+48h] [bp-6Ch]
int v139; // [sp+4Ch] [bp-68h]
int (__fastcall *v140)(ThreadOptionsPopup **, cocos2d::CCObject *, int, bool); // [sp+50h] [bp-64h]
int v141; // [sp+54h] [bp-60h]
ThreadDescPopup *(__fastcall *v142)(ThreadViewPopup *, cocos2d::CCObject *, ThreadViewPopup *); // [sp+58h] [bp-5Ch]
int v143; // [sp+5Ch] [bp-58h]
unsigned __int8 *(__fastcall *v144)(unsigned __int8 *, cocos2d::CCObject *); // [sp+60h] [bp-54h]
int v145; // [sp+64h] [bp-50h]
int (__fastcall *v146)(int, cocos2d::CCObject *); // [sp+68h] [bp-4Ch]
int v147; // [sp+6Ch] [bp-48h]
int (__fastcall *v148)(ThreadViewPopup *, cocos2d::CCObject *); // [sp+70h] [bp-44h]
int v149; // [sp+74h] [bp-40h]
int (__fastcall *v150)(ThreadViewPopup *, cocos2d::CCObject *); // [sp+78h] [bp-3Ch]
int v151; // [sp+7Ch] [bp-38h]
int (__fastcall *v152)(ThreadViewPopup *, cocos2d::CCObject *); // [sp+80h] [bp-34h]
int v153; // [sp+84h] [bp-30h]
_DWORD v154[2]; // [sp+88h] [bp-2Ch] BYREF
int v155; // [sp+90h] [bp-24h] BYREF
int v156; // [sp+94h] [bp-20h]
int v157; // [sp+98h] [bp-1Ch]
_DWORD v158[4]; // [sp+9Ch] [bp-18h] BYREF
if ( !a2 )
return 0;
v158[0] = -1778384896;
v5 = cocos2d::CCLayerColor::initWithColor(this, v158);
if ( !v5 )
return 0;
*((_DWORD *)this + 141) = a2;
cocos2d::CCObject::retain(a2);
*((_DWORD *)this + 148) = *(_DWORD *)(*((_DWORD *)this + 141) + 84);
(*(void (__fastcall **)(ThreadViewPopup *, int))(*(_DWORD *)this + 584))(this, 150);
FLAlertLayer::incrementForcePrio(this);
v6 = *(_DWORD *)this;
*((_BYTE *)this + 468) = 1;
(*(void (__fastcall **)(ThreadViewPopup *, int))(v6 + 500))(this, 1);
v7 = (cocos2d::CCDirector *)(*(int (__fastcall **)(ThreadViewPopup *, int))(*(_DWORD *)this + 536))(this, 1);
cocos2d::CCDirector::sharedDirector(v7);
cocos2d::CCDirector::getWinSize((cocos2d::CCDirector *)v132);
v8 = (cocos2d::CCLayer *)cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v133, v132[0] * 0.5, v132[1] * 0.5);
v9 = cocos2d::CCLayer::create(v8);
v10 = *(_DWORD *)this;
*((_DWORD *)this + 115) = v9;
(*(void (__fastcall **)(ThreadViewPopup *, int))(v10 + 228))(this, v9);
cocos2d::CCRect::CCRect((cocos2d::CCRect *)v158, 0.0, 0.0, 80.0, 80.0);
v11 = cocos2d::extension::CCScale9Sprite::create("GJ_square01.png", v158);
v12 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v11 + 160);
cocos2d::CCSize::CCSize((cocos2d::CCSize *)v158, 440.0, 290.0);
v12(v11, v158);
(*(void (__fastcall **)(int, float *))(*(_DWORD *)v11 + 92))(v11, &v133);
(*(void (__fastcall **)(_DWORD, int, int))(**((_DWORD **)this + 115) + 232))(*((_DWORD *)this + 115), v11, -2);
v14 = *((_DWORD *)this + 141);
if ( *(_BYTE *)(v14 + 168) )
{
v15 = *(unsigned __int8 *)(v14 + 60);
v13 = (const char *)(v15 << 31);
if ( (v15 & 1) != 0 )
v16 = *(cocos2d::CCLabelBMFont **)(v14 + 68);
else
v16 = (cocos2d::CCLabelBMFont *)(v14 + 61);
}
else if ( (*(_BYTE *)(v14 + 72) & 1) != 0 )
{
v16 = *(cocos2d::CCLabelBMFont **)(v14 + 80);
}
else
{
v16 = (cocos2d::CCLabelBMFont *)(v14 + 73);
}
v17 = cocos2d::CCLabelBMFont::create(v16, "goldFont.fnt", v13);
*((_DWORD *)this + 166) = v17;
(*(void (__fastcall **)(int, int))(*(_DWORD *)v17 + 80))(v17, 1060320051);
v18 = *((_DWORD *)this + 166);
v19 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v18 + 92);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v158, v133, (float)(v134 + 145.0) - 21.0);
v19(v18, v158);
(*(void (__fastcall **)(_DWORD, _DWORD))(**((_DWORD **)this + 115) + 228))(
*((_DWORD *)this + 115),
*((_DWORD *)this + 166));
ThreadViewPopup::layoutTitleRow((int)this);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v158, (float)(v133 - 220.0) + 38.0, (float)(v134 + 145.0) - 21.0);
cocos2d::CCPoint::operator=((char *)this + 656, v158);
if ( *(_BYTE *)(*((_DWORD *)this + 141) + 168) )
{
v21 = cocos2d::CCLabelBMFont::create((cocos2d::CCLabelBMFont *)&unk_B6B226, "bigFont.fnt", v20);
*((_DWORD *)this + 162) = v21;
v22 = v21;
v23 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v21 + 148);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v158, 0.0, 0.5);
v23(v22, v158);
(*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 162) + 80))(*((_DWORD *)this + 162), 1054280253);
v24 = *((_DWORD *)this + 162);
v25 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v24 + 536);
LOWORD(v158[0]) = -11521;
BYTE2(v158[0]) = 60;
v25(v24, v158);
v26 = *((_DWORD *)this + 162);
v27 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v26 + 92);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v154, 3.0, -3.0);
cocos2d::CCPoint::operator+(v158, (char *)this + 656, v154);
v27(v26, v158);
(*(void (__fastcall **)(_DWORD, _DWORD))(**((_DWORD **)this + 115) + 228))(
*((_DWORD *)this + 115),
*((_DWORD *)this + 162));
ThreadViewPopup::refreshDMSubLabel(this);
}
v28 = (cocos2d::CCMenu *)ThreadViewPopup::removedView(this);
if ( v28 )
{
*((_DWORD *)this + 173) = 0;
}
else
{
v29 = *((unsigned __int8 *)this + 599);
if ( !*((_BYTE *)this + 599) )
{
v137 = *((unsigned __int8 *)this + 599);
v136 = ThreadViewPopup::onAutoRefresh;
v28 = (cocos2d::CCMenu *)cocos2d::CCNode::schedule(
this,
ThreadViewPopup::onAutoRefresh,
v29,
*((_DWORD *)this + 173));
}
}
v30 = cocos2d::CCMenu::create(v28);
*((_DWORD *)this + 111) = v30;
(*(void (__fastcall **)(_DWORD, int, int))(**((_DWORD **)this + 115) + 232))(*((_DWORD *)this + 115), v30, 10);
(*(void (__fastcall **)(_DWORD, void *))(**((_DWORD **)this + 111) + 92))(*((_DWORD *)this + 111), &unk_D2DF00);
*((_DWORD *)this + 125) = -1;
v32 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_closeBtn_001.png", v31);
(*(void (__fastcall **)(int, int))(*(_DWORD *)v32 + 80))(v32, 1061997773);
v139 = 0;
v138 = ThreadViewPopup::onClose;
v33 = CCMenuItemSpriteExtra::create(v32, 0, (int)this, (int)ThreadViewPopup::onClose, 0);
CCMenuItemSpriteExtra::setSizeMult(v33, 1.5);
(*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 111) + 228))(*((_DWORD *)this + 111), v33);
v34 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v33 + 92);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v158, (float)(v133 - 220.0) + 8.0, (float)(v134 + 145.0) - 8.0);
v34(v33, v158);
v36 = cocos2d::CCLabelBMFont::create((cocos2d::CCLabelBMFont *)"...", "bigFont.fnt", v35);
(*(void (__fastcall **)(int, int))(*(_DWORD *)v36 + 80))(v36, 1057803469);
(*(void (__fastcall **)(int, int))(*(_DWORD *)v36 + 512))(v36, 140);
v141 = 0;
v140 = ThreadViewPopup::onThreadOptions;
v37 = CCMenuItemSpriteExtra::create(v36, 0, (int)this, (int)ThreadViewPopup::onThreadOptions, 0);
CCMenuItemSpriteExtra::setSizeMult(v37, 1.6);
(*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 111) + 228))(*((_DWORD *)this + 111), v37);
v38 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v37 + 92);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v158, (float)(v133 + 220.0) - 20.0, (float)(v134 + 145.0) - 21.0);
v38(v37, v158);
v40 = *((_DWORD *)this + 141);
v41 = *(unsigned __int8 *)(v40 + 168);
if ( !*(_BYTE *)(v40 + 168) )
{
v42 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"sideBtn_config_001.png", v39);
(*(void (__fastcall **)(int, int))(*(_DWORD *)v42 + 80))(v42, 1062836634);
v143 = v41;
v142 = ThreadViewPopup::onShowDescription;
v43 = CCMenuItemSpriteExtra::create(v42, v41, (int)this, (int)ThreadViewPopup::onShowDescription, v41);
CCMenuItemSpriteExtra::setSizeMult(v43, 1.2);
(*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 111) + 228))(*((_DWORD *)this + 111), v43);
v44 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v43 + 92);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v158, (float)(v133 + 220.0) - 44.0, (float)(v134 + 145.0) - 21.0);
v44(v43, v158);
}
v45 = 72.0;
v46 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_updateBtn_001.png", v39);
(*(void (__fastcall **)(int, int))(*(_DWORD *)v46 + 80))(v46, 1056964608);
v145 = 0;
v144 = ThreadViewPopup::onRefresh;
v47 = CCMenuItemSpriteExtra::create(v46, 0, (int)this, (int)ThreadViewPopup::onRefresh, 0);
CCMenuItemSpriteExtra::setSizeMult(v47, 1.2);
(*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 111) + 228))(*((_DWORD *)this + 111), v47);
v48 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v47 + 92);
v49 = 44.0;
if ( !*(_BYTE *)(*((_DWORD *)this + 141) + 168) )
v49 = 72.0;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v158, (float)(v133 + 220.0) - v49, (float)(v134 + 145.0) - 21.0);
v48(v47, v158);
v51 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"sideBtn_search_001.png", v50);
(*(void (__fastcall **)(int, int))(*(_DWORD *)v51 + 80))(v51, 1062836634);
v147 = 0;
v146 = ThreadViewPopup::onSearch;
v52 = CCMenuItemSpriteExtra::create(v51, 0, (int)this, (int)ThreadViewPopup::onSearch, 0);
CCMenuItemSpriteExtra::setSizeMult(v52, 1.2);
(*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 111) + 228))(*((_DWORD *)this + 111), v52);
v53 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v52 + 92);
if ( !*(_BYTE *)(*((_DWORD *)this + 141) + 168) )
v45 = 100.0;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v158, (float)(v133 + 220.0) - v45, (float)(v134 + 145.0) - 21.0);
v53(v52, v158);
v54 = *(void (__fastcall **)(int, bool))(*(_DWORD *)v52 + 172);
v55 = ThreadViewPopup::removedView(this);
v54(v52, !v55);
ThreadViewPopup::buildMemberButton((int)this);
v56 = v134;
v57 = v133;
*((_DWORD *)this + 157) = 1137508352;
v58 = (float)(v56 + 145.0) - 40.0;
v59 = (float)(v56 - 145.0) + 46.0;
*((float *)this + 195) = v58;
*((float *)this + 158) = v58 - v59;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v158, v57, (float)(v58 + v59) * 0.5);
cocos2d::CCPoint::operator=((char *)this + 636, v158);
cocos2d::CCRect::CCRect((cocos2d::CCRect *)v158, 0.0, 0.0, 40.0, 40.0);
v60 = cocos2d::extension::CCScale9Sprite::create("square02_small.png", v158);
(*(void (__fastcall **)(int, int))(*(_DWORD *)v60 + 456))(v60, 80);
v61 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v60 + 480);
LOWORD(v158[0]) = 0;
BYTE2(v158[0]) = 0;
v61(v60, v158);
v62 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v60 + 160);
cocos2d::CCSize::CCSize((cocos2d::CCSize *)v158, *((float *)this + 157), *((float *)this + 158));
v62(v60, v158);
(*(void (__fastcall **)(int, char *))(*(_DWORD *)v60 + 92))(v60, (char *)this + 636);
(*(void (__fastcall **)(_DWORD, int, int))(**((_DWORD **)this + 115) + 232))(*((_DWORD *)this + 115), v60, -1);
v63 = *((float *)this + 157);
v64 = *((float *)this + 158);
*((_DWORD *)this + 191) = v60;
cocos2d::CCSize::CCSize((cocos2d::CCSize *)v158, v63, v64);
v68 = ScrollableContentLayer::create((const cocos2d::CCSize *)v158, v65, v66, v67);
v69 = *((float *)this + 158);
v70 = *((float *)this + 160);
v71 = *((float *)this + 159) - (float)(*((float *)this + 157) * 0.5);
*((_DWORD *)this + 155) = v68;
v72 = v68;
v73 = *(void (__fastcall **)(int *, _DWORD *))(*v68 + 92);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v158, v71, v70 - (float)(v69 * 0.5));
v73(v72, v158);
v74 = *((ScrollableContentLayer **)this + 155);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v158, 2.0, 0.0);
ScrollableContentLayer::setThumbOffset(v74, (int)v158);
ScrollableContentLayer::setVirtualRows(
*((ScrollableContentLayer **)this + 155),
(int)this + 520,
1119879168,
1086324736,
1086324736);
ScrollableContentLayer::setForwardedTouchesOnly(*((_DWORD *)this + 155), 1);
(*(void (__fastcall **)(_DWORD, _DWORD, int))(**((_DWORD **)this + 115) + 232))(
*((_DWORD *)this + 115),
*((_DWORD *)this + 155),
1);
v75 = (float)(v134 - 145.0) + 22.0;
v77 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_plusBtn_001.png", v76);
(*(void (__fastcall **)(int, int))(*(_DWORD *)v77 + 80))(v77, 1056964608);
v149 = 0;
v148 = ThreadViewPopup::onShareLevel;
v78 = CCMenuItemSpriteExtra::create(v77, 0, (int)this, (int)ThreadViewPopup::onShareLevel, 0);
*((_DWORD *)this + 223) = v78;
CCMenuItemSpriteExtra::setSizeMult(v78, 1.3);
(*(void (__fastcall **)(_DWORD, _DWORD))(**((_DWORD **)this + 111) + 228))(
*((_DWORD *)this + 111),
*((_DWORD *)this + 223));
v79 = *((_DWORD *)this + 223);
v80 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v79 + 92);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v158, (float)(v133 - 220.0) + 24.0, v75);
v80(v79, v158);
v155 = 0;
v156 = 0;
v157 = 0;
std::string::__init(&v155, "easy", 4u);
v84 = EmoteSprite::createWithName((int)&v155, v81, v82, v83);
std::string::~string((int)&v155);
EmoteSprite::fitToHeight(v84, 18.0, 0.0);
v151 = 0;
v150 = ThreadViewPopup::onEmotes;
v85 = CCMenuItemSpriteExtra::create((int)v84, 0, (int)this, (int)ThreadViewPopup::onEmotes, 0);
*((_DWORD *)this + 224) = v85;
CCMenuItemSpriteExtra::setSizeMult(v85, 1.4);
(*(void (__fastcall **)(_DWORD, _DWORD))(**((_DWORD **)this + 111) + 228))(
*((_DWORD *)this + 111),
*((_DWORD *)this + 224));
v86 = *((_DWORD *)this + 224);
v87 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v86 + 92);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v158, (float)((float)(v133 - 220.0) + 27.0) + 26.0, v75);
v87(v86, v158);
cocos2d::CCRect::CCRect((cocos2d::CCRect *)v158, 0.0, 0.0, 40.0, 40.0);
v88 = cocos2d::extension::CCScale9Sprite::create("square02b_small.png", v158);
v89 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v88 + 160);
cocos2d::CCSize::CCSize((cocos2d::CCSize *)v158, 293.0, 28.0);
v89(v88, v158);
v90 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v88 + 480);
LOWORD(v158[0]) = 13405;
BYTE2(v158[0]) = 31;
v90(v88, v158);
v91 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v88 + 92);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v158, (float)((float)(v133 - 27.5) + 13.0) + 13.0, v75);
v91(v88, v158);
(*(void (__fastcall **)(_DWORD, int, _DWORD))(**((_DWORD **)this + 115) + 232))(*((_DWORD *)this + 115), v88, 0);
*((_DWORD *)this + 186) = v88;
*((float *)this + 193) = v75 - 14.0;
v93 = cocos2d::CCLabelBMFont::create((cocos2d::CCLabelBMFont *)&unk_B6B226, "chatFont.fnt", v92);
*((_DWORD *)this + 187) = v93;
(*(void (__fastcall **)(int, int))(*(_DWORD *)v93 + 80))(v93, 1053609165);
v129 = *((_DWORD *)this + 187);
v127 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v129 + 148);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v158, 1.0, 1.0);
v127(v129, v158);
(*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 187) + 512))(*((_DWORD *)this + 187), 160);
(*(void (__fastcall **)(_DWORD, _DWORD))(**((_DWORD **)this + 187) + 172))(*((_DWORD *)this + 187), 0);
(*(void (__fastcall **)(_DWORD, _DWORD, int))(**((_DWORD **)this + 115) + 232))(
*((_DWORD *)this + 115),
*((_DWORD *)this + 187),
6);
v95 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"downArrowBtn_001.png", v94);
v153 = 0;
v152 = ThreadViewPopup::onScrollToBottom;
v96 = CCMenuItemSpriteExtra::create(v95, 0, (int)this, (int)ThreadViewPopup::onScrollToBottom, 0);
*((_DWORD *)this + 188) = v96;
CCMenuItemSpriteExtra::setSizeMult(v96, 1.5);
(*(void (__fastcall **)(_DWORD, _DWORD))(**((_DWORD **)this + 111) + 228))(
*((_DWORD *)this + 111),
*((_DWORD *)this + 188));
(*(void (__fastcall **)(_DWORD, _DWORD))(**((_DWORD **)this + 188) + 172))(*((_DWORD *)this + 188), 0);
v98 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"downArrowBtn2_001.png", v97);
v154[1] = 0;
v154[0] = ThreadViewPopup::onHideKeyboard;
v99 = CCMenuItemSpriteExtra::create(v98, 0, (int)this, (int)ThreadViewPopup::onHideKeyboard, 0);
*((_DWORD *)this + 189) = v99;
CCMenuItemSpriteExtra::setSizeMult(v99, 1.5);
(*(void (__fastcall **)(_DWORD, _DWORD))(**((_DWORD **)this + 111) + 228))(
*((_DWORD *)this + 111),
*((_DWORD *)this + 189));
(*(void (__fastcall **)(_DWORD, _DWORD))(**((_DWORD **)this + 189) + 172))(*((_DWORD *)this + 189), 0);
*((_DWORD *)this + 194) = 1133281280;
v100 = CCTextInputNode::create(
(CCTextInputNode *)0x438C8000,
20.0,
"Message",
"Thonburi",
(const char *)&dword_18,
nullptr,
v125);
*((_DWORD *)this + 171) = v100;
v130 = v100;
v128 = *(void (__fastcall **)(int *, int))(*v100 + 92);
v101 = (*(int (__fastcall **)(int))(*(_DWORD *)v88 + 96))(v88);
v128(v130, v101);
v102 = CCTextInputNode::setUnicodeText(*((int **)this + 171), 1);
v103 = *((_DWORD *)this + 171);
v104 = (EmoteSprite *)(17 * EmoteSprite::maxEmotesMessage((EmoteSprite *)v102) + 500);
*(_DWORD *)(v103 + 424) = v104;
v105 = *((CCTextInputNode **)this + 171);
v106 = EmoteSprite::maxEmotesMessage(v104);
CCTextInputNode::setParseEmotes(v105, v106);
CCTextInputNode::setAllowNewlines(*((_DWORD *)this + 171), 1);
*(_DWORD *)(*((_DWORD *)this + 171) + 420) = (char *)this + 440;
LOWORD(v131) = 27843;
BYTE2(v131) = 65;
CCTextInputNode::setLabelPlaceholderColor(*((_DWORD *)this + 171), v131);
*(_BYTE *)(*((_DWORD *)this + 171) + 442) = 0;
v107 = *((_DWORD *)this + 171) + 444;
cocos2d::CCSize::CCSize((cocos2d::CCSize *)v158, 6.0, 4.0);
cocos2d::CCSize::operator=(v107, v158);
(*(void (__fastcall **)(_DWORD, _DWORD, int))(**((_DWORD **)this + 115) + 232))(
*((_DWORD *)this + 115),
*((_DWORD *)this + 171),
5);
v155 = 0;
v156 = 0;
v157 = 0;
std::string::__init(&v155, &unk_B6B226, 0);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v158, 0.0, 1.0);
v108 = (TextArea *)TextArea::create(
(int)&v155,
"chatFont.fnt",
1065353216,
1135826261,
(const cocos2d::CCPoint *)v158,
1101004800,
1,
0);
std::string::~string((int)&v155);
v109 = *(_DWORD *)v108;
*((_BYTE *)v108 + 509) = 1;
(*(void (__fastcall **)(TextArea *, int))(v109 + 80))(v108, 1061158912);
CCTextInputNode::addTextArea(*((int **)this + 171), v108);
CCTextInputNode::enableTextScroll(*((float **)this + 171));
v110 = ButtonSprite::create(
(ButtonSprite *)"Send",
(const char *)&word_2C + 1,
0,
0.55,
1,
"bigFont.fnt",
"GJ_button_01.png",
(const char *)0x41E00000,
v126);
v158[1] = 0;
v158[0] = ThreadViewPopup::onSend;
v111 = CCMenuItemSpriteExtra::create((int)v110, 0, (int)this, (int)ThreadViewPopup::onSend, 0);
*((_DWORD *)this + 169) = v111;
CCMenuItemSpriteExtra::setSizeMult(v111, 1.1);
(*(void (__fastcall **)(_DWORD, _DWORD))(**((_DWORD **)this + 111) + 228))(
*((_DWORD *)this + 111),
*((_DWORD *)this + 169));
v112 = *((_DWORD *)this + 169);
v113 = *(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v112 + 92);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v135, (float)((float)(v133 + 220.0) - 15.0) - 22.5, v75);
v113(v112, v135);
ThreadViewPopup::layoutComposeBar(this);
v115 = (cocos2d::CCObject *)cocos2d::CCArray::create(v114);
*((_DWORD *)this + 142) = v115;
v116 = (GameLevelManager *)cocos2d::CCObject::retain(v115);
v118 = *((_DWORD *)this + 141);
if ( *(int *)(v118 + 84) > 0 && !*(_BYTE *)(v118 + 136) )
{
v119 = (GJAccountManager *)GameLevelManager::sharedState(v116);
v120 = GJAccountManager::sharedState(v119);
v121 = GameLevelManager::userInfoForAccountID(
(cocos2d::CCDictionary **)v119,
*(_DWORD *)(v120 + 280) - *(_DWORD *)(v120 + 284));
if ( v121 )
{
v122 = *(_DWORD *)(v121 + 524) - *(_DWORD *)(*((_DWORD *)this + 141) + 84);
*(_DWORD *)(v121 + 524) = v122 & ~(v122 >> 31);
}
}
*(_DWORD *)(*((_DWORD *)this + 141) + 84) = 0;
refreshed = ThreadViewPopup::refreshLockNotice(this, v117, nullptr);
*(_DWORD *)(GameLevelManager::sharedState(refreshed) + 840) = (char *)this + 524;
if ( !*((_BYTE *)this + 599)
|| (v124 = *((_QWORD *)this + 75), v124 < 1)
|| (result = ThreadViewPopup::openAt(this, v124)) == 0 )
{
ThreadViewPopup::showLoading(this);
ThreadViewPopup::requestMessages(this, 0, 0);
return v5;
}
return result;
}