//
// CommentCell::loadFromComment from 0x74ae14 to 0x74cea0 (8332 bytes)
//
// 7 xrefs:
// > CommentCell::onDelete @ 0x74cf88
// > CommentCell::onDelete @ 0x74cfc8
// > CommentCell::onDelete @ 0x74cffc
// > CommentCell::onUndelete @ 0x74d07c
// > CommentCell::onUnhide @ 0x74d090
// > CustomListView::loadCell @ 0x74d510
// > ??> @ 0xeee70
//
// 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 12:52:53 +0000
//
__int64 __fastcall CommentCell::loadFromComment(CommentCell *this, GJComment *a2)
{
cocos2d::CCObject *v4; // x0
bool v5; // w0
__int64 v6; // x2
cocos2d::CCNode *v8; // x24
__int64 v9; // x0
signed int v10; // w28
int v11; // w1
const char *v12; // x2
unsigned int v13; // w27
size_t v14; // x1
char *v15; // x0
cocos2d::CCLabelBMFont *v16; // x23
float v17; // s0
int v18; // w1
float v19; // s10
int v20; // w26
float v21; // s9
void (__fastcall *v22)(cocos2d::CCLabelBMFont *, void **); // x22
void (__fastcall *v23)(cocos2d::CCLabelBMFont *, void **); // x22
float v24; // s0
float v25; // s8
float v26; // s10
float v27; // s9
__int64 v28; // x26
void (__fastcall *v29)(__int64, char *); // x2
__int64 v30; // x0
size_t v31; // x1
char *v32; // x1
size_t v33; // x0
int *v34; // x26
int v35; // w0
bool v36; // cc
int v37; // w0
int v38; // w1
float v39; // s3
float v40; // s8
__int64 *v41; // x0
const char *v42; // x1
size_t v43; // x0
float v44; // s9
EmoteSprite *v45; // x0
char v46; // w22
int v47; // w0
__int64 v48; // x22
void (__fastcall *v49)(__int64, void **); // x23
void (__fastcall *v50)(__int64, void **); // x23
float v51; // s1
GameLevelManager *v52; // x0
const char *v53; // x6
__int64 v54; // x1
float v55; // s0
float v56; // s11
float v57; // s9
float v58; // s10
float v59; // s8
__int64 v60; // x22
float v61; // s1
void (__fastcall *v62)(__int64, void **); // x28
float v63; // s0
float v64; // s1
unsigned int v65; // w22
__int64 v66; // x28
cocos2d::CCSpriteFrameCache *v67; // x0
__int64 v68; // x0
cocos2d::CCString *v69; // x0
cocos2d::CCLabelBMFont *v70; // x0
const char *v71; // x2
__int64 v72; // x0
__int64 v73; // x2
__int64 v74; // x22
void (__fastcall *v75)(__int64, void **); // x23
__int64 v76; // x23
__int64 v77; // x28
float v78; // s1
float v79; // s0
float v80; // s0
__int64 v81; // x23
__int64 v82; // x28
const cocos2d::CCPoint *v83; // x0
__int64 v84; // x23
void (__fastcall *v85)(__int64, void **); // x28
__int64 v86; // x0
int v87; // w28
GameLevelManager *v88; // x0
__int64 v89; // x28
_BOOL8 v90; // x0
unsigned int v91; // w28
__int64 v92; // x0
const char *v93; // x1
unsigned __int64 v94; // x0
__int64 v95; // x0
__int64 v96; // x2
GJAccountManager *v97; // x0
__int64 v98; // x27
__int64 v99; // x27
__int64 v100; // x28
float v101; // s0
const char *v102; // x2
int v103; // w0
GameManager *v104; // x0
__int64 v105; // x0
const char *v106; // x1
__int64 v107; // x23
long double v108; // q0
__int64 v109; // x27
cocos2d::CCNode *v110; // x28
float v111; // s0
float v112; // s0
float v113; // s1
size_t v114; // x5
size_t v115; // x22
__int64 v116; // x0
size_t v117; // x1
char *v118; // x1
cocos2d::CCString *v119; // x0
cocos2d::CCLabelBMFont *v120; // x0
const char *v121; // x2
__int64 v122; // x22
void (__fastcall *v123)(__int64, void **); // x23
long double v124; // q0
int v125; // w0
float v126; // s0
void (__fastcall *v127)(__int64, void **); // x19
float v128; // s1
float v129; // s0
__int64 v130; // x28
float v131; // s8
float v132; // s0
int v133; // w27
int v134; // w28
__int64 v135; // x0
__int64 v136; // x26
long double v137; // q0
float v138; // s1
GameManager *v139; // x0
int v140; // w0
GameManager *v141; // x0
GameManager *v142; // x0
unsigned __int64 v143; // x0
__int64 v144; // x0
char v145; // w0
__int64 v146; // x1
float v147; // s12
float v148; // s8
float v149; // s0
float v150; // s8
float v151; // s8
float v152; // s9
__int64 v153; // x0
float v154; // s9
float v155; // s11
const char *v156; // x1
const char *v157; // x1
cocos2d::CCString *v158; // x0
cocos2d::CCLabelBMFont *CString; // x0
const char *v160; // x2
__int64 v161; // x26
long double v162; // q0
float v163; // s8
float v164; // s0
float v165; // s1
GameLevelManager *v166; // x0
__int64 SavedLevel; // x0
int v168; // w0
const char *v169; // x2
cocos2d::CCLabelBMFont *v170; // x0
cocos2d::CCLabelBMFont *v171; // x23
void (__fastcall *v172)(cocos2d::CCLabelBMFont *, __int64 *); // x28
void (__fastcall *v173)(cocos2d::CCLabelBMFont *, __int64 *); // x28
GameLevelManager *v174; // x0
GameLevelManager *v175; // x0
__int64 SavedDailyLevelFromLevelID; // x0
__int64 v177; // x2
char v178; // w5
char v179; // w4
void (__fastcall *v180)(cocos2d::CCLabelBMFont *, __int64 *); // x3
GameLevelManager *v181; // x0
__int64 v182; // x20
__int64 *v183; // x0
int v184; // w0
__int64 v185; // x0
__int64 v186; // x22
__int64 v187; // x25
float v188; // s8
cocos2d::CCNode *v189; // x27
void (__fastcall *v190)(__int64, void **); // x26
float *v191; // x0
void (__fastcall *v192)(cocos2d::CCLabelBMFont *, __int64 *); // x3
__int64 v193; // x0
__int64 v194; // x0
unsigned int v195; // w22
const char *v196; // x6
ButtonSprite *v197; // x0
char *v198; // x5
const char *v199; // x1
__int64 v200; // x22
long double v201; // q0
__int64 v202; // x28
float v203; // s2
float v204; // s0
float v205; // s1
const char *v206; // x1
__int64 v207; // x28
float v208; // s8
CCMenuItemToggler *v209; // x0
__int64 v210; // x1
const cocos2d::CCPoint *v211; // x0
__int64 v212; // x27
void (__fastcall *v213)(__int64, void **); // x28
float v214; // s0
GameLevelManager *v215; // x0
__int64 v216; // x26
long double v217; // q0
cocos2d::CCSpriteFrameCache **v218; // x23
void (__fastcall *v219)(cocos2d::CCSpriteFrameCache **, __int64); // x28
cocos2d::CCSpriteFrameCache *v220; // x0
__int64 v221; // x0
GameLevelManager *v222; // x0
__int64 v223; // x0
_BOOL4 v224; // w0
float v225; // s0
__int64 v226; // x26
long double v227; // q0
float v228; // s0
float v229; // s0
void (__fastcall *v230)(cocos2d::CCLabelBMFont *, __int64 *); // x3
float v231; // s0
__int64 v232; // x0
__int64 v233; // x0
int v234; // w2
int v235; // w3
GameManager *v236; // x0
__int64 v237; // x0
GameLevelManager *v238; // x0
void (__fastcall *v239)(cocos2d::CCLabelBMFont *, void **); // x3
GameLevelManager *v240; // x0
cocos2d::CCNode *v241; // [xsp+98h] [xbp+98h]
cocos2d::CCNode *v242; // [xsp+98h] [xbp+98h]
void (__fastcall *v243)(__int64, void **); // [xsp+A0h] [xbp+A0h]
void (__fastcall *v244)(__int64, void **); // [xsp+A0h] [xbp+A0h]
__int64 v245; // [xsp+A0h] [xbp+A0h]
cocos2d::CCRect *v246; // [xsp+A8h] [xbp+A8h]
cocos2d::CCRect *v247; // [xsp+A8h] [xbp+A8h]
cocos2d::CCRect *v248; // [xsp+A8h] [xbp+A8h]
cocos2d::CCRect *v249; // [xsp+A8h] [xbp+A8h]
cocos2d::CCRect *v250; // [xsp+A8h] [xbp+A8h]
int v251; // [xsp+A8h] [xbp+A8h]
cocos2d::CCRect *v252; // [xsp+A8h] [xbp+A8h]
cocos2d::CCRect *v253; // [xsp+A8h] [xbp+A8h]
cocos2d::CCRect *v254; // [xsp+A8h] [xbp+A8h]
cocos2d::CCRect *v255; // [xsp+A8h] [xbp+A8h]
unsigned int v256; // [xsp+A8h] [xbp+A8h]
cocos2d::CCRect *v257; // [xsp+A8h] [xbp+A8h]
cocos2d::CCRect *v258; // [xsp+A8h] [xbp+A8h]
cocos2d::CCNode *v259; // [xsp+A8h] [xbp+A8h]
cocos2d::CCRect *v260; // [xsp+A8h] [xbp+A8h]
cocos2d::CCRect *v261; // [xsp+A8h] [xbp+A8h]
cocos2d::CCRect *v262; // [xsp+A8h] [xbp+A8h]
cocos2d::CCRect *v263; // [xsp+A8h] [xbp+A8h]
cocos2d::CCRect *v264; // [xsp+A8h] [xbp+A8h]
cocos2d::CCRect *v265; // [xsp+A8h] [xbp+A8h]
__int64 v266; // [xsp+B0h] [xbp+B0h]
__int64 v267; // [xsp+B8h] [xbp+B8h]
__int64 v268; // [xsp+C0h] [xbp+C0h]
_BYTE v269[8]; // [xsp+C8h] [xbp+C8h] BYREF
_BYTE v270[8]; // [xsp+D0h] [xbp+D0h] BYREF
char v271; // [xsp+D8h] [xbp+D8h] BYREF
_BYTE v272[2]; // [xsp+D9h] [xbp+D9h] BYREF
__int64 v273[2]; // [xsp+E0h] [xbp+E0h] BYREF
__int64 v274; // [xsp+F0h] [xbp+F0h] BYREF
__int64 v275; // [xsp+F8h] [xbp+F8h]
void *v276; // [xsp+100h] [xbp+100h]
void *v277; // [xsp+108h] [xbp+108h] BYREF
char *v278; // [xsp+110h] [xbp+110h]
__int64 v279; // [xsp+118h] [xbp+118h]
__int64 v280[3]; // [xsp+120h] [xbp+120h] BYREF
__int64 v281[2]; // [xsp+138h] [xbp+138h] BYREF
void *v282; // [xsp+148h] [xbp+148h]
__int64 v283; // [xsp+150h] [xbp+150h] BYREF
size_t v284; // [xsp+158h] [xbp+158h]
ButtonSprite *v285; // [xsp+160h] [xbp+160h]
__int64 v286; // [xsp+168h] [xbp+168h] BYREF
size_t v287; // [xsp+170h] [xbp+170h]
void *v288; // [xsp+178h] [xbp+178h]
__int64 v289; // [xsp+180h] [xbp+180h] BYREF
size_t v290; // [xsp+188h] [xbp+188h]
char *v291; // [xsp+190h] [xbp+190h]
(*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 66) + 1168LL))(*((_QWORD *)this + 66), 0xFFFFFFFFLL);
cocos2d::CCObject::retain(a2);
v4 = *((cocos2d::CCObject **)this + 73);
if ( v4 )
cocos2d::CCObject::release(v4);
*((_QWORD *)this + 73) = a2;
v5 = 0;
if ( !*((_DWORD *)a2 + 95) )
v5 = *((_DWORD *)a2 + 97) > 0;
v6 = *((_QWORD *)this + 67);
*((_BYTE *)this + 592) = v5;
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v6 + 584LL))(v6, 1);
if ( !*(_BYTE *)(*((_QWORD *)this + 73) + 416LL) )
{
v8 = (cocos2d::CCNode *)cocos2d::CCMenu::create((cocos2d::CCMenu *)*(unsigned __int8 *)(*((_QWORD *)this + 73)
+ 416LL));
(*(void (__fastcall **)(_QWORD, cocos2d::CCNode *, __int64))(**((_QWORD **)this + 67) + 464LL))(
*((_QWORD *)this + 67),
v8,
2);
v9 = *((_QWORD *)this + 73);
if ( !*(_BYTE *)(v9 + 433) )
{
v181 = (GameLevelManager *)GameLevelManager::sharedState((GameLevelManager *)v9);
GameLevelManager::userNameForUserID(&v283, v181, *(_DWORD *)(*((_QWORD *)this + 73) + 372LL));
if ( *((_BYTE *)this + 592) )
{
v222 = (GameLevelManager *)GameLevelManager::sharedState((GameLevelManager *)*((unsigned __int8 *)this + 592));
GameLevelManager::tryGetUsername(&v286, v222, *(_DWORD *)(*((_QWORD *)this + 73) + 388LL));
if ( (v283 & 1) != 0 )
{
*(_BYTE *)v285 = 0;
v284 = 0;
}
else
{
LOWORD(v283) = 0;
}
std::string::reserve(&v283, 0);
v285 = (ButtonSprite *)v288;
v283 = v286;
v284 = v287;
}
v289 = 0;
v290 = 0;
v291 = nullptr;
v182 = *((_QWORD *)this + 73);
if ( (v283 & 1) != 0 )
{
std::string::__init(&v289, v285, v284);
}
else
{
v289 = v283;
v290 = v284;
v291 = (char *)v285;
}
v183 = (__int64 *)(v182 + 344);
if ( (__int64 *)(v182 + 344) != &v289 )
{
if ( (v289 & 1) != 0 )
std::string::assign(v183, v291, v290);
else
std::string::assign(v183, (char *)&v289 + 1, (unsigned __int8)v289 >> 1);
}
if ( (v289 & 1) != 0 )
operator delete(v291);
if ( (v283 & 1) != 0 )
operator delete(v285);
v9 = *((_QWORD *)this + 73);
}
v10 = *(_DWORD *)(v9 + 388);
v11 = v10;
if ( !__PAIR64__(*((unsigned __int8 *)this + 592), v10) )
{
v215 = (GameLevelManager *)GameLevelManager::sharedState((GameLevelManager *)v9);
v10 = GameLevelManager::accountIDForUserID(v215, *(_DWORD *)(*((_QWORD *)this + 73) + 372LL));
*(_DWORD *)(*((_QWORD *)this + 73) + 388LL) = v10;
v9 = *((_QWORD *)this + 73);
v11 = *(_DWORD *)(v9 + 388);
}
v289 = 0;
v12 = (const char *)(v9 + 344);
v290 = 0;
v291 = nullptr;
v13 = v11 == 71;
if ( (*(_BYTE *)(v9 + 344) & 1) != 0 )
{
std::string::__init(&v289, *(void **)(v9 + 360), *(_QWORD *)(v9 + 352));
}
else
{
v14 = *(_QWORD *)(v9 + 352);
v289 = *(_QWORD *)v12;
v290 = v14;
v291 = *(char **)(v9 + 360);
}
v15 = (char *)&v289 + 1;
if ( (v289 & 1) != 0 )
v15 = v291;
v16 = (cocos2d::CCLabelBMFont *)cocos2d::CCLabelBMFont::create((cocos2d::CCLabelBMFont *)v15, "goldFont.fnt", v12);
if ( (v289 & 1) != 0 )
operator delete(v291);
if ( *((_BYTE *)this + 594) )
{
cocos2d::CCLabelBMFont::limitLabelWidth(v16, 150.0, 0.5, 0.0);
}
else
{
if ( *(_BYTE *)(*((_QWORD *)this + 73) + 432LL) )
v17 = 100.0;
else
v17 = 150.0;
cocos2d::CCLabelBMFont::limitLabelWidth(v16, v17, 0.7, 0.0);
}
if ( *((_BYTE *)this + 592) )
{
v19 = 0.0;
v20 = *((unsigned __int8 *)this + 594);
}
else
{
if ( *(_QWORD *)(*((_QWORD *)this + 73) + 448LL) )
{
v136 = SimplePlayer::create((SimplePlayer *)((char *)&dword_0 + 1), v18);
(*(void (__fastcall **)(_QWORD, __int64, __int64))(**((_QWORD **)this + 67) + 464LL))(
*((_QWORD *)this + 67),
v136,
1);
if ( *((_BYTE *)this + 594) )
LODWORD(v137) = 1055286887;
else
LODWORD(v137) = 1058642330;
(*(void (__fastcall **)(__int64, long double))(*(_QWORD *)v136 + 160LL))(v136, v137);
if ( *((_BYTE *)this + 594) )
v138 = 11.0;
else
v138 = 19.5;
v254 = *(cocos2d::CCRect **)(*(_QWORD *)v136 + 184LL);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v277, 20.0, *((float *)this + 131) - v138);
((void (__fastcall *)(__int64, void **))v254)(v136, &v277);
v255 = *(cocos2d::CCRect **)(*(_QWORD *)v136 + 960LL);
v139 = (GameManager *)GameManager::sharedState(*(GameManager **)v136);
v140 = GameManager::colorForIdx(v139, *(_DWORD *)(*(_QWORD *)(*((_QWORD *)this + 73) + 448LL) + 416LL));
LOWORD(v277) = v140;
BYTE2(v277) = BYTE2(v140);
v141 = (GameManager *)((__int64 (__fastcall *)(__int64, void **))v255)(v136, &v277);
v142 = (GameManager *)GameManager::sharedState(v141);
v143 = GameManager::colorForIdx(v142, *(_DWORD *)(*(_QWORD *)(*((_QWORD *)this + 73) + 448LL) + 420LL));
LOWORD(v277) = v143;
BYTE2(v277) = BYTE2(v143);
SimplePlayer::setSecondColor(v136, &v277);
SimplePlayer::tryEnableCustomGlowColor(
(SimplePlayer *)v136,
*(_DWORD *)(*(_QWORD *)(*((_QWORD *)this + 73) + 448LL) + 424LL));
v144 = *(_QWORD *)(*((_QWORD *)this + 73) + 448LL);
if ( *(_DWORD *)(v144 + 428) == 2 )
v145 = 1;
else
v145 = *(_BYTE *)(v144 + 672);
*(_BYTE *)(v136 + 660) = v145;
v146 = *(_QWORD *)(*((_QWORD *)this + 73) + 448LL);
v256 = *(_DWORD *)(v146 + 432);
SimplePlayer::updatePlayerFrame(v136, *(unsigned int *)(v146 + 412), v256);
SimplePlayer::updateColors((SimplePlayer *)v136);
switch ( v256 )
{
case 4u:
v19 = 26.0;
v264 = *(cocos2d::CCRect **)(*(_QWORD *)v136 + 160LL);
v229 = (*(float (__fastcall **)(__int64))(*(_QWORD *)v136 + 168LL))(v136);
((void (__fastcall *)(__int64, float))v264)(v136, v229 * 1.15);
v242 = *(cocos2d::CCNode **)(*(_QWORD *)v136 + 184LL);
v245 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v136 + 192LL))(v136);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v273, 1.0, 0.0);
cocos2d::CCPoint::operator+(&v277, v245);
((void (__fastcall *)(__int64, void **))v242)(v136, &v277);
v147 = 36.0;
break;
case 6u:
case 1u:
v19 = 26.0;
v262 = *(cocos2d::CCRect **)(*(_QWORD *)v136 + 160LL);
v225 = (*(float (__fastcall **)(__int64))(*(_QWORD *)v136 + 168LL))(v136);
((void (__fastcall *)(__int64, float))v262)(v136, v225 * 0.9);
v147 = 36.0;
break;
case 3u:
v19 = 26.0;
v265 = *(cocos2d::CCRect **)(*(_QWORD *)v136 + 160LL);
v231 = (*(float (__fastcall **)(__int64))(*(_QWORD *)v136 + 168LL))(v136);
((void (__fastcall *)(__int64, float))v265)(v136, v231 * 0.95);
v147 = 36.0;
break;
default:
v147 = 36.0;
v19 = 26.0;
break;
}
}
else
{
v147 = 10.0;
v19 = 0.0;
}
v148 = *(float *)(*(__int64 (__fastcall **)(cocos2d::CCLabelBMFont *))(*(_QWORD *)v16 + 328LL))(v16);
v149 = (*(float (__fastcall **)(cocos2d::CCLabelBMFont *))(*(_QWORD *)v16 + 168LL))(v16);
v20 = *((unsigned __int8 *)this + 594);
v150 = v147 + (float)(v148 * v149);
if ( *((_BYTE *)this + 594) )
{
v151 = v150 + 8.0;
v152 = 11.5;
}
else
{
v151 = v150 + 12.0;
v152 = 19.5;
}
v153 = *((_QWORD *)this + 73);
v154 = *((float *)this + 131) - v152;
v155 = 0.0;
if ( *(_BYTE *)(v153 + 428) )
{
v216 = cocos2d::CCSprite::createWithSpriteFrameName(
(cocos2d::CCSprite *)"GJ_sFriendsIcon_001.png",
(const char *)*(unsigned __int8 *)(v153 + 428));
if ( *((_BYTE *)this + 594) )
LODWORD(v217) = 1059648963;
else
LODWORD(v217) = 1063675494;
(*(void (__fastcall **)(__int64, long double))(*(_QWORD *)v216 + 160LL))(v216, v217);
(*(void (__fastcall **)(_QWORD, __int64, __int64))(**((_QWORD **)this + 67) + 464LL))(
*((_QWORD *)this + 67),
v216,
10);
v261 = *(cocos2d::CCRect **)(*(_QWORD *)v216 + 184LL);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v277, v151 + 0.0, v154);
((void (__fastcall *)(__int64, void **))v261)(v216, &v277);
v20 = *((unsigned __int8 *)this + 594);
if ( *((_BYTE *)this + 594) )
v155 = 15.0;
else
v155 = 20.0;
v153 = *((_QWORD *)this + 73);
}
v156 = (const char *)*(unsigned int *)(v153 + 424);
if ( (_DWORD)v156 == 2 )
{
v226 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"modBadge_02_001.png", v156);
if ( *((_BYTE *)this + 594) )
LODWORD(v227) = 1057803469;
else
LODWORD(v227) = 0.75;
(*(void (__fastcall **)(__int64, long double))(*(_QWORD *)v226 + 160LL))(v226, v227);
(*(void (__fastcall **)(_QWORD, __int64, __int64))(**((_QWORD **)this + 67) + 464LL))(
*((_QWORD *)this + 67),
v226,
10);
v263 = *(cocos2d::CCRect **)(*(_QWORD *)v226 + 184LL);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v277, v151 + v155, v154);
((void (__fastcall *)(__int64, void **))v263)(v226, &v277);
v20 = *((unsigned __int8 *)this + 594);
if ( *((_BYTE *)this + 594) )
v228 = 15.0;
else
v228 = 22.0;
v155 = v155 + v228;
v153 = *((_QWORD *)this + 73);
}
v157 = (const char *)*(unsigned int *)(v153 + 420);
if ( (int)v157 > 0 )
{
v158 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"%i%%", v157);
CString = (cocos2d::CCLabelBMFont *)cocos2d::CCString::getCString(v158);
v161 = cocos2d::CCLabelBMFont::create(CString, "chatFont.fnt", v160);
(*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 67) + 456LL))(*((_QWORD *)this + 67), v161);
v257 = *(cocos2d::CCRect **)(*(_QWORD *)v161 + 296LL);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v277, 0.0, 0.5);
((void (__fastcall *)(__int64, void **))v257)(v161, &v277);
if ( *((_BYTE *)this + 594) )
LODWORD(v162) = 1056293520;
else
LODWORD(v162) = 1058642330;
(*(void (__fastcall **)(__int64, long double))(*(_QWORD *)v161 + 160LL))(v161, v162);
(*(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v161 + 1072LL))(v161, &qword_113C0F0);
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v161 + 1024LL))(v161, 4294967190LL);
v258 = *(cocos2d::CCRect **)(*(_QWORD *)v161 + 184LL);
v163 = *(float *)(*(__int64 (__fastcall **)(cocos2d::CCLabelBMFont *))(*(_QWORD *)v16 + 328LL))(v16);
v164 = (float)((float)(v155 + v147)
+ (float)(v163 * (*(float (__fastcall **)(cocos2d::CCLabelBMFont *))(*(_QWORD *)v16 + 168LL))(v16)))
+ 4.0;
if ( *((_BYTE *)this + 594) )
v165 = 11.5;
else
v165 = 19.5;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v277, v164, *((float *)this + 131) - v165);
((void (__fastcall *)(__int64, void **))v258)(v161, &v277);
v20 = *((unsigned __int8 *)this + 594);
}
}
if ( v20 )
v21 = 10.0;
else
v21 = 18.0;
if ( !v10 || *((_BYTE *)this + 592) || *((_BYTE *)a2 + 432) )
{
(*(void (__fastcall **)(_QWORD, cocos2d::CCLabelBMFont *))(**((_QWORD **)this + 67) + 456LL))(
*((_QWORD *)this + 67),
v16);
v22 = *(void (__fastcall **)(cocos2d::CCLabelBMFont *, void **))(*(_QWORD *)v16 + 296LL);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v277, 0.0, 0.5);
v22(v16, &v277);
v23 = *(void (__fastcall **)(cocos2d::CCLabelBMFont *, void **))(*(_QWORD *)v16 + 184LL);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v277, v19 + 10.0, *((float *)this + 131) - v21);
v23(v16, &v277);
if ( !v13 && *((unsigned __int8 *)this + 592) < (unsigned int)(v10 <= 0) )
{
v239 = *(void (__fastcall **)(cocos2d::CCLabelBMFont *, void **))(*(_QWORD *)v16 + 1072LL);
LOWORD(v277) = -166;
BYTE2(v277) = -1;
v239(v16, &v277);
}
v24 = *((float *)this + 130);
if ( *((_BYTE *)this + 594) )
goto LABEL_31;
}
else
{
v130 = CCMenuItemSpriteExtra::create((__int64)v16, 0, (__int64)this, (__int64)CommentCell::onViewProfile, 0);
(*(void (__fastcall **)(cocos2d::CCNode *, __int64))(*(_QWORD *)v8 + 456LL))(v8, v130);
v243 = *(void (__fastcall **)(__int64, void **))(*(_QWORD *)v130 + 184LL);
v241 = *((cocos2d::CCNode **)this + 67);
v131 = *(float *)(*(__int64 (__fastcall **)(cocos2d::CCLabelBMFont *))(*(_QWORD *)v16 + 328LL))(v16) * 0.5;
v132 = (*(float (__fastcall **)(cocos2d::CCLabelBMFont *))(*(_QWORD *)v16 + 168LL))(v16);
cocos2d::CCPoint::CCPoint(
(cocos2d::CCPoint *)&v271,
(float)(v19 + 10.0) + (float)(v131 * v132),
*((float *)this + 131) - v21);
cocos2d::CCNode::convertToWorldSpace(v273, v241, (const cocos2d::CCPoint *)&v271);
cocos2d::CCNode::convertToNodeSpace((__int64 *)&v277, v8, (const cocos2d::CCPoint *)v273);
v243(v130, &v277);
v24 = *((float *)this + 130);
if ( *((_BYTE *)this + 594) )
{
LABEL_31:
v25 = 8.0;
v26 = *((float *)this + 131);
v27 = v24 - 8.0;
goto LABEL_32;
}
}
v26 = *((float *)this + 131);
v27 = v24 - 10.0;
v25 = 12.0;
LABEL_32:
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v269, v24 * 0.5, v26 * 0.5);
if ( !*((_BYTE *)this + 594) )
{
cocos2d::CCRect::CCRect((cocos2d::CCRect *)v273, 0.0, 0.0, 80.0, 80.0);
cocos2d::CCRect::CCRect((cocos2d::CCRect *)&v277, (const cocos2d::CCRect *)v273);
v28 = cocos2d::extension::CCScale9Sprite::create("square02b_001.png", &v277);
cocos2d::CCSize::CCSize((cocos2d::CCSize *)&v277, v27, v26 - v25);
(*(void (__fastcall **)(__int64, void **))(*(_QWORD *)v28 + 320LL))(v28, &v277);
(*(void (__fastcall **)(_QWORD, __int64, __int64))(**((_QWORD **)this + 67) + 464LL))(
*((_QWORD *)this + 67),
v28,
0xFFFFFFFFLL);
(*(void (__fastcall **)(__int64, _BYTE *))(*(_QWORD *)v28 + 184LL))(v28, v269);
v29 = *(void (__fastcall **)(__int64, char *))(*(_QWORD *)v28 + 960LL);
v271 = -126;
qmemcpy(v272, "@!", sizeof(v272));
v29(v28, &v271);
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v28 + 912LL))(v28, 100);
}
v30 = *((_QWORD *)this + 73);
v289 = 0;
v290 = 0;
v291 = nullptr;
if ( (*(_BYTE *)(v30 + 320) & 1) != 0 )
{
std::string::__init(&v289, *(void **)(v30 + 336), *(_QWORD *)(v30 + 328));
}
else
{
v31 = *(_QWORD *)(v30 + 328);
v289 = *(_QWORD *)(v30 + 320);
v290 = v31;
v291 = *(char **)(v30 + 336);
}
v32 = (char *)&v289 + 1;
if ( (v289 & 1) != 0 )
v32 = v291;
v246 = (cocos2d::CCRect *)v32;
v274 = 0;
v275 = 0;
v276 = nullptr;
v33 = strlen(v32);
std::string::__init(&v274, v246, v33);
if ( (v289 & 1) != 0 )
operator delete(v291);
GameToolbox::stripNonBreakingSpaces((unsigned __int8 *)&v274);
if ( *((_BYTE *)this + 592) )
v34 = &dword_B4;
else
LODWORD(v34) = 100;
v35 = EmoteSprite::maxEmotesComment((EmoteSprite *)&dword_B4);
v36 = (int)v34 < (int)EmoteSprite::effectiveLength((char *)&v274, v35);
v37 = (int)v34;
if ( !v36 )
{
v184 = EmoteSprite::maxEmotesComment((EmoteSprite *)(unsigned int)v34);
v37 = EmoteSprite::effectiveLength((char *)&v274, v184);
}
v38 = *((unsigned __int8 *)this + 594);
if ( *((_BYTE *)this + 594) )
v39 = 0.6;
else
v39 = 0.7;
if ( (float)v37 <= (float)((float)(int)v34 * 0.5) )
v40 = 1.0;
else
v40 = v39 + (float)((float)((float)((int)v34 - v37) / (float)(int)v34) * (float)(1.0 - v39));
v41 = (__int64 *)*(unsigned __int8 *)(*((_QWORD *)this + 73) + 384LL);
if ( *(_BYTE *)(*((_QWORD *)this + 73) + 384LL) )
{
if ( *((_BYTE *)this + 594) )
v41 = std::string::assign(&v274, "Comment flagged as spam");
else
v41 = std::string::assign(&v274, "Comment flagged as spam");
v38 = *((unsigned __int8 *)this + 594);
}
if ( !v38 )
{
v42 = (char *)&v274 + 1;
if ( (v274 & 1) != 0 )
v42 = (const char *)v276;
v247 = (cocos2d::CCRect *)v42;
v281[0] = 0;
v281[1] = 0;
v282 = nullptr;
v43 = strlen(v42);
std::string::__init(v281, v247, v43);
if ( *((_BYTE *)this + 594) )
v44 = 9999.0;
else
v44 = (float)((float)(v27 - 45.0) * 1.1) / v40;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v277, 0.0, 1.0);
v45 = *((EmoteSprite **)this + 73);
v46 = *((_BYTE *)v45 + 384) ^ 1;
v47 = EmoteSprite::maxEmotesComment(v45);
v48 = TextArea::create((char *)v281, "chatFont.fnt", (const cocos2d::CCPoint *)&v277, v46, v47, 1.0, v44, 20.0);
if ( (v281[0] & 1) != 0 )
operator delete(v282);
(*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 67) + 456LL))(*((_QWORD *)this + 67), v48);
v49 = *(void (__fastcall **)(__int64, void **))(*(_QWORD *)v48 + 296LL);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v277, 0.0, 0.5);
v49(v48, &v277);
v50 = *(void (__fastcall **)(__int64, void **))(*(_QWORD *)v48 + 184LL);
v51 = 0.0;
if ( *((_BYTE *)this + 594) )
v51 = 3.0;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v277, 10.0, (float)(*((float *)this + 131) * 0.5) - v51);
v50(v48, &v277);
v52 = (GameLevelManager *)(*(__int64 (__fastcall **)(__int64, float))(*(_QWORD *)v48 + 160LL))(v48, v40);
if ( v13 )
{
LOWORD(v266) = -206;
BYTE2(v266) = -1;
TextArea::colorAllCharactersTo(v48, v266);
}
else
{
v166 = (GameLevelManager *)GameLevelManager::sharedState(v52);
SavedLevel = GameLevelManager::getSavedLevel(v166, *(_DWORD *)(*((_QWORD *)this + 73) + 380LL));
if ( SavedLevel
|| (v238 = (GameLevelManager *)GameLevelManager::sharedState(nullptr),
(SavedLevel = GameLevelManager::getSavedDailyLevelFromLevelID(
v238,
*(_DWORD *)(*((_QWORD *)this + 73) + 380LL))) != 0) )
{
v54 = *((_QWORD *)this + 73);
if ( *(_DWORD *)(v54 + 372) == *(_DWORD *)(SavedLevel + 576) - *(_DWORD *)(SavedLevel + 580) )
{
LOWORD(v267) = -1;
BYTE2(v267) = 75;
TextArea::colorAllCharactersTo(v48, v267);
goto LABEL_64;
}
}
else
{
v54 = *((_QWORD *)this + 73);
}
if ( *(int *)(v54 + 424) <= 0 || *((_BYTE *)this + 592) )
{
LABEL_65:
if ( !*(_BYTE *)(v54 + 432) )
goto LABEL_66;
if ( *(_QWORD *)(GameManager::sharedState((GameManager *)*(unsigned __int8 *)(v54 + 432)) + 544)
|| *(_QWORD *)(GameManager::sharedState(nullptr) + 552) )
{
goto LABEL_192;
}
v289 = 0;
v290 = 0;
v291 = nullptr;
std::string::__init(&v289, "GJ_button_01.png", 0x10u);
v194 = *((_QWORD *)this + 73);
v195 = *(_DWORD *)(v194 + 380);
if ( (v195 & 0x80000000) != 0 )
{
v195 = -v195;
std::string::assign(&v289, "GJ_button_03.png");
}
else if ( *(_DWORD *)(v194 + 436) == 3 )
{
std::string::assign(&v289, "GJ_button_05.png");
}
GameToolbox::intToString((unsigned __int64 *)&v283, (GameToolbox *)v195);
v197 = (ButtonSprite *)((char *)&v283 + 1);
if ( (v283 & 1) != 0 )
v197 = v285;
v198 = (char *)&v289 + 1;
if ( *((_BYTE *)this + 594) )
v199 = (const char *)&dword_78;
else
v199 = (_BYTE *)(&qword_60 + 4);
if ( (v289 & 1) != 0 )
v198 = v291;
v200 = ButtonSprite::create(v197, v199, 0, 1, 1.0, "bigFont.fnt", v198, v196, 30.0);
if ( (v283 & 1) != 0 )
operator delete(v285);
if ( *((_BYTE *)this + 594) )
LODWORD(v201) = 1053609165;
else
LODWORD(v201) = 1058642330;
(*(void (__fastcall **)(__int64, long double))(*(_QWORD *)v200 + 160LL))(v200, v201);
v202 = CCMenuItemSpriteExtra::create(v200, 0, (__int64)this, (__int64)CommentCell::onGoToLevel, 0);
CCMenuItemSpriteExtra::setSizeMult(v202, 1.2);
(*(void (__fastcall **)(cocos2d::CCNode *, __int64))(*(_QWORD *)v8 + 456LL))(v8, v202);
if ( *((_BYTE *)this + 592) )
{
if ( *((_BYTE *)this + 594) )
{
LABEL_229:
v259 = *((cocos2d::CCNode **)this + 67);
v203 = *((float *)this + 131);
v204 = *((float *)this + 130) - 111.0;
v244 = *(void (__fastcall **)(__int64, void **))(*(_QWORD *)v202 + 184LL);
v205 = 11.5;
goto LABEL_230;
}
}
else
{
v223 = GameManager::sharedState((GameManager *)*((unsigned __int8 *)this + 592));
v224 = *(_DWORD *)(v223 + 1032) - *(_DWORD *)(v223 + 1036) == 2;
if ( *((_BYTE *)this + 594) )
{
if ( !v224 )
goto LABEL_229;
v259 = *((cocos2d::CCNode **)this + 67);
v204 = *((float *)this + 130) - 131.0;
v244 = *(void (__fastcall **)(__int64, void **))(*(_QWORD *)v202 + 184LL);
v203 = *((float *)this + 131);
v205 = 11.5;
LABEL_230:
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v271, v204, v203 - v205);
cocos2d::CCNode::convertToWorldSpace(v273, v259, (const cocos2d::CCPoint *)&v271);
cocos2d::CCNode::convertToNodeSpace((__int64 *)&v277, v8, (const cocos2d::CCPoint *)v273);
v244(v202, &v277);
if ( (v289 & 1) != 0 )
{
operator delete(v291);
v54 = *((_QWORD *)this + 73);
LABEL_66:
if ( *(_BYTE *)(v54 + 384) )
{
v185 = ButtonSprite::create(
(ButtonSprite *)"Show",
(const char *)&qword_28,
0,
1,
0.6,
"goldFont.fnt",
"GJ_button_04.png",
v53,
30.0);
v186 = v185;
if ( *((_BYTE *)this + 594) )
(*(void (__fastcall **)(__int64, float))(*(_QWORD *)v185 + 160LL))(v185, 0.8);
v187 = CCMenuItemSpriteExtra::create(v186, 0, (__int64)this, (__int64)CommentCell::onUnhide, 0);
CCMenuItemSpriteExtra::setSizeMult(v187, 1.2);
(*(void (__fastcall **)(cocos2d::CCNode *, __int64))(*(_QWORD *)v8 + 456LL))(v8, v187);
v188 = *((float *)this + 130);
v189 = *((cocos2d::CCNode **)this + 67);
v190 = *(void (__fastcall **)(__int64, void **))(*(_QWORD *)v187 + 184LL);
v191 = (float *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v186 + 328LL))(v186);
cocos2d::CCPoint::CCPoint(
(cocos2d::CCPoint *)&v271,
(float)(v188 - (float)(*v191 * 0.5)) - 9.0,
*((float *)this + 131) * 0.5);
cocos2d::CCNode::convertToWorldSpace(v273, v189, (const cocos2d::CCPoint *)&v271);
cocos2d::CCNode::convertToNodeSpace((__int64 *)&v277, v8, (const cocos2d::CCPoint *)v273);
v190(v187, &v277);
goto LABEL_115;
}
if ( *(_BYTE *)(v54 + 433) )
{
LABEL_99:
v286 = 0;
v287 = 0;
v288 = nullptr;
if ( (*(_BYTE *)(v54 + 392) & 1) != 0 )
{
std::string::__init(&v286, *(void **)(v54 + 408), *(_QWORD *)(v54 + 400));
}
else
{
v114 = *(_QWORD *)(v54 + 400);
v286 = *(_QWORD *)(v54 + 392);
v287 = v114;
v288 = *(void **)(v54 + 408);
}
v115 = (unsigned __int8)v286 >> 1;
if ( (v286 & 1) != 0 )
{
v115 = v287;
operator delete(v288);
}
if ( v115 )
{
v116 = *((_QWORD *)this + 73);
v289 = 0;
v290 = 0;
v291 = nullptr;
if ( (*(_BYTE *)(v116 + 392) & 1) != 0 )
{
std::string::__init(&v289, *(void **)(v116 + 408), *(_QWORD *)(v116 + 400));
}
else
{
v117 = *(_QWORD *)(v116 + 400);
v289 = *(_QWORD *)(v116 + 392);
v290 = v117;
v291 = *(char **)(v116 + 408);
}
v118 = (char *)&v289 + 1;
if ( (v289 & 1) != 0 )
v118 = v291;
v119 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"%s ago", v118);
v120 = (cocos2d::CCLabelBMFont *)cocos2d::CCString::getCString(v119);
v122 = cocos2d::CCLabelBMFont::create(v120, "chatFont.fnt", v121);
if ( (v289 & 1) != 0 )
operator delete(v291);
(*(void (__fastcall **)(_QWORD, __int64, __int64))(**((_QWORD **)this + 67) + 464LL))(
*((_QWORD *)this + 67),
v122,
1);
v123 = *(void (__fastcall **)(__int64, void **))(*(_QWORD *)v122 + 296LL);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v277, 1.0, 0.5);
v123(v122, &v277);
if ( *((_BYTE *)this + 594) )
LODWORD(v124) = 1053609165;
else
LODWORD(v124) = 1057803469;
(*(void (__fastcall **)(__int64, long double))(*(_QWORD *)v122 + 160LL))(v122, v124);
(*(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v122 + 1072LL))(v122, &qword_113C0F0);
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v122 + 1024LL))(v122, 4294967180LL);
v125 = *((unsigned __int8 *)this + 594);
v126 = *((float *)this + 130);
v127 = *(void (__fastcall **)(__int64, void **))(*(_QWORD *)v122 + 184LL);
if ( v125 )
{
v128 = 7.0;
v129 = v126 - 8.0;
}
else
{
v128 = 14.0;
v129 = v126 - 11.0;
}
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v277, v129, v128);
v127(v122, &v277);
}
LABEL_115:
if ( (v274 & 1) != 0 )
operator delete(v276);
return _stack_chk_guard;
}
v55 = *((float *)this + 131);
if ( *((_BYTE *)this + 594) )
{
v56 = 0.3;
v57 = v55 - 14.0;
v58 = 0.6;
v59 = 12.0;
}
else
{
v56 = 0.4;
v57 = v55 - 20.0;
v58 = 0.8;
v59 = 13.0;
}
v60 = cocos2d::CCSprite::createWithSpriteFrameName(
(cocos2d::CCSprite *)"GJ_likesIcon_001.png",
(const char *)v54);
*((_QWORD *)this + 71) = v60;
v61 = *((float *)this + 130);
v62 = *(void (__fastcall **)(__int64, void **))(*(_QWORD *)v60 + 184LL);
if ( *((_BYTE *)this + 594) )
{
v63 = 16.0;
v64 = v61 - 32.0;
}
else
{
v63 = 20.0;
v64 = (float)(v61 - 35.0) - 4.0;
}
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v277, v64 - v63, v57);
v62(v60, &v277);
(*(void (__fastcall **)(_QWORD, float))(**((_QWORD **)this + 71) + 160LL))(*((_QWORD *)this + 71), v58);
v65 = *(_DWORD *)(*((_QWORD *)this + 73) + 376LL);
if ( (v65 & 0x80000000) != 0 )
{
v218 = *((cocos2d::CCSpriteFrameCache ***)this + 71);
v219 = *((void (__fastcall **)(cocos2d::CCSpriteFrameCache **, __int64))*v218 + 145);
v220 = (cocos2d::CCSpriteFrameCache *)cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(*v218);
v221 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v220, "GJ_dislikesIcon_001.png");
v219(v218, v221);
}
else
{
v66 = *((_QWORD *)this + 71);
v248 = *(cocos2d::CCRect **)(*(_QWORD *)v66 + 1160LL);
v67 = (cocos2d::CCSpriteFrameCache *)cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(v248);
v68 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v67, "GJ_likesIcon_001.png");
((void (__fastcall *)(__int64, __int64))v248)(v66, v68);
}
v69 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(
(cocos2d::CCString *)"%i",
(const char *)v65);
v70 = (cocos2d::CCLabelBMFont *)cocos2d::CCString::getCString(v69);
v72 = cocos2d::CCLabelBMFont::create(v70, "bigFont.fnt", v71);
v73 = *((_QWORD *)this + 67);
*((_QWORD *)this + 72) = v72;
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v73 + 456LL))(v73, v72);
v74 = *((_QWORD *)this + 72);
v75 = *(void (__fastcall **)(__int64, void **))(*(_QWORD *)v74 + 296LL);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v277, 0.5, 0.5);
v75(v74, &v277);
v76 = *((_QWORD *)this + 72);
v249 = *(cocos2d::CCRect **)(*(_QWORD *)v76 + 184LL);
v77 = (*(__int64 (__fastcall **)(_QWORD))(**((_QWORD **)this + 71) + 192LL))(*((_QWORD *)this + 71));
if ( *((_BYTE *)this + 594) )
{
v78 = 1.0;
v79 = v59 + 8.0;
}
else
{
v78 = 0.5;
v79 = v59 + 14.0;
}
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v273, v79, v78);
cocos2d::CCPoint::operator+(&v277, v77);
((void (__fastcall *)(__int64, void **))v249)(v76, &v277);
(*(void (__fastcall **)(_QWORD, float))(**((_QWORD **)this + 72) + 160LL))(*((_QWORD *)this + 72), v56);
if ( *((_BYTE *)this + 594) )
v80 = 15.0;
else
v80 = 28.0;
cocos2d::CCLabelBMFont::limitLabelWidth(*((cocos2d::CCLabelBMFont **)this + 72), v80, v56, 0.0);
v81 = *((_QWORD *)this + 71);
v250 = *(cocos2d::CCRect **)(*(_QWORD *)v81 + 184LL);
v82 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v81 + 192LL))(v81);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v273, 0.0, 2.0);
cocos2d::CCPoint::operator+(&v277, v82);
((void (__fastcall *)(__int64, void **))v250)(v81, &v277);
v83 = (const cocos2d::CCPoint *)(*(__int64 (__fastcall **)(_QWORD))(**((_QWORD **)this + 71) + 192LL))(*((_QWORD *)this + 71));
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v270, v83);
(*(void (__fastcall **)(_QWORD, void *))(**((_QWORD **)this + 71) + 184LL))(
*((_QWORD *)this + 71),
&unk_155C608);
v84 = CCMenuItemSpriteExtra::create(
*((_QWORD *)this + 71),
0,
(__int64)this,
(__int64)CommentCell::onLike,
0);
CCMenuItemSpriteExtra::setSizeMult(v84, 2.0);
(*(void (__fastcall **)(cocos2d::CCNode *, __int64))(*(_QWORD *)v8 + 456LL))(v8, v84);
v85 = *(void (__fastcall **)(__int64, void **))(*(_QWORD *)v84 + 184LL);
cocos2d::CCNode::convertToWorldSpace(
v273,
*((cocos2d::CCNode **)this + 67),
(const cocos2d::CCPoint *)v270);
cocos2d::CCNode::convertToNodeSpace((__int64 *)&v277, v8, (const cocos2d::CCPoint *)v273);
v85(v84, &v277);
v86 = *((_QWORD *)this + 73);
v87 = *(_DWORD *)(v86 + 436);
if ( v87 == 4 )
{
v251 = 0;
}
else if ( *(int *)(v86 + 380) <= 0 || v87 == 3 )
{
v251 = 0;
if ( !v13 )
{
v86 = *(unsigned __int8 *)(v86 + 434);
v251 = v86;
}
}
else
{
v88 = (GameLevelManager *)GameLevelManager::sharedState((GameLevelManager *)v86);
v89 = GameLevelManager::getSavedLevel(v88, *(_DWORD *)(*((_QWORD *)this + 73) + 380LL));
v90 = v89 != 0;
if ( (unsigned int)v90 > v13
&& (v233 = GameManager::sharedState((GameManager *)v90),
v234 = *(_DWORD *)(v233 + 660),
v235 = *(_DWORD *)(v233 + 664),
v236 = (GameManager *)(unsigned int)(*(_DWORD *)(v89 + 576) - *(_DWORD *)(v89 + 580)),
v234 - v235 == (_DWORD)v236) )
{
v237 = GameManager::sharedState(v236);
v86 = *(_DWORD *)(v237 + 660) - *(_DWORD *)(v237 + 664) > 0;
v87 = *(_DWORD *)(*((_QWORD *)this + 73) + 436LL);
v251 = v86;
}
else
{
v86 = *((_QWORD *)this + 73);
v251 = 0;
v87 = *(_DWORD *)(v86 + 436);
}
}
v91 = v87 - 4;
v92 = GameManager::sharedState((GameManager *)v86);
v93 = (const char *)*(unsigned int *)(v92 + 660);
v94 = (unsigned int)((_DWORD)v93 - *(_DWORD *)(v92 + 664));
if ( (int)v94 > 0
&& (v95 = GameManager::sharedState((GameManager *)v94),
v96 = *((_QWORD *)this + 73),
v93 = (const char *)*(unsigned int *)(v95 + 660),
v94 = (unsigned int)((_DWORD)v93 - *(_DWORD *)(v95 + 664)),
*(_DWORD *)(v96 + 372) == (_DWORD)v94) )
{
if ( v91 <= 1 )
goto LABEL_88;
v97 = (GJAccountManager *)*((unsigned __int8 *)this + 592);
if ( !*((_BYTE *)this + 592) )
goto LABEL_88;
v133 = 1;
}
else
{
if ( v91 <= 1 )
{
v232 = GameManager::sharedState((GameManager *)v94);
v93 = (const char *)*(unsigned int *)(v232 + 1032);
if ( (_DWORD)v93 - *(_DWORD *)(v232 + 1036) != 2 )
{
LABEL_210:
v99 = 0;
goto LABEL_91;
}
if ( *(_DWORD *)(*((_QWORD *)this + 73) + 424LL) == 2 )
{
v99 = 0;
LABEL_91:
v103 = *((unsigned __int8 *)this + 592);
*((_QWORD *)this + 75) = 0;
if ( !v103 )
{
v104 = (GameManager *)*(unsigned int *)(*((_QWORD *)this + 73) + 436LL);
if ( (_DWORD)v104 != 5 )
{
v105 = GameManager::sharedState(v104);
v106 = (const char *)*(unsigned int *)(v105 + 1032);
if ( (_DWORD)v106 - *(_DWORD *)(v105 + 1036) == 2 )
{
v260 = (cocos2d::CCRect *)cocos2d::CCSprite::createWithSpriteFrameName(
(cocos2d::CCSprite *)"GJ_checkOn_001.png",
v106);
v207 = cocos2d::CCSprite::createWithSpriteFrameName(
(cocos2d::CCSprite *)"GJ_checkOff_001.png",
v206);
if ( *((_BYTE *)this + 594) )
v208 = 0.45;
else
v208 = 0.6;
(*(void (__fastcall **)(cocos2d::CCRect *, float))(*(_QWORD *)v260 + 160LL))(v260, v208);
(*(void (__fastcall **)(__int64, float))(*(_QWORD *)v207 + 160LL))(v207, v208);
v209 = (CCMenuItemToggler *)CCMenuItemToggler::create(
v207,
(__int64)v260,
(__int64)this,
(__int64)CommentCell::onBulkSelectToggle,
0);
v210 = *((_QWORD *)this + 73);
*((_QWORD *)this + 75) = v209;
CCMenuItemToggler::toggle(v209, *(_BYTE *)(v210 + 440));
CCMenuItemToggler::setSizeMult(*((CCMenuItemToggler **)this + 75), 1.3);
*(_BYTE *)(*((_QWORD *)this + 75) + 393LL) = 1;
(*(void (__fastcall **)(cocos2d::CCNode *, _QWORD))(*(_QWORD *)v8 + 456LL))(
v8,
*((_QWORD *)this + 75));
if ( v99 )
v211 = (const cocos2d::CCPoint *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v99
+ 192LL))(v99);
else
v211 = (const cocos2d::CCPoint *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v84
+ 192LL))(v84);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v271, v211);
v212 = *((_QWORD *)this + 75);
v213 = *(void (__fastcall **)(__int64, void **))(*(_QWORD *)v212 + 184LL);
if ( *((_BYTE *)this + 594) )
v214 = -21.0;
else
v214 = -24.0;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v273, v214, 0.0);
cocos2d::CCPoint::operator+(&v277, &v271);
v213(v212, &v277);
}
}
}
v107 = cocos2d::CCLabelBMFont::create((cocos2d::CCLabelBMFont *)"...", "bigFont.fnt", v102);
if ( *((_BYTE *)this + 594) )
LODWORD(v108) = 1053609165;
else
LODWORD(v108) = 0.5;
(*(void (__fastcall **)(__int64, long double))(*(_QWORD *)v107 + 160LL))(v107, v108);
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v107 + 1024LL))(v107, 120);
v109 = CCMenuItemSpriteExtra::create(
v107,
0,
(__int64)this,
(__int64)CommentCell::onMoreOptions,
0);
CCMenuItemSpriteExtra::setSizeMult(v109, 1.6);
(*(void (__fastcall **)(cocos2d::CCNode *, __int64))(*(_QWORD *)v8 + 456LL))(v8, v109);
v110 = *((cocos2d::CCNode **)this + 67);
v253 = *(cocos2d::CCRect **)(*(_QWORD *)v109 + 184LL);
v111 = *((float *)this + 130);
if ( *((_BYTE *)this + 594) )
{
v112 = v111 - 10.0;
v113 = 7.0;
}
else
{
v112 = v111 - 12.0;
v113 = 9.0;
}
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v271, v112, *((float *)this + 131) - v113);
cocos2d::CCNode::convertToWorldSpace(v273, v110, (const cocos2d::CCPoint *)&v271);
cocos2d::CCNode::convertToNodeSpace((__int64 *)&v277, v8, (const cocos2d::CCPoint *)v273);
((void (__fastcall *)(__int64, void **))v253)(v109, &v277);
v54 = *((_QWORD *)this + 73);
goto LABEL_99;
}
LABEL_88:
v98 = cocos2d::CCSprite::createWithSpriteFrameName(
(cocos2d::CCSprite *)"GJ_deleteIcon_001.png",
v93);
(*(void (__fastcall **)(__int64, float))(*(_QWORD *)v98 + 160LL))(v98, v58 * 0.95);
v99 = CCMenuItemSpriteExtra::create(v98, 0, (__int64)this, (__int64)CommentCell::onConfirmDelete, 0);
CCMenuItemSpriteExtra::setSizeMult(v99, 2.0);
(*(void (__fastcall **)(cocos2d::CCNode *, __int64))(*(_QWORD *)v8 + 456LL))(v8, v99);
v252 = *(cocos2d::CCRect **)(*(_QWORD *)v99 + 184LL);
v100 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v84 + 192LL))(v84);
if ( *((_BYTE *)this + 594) )
v101 = -20.0;
else
v101 = -24.0;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v273, v101, -1.0);
cocos2d::CCPoint::operator+(&v277, v100);
((void (__fastcall *)(__int64, void **))v252)(v99, &v277);
goto LABEL_91;
}
v97 = (GJAccountManager *)*((unsigned __int8 *)this + 592);
if ( !*((_BYTE *)this + 592) )
{
LABEL_87:
if ( !v251 )
{
v193 = GameManager::sharedState(nullptr);
v93 = (const char *)*(unsigned int *)(v193 + 1032);
if ( (_DWORD)v93 - *(_DWORD *)(v193 + 1036) != 2 )
goto LABEL_210;
}
goto LABEL_88;
}
v96 = *((_QWORD *)this + 73);
v133 = 0;
}
v134 = *(_DWORD *)(v96 + 388);
v135 = GJAccountManager::sharedState(v97);
v93 = (const char *)*(unsigned int *)(v135 + 352);
if ( v134 == (_DWORD)v93 - *(_DWORD *)(v135 + 356) || v133 )
goto LABEL_88;
goto LABEL_87;
}
LABEL_192:
v54 = *((_QWORD *)this + 73);
goto LABEL_66;
}
if ( v224 )
{
v259 = *((cocos2d::CCNode **)this + 67);
v204 = *((float *)this + 130) - 160.0;
v244 = *(void (__fastcall **)(__int64, void **))(*(_QWORD *)v202 + 184LL);
v203 = *((float *)this + 131);
v205 = 19.5;
goto LABEL_230;
}
}
v259 = *((cocos2d::CCNode **)this + 67);
v204 = *((float *)this + 130) - 135.0;
v244 = *(void (__fastcall **)(__int64, void **))(*(_QWORD *)v202 + 184LL);
v203 = *((float *)this + 131);
v205 = 19.5;
goto LABEL_230;
}
LOWORD(v268) = *(_WORD *)(v54 + 429);
BYTE2(v268) = *(_BYTE *)(v54 + 431);
TextArea::colorAllCharactersTo(v48, v268);
}
LABEL_64:
v54 = *((_QWORD *)this + 73);
goto LABEL_65;
}
v277 = nullptr;
v278 = nullptr;
v279 = 0;
v168 = EmoteSprite::maxEmotesComment((EmoteSprite *)v41);
EmoteSprite::parseTokens((char *)&v274, &v277, v168);
if ( v277 != v278 )
{
EmoteSprite::replaceTokens((__int64)&v274, (__int64 *)&v277, v280, 0.0);
if ( (v274 & 1) != 0 )
{
*(_BYTE *)v276 = 0;
v275 = 0;
}
else
{
LOWORD(v274) = 0;
}
std::string::reserve(&v274, 0);
v274 = v280[0];
v275 = v280[1];
v276 = (void *)v280[2];
}
v170 = (cocos2d::CCLabelBMFont *)((char *)&v274 + 1);
if ( (v274 & 1) != 0 )
v170 = (cocos2d::CCLabelBMFont *)v276;
v171 = (cocos2d::CCLabelBMFont *)cocos2d::CCLabelBMFont::create(v170, "chatFont.fnt", v169);
(*(void (__fastcall **)(_QWORD, cocos2d::CCLabelBMFont *))(**((_QWORD **)this + 67) + 456LL))(
*((_QWORD *)this + 67),
v171);
v172 = *(void (__fastcall **)(cocos2d::CCLabelBMFont *, __int64 *))(*(_QWORD *)v171 + 296LL);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v273, 0.0, 0.5);
v172(v171, v273);
v173 = *(void (__fastcall **)(cocos2d::CCLabelBMFont *, __int64 *))(*(_QWORD *)v171 + 184LL);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v273, 10.0, (float)(*((float *)this + 131) * 0.5) + -9.0);
v173(v171, v273);
v174 = (GameLevelManager *)cocos2d::CCLabelBMFont::limitLabelWidth(v171, 270.0, 0.7, 0.0);
if ( v13 )
{
v192 = *(void (__fastcall **)(cocos2d::CCLabelBMFont *, __int64 *))(*(_QWORD *)v171 + 1072LL);
LOWORD(v273[0]) = -206;
BYTE2(v273[0]) = -1;
v192(v171, v273);
}
else
{
v175 = (GameLevelManager *)GameLevelManager::sharedState(v174);
SavedDailyLevelFromLevelID = GameLevelManager::getSavedLevel(v175, *(_DWORD *)(*((_QWORD *)this + 73) + 380LL));
if ( !SavedDailyLevelFromLevelID )
{
v240 = (GameLevelManager *)GameLevelManager::sharedState(nullptr);
SavedDailyLevelFromLevelID = GameLevelManager::getSavedDailyLevelFromLevelID(
v240,
*(_DWORD *)(*((_QWORD *)this + 73) + 380LL));
if ( !SavedDailyLevelFromLevelID )
{
v177 = *((_QWORD *)this + 73);
goto LABEL_169;
}
}
v177 = *((_QWORD *)this + 73);
if ( *(_DWORD *)(v177 + 372) != *(_DWORD *)(SavedDailyLevelFromLevelID + 576)
- *(_DWORD *)(SavedDailyLevelFromLevelID + 580) )
{
LABEL_169:
if ( *(int *)(v177 + 424) > 0 && !*((_BYTE *)this + 592) )
{
v178 = *(_BYTE *)(v177 + 430);
v179 = *(_BYTE *)(v177 + 431);
v180 = *(void (__fastcall **)(cocos2d::CCLabelBMFont *, __int64 *))(*(_QWORD *)v171 + 1072LL);
LOBYTE(v273[0]) = *(_BYTE *)(v177 + 429);
BYTE1(v273[0]) = v178;
BYTE2(v273[0]) = v179;
v180(v171, v273);
}
goto LABEL_172;
}
v230 = *(void (__fastcall **)(cocos2d::CCLabelBMFont *, __int64 *))(*(_QWORD *)v171 + 1072LL);
LOWORD(v273[0]) = -1;
BYTE2(v273[0]) = 75;
v230(v171, v273);
}
LABEL_172:
EmoteSprite::attachToLabel((__int64)v171, *((_QWORD *)this + 67), (__int64 *)&v277, 0.0);
if ( v277 )
{
if ( v277 != v278 )
v278 += -24
* ((0xAAAAAAAAAAAAAABLL * ((unsigned __int64)(v278 - 24 - (_BYTE *)v277) >> 3)) & 0x1FFFFFFFFFFFFFFFLL)
- 24;
operator delete(v277);
}
goto LABEL_64;
}
return _stack_chk_guard;
}