//
// ThreadViewPopup::init from 0xc86ae0 to 0xc87b70 (4240 bytes)
//
// 3 xrefs:
// > ThreadViewPopup::create @ 0xc87e8c
// > ThreadViewPopup::createModView @ 0xc88c94
// > ??> @ 0x519e8
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 13:05:42 +0000
//
__int64 __fastcall ThreadViewPopup::init(ThreadViewPopup *this, GJMessageThread *a2)
{
unsigned __int8 v4; // w0
unsigned int v5; // w23
__int64 v7; // x2
cocos2d::CCDirector *v8; // x0
cocos2d::CCDirector *v9; // x0
cocos2d::CCLayer *v10; // x0
__int64 v11; // x0
__int64 v12; // x24
void (__fastcall *v13)(__int64, _QWORD *); // x25
_BYTE *v14; // x0
char v15; // w1
_BYTE *v16; // x2
cocos2d::CCLabelBMFont *v17; // x0
__int64 v18; // x0
__int64 v19; // x24
void (__fastcall *v20)(__int64, _QWORD *); // x26
const char *v21; // x2
cocos2d::CCMenu *v22; // x0
__int64 v23; // x0
__int64 v24; // x22
__int64 v25; // x22
void (__fastcall *v26)(__int64, _QWORD *); // x24
const char *v27; // x2
__int64 v28; // x22
__int64 v29; // x22
void (__fastcall *v30)(__int64, _QWORD *); // x24
const char *v31; // x1
__int64 v32; // x22
__int64 v33; // x22
void (__fastcall *v34)(__int64, _QWORD *); // x24
float v35; // s2
const char *v36; // x1
__int64 v37; // x22
__int64 v38; // x22
void (__fastcall *v39)(__int64, _QWORD *); // x27
float v40; // s2
void (__fastcall *v41)(__int64, bool); // x27
bool v42; // w0
float v43; // s0
float v44; // s3
float v45; // s2
__int64 v46; // x22
void (__fastcall *v47)(__int64, _QWORD *); // x2
void (__fastcall *v48)(__int64, _QWORD *); // x27
__int64 v49; // x22
float v50; // s3
void (__fastcall *v51)(__int64, _QWORD *); // x26
ScrollableContentLayer *v52; // x22
float v53; // s8
const char *v54; // x1
__int64 v55; // x22
__int64 v56; // x0
__int64 v57; // x22
void (__fastcall *v58)(__int64, _QWORD *); // x26
cocos2d::CCSprite *v59; // x22
long double v60; // q1
__int64 v61; // x0
__int64 v62; // x22
void (__fastcall *v63)(__int64, _QWORD *); // x27
__int64 v64; // x22
void (__fastcall *v65)(__int64, _QWORD *); // x27
void (__fastcall *v66)(__int64, _QWORD *); // x2
void (__fastcall *v67)(__int64, _QWORD *); // x27
const char *v68; // x2
__int64 v69; // x0
__int64 v70; // x28
const char *v71; // x1
__int64 v72; // x0
__int64 v73; // x0
const char *v74; // x1
__int64 v75; // x0
__int64 v76; // x0
const char *v77; // x4
__int64 v78; // x0
__int64 v79; // x28
__int64 v80; // x0
__int64 (__fastcall *v81)(__int64); // x1
void (__fastcall *v82)(__int64, __int64); // x22
__int64 v83; // x0
__int64 *v84; // x0
__int64 v85; // x22
EmoteSprite *v86; // x0
CCTextInputNode *v87; // x22
int v88; // w0
__int64 v89; // x22
long double v90; // q0
TextArea *v91; // x22
__int64 v92; // x1
const char *v93; // x6
__int64 v94; // x0
__int64 v95; // x0
__int64 v96; // x22
void (__fastcall *v97)(__int64, _QWORD *); // x24
cocos2d::CCArray *v98; // x0
cocos2d::CCObject *v99; // x0
const char *v100; // x2
__int64 v101; // x1
GameLevelManager *refreshed; // x0
const char *v103; // x1
unsigned __int8 v104; // w0
char v105; // w1
__int64 v106; // x22
__int64 v107; // x22
void (__fastcall *v108)(__int64, _QWORD *); // x24
__int64 v109; // x26
void (__fastcall *v110)(__int64, _QWORD *); // x27
__int64 v111; // x0
void (__fastcall *v112)(__int64, _QWORD *); // x2
__int64 v113; // x26
void (__fastcall *v114)(__int64, _QWORD *); // x24
GJAccountManager *v115; // x20
__int64 v116; // x0
__int64 v117; // x0
int v118; // w1
void (__fastcall *v119)(__int64, _QWORD *); // [xsp+98h] [xbp+98h]
__int64 v120; // [xsp+A8h] [xbp+A8h] BYREF
float v121; // [xsp+B0h] [xbp+B0h] BYREF
float v122; // [xsp+B4h] [xbp+B4h]
__int64 v123; // [xsp+B8h] [xbp+B8h] BYREF
_QWORD v124[2]; // [xsp+C0h] [xbp+C0h] BYREF
__int64 v125; // [xsp+D0h] [xbp+D0h] BYREF
__int64 v126; // [xsp+D8h] [xbp+D8h]
void *v127; // [xsp+E0h] [xbp+E0h]
if ( !a2 )
return 0;
LODWORD(v124[0]) = -1778384896;
v4 = cocos2d::CCLayerColor::initWithColor(this, v124);
v5 = v4;
if ( !v4 )
return 0;
*((_QWORD *)this + 94) = a2;
cocos2d::CCObject::retain(a2);
v7 = *(_QWORD *)this;
*((_DWORD *)this + 196) = *(_DWORD *)(*((_QWORD *)this + 94) + 112LL);
(*(void (__fastcall **)(ThreadViewPopup *, __int64))(v7 + 1168))(this, 4294967190LL);
FLAlertLayer::incrementForcePrio(this);
*((_BYTE *)this + 596) = 1;
(*(void (__fastcall **)(ThreadViewPopup *, __int64))(*(_QWORD *)this + 1000LL))(this, 1);
v8 = (cocos2d::CCDirector *)(*(__int64 (__fastcall **)(ThreadViewPopup *, __int64))(*(_QWORD *)this + 1072LL))(
this,
1);
v9 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v8);
cocos2d::CCDirector::getWinSize(&v120, v9);
v10 = (cocos2d::CCLayer *)cocos2d::CCPoint::CCPoint(
(cocos2d::CCPoint *)&v121,
*(float *)&v120 * 0.5,
*((float *)&v120 + 1) * 0.5);
v11 = cocos2d::CCLayer::create(v10);
*((_QWORD *)this + 73) = v11;
(*(void (__fastcall **)(ThreadViewPopup *, __int64))(*(_QWORD *)this + 456LL))(this, v11);
cocos2d::CCRect::CCRect((cocos2d::CCRect *)v124, 0.0, 0.0, 80.0, 80.0);
v12 = cocos2d::extension::CCScale9Sprite::create("GJ_square01.png", v124);
v13 = *(void (__fastcall **)(__int64, _QWORD *))(*(_QWORD *)v12 + 320LL);
cocos2d::CCSize::CCSize((cocos2d::CCSize *)v124, 440.0, 290.0);
v13(v12, v124);
(*(void (__fastcall **)(__int64, float *))(*(_QWORD *)v12 + 184LL))(v12, &v121);
(*(void (__fastcall **)(_QWORD, __int64, __int64))(**((_QWORD **)this + 73) + 464LL))(
*((_QWORD *)this + 73),
v12,
4294967294LL);
v14 = *((_BYTE **)this + 94);
if ( !v14[264] )
{
v105 = v14[88];
v16 = v14 + 88;
v17 = (cocos2d::CCLabelBMFont *)(v14 + 89);
if ( (v105 & 1) == 0 )
goto LABEL_7;
LABEL_28:
v17 = *((cocos2d::CCLabelBMFont **)v16 + 2);
goto LABEL_7;
}
v15 = v14[64];
v16 = v14 + 64;
v17 = (cocos2d::CCLabelBMFont *)(v14 + 65);
if ( (v15 & 1) != 0 )
goto LABEL_28;
LABEL_7:
v18 = cocos2d::CCLabelBMFont::create(v17, "goldFont.fnt", v16);
*((_QWORD *)this + 111) = v18;
(*(void (__fastcall **)(__int64, float))(*(_QWORD *)v18 + 160LL))(v18, 0.7);
v19 = *((_QWORD *)this + 111);
v20 = *(void (__fastcall **)(__int64, _QWORD *))(*(_QWORD *)v19 + 184LL);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v124, v121, (float)(v122 + 145.0) - 21.0);
v20(v19, v124);
(*(void (__fastcall **)(_QWORD, _QWORD))(**((_QWORD **)this + 73) + 456LL))(
*((_QWORD *)this + 73),
*((_QWORD *)this + 111));
ThreadViewPopup::layoutTitleRow(this);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v124, (float)(v121 - 220.0) + 38.0, (float)(v122 + 145.0) - 21.0);
cocos2d::CCPoint::operator=((char *)this + 880, v124);
if ( *(_BYTE *)(*((_QWORD *)this + 94) + 264LL) )
{
v109 = cocos2d::CCLabelBMFont::create((cocos2d::CCLabelBMFont *)&byte_11B8890, "bigFont.fnt", v21);
*((_QWORD *)this + 108) = v109;
v110 = *(void (__fastcall **)(__int64, _QWORD *))(*(_QWORD *)v109 + 296LL);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v124, 0.0, 0.5);
v110(v109, v124);
(*(void (__fastcall **)(_QWORD, float))(**((_QWORD **)this + 108) + 160LL))(*((_QWORD *)this + 108), 0.42);
v111 = *((_QWORD *)this + 108);
v112 = *(void (__fastcall **)(__int64, _QWORD *))(*(_QWORD *)v111 + 1072LL);
LOWORD(v124[0]) = -11521;
BYTE2(v124[0]) = 60;
v112(v111, v124);
v113 = *((_QWORD *)this + 108);
v114 = *(void (__fastcall **)(__int64, _QWORD *))(*(_QWORD *)v113 + 184LL);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v123, 3.0, -3.0);
cocos2d::CCPoint::operator+(v124, (char *)this + 880);
v114(v113, v124);
(*(void (__fastcall **)(_QWORD, _QWORD))(**((_QWORD **)this + 73) + 456LL))(
*((_QWORD *)this + 73),
*((_QWORD *)this + 108));
ThreadViewPopup::refreshDMSubLabel((__int64)this);
}
v22 = (cocos2d::CCMenu *)ThreadViewPopup::removedView(this);
if ( (_BYTE)v22 )
{
*((_DWORD *)this + 235) = 0;
}
else
{
v22 = (cocos2d::CCMenu *)*((unsigned __int8 *)this + 791);
if ( !*((_BYTE *)this + 791) )
v22 = (cocos2d::CCMenu *)cocos2d::CCNode::schedule(
this,
ThreadViewPopup::onAutoRefresh,
0,
*((float *)this + 235));
}
v23 = cocos2d::CCMenu::create(v22);
*((_QWORD *)this + 69) = v23;
(*(void (__fastcall **)(_QWORD, __int64, __int64))(**((_QWORD **)this + 73) + 464LL))(*((_QWORD *)this + 73), v23, 10);
(*(void (__fastcall **)(_QWORD, void *))(**((_QWORD **)this + 69) + 184LL))(*((_QWORD *)this + 69), &unk_155EE20);
*((_DWORD *)this + 160) = -1;
v24 = cocos2d::CCSprite::createWithSpriteFrameName(
(cocos2d::CCSprite *)"GJ_closeBtn_001.png",
(const char *)0xFFFFFFFFLL);
(*(void (__fastcall **)(__int64, float))(*(_QWORD *)v24 + 160LL))(v24, 0.8);
v25 = CCMenuItemSpriteExtra::create(v24, 0, (__int64)this, (__int64)ThreadViewPopup::onClose, 0);
CCMenuItemSpriteExtra::setSizeMult(v25, 1.5);
(*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 69) + 456LL))(*((_QWORD *)this + 69), v25);
v26 = *(void (__fastcall **)(__int64, _QWORD *))(*(_QWORD *)v25 + 184LL);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v124, (float)(v121 - 220.0) + 8.0, (float)(v122 + 145.0) - 8.0);
v26(v25, v124);
v28 = cocos2d::CCLabelBMFont::create((cocos2d::CCLabelBMFont *)"...", "bigFont.fnt", v27);
(*(void (__fastcall **)(__int64, float))(*(_QWORD *)v28 + 160LL))(v28, 0.55);
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v28 + 1024LL))(v28, 4294967180LL);
v29 = CCMenuItemSpriteExtra::create(v28, 0, (__int64)this, (__int64)ThreadViewPopup::onThreadOptions, 0);
CCMenuItemSpriteExtra::setSizeMult(v29, 1.6);
(*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 69) + 456LL))(*((_QWORD *)this + 69), v29);
v30 = *(void (__fastcall **)(__int64, _QWORD *))(*(_QWORD *)v29 + 184LL);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v124, (float)(v121 + 220.0) - 20.0, (float)(v122 + 145.0) - 21.0);
v30(v29, v124);
if ( !*(_BYTE *)(*((_QWORD *)this + 94) + 264LL) )
{
v106 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"sideBtn_config_001.png", v31);
(*(void (__fastcall **)(__int64, float))(*(_QWORD *)v106 + 160LL))(v106, 0.85);
v107 = CCMenuItemSpriteExtra::create(v106, 0, (__int64)this, (__int64)ThreadViewPopup::onShowDescription, 0);
CCMenuItemSpriteExtra::setSizeMult(v107, 1.2);
(*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 69) + 456LL))(*((_QWORD *)this + 69), v107);
v108 = *(void (__fastcall **)(__int64, _QWORD *))(*(_QWORD *)v107 + 184LL);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v124, (float)(v121 + 220.0) - 44.0, (float)(v122 + 145.0) - 21.0);
v108(v107, v124);
}
v32 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_updateBtn_001.png", v31);
(*(void (__fastcall **)(__int64, float))(*(_QWORD *)v32 + 160LL))(v32, 0.5);
v33 = CCMenuItemSpriteExtra::create(v32, 0, (__int64)this, (__int64)ThreadViewPopup::onRefresh, 0);
CCMenuItemSpriteExtra::setSizeMult(v33, 1.2);
(*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 69) + 456LL))(*((_QWORD *)this + 69), v33);
v34 = *(void (__fastcall **)(__int64, _QWORD *))(*(_QWORD *)v33 + 184LL);
if ( *(_BYTE *)(*((_QWORD *)this + 94) + 264LL) )
v35 = 44.0;
else
v35 = 72.0;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v124, (float)(v121 + 220.0) - v35, (float)(v122 + 145.0) - 21.0);
v34(v33, v124);
v37 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"sideBtn_search_001.png", v36);
(*(void (__fastcall **)(__int64, float))(*(_QWORD *)v37 + 160LL))(v37, 0.85);
v38 = CCMenuItemSpriteExtra::create(v37, 0, (__int64)this, (__int64)ThreadViewPopup::onSearch, 0);
CCMenuItemSpriteExtra::setSizeMult(v38, 1.2);
(*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 69) + 456LL))(*((_QWORD *)this + 69), v38);
v39 = *(void (__fastcall **)(__int64, _QWORD *))(*(_QWORD *)v38 + 184LL);
if ( *(_BYTE *)(*((_QWORD *)this + 94) + 264LL) )
v40 = 72.0;
else
v40 = 100.0;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v124, (float)(v121 + 220.0) - v40, (float)(v122 + 145.0) - 21.0);
v39(v38, v124);
v41 = *(void (__fastcall **)(__int64, bool))(*(_QWORD *)v38 + 344LL);
v42 = ThreadViewPopup::removedView(this);
v41(v38, !v42);
ThreadViewPopup::buildMemberButton(this);
v43 = v121;
v44 = (float)(v122 - 145.0) + 46.0;
v45 = (float)(v122 + 145.0) - 40.0;
*((float *)this + 267) = v45;
*((_DWORD *)this + 210) = 1137508352;
*((float *)this + 211) = v45 - v44;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v124, v43, (float)(v45 + v44) * 0.5);
cocos2d::CCPoint::operator=((char *)this + 848, v124);
cocos2d::CCRect::CCRect((cocos2d::CCRect *)v124, 0.0, 0.0, 40.0, 40.0);
v46 = cocos2d::extension::CCScale9Sprite::create("square02_small.png", v124);
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v46 + 912LL))(v46, 80);
v47 = *(void (__fastcall **)(__int64, _QWORD *))(*(_QWORD *)v46 + 960LL);
LOWORD(v124[0]) = 0;
BYTE2(v124[0]) = 0;
v47(v46, v124);
v48 = *(void (__fastcall **)(__int64, _QWORD *))(*(_QWORD *)v46 + 320LL);
cocos2d::CCSize::CCSize((cocos2d::CCSize *)v124, *((float *)this + 210), *((float *)this + 211));
v48(v46, v124);
(*(void (__fastcall **)(__int64, char *))(*(_QWORD *)v46 + 184LL))(v46, (char *)this + 848);
(*(void (__fastcall **)(_QWORD, __int64, __int64))(**((_QWORD **)this + 73) + 464LL))(
*((_QWORD *)this + 73),
v46,
0xFFFFFFFFLL);
*((_QWORD *)this + 131) = v46;
cocos2d::CCSize::CCSize((cocos2d::CCSize *)v124, *((float *)this + 210), *((float *)this + 211));
v49 = ScrollableContentLayer::create((const cocos2d::CCSize *)v124);
v50 = *((float *)this + 210);
*((_QWORD *)this + 103) = v49;
v51 = *(void (__fastcall **)(__int64, _QWORD *))(*(_QWORD *)v49 + 184LL);
cocos2d::CCPoint::CCPoint(
(cocos2d::CCPoint *)v124,
*((float *)this + 212) - (float)(v50 * 0.5),
*((float *)this + 213) - (float)(*((float *)this + 211) * 0.5));
v51(v49, v124);
v52 = *((ScrollableContentLayer **)this + 103);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v124, 2.0, 0.0);
ScrollableContentLayer::setThumbOffset(v52, (__int64)v124);
ScrollableContentLayer::setVirtualRows(*((_QWORD *)this + 103), (__int64)this + 664, 96.0, 6.0, 6.0);
ScrollableContentLayer::setForwardedTouchesOnly(*((_QWORD *)this + 103), 1);
(*(void (__fastcall **)(_QWORD, _QWORD, __int64))(**((_QWORD **)this + 73) + 464LL))(
*((_QWORD *)this + 73),
*((_QWORD *)this + 103),
1);
v53 = (float)(v122 - 145.0) + 22.0;
v55 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_plusBtn_001.png", v54);
(*(void (__fastcall **)(__int64, float))(*(_QWORD *)v55 + 160LL))(v55, 0.5);
v56 = CCMenuItemSpriteExtra::create(v55, 0, (__int64)this, (__int64)ThreadViewPopup::onShareLevel, 0);
*((_QWORD *)this + 152) = v56;
CCMenuItemSpriteExtra::setSizeMult(v56, 1.3);
(*(void (__fastcall **)(_QWORD, _QWORD))(**((_QWORD **)this + 69) + 456LL))(
*((_QWORD *)this + 69),
*((_QWORD *)this + 152));
v57 = *((_QWORD *)this + 152);
v58 = *(void (__fastcall **)(__int64, _QWORD *))(*(_QWORD *)v57 + 184LL);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v124, (float)(v121 - 220.0) + 24.0, v53);
v58(v57, v124);
v125 = 0;
v126 = 0;
v127 = nullptr;
std::string::__init(&v125, "easy", 4u);
v59 = EmoteSprite::createWithName((char *)&v125);
if ( (v125 & 1) != 0 )
operator delete(v127);
LODWORD(v60) = 0;
EmoteSprite::fitToHeight(v59, 18.0, v60);
v61 = CCMenuItemSpriteExtra::create((__int64)v59, 0, (__int64)this, (__int64)ThreadViewPopup::onEmotes, 0);
*((_QWORD *)this + 153) = v61;
CCMenuItemSpriteExtra::setSizeMult(v61, 1.4);
(*(void (__fastcall **)(_QWORD, _QWORD))(**((_QWORD **)this + 69) + 456LL))(
*((_QWORD *)this + 69),
*((_QWORD *)this + 153));
v62 = *((_QWORD *)this + 153);
v63 = *(void (__fastcall **)(__int64, _QWORD *))(*(_QWORD *)v62 + 184LL);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v124, (float)((float)(v121 - 220.0) + 27.0) + 26.0, v53);
v63(v62, v124);
cocos2d::CCRect::CCRect((cocos2d::CCRect *)v124, 0.0, 0.0, 40.0, 40.0);
v64 = cocos2d::extension::CCScale9Sprite::create("square02b_small.png", v124);
v65 = *(void (__fastcall **)(__int64, _QWORD *))(*(_QWORD *)v64 + 320LL);
cocos2d::CCSize::CCSize((cocos2d::CCSize *)v124, 293.0, 28.0);
v65(v64, v124);
v66 = *(void (__fastcall **)(__int64, _QWORD *))(*(_QWORD *)v64 + 960LL);
LOWORD(v124[0]) = 13405;
BYTE2(v124[0]) = 31;
v66(v64, v124);
v67 = *(void (__fastcall **)(__int64, _QWORD *))(*(_QWORD *)v64 + 184LL);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v124, (float)((float)(v121 - 27.5) + 13.0) + 13.0, v53);
v67(v64, v124);
(*(void (__fastcall **)(_QWORD, __int64, _QWORD))(**((_QWORD **)this + 73) + 464LL))(*((_QWORD *)this + 73), v64, 0);
*((_QWORD *)this + 126) = v64;
*((float *)this + 265) = v53 - 14.0;
v69 = cocos2d::CCLabelBMFont::create((cocos2d::CCLabelBMFont *)&byte_11B8890, "chatFont.fnt", v68);
*((_QWORD *)this + 127) = v69;
(*(void (__fastcall **)(__int64, float))(*(_QWORD *)v69 + 160LL))(v69, 0.4);
v70 = *((_QWORD *)this + 127);
v119 = *(void (__fastcall **)(__int64, _QWORD *))(*(_QWORD *)v70 + 296LL);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v124, 1.0, 1.0);
v119(v70, v124);
(*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 127) + 1024LL))(*((_QWORD *)this + 127), 4294967200LL);
(*(void (__fastcall **)(_QWORD, _QWORD))(**((_QWORD **)this + 127) + 344LL))(*((_QWORD *)this + 127), 0);
(*(void (__fastcall **)(_QWORD, _QWORD, __int64))(**((_QWORD **)this + 73) + 464LL))(
*((_QWORD *)this + 73),
*((_QWORD *)this + 127),
6);
v72 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"downArrowBtn_001.png", v71);
v73 = CCMenuItemSpriteExtra::create(v72, 0, (__int64)this, (__int64)ThreadViewPopup::onScrollToBottom, 0);
*((_QWORD *)this + 128) = v73;
CCMenuItemSpriteExtra::setSizeMult(v73, 1.5);
(*(void (__fastcall **)(_QWORD, _QWORD))(**((_QWORD **)this + 69) + 456LL))(
*((_QWORD *)this + 69),
*((_QWORD *)this + 128));
(*(void (__fastcall **)(_QWORD, _QWORD))(**((_QWORD **)this + 128) + 344LL))(*((_QWORD *)this + 128), 0);
v75 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"downArrowBtn2_001.png", v74);
v76 = CCMenuItemSpriteExtra::create(v75, 0, (__int64)this, (__int64)ThreadViewPopup::onHideKeyboard, 0);
*((_QWORD *)this + 129) = v76;
CCMenuItemSpriteExtra::setSizeMult(v76, 1.5);
(*(void (__fastcall **)(_QWORD, _QWORD))(**((_QWORD **)this + 69) + 456LL))(
*((_QWORD *)this + 69),
*((_QWORD *)this + 129));
(*(void (__fastcall **)(_QWORD, _QWORD))(**((_QWORD **)this + 129) + 344LL))(*((_QWORD *)this + 129), 0);
*((_DWORD *)this + 266) = 1133281280;
v78 = CCTextInputNode::create(
(CCTextInputNode *)"Message",
281.0,
20.0,
"Thonburi",
(const char *)&off_18,
nullptr,
v77);
*((_QWORD *)this + 116) = v78;
v79 = v78;
v80 = v64;
v81 = *(__int64 (__fastcall **)(__int64))(*(_QWORD *)v64 + 192LL);
v82 = *(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v79 + 184LL);
v83 = v81(v80);
v82(v79, v83);
v84 = CCTextInputNode::setUnicodeText(*((__int64 **)this + 116), 1);
v85 = *((_QWORD *)this + 116);
v86 = (EmoteSprite *)(17 * (unsigned int)EmoteSprite::maxEmotesMessage((EmoteSprite *)v84) + 500);
*(_DWORD *)(v85 + 592) = (_DWORD)v86;
v87 = *((CCTextInputNode **)this + 116);
v88 = EmoteSprite::maxEmotesMessage(v86);
CCTextInputNode::setParseEmotes(v87, v88);
CCTextInputNode::setAllowNewlines(*((_QWORD *)this + 116), 1);
*(_QWORD *)(*((_QWORD *)this + 116) + 584LL) = (char *)this + 544;
LOWORD(v123) = 27843;
BYTE2(v123) = 65;
CCTextInputNode::setLabelPlaceholderColor(*((_QWORD *)this + 116), v123);
*(_BYTE *)(*((_QWORD *)this + 116) + 626LL) = 0;
v89 = *((_QWORD *)this + 116);
cocos2d::CCSize::CCSize((cocos2d::CCSize *)v124, 6.0, 4.0);
*(__n128 *)&v90 = cocos2d::CCSize::operator=(v89 + 628, v124);
(*(void (__fastcall **)(_QWORD, _QWORD, __int64, long double))(**((_QWORD **)this + 73) + 464LL))(
*((_QWORD *)this + 73),
*((_QWORD *)this + 116),
5,
v90);
v125 = 0;
v126 = 0;
v127 = nullptr;
std::string::__init(&v125, &byte_11B8890, 0);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v124, 0.0, 1.0);
v91 = (TextArea *)TextArea::create(
(char *)&v125,
"chatFont.fnt",
(const cocos2d::CCPoint *)v124,
1,
0,
1.0,
358.67,
20.0);
if ( (v125 & 1) != 0 )
operator delete(v127);
v92 = *(_QWORD *)v91;
*((_BYTE *)v91 + 597) = 1;
(*(void (__fastcall **)(TextArea *, float))(v92 + 160))(v91, 0.75);
CCTextInputNode::addTextArea(*((CCTextInputNode **)this + 116), v91);
CCTextInputNode::enableTextScroll(*((CCTextInputNode **)this + 116));
v94 = ButtonSprite::create(
(ButtonSprite *)"Send",
(const char *)&qword_28 + 5,
0,
1,
0.55,
"bigFont.fnt",
"GJ_button_01.png",
v93,
28.0);
v95 = CCMenuItemSpriteExtra::create(v94, 0, (__int64)this, (__int64)ThreadViewPopup::onSend, 0);
*((_QWORD *)this + 114) = v95;
CCMenuItemSpriteExtra::setSizeMult(v95, 1.1);
(*(void (__fastcall **)(_QWORD, _QWORD))(**((_QWORD **)this + 69) + 456LL))(
*((_QWORD *)this + 69),
*((_QWORD *)this + 114));
v96 = *((_QWORD *)this + 114);
v97 = *(void (__fastcall **)(__int64, _QWORD *))(*(_QWORD *)v96 + 184LL);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v124, (float)((float)(v121 + 220.0) - 15.0) - 22.5, v53);
v97(v96, v124);
v98 = (cocos2d::CCArray *)ThreadViewPopup::layoutComposeBar(this);
v99 = (cocos2d::CCObject *)cocos2d::CCArray::create(v98);
*((_QWORD *)this + 95) = v99;
cocos2d::CCObject::retain(v99);
v101 = *((_QWORD *)this + 94);
if ( *(int *)(v101 + 112) > 0 && !*(_BYTE *)(v101 + 204) )
{
v115 = (GJAccountManager *)GameLevelManager::sharedState((GameLevelManager *)*(unsigned __int8 *)(v101 + 204));
v116 = GJAccountManager::sharedState(v115);
v117 = GameLevelManager::userInfoForAccountID(
(cocos2d::CCDictionary **)v115,
*(_DWORD *)(v116 + 352) - *(_DWORD *)(v116 + 356));
if ( v117 )
{
v100 = (const char *)*(unsigned int *)(*((_QWORD *)this + 94) + 112LL);
v118 = *(_DWORD *)(v117 + 692) - (_DWORD)v100;
if ( v118 < 0 )
v118 = 0;
*(_DWORD *)(v117 + 692) = v118;
}
v101 = *((_QWORD *)this + 94);
}
*(_DWORD *)(v101 + 112) = 0;
refreshed = (GameLevelManager *)ThreadViewPopup::refreshLockNotice(this, v101, v100);
*(_QWORD *)(GameLevelManager::sharedState(refreshed) + 1264) = (char *)this + 672;
if ( *((_BYTE *)this + 791)
&& (v103 = *((const char **)this + 99), (__int64)v103 > 0)
&& (v104 = ThreadViewPopup::openAt(this, v103)) != 0 )
{
return v104;
}
else
{
ThreadViewPopup::showLoading(this);
ThreadViewPopup::requestMessages(this, 0, 0);
}
return v5;
}