//
// ThreadViewPopup::mountVirtualRow from 0xc8b13c to 0xc8c35c (4640 bytes)
//
// 3 xrefs:
// > `non-virtual thunk to'ThreadViewPopup::mountVirtualRow @ 0xc8c398
// > ??> @ 0x70b70
// > ??> @ 0x14ecae0
//
// 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:45 +0000
//
__int64 __fastcall ThreadViewPopup::mountVirtualRow(
ThreadViewPopup *this,
int a2,
cocos2d::CCNode *a3,
cocos2d::CCMenu *a4,
__int64 a5,
__int64 a6,
const char *a7)
{
__int64 v9; // x0
const char *v12; // x1
const char *v13; // x28
GJAccountManager *v14; // x0
float v15; // s8
char *v16; // x0
__int64 v17; // x0
__int64 v18; // x23
float v19; // s0
void (__fastcall *v20)(__int64, void **); // x19
__int64 v22; // x2
int v23; // w27
__int64 v24; // x25
__int64 v25; // x0
const char *v26; // x1
int v27; // w1
__int64 v28; // x28
SimplePlayer *v29; // x27
GameManager *v30; // x0
unsigned __int64 v31; // x0
GameManager *v32; // x0
GameManager *v33; // x0
unsigned __int64 v34; // x0
void (__fastcall *v35)(SimplePlayer *, void **); // x28
const char *v36; // x2
cocos2d::CCLabelBMFont *v37; // x0
cocos2d::CCLabelBMFont *v38; // x28
void (__fastcall *v39)(cocos2d::CCLabelBMFont *, void **); // x2
float v40; // s9
float v41; // s9
__int64 v42; // x28
void (__fastcall *v43)(__int64, void **); // x26
float v44; // s9
__int64 v45; // x26
void (__fastcall *v46)(__int64, float); // x27
__int64 v47; // x0
float v48; // s11
float v49; // s11
void (__fastcall *v50)(__int64, void **); // x27
struct tm *v51; // x0
int tm_hour; // w3
unsigned __int64 v53; // x1
const char *v54; // x3
cocos2d::CCString *v55; // x0
size_t v56; // x0
const char *v57; // x2
cocos2d::CCLabelBMFont *v58; // x0
__int64 v59; // x26
void (__fastcall *v60)(__int64, void **); // x27
void (__fastcall *v61)(__int64, void **); // x27
__int64 v62; // x28
float v63; // s10
float v64; // s9
EmoteSprite *v65; // x0
int v66; // w0
__int64 v67; // x26
void (__fastcall *v68)(__int64, __int64 *); // x28
void (__fastcall *v69)(__int64, __int64 *); // x28
const char *v70; // x2
__int64 v71; // x22
__int64 v72; // x23
float v73; // s10
void (__fastcall *v74)(__int64, __int64 *); // x24
float v75; // s10
__int64 v76; // x0
const char *v77; // x1
cocos2d::CCLabelBMFont *v78; // x0
cocos2d::CCLabelBMFont *v79; // x21
float v80; // s0
void (__fastcall *v81)(cocos2d::CCLabelBMFont *, void **); // x19
float v82; // s0
float v83; // s1
__int64 v84; // x0
__int64 v85; // x24
void (__fastcall *v86)(__int64, void **); // x25
float v87; // s8
const char *v88; // x6
__int64 v89; // x0
__int64 v90; // x23
float v91; // s0
void (__fastcall *v92)(__int64, void **); // x19
const char *v93; // x1
cocos2d::CCString *v94; // x0
cocos2d::CCLabelBMFont *CString; // x0
const char *v96; // x2
float v97; // s10
cocos2d::CCNode *v98; // x26
float v99; // s9
float *v100; // x0
float v101; // s9
__int64 v102; // x0
void (__fastcall *v103)(cocos2d::CCNode *, void **); // x2
unsigned __int8 v104; // w1
cocos2d::CCSequence *v105; // x24
cocos2d::CCFiniteTimeAction *v106; // x0
cocos2d::CCAction *v107; // x0
cocos2d::CCSprite *v108; // x23
__int64 v109; // x23
float v110; // s10
void (__fastcall *v111)(__int64, __int64 *); // x19
float *v112; // x0
__int64 v113; // x21
float v114; // s9
void (__fastcall *v115)(__int64, float); // x25
float *v116; // x0
void (__fastcall *v117)(__int64, void **); // x2
float v118; // s0
void (__fastcall *v119)(__int64, void **); // x19
const char *v120; // x2
__int64 v121; // x23
void (__fastcall *v122)(__int64, __int64 *); // x3
void (__fastcall *v123)(__int64, __int64 *); // x24
void (__fastcall *v124)(__int64, __int64 *); // x24
float v125; // s0
void (__fastcall *v126)(SimplePlayer *, void **); // x3
__int64 v127; // [xsp+80h] [xbp+80h]
GameManager *v128; // [xsp+88h] [xbp+88h]
int v129; // [xsp+94h] [xbp+94h]
unsigned int v130; // [xsp+94h] [xbp+94h]
char v131; // [xsp+98h] [xbp+98h]
char *v132; // [xsp+98h] [xbp+98h]
char *v133; // [xsp+98h] [xbp+98h]
char *v134; // [xsp+98h] [xbp+98h]
char *v135; // [xsp+98h] [xbp+98h]
char *v136; // [xsp+98h] [xbp+98h]
__int64 v137; // [xsp+A8h] [xbp+A8h]
__int64 v138; // [xsp+B0h] [xbp+B0h] BYREF
void *v139; // [xsp+B8h] [xbp+B8h] BYREF
char *v140; // [xsp+C0h] [xbp+C0h]
__int64 v141; // [xsp+C8h] [xbp+C8h]
__int64 v142; // [xsp+D0h] [xbp+D0h] BYREF
size_t v143; // [xsp+D8h] [xbp+D8h]
void *v144; // [xsp+E0h] [xbp+E0h]
__int64 v145; // [xsp+E8h] [xbp+E8h] BYREF
size_t v146; // [xsp+F0h] [xbp+F0h]
cocos2d::CCLabelBMFont *v147; // [xsp+F8h] [xbp+F8h]
__int64 v148; // [xsp+100h] [xbp+100h] BYREF
size_t v149; // [xsp+108h] [xbp+108h]
void *v150; // [xsp+110h] [xbp+110h]
v9 = 56LL * a2;
v12 = *((const char **)this + 87);
v13 = &v12[v9];
v14 = (GJAccountManager *)*(unsigned int *)&v12[v9];
v15 = *((float *)v13 + 3);
switch ( (_DWORD)v14 )
{
case 0:
if ( *((_BYTE *)this + 1104) )
v16 = "More results";
else
v16 = "Load earlier";
v17 = ButtonSprite::create(
(ButtonSprite *)v16,
(const char *)&qword_58 + 2,
0,
1,
0.4,
"bigFont.fnt",
"GJ_button_05.png",
a7,
20.0);
v18 = CCMenuItemSpriteExtra::create(v17, 0, (__int64)this, (__int64)ThreadViewPopup::onLoadEarlier, 0);
CCMenuItemSpriteExtra::setSizeMult(v18, 1.1);
(*(void (__fastcall **)(cocos2d::CCMenu *, __int64))(*(_QWORD *)a4 + 456LL))(a4, v18);
v19 = *((float *)this + 210) * 0.5;
v20 = *(void (__fastcall **)(__int64, void **))(*(_QWORD *)v18 + 184LL);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v139, v19, v15 - 12.0);
v20(v18, &v139);
return _stack_chk_guard;
case 5:
v84 = ButtonSprite::create(
(ButtonSprite *)"Load newer",
(const char *)&qword_58 + 2,
0,
1,
0.4,
"bigFont.fnt",
"GJ_button_05.png",
a7,
20.0);
v85 = CCMenuItemSpriteExtra::create(v84, 0, (__int64)this, (__int64)ThreadViewPopup::onLoadNewer, 0);
CCMenuItemSpriteExtra::setSizeMult(v85, 1.1);
(*(void (__fastcall **)(cocos2d::CCMenu *, __int64))(*(_QWORD *)a4 + 456LL))(a4, v85);
v86 = *(void (__fastcall **)(__int64, void **))(*(_QWORD *)v85 + 184LL);
v87 = v15 - 12.0;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v139, (float)(*((float *)this + 210) * 0.5) + -62.0, v87);
v86(v85, &v139);
v89 = ButtonSprite::create(
(ButtonSprite *)"Latest",
(const char *)&dword_44 + 2,
0,
1,
0.4,
"bigFont.fnt",
"GJ_button_01.png",
v88,
20.0);
v90 = CCMenuItemSpriteExtra::create(v89, 0, (__int64)this, (__int64)ThreadViewPopup::onJumpToLatest, 0);
CCMenuItemSpriteExtra::setSizeMult(v90, 1.1);
(*(void (__fastcall **)(cocos2d::CCMenu *, __int64))(*(_QWORD *)a4 + 456LL))(a4, v90);
v91 = (float)(*((float *)this + 210) * 0.5) + 58.0;
v92 = *(void (__fastcall **)(__int64, void **))(*(_QWORD *)v90 + 184LL);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v139, v91, v87);
v92(v90, &v139);
return _stack_chk_guard;
case 1:
v93 = v13 + 25;
if ( (v13[24] & 1) != 0 )
v93 = *((const char **)v13 + 5);
v94 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"- %s -", v93);
CString = (cocos2d::CCLabelBMFont *)cocos2d::CCString::getCString(v94);
v79 = (cocos2d::CCLabelBMFont *)cocos2d::CCLabelBMFont::create(CString, "chatFont.fnt", v96);
(*(void (__fastcall **)(cocos2d::CCLabelBMFont *, float))(*(_QWORD *)v79 + 160LL))(v79, 0.5);
(*(void (__fastcall **)(cocos2d::CCLabelBMFont *, __int64))(*(_QWORD *)v79 + 1024LL))(v79, 4294967190LL);
v82 = *((float *)this + 210) * 0.5;
v81 = *(void (__fastcall **)(cocos2d::CCLabelBMFont *, void **))(*(_QWORD *)v79 + 184LL);
v83 = v15 - 7.0;
goto LABEL_68;
case 2:
v113 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"floorLine_001.png", v12);
v114 = *((float *)this + 210) - 20.0;
v115 = *(void (__fastcall **)(__int64, float))(*(_QWORD *)v113 + 128LL);
v116 = (float *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v113 + 328LL))(v113);
v115(v113, v114 / *v116);
v117 = *(void (__fastcall **)(__int64, void **))(*(_QWORD *)v113 + 960LL);
LOWORD(v139) = -6401;
BYTE2(v139) = 60;
v117(v113, &v139);
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v113 + 912LL))(v113, 125);
v118 = *((float *)this + 210) * 0.5;
v119 = *(void (__fastcall **)(__int64, void **))(*(_QWORD *)v113 + 184LL);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v139, v118, v15 - 4.0);
v119(v113, &v139);
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v113 + 1080LL))(v113, 0x100000302LL);
(*(void (__fastcall **)(cocos2d::CCNode *, __int64, __int64))(*(_QWORD *)a3 + 464LL))(a3, v113, 1);
return _stack_chk_guard;
case 3:
v78 = (cocos2d::CCLabelBMFont *)(v13 + 25);
if ( (v13[24] & 1) != 0 )
v78 = *((cocos2d::CCLabelBMFont **)v13 + 5);
v79 = (cocos2d::CCLabelBMFont *)cocos2d::CCLabelBMFont::create(v78, "chatFont.fnt", _stack_chk_guard);
cocos2d::CCLabelBMFont::limitLabelWidth(v79, *((float *)this + 210) - 30.0, 0.5, 0.2);
(*(void (__fastcall **)(cocos2d::CCLabelBMFont *, const char *))(*(_QWORD *)v79 + 1072LL))(v79, v13 + 48);
(*(void (__fastcall **)(cocos2d::CCLabelBMFont *, __int64))(*(_QWORD *)v79 + 1024LL))(v79, 4294967240LL);
v80 = *((float *)this + 210);
v81 = *(void (__fastcall **)(cocos2d::CCLabelBMFont *, void **))(*(_QWORD *)v79 + 184LL);
v82 = v80 * 0.5;
v83 = (float)(v15 - (float)(*((float *)v13 + 3) * 0.5)) + 1.0;
LABEL_68:
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v139, v82, v83);
v81(v79, &v139);
(*(void (__fastcall **)(cocos2d::CCNode *, cocos2d::CCLabelBMFont *, __int64))(*(_QWORD *)a3 + 464LL))(a3, v79, 1);
return _stack_chk_guard;
}
v22 = GJAccountManager::sharedState(v14);
v129 = *(_DWORD *)(v22 + 352);
v23 = *(_DWORD *)(v22 + 356);
v24 = cocos2d::CCArray::objectAtIndex(*((cocos2d::CCArray **)this + 95), *((_DWORD *)v13 + 1));
if ( v13[17] )
v15 = v15 - 8.0;
v25 = *((_QWORD *)this + 148);
if ( v25 > 0 && !*((_BYTE *)this + 1192) )
{
v26 = *(const char **)(v24 + 56);
if ( (const char *)v25 == v26 )
{
*((_BYTE *)this + 1192) = 1;
v97 = 0.0;
if ( v13[17] )
v97 = 8.0;
v98 = (cocos2d::CCNode *)cocos2d::CCSprite::createWithSpriteFrameName(
(cocos2d::CCSprite *)"whiteSquare60_001.png",
v26);
v133 = *(char **)(*(_QWORD *)v98 + 296LL);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v139, 0.0, 1.0);
((void (__fastcall *)(cocos2d::CCNode *, void **))v133)(v98, &v139);
v99 = *((float *)this + 210) - 4.0;
v134 = *(char **)(*(_QWORD *)v98 + 128LL);
v100 = (float *)(*(__int64 (__fastcall **)(cocos2d::CCNode *))(*(_QWORD *)v98 + 328LL))(v98);
((void (__fastcall *)(cocos2d::CCNode *, float))v134)(v98, v99 / *v100);
v101 = *((float *)v13 + 3) - v97;
v135 = *(char **)(*(_QWORD *)v98 + 144LL);
v102 = (*(__int64 (__fastcall **)(cocos2d::CCNode *))(*(_QWORD *)v98 + 328LL))(v98);
((void (__fastcall *)(cocos2d::CCNode *, float))v135)(v98, v101 / *(float *)(v102 + 4));
v103 = *(void (__fastcall **)(cocos2d::CCNode *, void **))(*(_QWORD *)v98 + 960LL);
LOWORD(v139) = -8961;
BYTE2(v139) = 90;
v103(v98, &v139);
(*(void (__fastcall **)(cocos2d::CCNode *, __int64))(*(_QWORD *)v98 + 912LL))(v98, 100);
v136 = *(char **)(*(_QWORD *)v98 + 184LL);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v139, 2.0, (float)(*((float *)v13 + 3) - v97) + 2.0);
((void (__fastcall *)(cocos2d::CCNode *, void **))v136)(v98, &v139);
(*(void (__fastcall **)(cocos2d::CCNode *, cocos2d::CCNode *, _QWORD))(*(_QWORD *)a3 + 464LL))(a3, v98, 0);
v105 = (cocos2d::CCSequence *)cocos2d::CCFadeTo::create(nullptr, 1.5, v104);
v106 = (cocos2d::CCFiniteTimeAction *)cocos2d::CCCallFunc::create(this, ThreadViewPopup::onHighlightFaded, 0);
v107 = (cocos2d::CCAction *)cocos2d::CCSequence::create(v105, v106, 0);
cocos2d::CCNode::runAction(v98, v107);
}
}
v131 = v13[16];
if ( v131 )
{
v27 = *(_DWORD *)(v24 + 64);
v130 = v27 == v129 - v23;
ThreadViewPopup::senderNameFor(this, v27, &v145);
v28 = ThreadViewPopup::senderScoreFor(this, *(_DWORD *)(v24 + 64));
if ( v28 || (v127 = ThreadViewPopup::pastScoreFor(this, *(_DWORD *)(v24 + 64))) == 0 )
v127 = 0;
else
v28 = v127;
v29 = (SimplePlayer *)SimplePlayer::create((SimplePlayer *)((char *)&dword_0 + 1));
(*(void (__fastcall **)(SimplePlayer *, float))(*(_QWORD *)v29 + 160LL))(v29, 0.55);
if ( v28 )
{
v128 = *(GameManager **)(*(_QWORD *)v29 + 960LL);
v30 = (GameManager *)GameManager::sharedState(v128);
v31 = GameManager::colorForIdx(v30, *(_DWORD *)(v28 + 416));
BYTE2(v139) = BYTE2(v31);
LOWORD(v139) = v31;
v32 = (GameManager *)((__int64 (__fastcall *)(SimplePlayer *, void **))v128)(v29, &v139);
v33 = (GameManager *)GameManager::sharedState(v32);
v34 = GameManager::colorForIdx(v33, *(_DWORD *)(v28 + 420));
LOWORD(v139) = v34;
BYTE2(v139) = BYTE2(v34);
SimplePlayer::setSecondColor(v29);
SimplePlayer::tryEnableCustomGlowColor(v29, *(_DWORD *)(v28 + 424));
if ( *(_DWORD *)(v28 + 428) != 2 )
v131 = *(_BYTE *)(v28 + 672);
*((_BYTE *)v29 + 660) = v131;
SimplePlayer::updatePlayerFrame((__int64)v29, *(_DWORD *)(v28 + 412), *(_DWORD *)(v28 + 432));
}
else
{
v126 = *(void (__fastcall **)(SimplePlayer *, void **))(*(_QWORD *)v29 + 960LL);
memset(&v139, 125, 3);
v126(v29, &v139);
memset(&v139, 80, 3);
SimplePlayer::setSecondColor(v29);
}
SimplePlayer::updateColors(v29);
v35 = *(void (__fastcall **)(SimplePlayer *, void **))(*(_QWORD *)v29 + 184LL);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v139, 17.0, v15 - 14.0);
v35(v29, &v139);
(*(void (__fastcall **)(cocos2d::CCNode *, SimplePlayer *, __int64))(*(_QWORD *)a3 + 464LL))(a3, v29, 1);
v37 = (cocos2d::CCLabelBMFont *)((char *)&v145 + 1);
if ( (v145 & 1) != 0 )
v37 = v147;
v38 = (cocos2d::CCLabelBMFont *)cocos2d::CCLabelBMFont::create(v37, "bigFont.fnt", v36);
cocos2d::CCLabelBMFont::limitLabelWidth(v38, 150.0, 0.35, 0.2);
v39 = *(void (__fastcall **)(cocos2d::CCLabelBMFont *, void **))(*(_QWORD *)v38 + 1072LL);
if ( v130 )
{
LOWORD(v139) = -156;
BYTE2(v139) = 100;
}
else
{
LOWORD(v139) = -14081;
BYTE2(v139) = 80;
}
v39(v38, &v139);
v40 = *(float *)(*(__int64 (__fastcall **)(cocos2d::CCLabelBMFont *))(*(_QWORD *)v38 + 328LL))(v38);
v41 = v40 * (*(float (__fastcall **)(cocos2d::CCLabelBMFont *))(*(_QWORD *)v38 + 168LL))(v38);
v42 = CCMenuItemSpriteExtra::create((__int64)v38, 0, (__int64)this, (__int64)ThreadViewPopup::onSenderProfile, 0);
(*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v42 + 72LL))(v42, *(unsigned int *)(v24 + 64));
(*(void (__fastcall **)(cocos2d::CCMenu *, __int64))(*(_QWORD *)a4 + 456LL))(a4, v42);
v43 = *(void (__fastcall **)(__int64, void **))(*(_QWORD *)v42 + 184LL);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v139, (float)(v41 * 0.5) + 32.0, v15 - 7.0);
v43(v42, &v139);
v44 = (float)(v41 + 32.0) + 5.0;
if ( (v127 != 0) > v130 )
{
v45 = cocos2d::CCSprite::createWithSpriteFrameName(
(cocos2d::CCSprite *)"particle_215_001.png",
(const char *)v130);
v46 = *(void (__fastcall **)(__int64, float))(*(_QWORD *)v45 + 160LL);
v47 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v45 + 328LL))(v45);
v46(v45, 10.0 / *(float *)(v47 + 4));
v48 = *(float *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v45 + 328LL))(v45);
v49 = v48 * (*(float (__fastcall **)(__int64))(*(_QWORD *)v45 + 168LL))(v45);
v50 = *(void (__fastcall **)(__int64, void **))(*(_QWORD *)v45 + 184LL);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v139, v44 + (float)(v49 * 0.5), v15 - 7.0);
v50(v45, &v139);
(*(void (__fastcall **)(cocos2d::CCNode *, __int64, __int64))(*(_QWORD *)a3 + 464LL))(a3, v45, 1);
v44 = v44 + (float)(v49 + 4.0);
}
v139 = *(void **)(v24 + 96);
v51 = localtime((const time_t *)&v139);
if ( v51 )
{
tm_hour = v51->tm_hour;
LODWORD(v53) = tm_hour % 12;
if ( tm_hour % 12 )
v53 = (unsigned int)v53;
else
v53 = 12;
if ( tm_hour <= 11 )
v54 = "AM";
else
v54 = "PM";
v55 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(
(cocos2d::CCString *)"%d:%02d %s",
(const char *)v53,
(unsigned int)v51->tm_min,
v54);
v132 = (char *)cocos2d::CCString::getCString(v55);
v148 = 0;
v149 = 0;
v150 = nullptr;
v56 = strlen(v132);
std::string::__init(&v148, v132, v56);
}
else
{
v148 = 0;
v149 = 0;
v150 = nullptr;
std::string::__init(&v148, &byte_11B8890, 0);
}
if ( (v148 & 1) != 0 )
v58 = (cocos2d::CCLabelBMFont *)v150;
else
v58 = (cocos2d::CCLabelBMFont *)((char *)&v148 + 1);
v59 = cocos2d::CCLabelBMFont::create(v58, "chatFont.fnt", v57);
if ( (v148 & 1) != 0 )
operator delete(v150);
v60 = *(void (__fastcall **)(__int64, void **))(*(_QWORD *)v59 + 296LL);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v139, 0.0, 0.5);
v60(v59, &v139);
(*(void (__fastcall **)(__int64, float))(*(_QWORD *)v59 + 160LL))(v59, 0.5);
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v59 + 1024LL))(v59, 4294967190LL);
v61 = *(void (__fastcall **)(__int64, void **))(*(_QWORD *)v59 + 184LL);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v139, v44, v15 - 8.0);
v61(v59, &v139);
(*(void (__fastcall **)(cocos2d::CCNode *, __int64, __int64))(*(_QWORD *)a3 + 464LL))(a3, v59, 1);
v15 = v15 - 16.0;
if ( (v145 & 1) != 0 )
operator delete(v147);
}
v139 = nullptr;
v140 = nullptr;
v141 = 0;
ThreadViewPopup::expandShareTokens(v24 + 72, &v139, &v142);
v62 = ThreadViewPopup::measureBody(this, (GJThreadMessage *)v24);
v63 = *(float *)(v62 + 24);
v145 = 0;
v146 = 0;
v147 = nullptr;
if ( (v142 & 1) != 0 )
{
std::string::__init(&v145, v144, v143);
}
else
{
v145 = v142;
v146 = v143;
v147 = (cocos2d::CCLabelBMFont *)v144;
}
v64 = (float)(*((float *)this + 210) - 58.0) / v63;
v65 = (EmoteSprite *)cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v138, 0.0, 1.0);
v66 = EmoteSprite::maxEmotesMessage(v65);
v67 = TextArea::create((char *)&v145, "chatFont.fnt", (const cocos2d::CCPoint *)&v138, 1, v66, 1.0, v64, 20.0);
if ( (v145 & 1) != 0 )
operator delete(v147);
*(_BYTE *)(v67 + 597) = 1;
if ( *(_BYTE *)(v62 + 32) )
{
v125 = EmoteSprite::jumboMaxAspect((EmoteSprite *)*(unsigned __int8 *)(v62 + 32));
TextArea::setEmoteMaxAspect(v67, v125);
}
v148 = 0;
v149 = 0;
v150 = nullptr;
if ( (v142 & 1) != 0 )
{
std::string::__init(&v148, v144, v143);
}
else
{
v148 = v142;
v149 = v143;
v150 = v144;
}
TextArea::setString((__int64 *)v67, (char *)&v148);
if ( (v148 & 1) != 0 )
operator delete(v150);
(*(void (__fastcall **)(__int64, float))(*(_QWORD *)v67 + 160LL))(v67, v63);
v68 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v67 + 296LL);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v138, 0.0, 1.0);
v68(v67, &v138);
v69 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v67 + 184LL);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v138, 32.0, v15);
v69(v67, &v138);
(*(void (__fastcall **)(cocos2d::CCNode *, __int64, __int64))(*(_QWORD *)a3 + 464LL))(a3, v67, 1);
if ( v139 != v140 )
ThreadViewPopup::markShareLinks(
v67,
(char *)&v142,
(__int64 *)&v139,
*(cocos2d::CCNode **)(*((_QWORD *)this + 103) + 416LL),
(__int64)this + 1072,
a2);
if ( *(_BYTE *)(v24 + 104) )
{
LOWORD(v137) = -26986;
BYTE2(v137) = -106;
TextArea::colorAllCharactersTo(v67, v137);
v121 = cocos2d::CCLabelBMFont::create((cocos2d::CCLabelBMFont *)"deleted", "bigFont.fnt", v120);
(*(void (__fastcall **)(__int64, float))(*(_QWORD *)v121 + 160LL))(v121, 0.3);
v122 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v121 + 1072LL);
LOWORD(v138) = 30975;
BYTE2(v138) = 120;
v122(v121, &v138);
v123 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v121 + 296LL);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v138, 1.0, 1.0);
v123(v121, &v138);
v124 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v121 + 184LL);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v138, *((float *)this + 210) - 34.0, v15);
v124(v121, &v138);
(*(void (__fastcall **)(cocos2d::CCNode *, __int64, __int64))(*(_QWORD *)a3 + 464LL))(a3, v121, 2);
}
if ( v24 == *((_QWORD *)this + 130) )
{
LOWORD(v138) = -21846;
BYTE2(v138) = -86;
TextArea::colorAllCharactersTo(v67, v138);
}
else
{
v71 = cocos2d::CCLabelBMFont::create((cocos2d::CCLabelBMFont *)"...", "bigFont.fnt", v70);
(*(void (__fastcall **)(__int64, float))(*(_QWORD *)v71 + 160LL))(v71, 0.35);
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v71 + 1024LL))(v71, 120);
v72 = CCMenuItemSpriteExtra::create(v71, 0, (__int64)this, (__int64)ThreadViewPopup::onMessageOptions, 0);
CCMenuItemSpriteExtra::setSizeMult(v72, 1.6);
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v72 + 648LL))(v72, v24);
(*(void (__fastcall **)(cocos2d::CCMenu *, __int64))(*(_QWORD *)a4 + 456LL))(a4, v72);
v73 = *((float *)this + 210) - 16.0;
v74 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v72 + 184LL);
v75 = v73
- (float)((float)(*(float *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v71 + 328LL))(v71) * 0.35) * 0.5);
v76 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v71 + 328LL))(v71);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v138, v75, v15 - (float)((float)(*(float *)(v76 + 4) * 0.35) * 0.5));
v74(v72, &v138);
if ( *((_BYTE *)this + 1104) )
{
v108 = (cocos2d::CCSprite *)cocos2d::CCSprite::createWithSpriteFrameName(
(cocos2d::CCSprite *)"GJ_arrow_03_001.png",
v77);
cocos2d::CCSprite::setFlipX(v108, 1);
(*(void (__fastcall **)(cocos2d::CCSprite *, float))(*(_QWORD *)v108 + 160LL))(v108, 0.385);
v109 = CCMenuItemSpriteExtra::create(
(__int64)v108,
0,
(__int64)this,
(__int64)ThreadViewPopup::onJumpToMessage,
0);
CCMenuItemSpriteExtra::setSizeMult(v109, 1.3);
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v109 + 648LL))(v109, v24);
(*(void (__fastcall **)(cocos2d::CCMenu *, __int64))(*(_QWORD *)a4 + 456LL))(a4, v109);
v110 = *((float *)this + 210) - 16.0;
v111 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v109 + 184LL);
v112 = (float *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v71 + 328LL))(v71);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v138, (float)(v110 - (float)(*v112 * 0.35)) - 19.0, v15 - 8.0);
v111(v109, &v138);
}
}
if ( (v142 & 1) != 0 )
operator delete(v144);
if ( v139 )
{
if ( v139 != v140 )
v140 += -24
* ((0xAAAAAAAAAAAAAABLL * ((unsigned __int64)(v140 - 24 - (_BYTE *)v139) >> 3)) & 0x1FFFFFFFFFFFFFFFLL)
- 24;
operator delete(v139);
}
return _stack_chk_guard;
}