//
// CommentCell::loadFromComment from 0x6168ac to 0x618704 (7768 bytes)
//
// 6 xrefs:
// > CommentCell::onUnhide @ 0x61877c
// > CommentCell::onDelete @ 0x6189e8
// > CommentCell::onDelete @ 0x618a1c
// > CommentCell::onUndelete @ 0x618aa0
// > CustomListView::loadCell @ 0x6206ec
// > ??> @ 0xb6f28
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
void CommentCell::loadFromComment(CommentCell *a1, GJComment *a2)
{
GJComment *m_comment; // x0
int m_levelID; // w1
bool v6; // w0
cocos2d::CCLayer *m_mainLayer; // x2
cocos2d::CCMenu *v8; // x28
GJComment *v9; // x1
int m_accountID; // w24
cocos2d::CCLabelBMFont *v11; // x22
void *v12; // x0
float v13; // s0
float v14; // s8
GJComment *v15; // x0
SimplePlayer *v16; // x23
long double v17; // q0
float v18; // s1
GameManager *v19; // x0
GameManager *v20; // x0
GJUserScore *m_userScore; // x1
char v22; // w4
IconType m_iconType; // w3
int m_iconID; // w1
float v25; // s11
float width; // s9
float v27; // s0
float v28; // s0
float v29; // s1
const char *v30; // x0
cocos2d::CCSprite *v31; // x23
long double v32; // q0
const char *m_percentage; // x1
cocos2d::CCString *v34; // x0
cocos2d::CCLabelBMFont *v35; // x23
long double v36; // q0
float v37; // s9
float v38; // s0
float v39; // s2
float v40; // s9
void (__fastcall *v41)(cocos2d::CCLabelBMFont *__hidden, const cocos2d::CCPoint *); // x20
void (__fastcall *v42)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // x20
float m_width; // s0
float v44; // s8
float m_height; // s10
float v46; // s9
cocos2d::CCNode *v47; // x20
int (__fastcall *getTag)(const cocos2d::CCObject *__hidden); // x2
void *v49; // x0
__int64 v50; // x20
float v51; // s3
unsigned __int64 v52; // x1
float v53; // s2
int v54; // w20
char *v55; // x0
cocos2d::CCArray *m_pTargetArray; // x2
float v57; // s0
int v58; // w24
_BOOL4 m_compactMode; // w2
float v60; // s1
float v61; // s8
cocos2d::CCLabelBMFont *v62; // x20
void (__fastcall *v63)(cocos2d::CCLabelBMFont *__hidden, const cocos2d::CCPoint *); // x22
void (__fastcall *v64)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // x22
void (__fastcall *v65)(cocos2d::CCLabelBMFont *__hidden, const cocos2d::ccColor3B *); // x3
const char *v66; // x6
GJComment *v67; // x2
float v68; // s0
float v69; // s9
float v70; // s8
float v71; // s10
float v72; // s11
cocos2d::CCSprite *v73; // x20
float v74; // s1
void (__fastcall *v75)(cocos2d::CCSprite *__hidden, const cocos2d::CCPoint *); // x22
float v76; // s2
float v77; // s0
cocos2d::CCSprite *m_iconSprite; // x22
unsigned int m_likeCount; // w20
cocos2d::CCSpriteFrameCache *v80; // x0
cocos2d::CCSpriteFrame *v81; // x0
cocos2d::CCString *v82; // x0
cocos2d::CCLabelBMFont *v83; // x0
cocos2d::CCLayer *v84; // x2
cocos2d::CCLabelBMFont *m_likeLabel; // x20
void (__fastcall *v86)(cocos2d::CCLabelBMFont *__hidden, const cocos2d::CCPoint *); // x22
cocos2d::CCLabelBMFont *v87; // x20
void (__fastcall *v88)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // x23
const cocos2d::CCPoint *v89; // x22
float v90; // s1
float v91; // s0
float v92; // s0
cocos2d::CCSprite *v93; // x20
void (__fastcall *v94)(cocos2d::CCSprite *__hidden, const cocos2d::CCPoint *); // x23
__int64 v95; // x22
const cocos2d::CCPoint *v96; // x0
CCMenuItemSpriteExtra *v97; // x20
void (__fastcall *v98)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // x22
GJComment *v99; // x0
GameLevelManager *v100; // x0
__int64 v101; // x22
_BOOL4 m_canDelete; // w22
int v103; // w23
GJAccountManager *v104; // x0
GameManager *v105; // x0
GameManager *v106; // x0
cocos2d::CCSprite *v107; // x22
CCMenuItemSpriteExtra *v108; // x22
CCMenuItemSpriteExtra *v109; // x0
const cocos2d::CCPoint *(__fastcall *getPosition)(cocos2d::CCNode *__hidden); // x1
void (__fastcall *v111)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // x20
__int64 v112; // x23
float v113; // s0
void *v114; // x0
__int64 v115; // x20
void *v116; // x0
char *v117; // x0
cocos2d::CCLabelBMFont *v118; // x19
cocos2d::CCArray **p_m_pTargetArray; // x20
unsigned int *v120; // x19
int m_nExtraKerning; // w0
CCMenuItemSpriteExtra *v122; // x23
void (__fastcall *v123)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // x24
float v124; // s10
float v125; // s0
float v126; // s9
TextArea *v127; // x20
char *v128; // x0
void (__fastcall *v129)(cocos2d::CCSprite *__hidden, const cocos2d::CCPoint *); // x22
void (__fastcall *v130)(cocos2d::CCSprite *__hidden, const cocos2d::CCPoint *); // x22
float v131; // s1
__int64 v132; // x0
cocos2d::CCNode *v133; // x22
CCMenuItemSpriteExtra *v134; // x20
float v135; // s8
cocos2d::CCLayer *v136; // x24
void (__fastcall *v137)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // x23
float *v138; // x0
void *v139; // x0
char *v140; // x0
unsigned int *p_m_nExtraKerning; // x19
GameLevelManager *v142; // x0
GameLevelManager *v143; // x0
void *v144; // x0
unsigned int *v145; // x1
int v146; // w2
GJComment *v147; // x22
void *v148; // x0
cocos2d::CCPoint *p_m_textOffset; // x0
unsigned int v150; // w23
const char *v151; // x6
cocos2d::CCNode *v152; // x20
long double v153; // q0
cocos2d::CCPoint *v154; // x0
CCMenuItemSpriteExtra *v155; // x20
void (__fastcall *v156)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // x23
float v157; // s0
float v158; // s0
float v159; // s1
char *v160; // x0
GameLevelManager *v161; // x0
GJGameLevel *SavedLevel; // x0
GLubyte g; // w5
GLubyte b; // w4
void (__fastcall *v165)(cocos2d::CCLabelBMFont *__hidden, const cocos2d::ccColor3B *); // x3
GameLevelManager *v166; // x0
GJGameLevel *SavedDailyLevelFromLevelID; // x0
double v168; // d0
cocos2d::CCString *v169; // x0
cocos2d::CCLabelBMFont *v170; // x20
void *v171; // x0
void (__fastcall *v172)(cocos2d::CCLabelBMFont *__hidden, const cocos2d::CCPoint *); // x22
long double v173; // q0
_BOOL4 v174; // w0
float v175; // s0
void (__fastcall *v176)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // x19
float v177; // s1
float v178; // s0
GameManager *v179; // x0
GameManager *v180; // x0
unsigned int *v181; // x1
int v182; // w2
void (__fastcall *v183)(cocos2d::CCLabelBMFont *__hidden, const cocos2d::ccColor3B *); // x3
unsigned int *v184; // x1
int v185; // w2
unsigned int *p_m_caption; // x1
int m_data; // w2
GameLevelManager *v188; // x0
void (__fastcall *setDisplayFrame)(cocos2d::CCSprite *__hidden, cocos2d::CCSpriteFrame *); // x23
cocos2d::CCSpriteFrameCache *v190; // x0
cocos2d::CCSpriteFrame *v191; // x0
GameManager *v192; // x0
unsigned int *v193; // x1
int v194; // w2
unsigned int *v195; // x1
int v196; // w2
float v197; // s0
unsigned int *v198; // x1
int v199; // w2
unsigned int *v200; // x1
int v201; // w2
unsigned int *v202; // x1
int v203; // w2
float v204; // s0
float v205; // s0
unsigned int *v206; // x1
int v207; // w2
unsigned int *v208; // x1
int v209; // w2
unsigned int *v210; // x1
int v211; // w2
unsigned int *v212; // x1
int v213; // w2
unsigned int *v214; // x1
int v215; // w2
void (__fastcall *v216)(cocos2d::CCLabelBMFont *__hidden, const cocos2d::ccColor3B *); // x3
GameLevelManager *v217; // x0
GameLevelManager *v218; // x0
cocos2d::CCLayer *v219; // [xsp+88h] [xbp+88h]
cocos2d::CCNode *v220; // [xsp+88h] [xbp+88h]
cocos2d::CCPoint *setPosition; // [xsp+90h] [xbp+90h]
cocos2d::CCPoint *setColor; // [xsp+90h] [xbp+90h]
IconType v223; // [xsp+90h] [xbp+90h]
cocos2d::CCPoint *setAnchorPoint; // [xsp+90h] [xbp+90h]
cocos2d::CCPoint *v225; // [xsp+90h] [xbp+90h]
cocos2d::CCPoint *v226; // [xsp+90h] [xbp+90h]
cocos2d::CCLayer *v227; // [xsp+90h] [xbp+90h]
cocos2d::CCPoint *v228; // [xsp+90h] [xbp+90h]
cocos2d::CCPoint *setScale; // [xsp+90h] [xbp+90h]
cocos2d::CCPoint *v230; // [xsp+90h] [xbp+90h]
cocos2d::CCPoint *v231; // [xsp+90h] [xbp+90h]
unsigned int v232; // [xsp+9Ch] [xbp+9Ch]
cocos2d::ccColor3B v233; // [xsp+B0h] [xbp+B0h]
cocos2d::ccColor3B v234; // [xsp+B8h] [xbp+B8h]
cocos2d::CCPoint v235; // [xsp+C8h] [xbp+C8h] BYREF
cocos2d::CCLabelBMFont *v236; // [xsp+D0h] [xbp+D0h] BYREF
char *v237; // [xsp+D8h] [xbp+D8h] BYREF
__int64 v238; // [xsp+E0h] [xbp+E0h] BYREF
char *v239; // [xsp+E8h] [xbp+E8h] BYREF
ButtonSprite *v240; // [xsp+F0h] [xbp+F0h] BYREF
cocos2d::CCRect v241; // [xsp+F8h] [xbp+F8h] BYREF
cocos2d::CCRect v242; // [xsp+108h] [xbp+108h] BYREF
cocos2d::CCPoint v243; // 0:kr08_8.8
cocos2d::CCPoint v244; // 0:kr18_8.8
cocos2d::CCPoint v245; // 0:kr28_8.8
cocos2d::CCPoint v246; // 0:kr38_8.8
cocos2d::SEL_MenuHandler v247; // 0:x2.16
cocos2d::SEL_MenuHandler v248; // 0:x2.16
cocos2d::SEL_MenuHandler v249; // 0:x2.16
cocos2d::SEL_MenuHandler v250; // 0:x2.16
cocos2d::SEL_MenuHandler v251; // 0:x2.16
cocos2d::CCRect v252; // 0:s0.4,4:s1.4,8:s2.4,12:s3.4
a1->m_backgroundLayer->setOpacity(a1->m_backgroundLayer, 0xFFFFFFFFLL);
cocos2d::CCObject::retain(a2);
m_comment = a1->m_comment;
if ( m_comment )
cocos2d::CCObject::release(m_comment);
m_levelID = a2->m_levelID;
v6 = 0;
a1->m_comment = a2;
if ( !m_levelID )
v6 = a2->m_accountID > 0;
m_mainLayer = a1->m_mainLayer;
a1->m_accountComment = v6;
m_mainLayer->removeAllChildrenWithCleanup(m_mainLayer, 1);
if ( !a1->m_comment->m_commentDeleted )
{
v8 = cocos2d::CCMenu::create();
a1->m_mainLayer->addChild_0(a1->m_mainLayer, v8, 2);
v9 = a1->m_comment;
if ( !v9->m_unkMultiplayerBool )
{
v142 = GameLevelManager::sharedState();
GameLevelManager::userNameForUserID((__int64 *)&v240, v142, a1->m_comment->m_userID);
if ( a1->m_accountComment )
{
v143 = GameLevelManager::sharedState();
GameLevelManager::tryGetUsername((__int64 *)&v241, v143, a1->m_comment->m_accountID);
sub_D163D4(&v240, &v241);
v144 = (void *)(*(_QWORD *)&v241.origin - 24LL);
if ( (__int64 *)(*(_QWORD *)&v241.origin - 24LL) != &qword_124B6B0 )
{
if ( &pthread_create )
{
v145 = (unsigned int *)(*(_QWORD *)&v241.origin - 8LL);
do
v146 = __ldaxr(v145);
while ( __stlxr(v146 - 1, v145) );
}
else
{
v146 = *(_DWORD *)(*(_QWORD *)&v241.origin - 8LL);
*(_DWORD *)(*(_QWORD *)&v241.origin - 8LL) = v146 - 1;
}
if ( v146 <= 0 )
operator delete(v144);
}
}
v147 = a1->m_comment;
sub_D18D28(&v242, &v240);
sub_D18EA8(&v147->m_userName, &v242);
v148 = (void *)(*(_QWORD *)&v242.origin - 24LL);
if ( (__int64 *)(*(_QWORD *)&v242.origin - 24LL) != &qword_124B6B0 )
{
if ( &pthread_create )
{
v210 = (unsigned int *)(*(_QWORD *)&v242.origin - 8LL);
do
v211 = __ldaxr(v210);
while ( __stlxr(v211 - 1, v210) );
}
else
{
v211 = *(_DWORD *)(*(_QWORD *)&v242.origin - 8LL);
*(_DWORD *)(*(_QWORD *)&v242.origin - 8LL) = v211 - 1;
}
if ( v211 <= 0 )
operator delete(v148);
}
p_m_textOffset = &v240[-1].m_textOffset;
if ( &v240[-1].m_textOffset == (cocos2d::CCPoint *)&qword_124B6B0 )
goto LABEL_143;
if ( &pthread_create )
{
p_m_caption = (unsigned int *)&v240[-1].m_caption;
do
m_data = __ldaxr(p_m_caption);
while ( __stlxr(m_data - 1, p_m_caption) );
}
else
{
m_data = (int)v240[-1].m_caption.m_data.m_data;
LODWORD(v240[-1].m_caption.m_data.m_data) = m_data - 1;
}
if ( m_data > 0 )
{
LABEL_143:
v9 = a1->m_comment;
}
else
{
operator delete(p_m_textOffset);
v9 = a1->m_comment;
}
}
m_accountID = v9->m_accountID;
if ( !__PAIR64__(a1->m_accountComment, m_accountID) )
{
v188 = GameLevelManager::sharedState();
m_accountID = GameLevelManager::accountIDForUserID(v188, a1->m_comment->m_userID);
v9 = a1->m_comment;
v9->m_accountID = m_accountID;
}
v232 = m_accountID == 71;
sub_D18D28(&v242, &v9->m_userName);
v11 = cocos2d::CCLabelBMFont::create();
v12 = (void *)(*(_QWORD *)&v242.origin - 24LL);
if ( (__int64 *)(*(_QWORD *)&v242.origin - 24LL) != &qword_124B6B0 )
{
if ( &pthread_create )
{
v193 = (unsigned int *)(*(_QWORD *)&v242.origin - 8LL);
do
v194 = __ldaxr(v193);
while ( __stlxr(v194 - 1, v193) );
}
else
{
v194 = *(_DWORD *)(*(_QWORD *)&v242.origin - 8LL);
*(_DWORD *)(*(_QWORD *)&v242.origin - 8LL) = v194 - 1;
}
if ( v194 <= 0 )
operator delete(v12);
}
if ( a1->m_compactMode )
{
cocos2d::CCLabelBMFont::limitLabelWidth(v11, 150.0, 0.5, 0.0);
}
else
{
if ( a1->m_comment->m_hasLevelID )
v13 = 100.0;
else
v13 = 150.0;
cocos2d::CCLabelBMFont::limitLabelWidth(v11, v13, 0.7, 0.0);
}
v14 = 0.0;
if ( !a1->m_accountComment )
{
v15 = a1->m_comment;
if ( v15->m_userScore )
{
v16 = SimplePlayer::create((int)&dword_0 + 1);
a1->m_mainLayer->addChild_0(a1->m_mainLayer, v16, 1);
if ( a1->m_compactMode )
LODWORD(v17) = 1055286887;
else
LODWORD(v17) = 1058642330;
v16->setScale(v16, v17);
if ( a1->m_compactMode )
v18 = 11.0;
else
v18 = 19.5;
setPosition = (cocos2d::CCPoint *)v16->setPosition;
cocos2d::CCPoint::CCPoint(&v242.origin, 20.0, a1->m_height - v18);
((void (__fastcall *)(SimplePlayer *, cocos2d::CCRect *))setPosition)(v16, &v242);
setColor = (cocos2d::CCPoint *)v16->setColor;
v19 = GameManager::sharedState();
*(cocos2d::ccColor3B *)&v242.origin.x = GameManager::colorForIdx(v19, a1->m_comment->m_userScore->m_color1);
((void (__fastcall *)(SimplePlayer *, cocos2d::CCRect *))setColor)(v16, &v242);
v20 = GameManager::sharedState();
*(cocos2d::ccColor3B *)&v242.origin.x = GameManager::colorForIdx(v20, a1->m_comment->m_userScore->m_color2);
SimplePlayer::setSecondColor(v16, (const cocos2d::ccColor3B *)&v242);
SimplePlayer::tryEnableCustomGlowColor(v16, a1->m_comment->m_userScore->m_color3);
m_userScore = a1->m_comment->m_userScore;
v22 = m_userScore->m_special == 2 || m_userScore->m_glowEnabled;
m_iconType = m_userScore->m_iconType;
m_iconID = m_userScore->m_iconID;
v16->m_hasGlowOutline = v22;
v223 = m_iconType;
SimplePlayer::updatePlayerFrame(v16, m_iconID, m_iconType);
SimplePlayer::updateColors(v16);
switch ( v223 )
{
case Wave:
v14 = 26.0;
setScale = (cocos2d::CCPoint *)v16->setScale;
v204 = v16->getScale(v16);
((void (__fastcall *)(SimplePlayer *, float))setScale)(v16, v204 * 1.15);
v220 = (cocos2d::CCNode *)v16->setPosition;
v230 = (cocos2d::CCPoint *)v16->getPosition(v16);
cocos2d::CCPoint::CCPoint(&v241.origin, 1.0, 0.0);
cocos2d::CCPoint::operator+(&v242, v230, &v241);
((void (__fastcall *)(SimplePlayer *, cocos2d::CCRect *))v220)(v16, &v242);
v15 = a1->m_comment;
break;
case Spider:
case Ship:
v14 = 26.0;
v228 = (cocos2d::CCPoint *)v16->setScale;
v197 = v16->getScale(v16);
((void (__fastcall *)(SimplePlayer *, float))v228)(v16, v197 * 0.9);
v15 = a1->m_comment;
break;
case Ufo:
v14 = 26.0;
v231 = (cocos2d::CCPoint *)v16->setScale;
v205 = v16->getScale(v16);
((void (__fastcall *)(SimplePlayer *, float))v231)(v16, v205 * 0.95);
v15 = a1->m_comment;
break;
default:
v15 = a1->m_comment;
v14 = 26.0;
break;
}
}
else
{
v14 = 0.0;
}
v25 = 0.0;
if ( v15->m_modBadge > 0 )
{
width = v11->getContentSize(v11)->width;
v27 = (float)(v14 + 10.0) + (float)(width * v11->getScale(v11));
if ( a1->m_compactMode )
{
v28 = v27 + 8.0;
v29 = 11.5;
}
else
{
v28 = v27 + 12.0;
v29 = 19.5;
}
cocos2d::CCPoint::CCPoint(&v242.origin, v28, a1->m_height - v29);
if ( a1->m_comment->m_modBadge == 2 )
v30 = "modBadge_02_001.png";
else
v30 = "modBadge_01_001.png";
v31 = cocos2d::CCSprite::createWithSpriteFrameName(v30);
if ( a1->m_compactMode )
LODWORD(v32) = 1057803469;
else
LODWORD(v32) = 0.75;
v31->setScale(v31, v32);
a1->m_mainLayer->addChild_0(a1->m_mainLayer, v31, 10);
v31->setPosition(v31, &v242.origin);
if ( a1->m_compactMode )
{
v25 = 15.0;
v15 = a1->m_comment;
}
else
{
v15 = a1->m_comment;
v25 = 22.0;
}
}
m_percentage = (const char *)(unsigned int)v15->m_percentage;
if ( (int)m_percentage > 0 )
{
v34 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"%i%%", m_percentage);
cocos2d::CCString::getCString(v34);
v35 = cocos2d::CCLabelBMFont::create();
a1->m_mainLayer->addChild(a1->m_mainLayer, v35);
setAnchorPoint = (cocos2d::CCPoint *)v35->setAnchorPoint;
cocos2d::CCPoint::CCPoint(&v242.origin, 0.0, 0.5);
((void (__fastcall *)(cocos2d::CCLabelBMFont *, cocos2d::CCRect *))setAnchorPoint)(v35, &v242);
if ( a1->m_compactMode )
LODWORD(v36) = 1056293520;
else
LODWORD(v36) = 1058642330;
v35->setScale(v35, v36);
v35->setColor(v35, (const cocos2d::ccColor3B *)&unk_EBE230);
v35->setOpacity(v35, 4294967190LL);
v225 = (cocos2d::CCPoint *)v35->setPosition;
v37 = v11->getContentSize(v11)->width;
v38 = (float)((float)((float)(v14 + 10.0) + v25) + (float)(v37 * v11->getScale(v11))) + 4.0;
if ( a1->m_compactMode )
v39 = 11.5;
else
v39 = 19.5;
cocos2d::CCPoint::CCPoint(&v242.origin, v38, a1->m_height - v39);
((void (__fastcall *)(cocos2d::CCLabelBMFont *, cocos2d::CCRect *))v225)(v35, &v242);
}
}
if ( a1->m_compactMode )
v40 = 10.0;
else
v40 = 18.0;
if ( !m_accountID || a1->m_accountComment || a2->m_hasLevelID )
{
a1->m_mainLayer->addChild(a1->m_mainLayer, v11);
v41 = v11->setAnchorPoint;
cocos2d::CCPoint::CCPoint(&v242.origin, 0.0, 0.5);
v41(v11, &v242.origin);
v42 = v11->setPosition;
cocos2d::CCPoint::CCPoint(&v242.origin, v14 + 10.0, a1->m_height - v40);
v42(v11, &v242.origin);
if ( m_accountID != 71 && a1->m_accountComment < (unsigned int)(m_accountID <= 0) )
{
v216 = v11->setColor;
LOWORD(v242.origin.x) = -166;
BYTE2(v242.origin.x) = -1;
v216(v11, (const cocos2d::ccColor3B *)&v242);
}
m_width = a1->m_width;
if ( a1->m_compactMode )
goto LABEL_52;
}
else
{
v249.ptr = (void (__cdecl *)(cocos2d::CCObject *))a1;
v249.adj = (size_t)CommentCell::onViewProfile;
v122 = CCMenuItemSpriteExtra::create(v11, nullptr, v249);
v8->addChild(v8, v122);
v219 = a1->m_mainLayer;
v123 = v122->setPosition;
v124 = v11->getContentSize(v11)->width * 0.5;
v125 = v11->getScale(v11);
cocos2d::CCPoint::CCPoint(
(cocos2d::CCPoint *)&v240,
(float)(v14 + 10.0) + (float)(v124 * v125),
a1->m_height - v40);
cocos2d::CCNode::convertToWorldSpace(v219, (const cocos2d::CCPoint *)&v240);
v244 = cocos2d::CCNode::convertToNodeSpace(v8, &v241.origin);
((void (__fastcall *)(CCMenuItemSpriteExtra *, cocos2d::CCRect *, float, float))v123)(v122, &v242, v244.x, v244.y);
m_width = a1->m_width;
if ( a1->m_compactMode )
{
LABEL_52:
v44 = 8.0;
m_height = a1->m_height;
v46 = m_width - 8.0;
goto LABEL_53;
}
}
m_height = a1->m_height;
v46 = m_width - 10.0;
v44 = 12.0;
LABEL_53:
cocos2d::CCPoint::CCPoint(&v235, m_width * 0.5, m_height * 0.5);
if ( !a1->m_compactMode )
{
cocos2d::CCRect::CCRect(&v241, 0.0, 0.0, 80.0, 80.0);
cocos2d::CCRect::CCRect(&v242, &v241);
v47 = (cocos2d::CCNode *)cocos2d::extension::CCScale9Sprite::create(
(cocos2d::extension::CCScale9Sprite *)"square02b_001.png",
(const char *)&v242,
v252);
cocos2d::CCSize::CCSize((cocos2d::CCSize *)&v242, v46, m_height - v44);
v47->setContentSize(v47, (const cocos2d::CCSize *)&v242);
a1->m_mainLayer->addChild_0(a1->m_mainLayer, v47, -1);
v47->setPosition(v47, &v235);
getTag = v47->__vftable[1].getTag;
LOWORD(v240) = 16514;
BYTE2(v240) = 33;
((void (__fastcall *)(cocos2d::CCNode *, ButtonSprite **))getTag)(v47, &v240);
((void (__fastcall *)(cocos2d::CCNode *, __int64))v47->__vftable[1].~CCNode_0)(v47, 100);
}
sub_D18D28(&v242, &a1->m_comment->m_commentString);
sub_D153B8((int)&v236, *(char **)&v242.origin);
v49 = (void *)(*(_QWORD *)&v242.origin - 24LL);
if ( (__int64 *)(*(_QWORD *)&v242.origin - 24LL) != &qword_124B6B0 )
{
if ( &pthread_create )
{
v195 = (unsigned int *)(*(_QWORD *)&v242.origin - 8LL);
do
v196 = __ldaxr(v195);
while ( __stlxr(v196 - 1, v195) );
}
else
{
v196 = *(_DWORD *)(*(_QWORD *)&v242.origin - 8LL);
*(_DWORD *)(*(_QWORD *)&v242.origin - 8LL) = v196 - 1;
}
if ( v196 <= 0 )
operator delete(v49);
}
sub_D153B8((int)&v237, byte_EBED68);
sub_D153B8((int)&v238, &byte_F288A0);
while ( 1 )
{
v50 = sub_D1641C((int)&v236, v237);
if ( v50 == -1 )
break;
sub_D1861C(&v236, v50, *((_QWORD *)v237 - 3), v238, *(_QWORD *)(v238 - 24));
}
if ( a1->m_accountComment )
{
v51 = 90.0;
v52 = 180;
v53 = 180.0;
v54 = 180;
}
else
{
v52 = 100;
v51 = 50.0;
v54 = 100;
v53 = 100.0;
}
v55 = (char *)v236;
m_pTargetArray = v236[-1].m_pTargetArray;
if ( (unsigned __int64)m_pTargetArray > v52 )
{
v57 = v53;
v58 = v54;
}
else
{
v57 = (float)(int)m_pTargetArray;
v58 = (int)v236[-1].m_pTargetArray;
}
m_compactMode = a1->m_compactMode;
if ( a1->m_compactMode )
v60 = 0.6;
else
v60 = 0.7;
if ( v57 <= v51 )
v61 = 1.0;
else
v61 = v60 + (float)((float)((float)(v54 - v58) / v53) * (float)(1.0 - v60));
if ( a1->m_comment->m_isSpam )
{
if ( a1->m_compactMode )
sub_D1798C(&v236, "Comment flagged as spam", 23);
else
sub_D1798C(&v236, "Comment flagged as spam", 31);
v55 = (char *)v236;
m_compactMode = a1->m_compactMode;
}
if ( m_compactMode )
{
v62 = cocos2d::CCLabelBMFont::create();
a1->m_mainLayer->addChild(a1->m_mainLayer, v62);
v63 = v62->setAnchorPoint;
cocos2d::CCPoint::CCPoint(&v242.origin, 0.0, 0.5);
v63(v62, &v242.origin);
v64 = v62->setPosition;
cocos2d::CCPoint::CCPoint(&v242.origin, 10.0, (float)(a1->m_height * 0.5) + -9.0);
v64(v62, &v242.origin);
cocos2d::CCLabelBMFont::limitLabelWidth(v62, 270.0, 0.7, 0.0);
if ( v232 )
{
v65 = v62->setColor;
LOWORD(v242.origin.x) = -206;
BYTE2(v242.origin.x) = -1;
v65(v62, (const cocos2d::ccColor3B *)&v242);
LABEL_74:
v67 = a1->m_comment;
goto LABEL_75;
}
v161 = GameLevelManager::sharedState();
SavedLevel = (GJGameLevel *)GameLevelManager::getSavedLevel(v161, a1->m_comment->m_levelID);
if ( SavedLevel
|| (v217 = GameLevelManager::sharedState(),
(SavedLevel = GameLevelManager::getSavedDailyLevelFromLevelID(v217, a1->m_comment->m_levelID)) != nullptr) )
{
v67 = a1->m_comment;
if ( v67->m_userID == SavedLevel->m_userID.random - SavedLevel->m_userID.seed )
{
v183 = v62->setColor;
LOWORD(v242.origin.x) = -1;
BYTE2(v242.origin.x) = 75;
v183(v62, (const cocos2d::ccColor3B *)&v242);
goto LABEL_74;
}
}
else
{
v67 = a1->m_comment;
}
if ( v67->m_modBadge > 0 && !a1->m_accountComment )
{
g = v67->m_color.g;
b = v67->m_color.b;
v165 = v62->setColor;
LOBYTE(v242.origin.x) = v67->m_color.r;
BYTE1(v242.origin.x) = g;
BYTE2(v242.origin.x) = b;
v165(v62, (const cocos2d::ccColor3B *)&v242);
goto LABEL_74;
}
}
else
{
sub_D153B8((int)&v239, v55);
if ( a1->m_compactMode )
v126 = 9999.0;
else
v126 = (float)(v46 - 45.0) / v61;
cocos2d::CCPoint::CCPoint(&v242.origin, 0.0, 1.0);
v127 = (TextArea *)TextArea::create(
(__int64)&v239,
"chatFont.fnt",
&v242.origin,
!a1->m_comment->m_isSpam,
1.0,
v126,
20.0);
v128 = v239 - 24;
if ( v239 - 24 != (char *)&qword_124B6B0 )
{
if ( &pthread_create )
{
v202 = (unsigned int *)(v239 - 8);
do
v203 = __ldaxr(v202);
while ( __stlxr(v203 - 1, v202) );
}
else
{
v203 = *((_DWORD *)v239 - 2);
*((_DWORD *)v239 - 2) = v203 - 1;
}
if ( v203 <= 0 )
operator delete(v128);
}
a1->m_mainLayer->addChild(a1->m_mainLayer, v127);
v129 = v127->setAnchorPoint;
cocos2d::CCPoint::CCPoint(&v242.origin, 0.0, 0.5);
v129(v127, &v242.origin);
v130 = v127->setPosition;
v131 = 0.0;
if ( a1->m_compactMode )
v131 = 3.0;
cocos2d::CCPoint::CCPoint(&v242.origin, 10.0, (float)(a1->m_height * 0.5) - v131);
v130(v127, &v242.origin);
v127->setScale(v127, v61);
if ( v232 )
{
*(_WORD *)&v233.r = -206;
v233.b = -1;
TextArea::colorAllCharactersTo(v127, v233);
goto LABEL_74;
}
v166 = GameLevelManager::sharedState();
SavedDailyLevelFromLevelID = (GJGameLevel *)GameLevelManager::getSavedLevel(v166, a1->m_comment->m_levelID);
if ( SavedDailyLevelFromLevelID
|| (v218 = GameLevelManager::sharedState(),
(SavedDailyLevelFromLevelID = GameLevelManager::getSavedDailyLevelFromLevelID(
v218,
a1->m_comment->m_levelID)) != nullptr) )
{
v67 = a1->m_comment;
if ( v67->m_userID == SavedDailyLevelFromLevelID->m_userID.random - SavedDailyLevelFromLevelID->m_userID.seed )
{
*(_WORD *)&v234.r = -1;
v234.b = 75;
TextArea::colorAllCharactersTo(v127, v234);
goto LABEL_74;
}
}
else
{
v67 = a1->m_comment;
}
if ( v67->m_modBadge > 0 && !a1->m_accountComment )
{
TextArea::colorAllCharactersTo(v127, v67->m_color);
goto LABEL_74;
}
}
LABEL_75:
if ( v67->m_hasLevelID )
{
sub_D153B8((int)&v239, "GJ_button_01.png");
v150 = a1->m_comment->m_levelID;
if ( (v150 & 0x80000000) != 0 )
{
v150 = -v150;
sub_D1798C(&v239, "GJ_button_03.png", 16);
}
GameToolbox::intToString((__int64 *)&v240, (GameToolbox *)v150);
v152 = (cocos2d::CCNode *)ButtonSprite::create(
v240,
(const char *)&dword_78,
0,
1,
1.0,
"bigFont.fnt",
v239,
v151,
30.0);
v154 = &v240[-1].m_textOffset;
if ( &v240[-1].m_textOffset != (cocos2d::CCPoint *)&qword_124B6B0 )
{
if ( &pthread_create )
{
v206 = (unsigned int *)&v240[-1].m_caption;
do
v207 = __ldaxr(v206);
while ( __stlxr(v207 - 1, v206) );
}
else
{
v207 = (int)v240[-1].m_caption.m_data.m_data;
LODWORD(v240[-1].m_caption.m_data.m_data) = v207 - 1;
}
if ( v207 <= 0 )
operator delete(v154);
}
if ( a1->m_compactMode )
LODWORD(v153) = 1053609165;
else
LODWORD(v153) = 1058642330;
v152->setScale(v152, v153);
v251.ptr = (void (__cdecl *)(cocos2d::CCObject *))a1;
v251.adj = (size_t)CommentCell::onGoToLevel;
v155 = CCMenuItemSpriteExtra::create(v152, nullptr, v251);
CCMenuItemSpriteExtra::setSizeMult(v155, 1.2);
v8->addChild(v8, v155);
v227 = a1->m_mainLayer;
v156 = v155->setPosition;
v157 = a1->m_width;
if ( a1->m_compactMode )
{
v158 = v157 - 95.0;
v159 = 11.5;
}
else
{
v158 = v157 - 130.0;
v159 = 19.5;
}
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v240, v158, a1->m_height - v159);
cocos2d::CCNode::convertToWorldSpace(v227, (const cocos2d::CCPoint *)&v240);
v246 = cocos2d::CCNode::convertToNodeSpace(v8, &v241.origin);
((void (__fastcall *)(CCMenuItemSpriteExtra *, cocos2d::CCRect *, float, float))v156)(v155, &v242, v246.x, v246.y);
v160 = v239 - 24;
if ( v239 - 24 == (char *)&qword_124B6B0 )
goto LABEL_152;
if ( &pthread_create )
{
v184 = (unsigned int *)(v239 - 8);
do
v185 = __ldaxr(v184);
while ( __stlxr(v185 - 1, v184) );
}
else
{
v185 = *((_DWORD *)v239 - 2);
*((_DWORD *)v239 - 2) = v185 - 1;
}
if ( v185 > 0 )
{
LABEL_152:
v67 = a1->m_comment;
}
else
{
operator delete(v160);
v67 = a1->m_comment;
}
}
if ( v67->m_isSpam )
{
v132 = ButtonSprite::create(
(ButtonSprite *)"Show",
(const char *)&qword_28,
0,
1,
0.6,
"goldFont.fnt",
"GJ_button_04.png",
v66,
30.0);
v133 = (cocos2d::CCNode *)v132;
if ( a1->m_compactMode )
(*(void (__fastcall **)(__int64, float))(*(_QWORD *)v132 + 160LL))(v132, 0.8);
v250.ptr = (void (__cdecl *)(cocos2d::CCObject *))a1;
v250.adj = (size_t)CommentCell::onUnhide;
v134 = CCMenuItemSpriteExtra::create(v133, nullptr, v250);
CCMenuItemSpriteExtra::setSizeMult(v134, 1.2);
v8->addChild(v8, v134);
v135 = a1->m_width;
v136 = a1->m_mainLayer;
v137 = v134->setPosition;
v138 = (float *)v133->getContentSize(v133);
cocos2d::CCPoint::CCPoint(
(cocos2d::CCPoint *)&v240,
(float)(v135 - (float)(*v138 * 0.5)) - 9.0,
a1->m_height * 0.5);
cocos2d::CCNode::convertToWorldSpace(v136, (const cocos2d::CCPoint *)&v240);
v245 = cocos2d::CCNode::convertToNodeSpace(v8, &v241.origin);
((void (__fastcall *)(CCMenuItemSpriteExtra *, cocos2d::CCRect *, float, float))v137)(v134, &v242, v245.x, v245.y);
v139 = (void *)(v238 - 24);
if ( (__int64 *)(v238 - 24) != &qword_124B6B0 )
{
if ( &pthread_create )
{
v212 = (unsigned int *)(v238 - 8);
do
v213 = __ldaxr(v212);
while ( __stlxr(v213 - 1, v212) );
}
else
{
v213 = *(_DWORD *)(v238 - 8);
*(_DWORD *)(v238 - 8) = v213 - 1;
}
if ( v213 <= 0 )
operator delete(v139);
}
v140 = v237 - 24;
if ( v237 - 24 != (char *)&qword_124B6B0 )
{
if ( &pthread_create )
{
v208 = (unsigned int *)(v237 - 8);
do
v209 = __ldaxr(v208);
while ( __stlxr(v209 - 1, v208) );
}
else
{
v209 = *((_DWORD *)v237 - 2);
*((_DWORD *)v237 - 2) = v209 - 1;
}
if ( v209 <= 0 )
operator delete(v140);
}
v118 = v236;
p_m_pTargetArray = &v236[-1].m_pTargetArray;
if ( &v236[-1].m_pTargetArray == (cocos2d::CCArray **)&qword_124B6B0 )
return;
if ( &pthread_create )
{
p_m_nExtraKerning = (unsigned int *)&v236[-1].m_nExtraKerning;
do
m_nExtraKerning = __ldaxr(p_m_nExtraKerning);
while ( __stlxr(m_nExtraKerning - 1, p_m_nExtraKerning) );
goto LABEL_107;
}
}
else
{
if ( !v67->m_unkMultiplayerBool )
{
v68 = a1->m_height;
if ( a1->m_compactMode )
{
v69 = 0.3;
v70 = v68 - 14.0;
v71 = 0.6;
v72 = 12.0;
}
else
{
v69 = 0.4;
v70 = v68 - 20.0;
v71 = 0.8;
v72 = 13.0;
}
v73 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_likesIcon_001.png");
a1->m_iconSprite = v73;
v74 = a1->m_width;
v75 = v73->setPosition;
if ( a1->m_compactMode )
{
v76 = 0.0;
v77 = v74 - 32.0;
}
else
{
v76 = 14.0;
v77 = v74 - 35.0;
}
cocos2d::CCPoint::CCPoint(&v242.origin, v77 - v76, v70);
v75(v73, &v242.origin);
a1->m_iconSprite->setScale(a1->m_iconSprite, v71);
m_iconSprite = a1->m_iconSprite;
m_likeCount = a1->m_comment->m_likeCount;
if ( (m_likeCount & 0x80000000) != 0 )
{
setDisplayFrame = m_iconSprite->setDisplayFrame;
v190 = cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache();
v191 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v190, "GJ_dislikesIcon_001.png");
setDisplayFrame(m_iconSprite, v191);
}
else
{
v226 = (cocos2d::CCPoint *)m_iconSprite->setDisplayFrame;
v80 = cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache();
v81 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v80, "GJ_likesIcon_001.png");
((void (__fastcall *)(cocos2d::CCSprite *, cocos2d::CCSpriteFrame *))v226)(m_iconSprite, v81);
}
v82 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(
(cocos2d::CCString *)"%i",
(const char *)m_likeCount);
cocos2d::CCString::getCString(v82);
v83 = cocos2d::CCLabelBMFont::create();
v84 = a1->m_mainLayer;
a1->m_likeLabel = v83;
v84->addChild(v84, v83);
m_likeLabel = a1->m_likeLabel;
v86 = m_likeLabel->setAnchorPoint;
cocos2d::CCPoint::CCPoint(&v242.origin, 0.5, 0.5);
v86(m_likeLabel, &v242.origin);
v87 = a1->m_likeLabel;
v88 = v87->setPosition;
v89 = a1->m_iconSprite->getPosition(a1->m_iconSprite);
if ( a1->m_compactMode )
{
v90 = 1.0;
v91 = v72 + 8.0;
}
else
{
v90 = 0.5;
v91 = v72 + 14.0;
}
cocos2d::CCPoint::CCPoint(&v241.origin, v91, v90);
cocos2d::CCPoint::operator+(&v242, v89, &v241);
v88(v87, &v242.origin);
a1->m_likeLabel->setScale(a1->m_likeLabel, v69);
if ( a1->m_compactMode )
v92 = 15.0;
else
v92 = 28.0;
cocos2d::CCLabelBMFont::limitLabelWidth(a1->m_likeLabel, v92, v69, 0.0);
v93 = a1->m_iconSprite;
v94 = v93->setPosition;
v95 = (__int64)v93->getPosition(v93);
cocos2d::CCPoint::CCPoint(&v241.origin, 0.0, 2.0);
cocos2d::CCPoint::operator+(&v242, v95, &v241);
v94(v93, &v242.origin);
v96 = a1->m_iconSprite->getPosition(a1->m_iconSprite);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v240, v96);
a1->m_iconSprite->setPosition(a1->m_iconSprite, &stru_1242000);
v247.ptr = (void (__cdecl *)(cocos2d::CCObject *))a1;
v247.adj = (size_t)CommentCell::onLike;
v97 = CCMenuItemSpriteExtra::create(a1->m_iconSprite, nullptr, v247);
CCMenuItemSpriteExtra::setSizeMult(v97, 2.0);
v8->addChild(v8, v97);
v98 = v97->setPosition;
cocos2d::CCNode::convertToWorldSpace(a1->m_mainLayer, (const cocos2d::CCPoint *)&v240);
v243 = cocos2d::CCNode::convertToNodeSpace(v8, &v241.origin);
((void (__fastcall *)(CCMenuItemSpriteExtra *, cocos2d::CCRect *, float, float))v98)(v97, &v242, v243.x, v243.y);
v99 = a1->m_comment;
if ( v99->m_levelID <= 0 )
{
m_canDelete = 0;
if ( !v232 )
m_canDelete = v99->m_canDelete;
}
else
{
v100 = GameLevelManager::sharedState();
v101 = GameLevelManager::getSavedLevel(v100, a1->m_comment->m_levelID);
if ( (v101 != 0) > v232
&& (v179 = GameManager::sharedState(),
v179->m_playerUserID.random - v179->m_playerUserID.seed == *(_DWORD *)(v101 + 424)
- *(_DWORD *)(v101 + 428)) )
{
v180 = GameManager::sharedState();
m_canDelete = v180->m_playerUserID.random - v180->m_playerUserID.seed > 0;
}
else
{
m_canDelete = 0;
}
}
if ( a1->m_accountComment
&& (v103 = a1->m_comment->m_accountID,
v104 = GJAccountManager::sharedState(),
v103 == v104->m_accountID - v104->m_unkInt1)
|| (v105 = GameManager::sharedState(), v105->m_playerUserID.random - v105->m_playerUserID.seed > 0)
&& (v106 = GameManager::sharedState(),
a1->m_comment->m_userID == v106->m_playerUserID.random - v106->m_playerUserID.seed)
|| m_canDelete
|| (v192 = GameManager::sharedState(), v192->m_hasRP.random - v192->m_hasRP.seed == 2) )
{
v107 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_deleteIcon_001.png");
v107->setScale(v107, v71 * 0.95);
v248.ptr = (void (__cdecl *)(cocos2d::CCObject *))a1;
v248.adj = (size_t)CommentCell::onConfirmDelete;
v108 = CCMenuItemSpriteExtra::create(v107, nullptr, v248);
CCMenuItemSpriteExtra::setSizeMult(v108, 2.0);
v8->addChild(v8, v108);
v109 = v97;
getPosition = v97->getPosition;
v111 = v108->setPosition;
v112 = (__int64)getPosition(v109);
if ( a1->m_compactMode )
v113 = -20.0;
else
v113 = -24.0;
cocos2d::CCPoint::CCPoint(&v241.origin, v113, -1.0);
cocos2d::CCPoint::operator+(&v242, v112, &v241);
v111(v108, &v242.origin);
v67 = a1->m_comment;
}
else
{
v67 = a1->m_comment;
}
}
sub_D18D28(&v241, &v67->m_uploadDate);
v114 = (void *)(*(_QWORD *)&v241.origin - 24LL);
v115 = *(_QWORD *)(*(_QWORD *)&v241.origin - 24LL);
if ( (__int64 *)(*(_QWORD *)&v241.origin - 24LL) != &qword_124B6B0 )
{
if ( &pthread_create )
{
v181 = (unsigned int *)(*(_QWORD *)&v241.origin - 8LL);
do
v182 = __ldaxr(v181);
while ( __stlxr(v182 - 1, v181) );
}
else
{
v182 = *(_DWORD *)(*(_QWORD *)&v241.origin - 8LL);
*(_DWORD *)(*(_QWORD *)&v241.origin - 8LL) = v182 - 1;
}
if ( v182 <= 0 )
operator delete(v114);
}
if ( v115 )
{
*(_QWORD *)&v168 = sub_D18D28(&v242, &a1->m_comment->m_uploadDate).n128_u64[0];
v169 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(
(cocos2d::CCString *)"%s ago",
*(const char **)&v242.origin,
v168);
cocos2d::CCString::getCString(v169);
v170 = cocos2d::CCLabelBMFont::create();
v171 = (void *)(*(_QWORD *)&v242.origin - 24LL);
if ( (__int64 *)(*(_QWORD *)&v242.origin - 24LL) != &qword_124B6B0 )
{
if ( &pthread_create )
{
v214 = (unsigned int *)(*(_QWORD *)&v242.origin - 8LL);
do
v215 = __ldaxr(v214);
while ( __stlxr(v215 - 1, v214) );
}
else
{
v215 = *(_DWORD *)(*(_QWORD *)&v242.origin - 8LL);
*(_DWORD *)(*(_QWORD *)&v242.origin - 8LL) = v215 - 1;
}
if ( v215 <= 0 )
operator delete(v171);
}
a1->m_mainLayer->addChild_0(a1->m_mainLayer, v170, 1);
v172 = v170->setAnchorPoint;
cocos2d::CCPoint::CCPoint(&v242.origin, 1.0, 0.5);
v172(v170, &v242.origin);
if ( a1->m_compactMode )
LODWORD(v173) = 1051931443;
else
LODWORD(v173) = 0.5;
v170->setScale(v170, v173);
v170->setColor(v170, (const cocos2d::ccColor3B *)&unk_EBE230);
v170->setOpacity(v170, 125);
v174 = a1->m_compactMode;
v175 = a1->m_width;
v176 = v170->setPosition;
if ( v174 )
{
v177 = 7.0;
v178 = v175 - 8.0;
}
else
{
v177 = 14.0;
v178 = v175 - 11.0;
}
cocos2d::CCPoint::CCPoint(&v242.origin, v178, v177);
v176(v170, &v242.origin);
}
v116 = (void *)(v238 - 24);
if ( (__int64 *)(v238 - 24) != &qword_124B6B0 )
{
if ( &pthread_create )
{
v200 = (unsigned int *)(v238 - 8);
do
v201 = __ldaxr(v200);
while ( __stlxr(v201 - 1, v200) );
}
else
{
v201 = *(_DWORD *)(v238 - 8);
*(_DWORD *)(v238 - 8) = v201 - 1;
}
if ( v201 <= 0 )
operator delete(v116);
}
v117 = v237 - 24;
if ( v237 - 24 != (char *)&qword_124B6B0 )
{
if ( &pthread_create )
{
v198 = (unsigned int *)(v237 - 8);
do
v199 = __ldaxr(v198);
while ( __stlxr(v199 - 1, v198) );
}
else
{
v199 = *((_DWORD *)v237 - 2);
*((_DWORD *)v237 - 2) = v199 - 1;
}
if ( v199 <= 0 )
operator delete(v117);
}
v118 = v236;
p_m_pTargetArray = &v236[-1].m_pTargetArray;
if ( &v236[-1].m_pTargetArray == (cocos2d::CCArray **)&qword_124B6B0 )
return;
if ( &pthread_create )
{
v120 = (unsigned int *)&v236[-1].m_nExtraKerning;
do
m_nExtraKerning = __ldaxr(v120);
while ( __stlxr(m_nExtraKerning - 1, v120) );
goto LABEL_107;
}
}
m_nExtraKerning = v118[-1].m_nExtraKerning;
v118[-1].m_nExtraKerning = m_nExtraKerning - 1;
LABEL_107:
if ( m_nExtraKerning <= 0 )
operator delete(p_m_pTargetArray);
}
}