//
// GJScoreCell::loadFromScore from 0x618b24 to 0x61a2bc (6040 bytes)
//
// 2 xrefs:
// > CustomListView::loadCell @ 0x6206a4
// > ??> @ 0xc5220
//
// 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 GJScoreCell::loadFromScore(GJScoreCell *a1, GJUserScore *a2)
{
long double v4; // q0
int m_creatorPoints; // w1
IconType m_iconType; // w0
SimplePlayer *v7; // x23
void (__fastcall *setPosition)(cocos2d::CCSprite *__hidden, const cocos2d::CCPoint *); // x21
void (__fastcall *setColor)(SimplePlayer *__hidden, const cocos2d::ccColor3B *); // x21
GameManager *v10; // x0
GameManager *v11; // x0
GJUserScore *m_score; // x2
char v13; // w3
int m_iconID; // w1
IconType v15; // w2
cocos2d::CCMenuItem *v16; // x1
cocos2d::CCNode *v17; // x28
GJUserScore *v18; // x1
cocos2d::CCString *v19; // x0
cocos2d::CCLabelBMFont *v20; // x22
void (__fastcall *v21)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // x24
cocos2d::CCLabelBMFont *v22; // x24
cocos2d::CCArray **p_m_pTargetArray; // x0
CCMenuItemSpriteExtra *v24; // x27
float width; // s9
float v26; // s9
const cocos2d::CCSize *(__fastcall *getContentSize)(const cocos2d::CCNode *__hidden); // x1
float v28; // s8
float v29; // s0
GJUserScore *v30; // x0
float v31; // s8
float v32; // s12
float v33; // s11
unsigned int m_stars; // w23
unsigned int m_moons; // w27
GJUserScore *v36; // x3
LeaderboardStat m_leaderboardStat; // w0
cocos2d::CCLabelBMFont *v38; // x1
cocos2d::CCArray **v39; // x0
cocos2d::CCLabelBMFont *v40; // x23
cocos2d::CCArray **v41; // x0
void (__fastcall *setAnchorPoint)(cocos2d::CCLabelBMFont *__hidden, const cocos2d::CCPoint *); // x28
void (__fastcall *v43)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // x28
cocos2d::CCSprite *v44; // x24
const cocos2d::CCPoint *(__fastcall *getPosition)(cocos2d::CCNode *__hidden); // x1
__int64 v46; // x28
float v47; // s9
float v48; // s0
cocos2d::CCLabelBMFont *v49; // x28
cocos2d::CCArray **v50; // x0
void (__fastcall *v51)(cocos2d::CCLabelBMFont *__hidden, const cocos2d::CCPoint *); // x27
void (__fastcall *v52)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // x23
__int64 v53; // x27
float v54; // s9
float v55; // s0
cocos2d::CCSprite *v56; // x23
void (__fastcall *v57)(cocos2d::CCSprite *__hidden, const cocos2d::CCPoint *); // x24
__int64 v58; // x27
float v59; // s9
float v60; // s0
cocos2d::CCLabelBMFont *v61; // x28
cocos2d::CCArray **v62; // x0
void (__fastcall *v63)(cocos2d::CCLabelBMFont *__hidden, const cocos2d::CCPoint *); // x27
void (__fastcall *v64)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // x27
cocos2d::CCSprite *v65; // x23
void (__fastcall *v66)(cocos2d::CCSprite *__hidden, const cocos2d::CCPoint *); // x24
__int64 v67; // x27
float v68; // s9
float v69; // s0
cocos2d::CCLabelBMFont *v70; // x28
cocos2d::CCArray **v71; // x0
void (__fastcall *v72)(cocos2d::CCLabelBMFont *__hidden, const cocos2d::CCPoint *); // x27
void (__fastcall *v73)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // x24
__int64 v74; // x27
float v75; // s9
float v76; // s0
cocos2d::CCSprite *v77; // x23
void (__fastcall *v78)(cocos2d::CCSprite *__hidden, const cocos2d::CCPoint *); // x24
__int64 v79; // x27
float v80; // s9
float v81; // s0
cocos2d::CCLabelBMFont *v82; // x27
cocos2d::CCArray **v83; // x0
void (__fastcall *v84)(cocos2d::CCLabelBMFont *__hidden, const cocos2d::CCPoint *); // x28
void (__fastcall *v85)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // x24
__int64 v86; // x28
float v87; // s9
float v88; // s0
cocos2d::CCSprite *v89; // x28
void (__fastcall *v90)(cocos2d::CCSprite *__hidden, const cocos2d::CCPoint *); // x24
__int64 v91; // x23
float v92; // s9
float v93; // s0
cocos2d::CCLabelBMFont *v94; // x27
cocos2d::CCArray **v95; // x0
void (__fastcall *v96)(cocos2d::CCLabelBMFont *__hidden, const cocos2d::CCPoint *); // x23
void (__fastcall *v97)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // x24
__int64 v98; // x23
float v99; // s9
float v100; // s0
cocos2d::CCSprite *v101; // x28
void (__fastcall *v102)(cocos2d::CCSprite *__hidden, const cocos2d::CCPoint *); // x24
__int64 v103; // x23
float v104; // s9
float v105; // s0
cocos2d::CCSprite *v106; // x1
char *p_m_fBrVertexMod; // x0
char *v108; // x0
char *v109; // x0
char *v110; // x21
cocos2d::CCLayerColor *m_backgroundLayer; // x0
void (__fastcall *v112)(cocos2d::CCLayerColor *__hidden, const cocos2d::ccColor3B *); // x2
void (__fastcall *v113)(cocos2d::CCLabelBMFont *__hidden, const cocos2d::ccColor3B *); // x3
cocos2d::CCLabelBMFont *v114; // x23
cocos2d::CCArray **v115; // x0
void (__fastcall *v116)(cocos2d::CCLabelBMFont *__hidden, const cocos2d::CCPoint *); // x24
void (__fastcall *v117)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // x24
__int64 v118; // x25
float v119; // s9
float v120; // s0
cocos2d::CCSprite *v121; // x24
void (__fastcall *v122)(cocos2d::CCSprite *__hidden, const cocos2d::CCPoint *); // x20
__int64 v123; // x25
float v124; // s8
float v125; // s0
unsigned int *p_m_fTextureTop; // x1
int m_fTextureTop_low; // w2
cocos2d::CCSprite **v128; // x24
unsigned int v129; // w0
unsigned int v130; // w0
unsigned int *v131; // x1
int v132; // w2
void (__fastcall *v133)(cocos2d::CCSprite *__hidden, const cocos2d::CCPoint *); // x28
unsigned int v134; // w0
unsigned int *p_m_nExtraKerning; // x1
int m_nExtraKerning; // w2
unsigned int *v137; // x20
int v138; // w0
unsigned int *v139; // x1
int v140; // w2
unsigned int *v141; // x1
int v142; // w2
unsigned int *v143; // x1
int v144; // w2
unsigned int *v145; // x1
int v146; // w2
unsigned int *v147; // x1
int v148; // w2
unsigned int *v149; // x1
int v150; // w2
unsigned int *v151; // x1
int v152; // w2
unsigned int *v153; // x1
int v154; // w2
unsigned int *v155; // x1
int v156; // w2
__int64 v157; // [xsp+0h] [xbp+0h] BYREF
cocos2d::CCSprite **v158; // [xsp+98h] [xbp+98h]
GameToolbox *v159; // [xsp+A0h] [xbp+A0h]
unsigned int m_userCoins; // [xsp+A8h] [xbp+A8h]
_BOOL4 v161; // [xsp+ACh] [xbp+ACh]
long double v162; // [xsp+B0h] [xbp+B0h]
__int64 v163; // [xsp+C8h] [xbp+C8h] BYREF
cocos2d::CCSprite *v164; // [xsp+D0h] [xbp+D0h] BYREF
cocos2d::CCSprite *v165; // [xsp+D8h] [xbp+D8h] BYREF
cocos2d::CCSprite *v166; // [xsp+E0h] [xbp+E0h] BYREF
cocos2d::CCSprite *v167; // [xsp+E8h] [xbp+E8h] BYREF
cocos2d::CCLabelBMFont *v168; // [xsp+F0h] [xbp+F0h] BYREF
cocos2d::CCLabelBMFont *v169; // [xsp+F8h] [xbp+F8h] BYREF
cocos2d::CCLabelBMFont *v170; // [xsp+100h] [xbp+100h] BYREF
cocos2d::CCLabelBMFont *v171; // [xsp+108h] [xbp+108h] BYREF
cocos2d::CCLabelBMFont *v172; // [xsp+110h] [xbp+110h] BYREF
cocos2d::CCLabelBMFont *v173; // [xsp+118h] [xbp+118h] BYREF
cocos2d::CCLabelBMFont *v174; // [xsp+120h] [xbp+120h] BYREF
cocos2d::CCPoint v175; // 0:kr00_8.8
cocos2d::SEL_MenuHandler v176; // 0:x2.16
a1->m_mainLayer->removeAllChildrenWithCleanup(a1->m_mainLayer, 1);
m_creatorPoints = a2->m_creatorPoints;
m_iconType = a2->m_iconType;
a1->m_score = a2;
v161 = m_creatorPoints > 0;
if ( m_iconType == Ship )
LODWORD(v4) = 1063675494;
else
LODWORD(v4) = 1.0;
v162 = v4;
v7 = SimplePlayer::create((int)&dword_0 + 1);
a1->m_mainLayer->addChild_0(a1->m_mainLayer, v7, 1);
v7->setScale(v7, v162);
setPosition = v7->setPosition;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v174, 30.0, (float)(a1->m_height * 0.5) + 7.0);
setPosition(v7, (const cocos2d::CCPoint *)&v174);
setColor = v7->setColor;
v10 = GameManager::sharedState();
*(cocos2d::ccColor3B *)&v174 = GameManager::colorForIdx(v10, a1->m_score->m_color1);
setColor(v7, (const cocos2d::ccColor3B *)&v174);
v11 = GameManager::sharedState();
*(cocos2d::ccColor3B *)&v174 = GameManager::colorForIdx(v11, a1->m_score->m_color2);
SimplePlayer::setSecondColor(v7, (const cocos2d::ccColor3B *)&v174);
SimplePlayer::tryEnableCustomGlowColor(v7, a1->m_score->m_color3);
m_score = a1->m_score;
v13 = m_score->m_special == 2 || m_score->m_glowEnabled;
m_iconID = m_score->m_iconID;
v15 = m_score->m_iconType;
v7->m_hasGlowOutline = v13;
SimplePlayer::updatePlayerFrame(v7, m_iconID, v15);
SimplePlayer::updateColors(v7);
v17 = (cocos2d::CCNode *)cocos2d::CCMenu::create(nullptr, v16);
a1->m_mainLayer->addChild(a1->m_mainLayer, v17);
v18 = a1->m_score;
if ( v18->m_scoreType != 2 )
{
v19 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(
(cocos2d::CCString *)"%i",
(const char *)(unsigned int)v18->m_playerRank);
cocos2d::CCString::getCString(v19);
v20 = cocos2d::CCLabelBMFont::create();
a1->m_mainLayer->addChild(a1->m_mainLayer, v20);
v21 = v20->setPosition;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v174, 30.0, (float)(a1->m_height * 0.5) + -18.0);
v21(v20, (const cocos2d::CCPoint *)&v174);
cocos2d::CCLabelBMFont::limitLabelWidth(v20, 40.0, 0.65, 0.0);
v18 = a1->m_score;
}
sub_D18D28(&v174, &v18->m_userName);
v22 = cocos2d::CCLabelBMFont::create();
p_m_pTargetArray = &v174[-1].m_pTargetArray;
if ( &v174[-1].m_pTargetArray != (cocos2d::CCArray **)&qword_124B6B0 )
{
if ( &pthread_create )
{
p_m_nExtraKerning = (unsigned int *)&v174[-1].m_nExtraKerning;
do
m_nExtraKerning = __ldaxr(p_m_nExtraKerning);
while ( __stlxr(m_nExtraKerning - 1, p_m_nExtraKerning) );
}
else
{
m_nExtraKerning = v174[-1].m_nExtraKerning;
v174[-1].m_nExtraKerning = m_nExtraKerning - 1;
}
if ( m_nExtraKerning <= 0 )
operator delete(p_m_pTargetArray);
}
*(_QWORD *)&v162 = &v163;
cocos2d::CCLabelBMFont::limitLabelWidth(v22, 120.0, 0.8, 0.0);
v176.ptr = (void (__cdecl *)(cocos2d::CCObject *))a1;
v176.adj = (size_t)GJScoreCell::onViewProfile;
v24 = CCMenuItemSpriteExtra::create(v22, nullptr, v176);
v17->addChild(v17, v24);
width = v22->getContentSize(v22)->width;
v26 = width * v22->getScale(v22);
v159 = (GameToolbox *)v7->getPosition(v7);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v174, 30.0, 7.0);
cocos2d::CCPoint::operator+(&v163, v159, &v174);
getContentSize = v22->getContentSize;
v159 = (GameToolbox *)v24->setPosition;
v28 = getContentSize(v22)->width * 0.5;
v29 = v22->getScale(v22);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v172, v28 * v29, 0.0);
cocos2d::CCPoint::operator+(&v173, &v163, &v172);
v175 = cocos2d::CCNode::convertToNodeSpace(v17, (const cocos2d::CCPoint *)&v173);
((void (__fastcall *)(CCMenuItemSpriteExtra *, cocos2d::CCLabelBMFont **, float, float))v159)(
v24,
&v174,
v175.x,
v175.y);
v30 = a1->m_score;
if ( v30->m_scoreType == 2 )
{
v133 = v7->setPosition;
v159 = (GameToolbox *)v7->getPosition(v7);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v173, 0.0, -7.0);
cocos2d::CCPoint::operator+(&v174, v159, &v173);
v133(v7, (const cocos2d::CCPoint *)&v174);
v30 = a1->m_score;
}
if ( GJUserScore::isCurrentUser(v30) )
{
m_backgroundLayer = a1->m_backgroundLayer;
v112 = m_backgroundLayer->setColor;
LOWORD(v174) = -26906;
BYTE2(v174) = 10;
v112(m_backgroundLayer, (const cocos2d::ccColor3B *)&v174);
if ( a2->m_accountID > 0 )
goto LABEL_12;
}
else if ( a2->m_accountID > 0 )
{
goto LABEL_12;
}
if ( a2->m_scoreType != 1 )
{
v113 = v22->setColor;
BYTE2(v174) = -1;
LOWORD(v174) = -166;
v113(v22, (const cocos2d::ccColor3B *)&v174);
v24->setEnabled(v24, 0);
}
LABEL_12:
v31 = 0.5;
v32 = (float)(a1->m_height * 0.5) + -13.0;
if ( v161 )
{
v31 = 0.45;
v33 = 35.0;
}
else
{
v33 = 50.0;
}
m_stars = a1->m_score->m_stars;
sub_D153B8((int)&v164, "GJ_starsIcon_001.png");
m_moons = a1->m_score->m_moons;
sub_D153B8((unsigned int)&v157 + 216, "GJ_moonsIcon_001.png");
v36 = a1->m_score;
v158 = &v166;
LODWORD(v159) = v36->m_demons;
sub_D153B8((int)&v166, "GJ_demonIcon_001.png");
m_userCoins = a1->m_score->m_userCoins;
sub_D153B8((int)&v167, "GJ_coinsIcon2_001.png");
if ( a1->m_score->m_leaderboardStat )
{
sub_D18D28(&v174, &v164);
m_leaderboardStat = a1->m_score->m_leaderboardStat;
switch ( m_leaderboardStat )
{
case Demons:
v128 = v158;
sub_D18EA8(&v164, v158);
sub_D18EA8(v128, &v174);
v38 = v174;
v129 = m_stars;
m_stars = (unsigned int)v159;
LODWORD(v159) = v129;
v39 = &v174[-1].m_pTargetArray;
if ( &v174[-1].m_pTargetArray == (cocos2d::CCArray **)&qword_124B6B0 )
goto LABEL_19;
break;
case UserCoins:
sub_D18EA8(&v164, &v167);
sub_D18EA8(&v167, &v174);
v38 = v174;
v134 = m_stars;
m_stars = m_userCoins;
m_userCoins = v134;
v39 = &v174[-1].m_pTargetArray;
if ( &v174[-1].m_pTargetArray == (cocos2d::CCArray **)&qword_124B6B0 )
goto LABEL_19;
break;
case Moons:
sub_D18EA8(&v164, &v165);
sub_D18EA8(&v165, &v174);
v38 = v174;
v130 = m_stars;
m_stars = m_moons;
m_moons = v130;
v39 = &v174[-1].m_pTargetArray;
if ( &v174[-1].m_pTargetArray == (cocos2d::CCArray **)&qword_124B6B0 )
goto LABEL_19;
break;
default:
v38 = v174;
v39 = &v174[-1].m_pTargetArray;
if ( &v174[-1].m_pTargetArray == (cocos2d::CCArray **)&qword_124B6B0 )
goto LABEL_19;
break;
}
if ( &pthread_create )
{
v131 = (unsigned int *)&v38[-1].m_nExtraKerning;
do
v132 = __ldaxr(v131);
while ( __stlxr(v132 - 1, v131) );
}
else
{
v132 = v38[-1].m_nExtraKerning;
v38[-1].m_nExtraKerning = v132 - 1;
}
if ( v132 <= 0 )
operator delete(v39);
}
LABEL_19:
GameToolbox::pointsToString((GameToolbox *)m_stars, (__int64 *)&v168);
v40 = cocos2d::CCLabelBMFont::create();
v41 = &v168[-1].m_pTargetArray;
if ( &v168[-1].m_pTargetArray != (cocos2d::CCArray **)&qword_124B6B0 )
{
if ( &pthread_create )
{
v143 = (unsigned int *)&v168[-1].m_nExtraKerning;
do
v144 = __ldaxr(v143);
while ( __stlxr(v144 - 1, v143) );
}
else
{
v144 = v168[-1].m_nExtraKerning;
v168[-1].m_nExtraKerning = v144 - 1;
}
if ( v144 <= 0 )
operator delete(v41);
}
a1->m_mainLayer->addChild_0(a1->m_mainLayer, v40, 2);
setAnchorPoint = v40->setAnchorPoint;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v174, 0.0, 0.5);
setAnchorPoint(v40, (const cocos2d::CCPoint *)&v174);
cocos2d::CCLabelBMFont::limitLabelWidth(v40, 60.0, v31, 0.0);
v43 = v40->setPosition;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v173, v26 + 5.0, -2.0);
cocos2d::CCPoint::operator+(&v174, *(_QWORD *)&v162, &v173);
v43(v40, (const cocos2d::CCPoint *)&v174);
v44 = cocos2d::CCSprite::createWithSpriteFrameName((const char *)v164);
a1->m_mainLayer->addChild_0(a1->m_mainLayer, v44, 2);
getPosition = v40->getPosition;
*(_QWORD *)&v162 = v44->setPosition;
v46 = (__int64)getPosition(v40);
v47 = v40->getContentSize(v40)->width;
v48 = v40->getScale(v40);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v173, (float)(v47 * v48) + 10.0, 0.0);
cocos2d::CCPoint::operator+(&v174, v46, &v173);
(*(void (__fastcall **)(cocos2d::CCSprite *, cocos2d::CCLabelBMFont **))&v162)(v44, &v174);
v44->setScale(v44, 0.7);
GameToolbox::pointsToString((GameToolbox *)m_moons, (__int64 *)&v169);
v49 = cocos2d::CCLabelBMFont::create();
v50 = &v169[-1].m_pTargetArray;
if ( &v169[-1].m_pTargetArray != (cocos2d::CCArray **)&qword_124B6B0 )
{
if ( &pthread_create )
{
v145 = (unsigned int *)&v169[-1].m_nExtraKerning;
do
v146 = __ldaxr(v145);
while ( __stlxr(v146 - 1, v145) );
}
else
{
v146 = v169[-1].m_nExtraKerning;
v169[-1].m_nExtraKerning = v146 - 1;
}
if ( v146 <= 0 )
operator delete(v50);
}
a1->m_mainLayer->addChild_0(a1->m_mainLayer, v49, 2);
v51 = v49->setAnchorPoint;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v174, 0.0, 0.5);
v51(v49, (const cocos2d::CCPoint *)&v174);
cocos2d::CCLabelBMFont::limitLabelWidth(v49, 60.0, v31, 0.0);
v52 = v49->setPosition;
v53 = (__int64)v44->getPosition(v44);
v54 = v44->getContentSize(v44)->width;
v55 = (float)(v54 * v44->getScale(v44)) * 0.5 + 8.0;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v173, v55, 0.0);
cocos2d::CCPoint::operator+(&v174, v53, &v173);
v52(v49, (const cocos2d::CCPoint *)&v174);
v56 = cocos2d::CCSprite::createWithSpriteFrameName((const char *)v165);
a1->m_mainLayer->addChild_0(a1->m_mainLayer, v56, 2);
v57 = v56->setPosition;
v58 = (__int64)v49->getPosition(v49);
v59 = v49->getContentSize(v49)->width;
v60 = v49->getScale(v49);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v173, (float)(v59 * v60) + 10.0, 0.0);
cocos2d::CCPoint::operator+(&v174, v58, &v173);
v57(v56, (const cocos2d::CCPoint *)&v174);
v56->setScale(v56, 0.7);
GameToolbox::pointsToString((GameToolbox *)(unsigned int)a1->m_score->m_diamonds, (__int64 *)&v170);
v61 = cocos2d::CCLabelBMFont::create();
v62 = &v170[-1].m_pTargetArray;
if ( &v170[-1].m_pTargetArray != (cocos2d::CCArray **)&qword_124B6B0 )
{
if ( &pthread_create )
{
v147 = (unsigned int *)&v170[-1].m_nExtraKerning;
do
v148 = __ldaxr(v147);
while ( __stlxr(v148 - 1, v147) );
}
else
{
v148 = v170[-1].m_nExtraKerning;
v170[-1].m_nExtraKerning = v148 - 1;
}
if ( v148 <= 0 )
operator delete(v62);
}
a1->m_mainLayer->addChild_0(a1->m_mainLayer, v61, 2);
v63 = v61->setAnchorPoint;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v174, 0.0, 0.5);
v63(v61, (const cocos2d::CCPoint *)&v174);
v64 = v61->setPosition;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v174, 62.0, v32);
v64(v61, (const cocos2d::CCPoint *)&v174);
cocos2d::CCLabelBMFont::limitLabelWidth(v61, v33, v31, 0.0);
v65 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_diamondsIcon_001.png");
a1->m_mainLayer->addChild_0(a1->m_mainLayer, v65, 2);
v66 = v65->setPosition;
v67 = (__int64)v61->getPosition(v61);
v68 = v61->getContentSize(v61)->width;
v69 = v61->getScale(v61);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v173, (float)(v68 * v69) + 10.0, 0.0);
cocos2d::CCPoint::operator+(&v174, v67, &v173);
v66(v65, (const cocos2d::CCPoint *)&v174);
v65->setScale(v65, 0.7);
GameToolbox::pointsToString((GameToolbox *)(unsigned int)a1->m_score->m_secretCoins, (__int64 *)&v171);
v70 = cocos2d::CCLabelBMFont::create();
v71 = &v171[-1].m_pTargetArray;
if ( &v171[-1].m_pTargetArray != (cocos2d::CCArray **)&qword_124B6B0 )
{
if ( &pthread_create )
{
v149 = (unsigned int *)&v171[-1].m_nExtraKerning;
do
v150 = __ldaxr(v149);
while ( __stlxr(v150 - 1, v149) );
}
else
{
v150 = v171[-1].m_nExtraKerning;
v171[-1].m_nExtraKerning = v150 - 1;
}
if ( v150 <= 0 )
operator delete(v71);
}
a1->m_mainLayer->addChild_0(a1->m_mainLayer, v70, 2);
v72 = v70->setAnchorPoint;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v174, 0.0, 0.5);
v72(v70, (const cocos2d::CCPoint *)&v174);
v73 = v70->setPosition;
v74 = (__int64)v65->getPosition(v65);
v75 = v65->getContentSize(v65)->width;
v76 = (float)(v75 * v65->getScale(v65)) * 0.5 + 8.0;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v173, v76, 0.0);
cocos2d::CCPoint::operator+(&v174, v74, &v173);
v73(v70, (const cocos2d::CCPoint *)&v174);
cocos2d::CCLabelBMFont::limitLabelWidth(v70, v33, v31, 0.0);
v77 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_coinsIcon_001.png");
a1->m_mainLayer->addChild_0(a1->m_mainLayer, v77, 2);
v78 = v77->setPosition;
v79 = (__int64)v70->getPosition(v70);
v80 = v70->getContentSize(v70)->width;
v81 = v70->getScale(v70);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v173, (float)(v80 * v81) + 10.0, 0.0);
cocos2d::CCPoint::operator+(&v174, v79, &v173);
v78(v77, (const cocos2d::CCPoint *)&v174);
v77->setScale(v77, 0.7);
GameToolbox::pointsToString((GameToolbox *)m_userCoins, (__int64 *)&v172);
v82 = cocos2d::CCLabelBMFont::create();
v83 = &v172[-1].m_pTargetArray;
if ( &v172[-1].m_pTargetArray != (cocos2d::CCArray **)&qword_124B6B0 )
{
if ( &pthread_create )
{
v151 = (unsigned int *)&v172[-1].m_nExtraKerning;
do
v152 = __ldaxr(v151);
while ( __stlxr(v152 - 1, v151) );
}
else
{
v152 = v172[-1].m_nExtraKerning;
v172[-1].m_nExtraKerning = v152 - 1;
}
if ( v152 <= 0 )
operator delete(v83);
}
a1->m_mainLayer->addChild_0(a1->m_mainLayer, v82, 2);
v84 = v82->setAnchorPoint;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v174, 0.0, 0.5);
v84(v82, (const cocos2d::CCPoint *)&v174);
v85 = v82->setPosition;
v86 = (__int64)v77->getPosition(v77);
v87 = v77->getContentSize(v77)->width;
v88 = (float)(v87 * v77->getScale(v77)) * 0.5 + 8.0;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v173, v88, 0.0);
cocos2d::CCPoint::operator+(&v174, v86, &v173);
v85(v82, (const cocos2d::CCPoint *)&v174);
cocos2d::CCLabelBMFont::limitLabelWidth(v82, v33, v31, 0.0);
v89 = cocos2d::CCSprite::createWithSpriteFrameName((const char *)v167);
a1->m_mainLayer->addChild_0(a1->m_mainLayer, v89, 2);
v90 = v89->setPosition;
v91 = (__int64)v82->getPosition(v82);
v92 = v82->getContentSize(v82)->width;
v93 = v82->getScale(v82);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v173, (float)(v92 * v93) + 10.0, 0.0);
cocos2d::CCPoint::operator+(&v174, v91, &v173);
v90(v89, (const cocos2d::CCPoint *)&v174);
v89->setScale(v89, 0.7);
GameToolbox::pointsToString((GameToolbox *)(unsigned int)v159, (__int64 *)&v173);
v94 = cocos2d::CCLabelBMFont::create();
v95 = &v173[-1].m_pTargetArray;
if ( &v173[-1].m_pTargetArray != (cocos2d::CCArray **)&qword_124B6B0 )
{
if ( &pthread_create )
{
v153 = (unsigned int *)&v173[-1].m_nExtraKerning;
do
v154 = __ldaxr(v153);
while ( __stlxr(v154 - 1, v153) );
}
else
{
v154 = v173[-1].m_nExtraKerning;
v173[-1].m_nExtraKerning = v154 - 1;
}
if ( v154 <= 0 )
operator delete(v95);
}
a1->m_mainLayer->addChild_0(a1->m_mainLayer, v94, 2);
v96 = v94->setAnchorPoint;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v174, 0.0, 0.5);
v96(v94, (const cocos2d::CCPoint *)&v174);
v97 = v94->setPosition;
v98 = (__int64)v89->getPosition(v89);
v99 = v89->getContentSize(v89)->width;
v100 = (float)(v99 * v89->getScale(v89)) * 0.5 + 8.0;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v173, v100, 0.0);
cocos2d::CCPoint::operator+(&v174, v98, &v173);
v97(v94, (const cocos2d::CCPoint *)&v174);
cocos2d::CCLabelBMFont::limitLabelWidth(v94, v33, v31, 0.0);
v101 = cocos2d::CCSprite::createWithSpriteFrameName((const char *)v166);
a1->m_mainLayer->addChild_0(a1->m_mainLayer, v101, 2);
v102 = v101->setPosition;
v103 = (__int64)v94->getPosition(v94);
v104 = v94->getContentSize(v94)->width;
v105 = v94->getScale(v94);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v173, (float)(v104 * v105) + 10.0, 0.0);
cocos2d::CCPoint::operator+(&v174, v103, &v173);
v102(v101, (const cocos2d::CCPoint *)&v174);
v101->setScale(v101, 0.7);
if ( !v161 )
{
v106 = v167;
p_m_fBrVertexMod = (char *)&v167[-1].m_fBrVertexMod;
if ( (__int64 *)&v167[-1].m_fBrVertexMod == &qword_124B6B0 )
goto LABEL_27;
goto LABEL_37;
}
GameToolbox::pointsToString((GameToolbox *)(unsigned int)a1->m_score->m_creatorPoints, (__int64 *)&v174);
v114 = cocos2d::CCLabelBMFont::create();
v115 = &v174[-1].m_pTargetArray;
if ( &v174[-1].m_pTargetArray != (cocos2d::CCArray **)&qword_124B6B0 )
{
if ( &pthread_create )
{
v155 = (unsigned int *)&v174[-1].m_nExtraKerning;
do
v156 = __ldaxr(v155);
while ( __stlxr(v156 - 1, v155) );
}
else
{
v156 = v174[-1].m_nExtraKerning;
v174[-1].m_nExtraKerning = v156 - 1;
}
if ( v156 <= 0 )
operator delete(v115);
}
a1->m_mainLayer->addChild_0(a1->m_mainLayer, v114, 2);
v116 = v114->setAnchorPoint;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v174, 0.0, 0.5);
v116(v114, (const cocos2d::CCPoint *)&v174);
v117 = v114->setPosition;
v118 = (__int64)v101->getPosition(v101);
v119 = v101->getContentSize(v101)->width;
v120 = (float)(v119 * v101->getScale(v101)) * 0.5 + 8.0;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v173, v120, 0.0);
cocos2d::CCPoint::operator+(&v174, v118, &v173);
v117(v114, (const cocos2d::CCPoint *)&v174);
cocos2d::CCLabelBMFont::limitLabelWidth(v114, v33, v31, 0.0);
v121 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_hammerIcon_001.png");
a1->m_mainLayer->addChild_0(a1->m_mainLayer, v121, 2);
v122 = v121->setPosition;
v123 = (__int64)v114->getPosition(v114);
v124 = v114->getContentSize(v114)->width;
v125 = v114->getScale(v114);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v173, (float)(v124 * v125) + 10.0, 0.0);
cocos2d::CCPoint::operator+(&v174, v123, &v173);
v122(v121, (const cocos2d::CCPoint *)&v174);
v121->setScale(v121, 0.7);
v106 = v167;
p_m_fBrVertexMod = (char *)&v167[-1].m_fBrVertexMod;
if ( (__int64 *)&v167[-1].m_fBrVertexMod != &qword_124B6B0 )
{
LABEL_37:
if ( &pthread_create )
{
p_m_fTextureTop = (unsigned int *)&v106[-1].m_fTextureTop;
do
m_fTextureTop_low = __ldaxr(p_m_fTextureTop);
while ( __stlxr(m_fTextureTop_low - 1, p_m_fTextureTop) );
}
else
{
m_fTextureTop_low = LODWORD(v106[-1].m_fTextureTop);
LODWORD(v106[-1].m_fTextureTop) = m_fTextureTop_low - 1;
}
if ( m_fTextureTop_low <= 0 )
operator delete(p_m_fBrVertexMod);
}
LABEL_27:
v108 = (char *)&v166[-1].m_fBrVertexMod;
if ( (__int64 *)&v166[-1].m_fBrVertexMod != &qword_124B6B0 )
{
if ( &pthread_create )
{
v139 = (unsigned int *)&v166[-1].m_fTextureTop;
do
v140 = __ldaxr(v139);
while ( __stlxr(v140 - 1, v139) );
}
else
{
v140 = LODWORD(v166[-1].m_fTextureTop);
LODWORD(v166[-1].m_fTextureTop) = v140 - 1;
}
if ( v140 <= 0 )
operator delete(v108);
}
v109 = (char *)&v165[-1].m_fBrVertexMod;
if ( (__int64 *)&v165[-1].m_fBrVertexMod != &qword_124B6B0 )
{
if ( &pthread_create )
{
v141 = (unsigned int *)&v165[-1].m_fTextureTop;
do
v142 = __ldaxr(v141);
while ( __stlxr(v142 - 1, v141) );
}
else
{
v142 = LODWORD(v165[-1].m_fTextureTop);
LODWORD(v165[-1].m_fTextureTop) = v142 - 1;
}
if ( v142 <= 0 )
operator delete(v109);
}
v110 = (char *)&v164[-1].m_fBrVertexMod;
if ( (__int64 *)&v164[-1].m_fBrVertexMod != &qword_124B6B0 )
{
if ( &pthread_create )
{
v137 = (unsigned int *)&v164[-1].m_fTextureTop;
do
v138 = __ldaxr(v137);
while ( __stlxr(v138 - 1, v137) );
}
else
{
v138 = LODWORD(v164[-1].m_fTextureTop);
LODWORD(v164[-1].m_fTextureTop) = v138 - 1;
}
if ( v138 <= 0 )
operator delete(v110);
}
}