//
// GJScoreCell::loadFromScore from 0x100249740 to 0x10024ab24 (5092 bytes)
//
// 1 xrefs:
// > CustomListView::loadCell @ 0x10024289f
//
// 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 __fastcall GJScoreCell::loadFromScore(GJScoreCell *a1, GJUserScore *a2)
{
bool v2; // zf
SimplePlayer *v3; // r15
__int64 v4; // xmm0_8
GameManager *v5; // rax
GameManager *v6; // rax
GJUserScore *m_score; // rax
char m_glowEnabled; // cl
int m_iconID; // esi
int v10; // edx
int v11; // ecx
int v12; // r8d
int v13; // r9d
const cocos2d::CCPoint *v14; // rsi
GJScoreCell *v15; // r12
__int64 *m_mainLayer; // rdi
__int64 v17; // rax
GJUserScore *v18; // rax
cocos2d::CCString *v19; // rax
const char *CString; // rax
cocos2d::CCLabelBMFont *v21; // r14
const char *data; // rdi
cocos2d::CCLabelBMFont *v23; // r13
_QWORD *v24; // rbx
const cocos2d::CCPoint *v25; // r15
__int64 v26; // rax
__int64 v27; // r12
float v28; // xmm0_4
cocos2d::CCPoint v29; // rax
GJUserScore *v30; // rdi
GJUserScore *v31; // rax
_QWORD *v32; // r15
__int64 v33; // rbx
cocos2d::CCLayerColor *m_backgroundLayer; // rdi
__int64 v35; // r15
int v36; // edx
cocos2d::CCObject_vtbl *v37; // rax
int canEncode_high; // r12d
int getTag; // r14d
int v40; // r13d
int v41; // eax
const char *v42; // rdi
cocos2d::CCLabelBMFont *v43; // r14
const char *v44; // rdi
cocos2d::CCSprite *v45; // r13
__int64 v46; // r15
float v47; // xmm0_4
const char *v48; // rdi
cocos2d::CCLabelBMFont *v49; // r12
__int64 v50; // r14
float v51; // xmm0_4
float v52; // xmm0_4
const char *v53; // rdi
cocos2d::CCSprite *v54; // r14
__int64 v55; // r15
float v56; // xmm0_4
const char *v57; // rdi
cocos2d::CCLabelBMFont *v58; // r14
cocos2d::CCSprite *v59; // r12
__int64 v60; // r15
float v61; // xmm0_4
const char *v62; // rdi
cocos2d::CCLabelBMFont *v63; // r13
__int64 v64; // r14
float v65; // xmm0_4
float v66; // xmm0_4
cocos2d::CCSprite *v67; // r12
__int64 v68; // r14
float v69; // xmm0_4
const char *v70; // rdi
cocos2d::CCLabelBMFont *v71; // r13
__int64 v72; // r14
float v73; // xmm0_4
float v74; // xmm0_4
const char *v75; // rdi
cocos2d::CCSprite *v76; // r15
__int64 v77; // r14
float v78; // xmm0_4
const char *v79; // rdi
cocos2d::CCLabelBMFont *v80; // r12
__int64 v81; // r14
float v82; // xmm0_4
float v83; // xmm0_4
const char *v84; // rdi
cocos2d::CCSprite *v85; // r14
__int64 v86; // r15
float v87; // xmm0_4
const char *v88; // rdi
cocos2d::CCLabelBMFont *v89; // r15
__int64 v90; // r12
float v91; // xmm0_4
float v92; // xmm0_4
cocos2d::CCSprite *v93; // r14
__int64 v94; // rbx
float v95; // xmm0_4
char v96; // [rsp+0h] [rbp-F0h]
char v97[8]; // [rsp+4h] [rbp-ECh] BYREF
float v98; // [rsp+Ch] [rbp-E4h]
float v99; // [rsp+10h] [rbp-E0h]
int v100; // [rsp+14h] [rbp-DCh]
_QWORD *v101; // [rsp+18h] [rbp-D8h]
std::string v102; // [rsp+20h] [rbp-D0h] BYREF
std::string v103; // [rsp+38h] [rbp-B8h] BYREF
std::string __str; // [rsp+50h] [rbp-A0h] BYREF
int m_creatorPoints; // [rsp+68h] [rbp-88h]
int v106; // [rsp+6Ch] [rbp-84h]
std::string m_userName; // [rsp+70h] [rbp-80h] BYREF
const cocos2d::CCPoint *v108; // [rsp+88h] [rbp-68h]
GJUserScore *v109; // [rsp+90h] [rbp-60h]
char v110[8]; // [rsp+98h] [rbp-58h] BYREF
GJScoreCell *v111; // [rsp+A0h] [rbp-50h]
float v112; // [rsp+ACh] [rbp-44h]
std::string v113; // [rsp+B0h] [rbp-40h] BYREF
double v114; // 0:xmm0_8.8
((void (__fastcall *)(cocos2d::CCLayer *, __int64))a1->m_mainLayer->removeAllChildrenWithCleanup)(a1->m_mainLayer, 1);
a1->m_score = a2;
v2 = a2->m_iconType == Ship;
v109 = a2;
m_creatorPoints = a2->m_creatorPoints;
LODWORD(v111) = dword_100817FD8[v2];
v3 = SimplePlayer::create(1);
((void (__fastcall *)(cocos2d::CCLayer *, SimplePlayer *, __int64))a1->m_mainLayer->addChild_0)(
a1->m_mainLayer,
v3,
1);
((void (__fastcall *)(SimplePlayer *, float))v3->setScale)(v3, *(float *)&v111);
v4 = 1106247680;
sub_10028CBE0(&m_userName, 30.0, (float)(a1->m_height * 0.5) + 7.0);
((void (__fastcall *)(SimplePlayer *, std::string *))v3->setPosition)(v3, &m_userName);
v5 = GameManager::sharedState();
*(cocos2d::ccColor3B *)&m_userName.__r_.__value_.__l.0 = GameManager::colorForIdx(v5, a1->m_score->m_color1);
((void (__fastcall *)(SimplePlayer *, std::string *))v3->setColor)(v3, &m_userName);
v6 = GameManager::sharedState();
*(cocos2d::ccColor3B *)&m_userName.__r_.__value_.__l.0 = GameManager::colorForIdx(v6, a1->m_score->m_color2);
SimplePlayer::setSecondColor(v3, (const cocos2d::ccColor3B *)&m_userName);
SimplePlayer::tryEnableCustomGlowColor(v3, a1->m_score->m_color3);
v111 = a1;
m_score = a1->m_score;
m_glowEnabled = 1;
if ( m_score->m_special != 2 )
m_glowEnabled = m_score->m_glowEnabled;
v3->m_hasGlowOutline = m_glowEnabled;
m_iconID = m_score->m_iconID;
SimplePlayer::updatePlayerFrame(v3, m_iconID, m_score->m_iconType);
SimplePlayer::updateColors(v3);
v14 = (const cocos2d::CCPoint *)sub_100792C50(0, m_iconID, v10, v11, v12, v13);
v15 = v111;
m_mainLayer = (__int64 *)v111->m_mainLayer;
v17 = *m_mainLayer;
v108 = v14;
(*(void (__fastcall **)(__int64 *))(v17 + 440))(m_mainLayer);
v18 = v15->m_score;
if ( v18->m_scoreType != 2 )
{
v19 = (cocos2d::CCString *)sub_1007AB580("%i", v96);
CString = cocos2d::CCString::getCString(v19);
v21 = cocos2d::CCLabelBMFont::create_3(CString, "goldFont.fnt");
((void (__fastcall *)(cocos2d::CCLayer *, cocos2d::CCLabelBMFont *))v15->m_mainLayer->addChild)(
v15->m_mainLayer,
v21);
sub_10028CBE0(&m_userName, 30.0, (float)(v15->m_height * 0.5) + -18.0);
((void (__fastcall *)(cocos2d::CCLabelBMFont *, std::string *))v21->setPosition)(v21, &m_userName);
v4 = 1109393408;
cocos2d::CCLabelBMFont::limitLabelWidth(v21, 40.0, 0.64999998, 0.0);
v18 = v15->m_score;
}
if ( (v18->m_userName.m_data.m_short.sizex2 & 1) != 0 )
{
sub_100006B70(
&m_userName,
v18->m_userName.m_data.m_long.longStorage,
v18->m_userName.m_data.m_long.size,
*(double *)&v4);
if ( (*(_BYTE *)&m_userName.__r_.__value_.__s.0 & 1) == 0 )
goto LABEL_7;
}
else
{
m_userName = (std::string)v18->m_userName;
if ( (*(_BYTE *)&m_userName.__r_.__value_.__s.0 & 1) == 0 )
{
LABEL_7:
data = m_userName.__r_.__value_.__s.__data_;
goto LABEL_10;
}
}
data = m_userName.__r_.__value_.__l.__data_;
LABEL_10:
v23 = cocos2d::CCLabelBMFont::create_3(data, "goldFont.fnt");
v24 = &v3->cocos2d::CCSprite::cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable;
if ( (*(_BYTE *)&m_userName.__r_.__value_.__s.0 & 1) != 0 )
operator delete(m_userName.__r_.__value_.__l.__data_);
cocos2d::CCLabelBMFont::limitLabelWidth(v23, 120.0, 0.80000001, 0.0);
v25 = (const cocos2d::CCPoint *)CCMenuItemSpriteExtra::create(
v23,
nullptr,
v111,
(cocos2d::SEL_MenuHandler)(unsigned __int64)GJScoreCell::onViewProfile);
(*(void (__fastcall **)(const cocos2d::CCPoint *, const cocos2d::CCPoint *))(*(_QWORD *)v108 + 440LL))(v108, v25);
v98 = *(float *)((__int64 (__fastcall *)(cocos2d::CCLabelBMFont *))v23->getContentSize)(v23);
v99 = ((float (__fastcall *)(cocos2d::CCLabelBMFont *))v23->getScale)(v23);
v26 = *v24;
v101 = v24;
v27 = (*(__int64 (__fastcall **)(_QWORD *))(v26 + 192))(v24);
sub_10028CBE0(&m_userName, 30.0, 7.0);
sub_10028CCE0(v97, v27);
v112 = *(float *)((__int64 (__fastcall *)(cocos2d::CCLabelBMFont *))v23->getContentSize)(v23) * 0.5;
v28 = ((float (__fastcall *)(cocos2d::CCLabelBMFont *))v23->getScale)(v23);
sub_10028CBE0(&v103, v28 * v112, 0.0);
sub_10028CCE0(&__str, v97);
*(cocos2d::CCPoint *)&v114 = cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)&m_userName, v108);
v29 = *v25;
v108 = v25;
(*(void (__fastcall **)(const cocos2d::CCPoint *, std::string *, double))(*(_QWORD *)&v29 + 184LL))(
v25,
&m_userName,
v114);
v30 = v111->m_score;
if ( v30->m_scoreType != 2 )
{
if ( !GJUserScore::isCurrentUser(v30) )
goto LABEL_14;
LABEL_17:
m_backgroundLayer = v111->m_backgroundLayer;
m_userName.__r_.__value_.__s.__data_[1] = 10;
*(_WORD *)&m_userName.__r_.__value_.__l.0 = -26906;
((void (__fastcall *)(cocos2d::CCLayerColor *, std::string *))m_backgroundLayer->setColor)(
m_backgroundLayer,
&m_userName);
v31 = v109;
if ( v109->m_accountID > 0 )
goto LABEL_20;
goto LABEL_18;
}
v32 = v101;
v33 = (*(__int64 (__fastcall **)(_QWORD *))(*v101 + 192LL))(v101);
sub_10028CBE0(&__str, 0.0, -7.0);
sub_10028CCE0(&m_userName, v33);
(*(void (__fastcall **)(_QWORD *, std::string *))(*v32 + 184LL))(v32, &m_userName);
if ( GJUserScore::isCurrentUser(v111->m_score) )
goto LABEL_17;
LABEL_14:
v31 = v109;
if ( v109->m_accountID > 0 )
goto LABEL_20;
LABEL_18:
if ( v31->m_scoreType != 1 )
{
m_userName.__r_.__value_.__s.__data_[1] = -1;
*(_WORD *)&m_userName.__r_.__value_.__l.0 = -166;
((void (__fastcall *)(cocos2d::CCLabelBMFont *, std::string *))v23->setColor)(v23, &m_userName);
(*(void (__fastcall **)(const cocos2d::CCPoint *, _QWORD))(*(_QWORD *)v108 + 1040LL))(v108, 0);
}
LABEL_20:
v35 = 0;
LOBYTE(v108) = m_creatorPoints > 0;
*(float *)&v101 = v111->m_height;
v36 = 50;
if ( m_creatorPoints > 0 )
v36 = 35;
v100 = v36;
v37 = (cocos2d::CCObject_vtbl *)v111->m_score;
canEncode_high = HIDWORD(v37[4].canEncode);
strcpy((char *)&m_userName, "(GJ_starsIcon_001.png");
getTag = (int)v37[4].getTag;
strcpy((char *)&__str, "(GJ_moonsIcon_001.png");
strcpy((char *)&v103, "(GJ_demonIcon_001.png");
v40 = (int)v37[5].~CCObject;
strcpy((char *)&v102, "*GJ_coinsIcon2_001.png");
v41 = (int)v37[10].~CCObject;
if ( !v41 )
{
v106 = v40;
LODWORD(v109) = getTag;
goto LABEL_34;
}
v113 = m_userName;
switch ( v41 )
{
case 3:
std::string::operator=(&m_userName, &v102);
std::string::operator=(&v102, &v113);
v106 = canEncode_high;
LODWORD(v109) = getTag;
break;
case 2:
std::string::operator=(&m_userName, &v103);
std::string::operator=(&v103, &v113);
v106 = v40;
LODWORD(v109) = getTag;
break;
case 1:
std::string::operator=(&m_userName, &__str);
std::string::operator=(&__str, &v113);
v106 = v40;
LODWORD(v109) = canEncode_high;
break;
default:
v106 = v40;
LODWORD(v109) = getTag;
if ( (*(_BYTE *)&v113.__r_.__value_.__s.0 & 1) == 0 )
goto LABEL_34;
goto LABEL_33;
}
if ( (*(_BYTE *)&v113.__r_.__value_.__s.0 & 1) != 0 )
LABEL_33:
operator delete(v113.__r_.__value_.__l.__data_);
LABEL_34:
GameToolbox::pointsToString(&v113);
if ( (*(_BYTE *)&v113.__r_.__value_.__s.0 & 1) != 0 )
v42 = v113.__r_.__value_.__l.__data_;
else
v42 = v113.__r_.__value_.__s.__data_;
v43 = cocos2d::CCLabelBMFont::create_3(v42, "bigFont.fnt");
if ( (*(_BYTE *)&v113.__r_.__value_.__s.0 & 1) != 0 )
operator delete(v113.__r_.__value_.__l.__data_);
((void (__fastcall *)(cocos2d::CCLayer *, cocos2d::CCLabelBMFont *, __int64))v111->m_mainLayer->addChild_0)(
v111->m_mainLayer,
v43,
2);
sub_10028CBE0(&v113, 0.0, 0.5);
((void (__fastcall *)(cocos2d::CCLabelBMFont *, std::string *))v43->setAnchorPoint)(v43, &v113);
LOBYTE(v35) = (_BYTE)v108;
LODWORD(v108) = dword_100817FE0[v35];
cocos2d::CCLabelBMFont::limitLabelWidth(v43, 60.0, *(float *)&v108, 0.0);
sub_10028CBE0(v110, (float)(v98 * v99) + 5.0, -2.0);
sub_10028CCE0(&v113, v97);
((void (__fastcall *)(cocos2d::CCLabelBMFont *, std::string *))v43->setPosition)(v43, &v113);
if ( (*(_BYTE *)&m_userName.__r_.__value_.__s.0 & 1) != 0 )
v44 = m_userName.__r_.__value_.__l.__data_;
else
v44 = m_userName.__r_.__value_.__s.__data_;
v45 = cocos2d::CCSprite::createWithSpriteFrameName(v44);
((void (__fastcall *)(cocos2d::CCLayer *, cocos2d::CCSprite *, __int64))v111->m_mainLayer->addChild_0)(
v111->m_mainLayer,
v45,
2);
v46 = ((__int64 (__fastcall *)(cocos2d::CCLabelBMFont *))v43->getPosition)(v43);
v112 = *(float *)((__int64 (__fastcall *)(cocos2d::CCLabelBMFont *))v43->getContentSize)(v43);
v47 = ((float (__fastcall *)(cocos2d::CCLabelBMFont *))v43->getScale)(v43);
sub_10028CBE0(v110, (float)(v112 * v47) + 10.0, 0.0);
sub_10028CCE0(&v113, v46);
((void (__fastcall *)(cocos2d::CCSprite *, std::string *))v45->setPosition)(v45, &v113);
((void (__fastcall *)(cocos2d::CCSprite *, float))v45->setScale)(v45, 0.69999999);
GameToolbox::pointsToString(&v113);
if ( (*(_BYTE *)&v113.__r_.__value_.__s.0 & 1) != 0 )
v48 = v113.__r_.__value_.__l.__data_;
else
v48 = v113.__r_.__value_.__s.__data_;
v49 = cocos2d::CCLabelBMFont::create_3(v48, "bigFont.fnt");
if ( (*(_BYTE *)&v113.__r_.__value_.__s.0 & 1) != 0 )
operator delete(v113.__r_.__value_.__l.__data_);
((void (__fastcall *)(cocos2d::CCLayer *, cocos2d::CCLabelBMFont *, __int64))v111->m_mainLayer->addChild_0)(
v111->m_mainLayer,
v49,
2);
sub_10028CBE0(&v113, 0.0, 0.5);
((void (__fastcall *)(cocos2d::CCLabelBMFont *, std::string *))v49->setAnchorPoint)(v49, &v113);
cocos2d::CCLabelBMFont::limitLabelWidth(v49, 60.0, *(float *)&v108, 0.0);
v50 = ((__int64 (__fastcall *)(cocos2d::CCSprite *))v45->getPosition)(v45);
LODWORD(v109) = *(_DWORD *)((__int64 (__fastcall *)(cocos2d::CCSprite *))v45->getContentSize)(v45);
v51 = ((float (__fastcall *)(cocos2d::CCSprite *))v45->getScale)(v45);
v52 = (float)(*(float *)&v109 * v51) * 0.5 + 8.0;
sub_10028CBE0(v110, v52, 0.0);
sub_10028CCE0(&v113, v50);
((void (__fastcall *)(cocos2d::CCLabelBMFont *, std::string *))v49->setPosition)(v49, &v113);
if ( (*(_BYTE *)&__str.__r_.__value_.__s.0 & 1) != 0 )
v53 = __str.__r_.__value_.__l.__data_;
else
v53 = __str.__r_.__value_.__s.__data_;
v54 = cocos2d::CCSprite::createWithSpriteFrameName(v53);
((void (__fastcall *)(cocos2d::CCLayer *, cocos2d::CCSprite *, __int64))v111->m_mainLayer->addChild_0)(
v111->m_mainLayer,
v54,
2);
v55 = ((__int64 (__fastcall *)(cocos2d::CCLabelBMFont *))v49->getPosition)(v49);
LODWORD(v109) = *(_DWORD *)((__int64 (__fastcall *)(cocos2d::CCLabelBMFont *))v49->getContentSize)(v49);
v56 = ((float (__fastcall *)(cocos2d::CCLabelBMFont *))v49->getScale)(v49);
sub_10028CBE0(v110, (float)(*(float *)&v109 * v56) + 10.0, 0.0);
sub_10028CCE0(&v113, v55);
((void (__fastcall *)(cocos2d::CCSprite *, std::string *))v54->setPosition)(v54, &v113);
((void (__fastcall *)(cocos2d::CCSprite *, float))v54->setScale)(v54, 0.69999999);
GameToolbox::pointsToString(&v113);
if ( (*(_BYTE *)&v113.__r_.__value_.__s.0 & 1) != 0 )
v57 = v113.__r_.__value_.__l.__data_;
else
v57 = v113.__r_.__value_.__s.__data_;
v58 = cocos2d::CCLabelBMFont::create_3(v57, "bigFont.fnt");
if ( (*(_BYTE *)&v113.__r_.__value_.__s.0 & 1) != 0 )
operator delete(v113.__r_.__value_.__l.__data_);
((void (__fastcall *)(cocos2d::CCLayer *, cocos2d::CCLabelBMFont *, __int64))v111->m_mainLayer->addChild_0)(
v111->m_mainLayer,
v58,
2);
sub_10028CBE0(&v113, 0.0, 0.5);
((void (__fastcall *)(cocos2d::CCLabelBMFont *, std::string *))v58->setAnchorPoint)(v58, &v113);
sub_10028CBE0(&v113, 62.0, (float)(*(float *)&v101 * 0.5) + -13.0);
((void (__fastcall *)(cocos2d::CCLabelBMFont *, std::string *))v58->setPosition)(v58, &v113);
*(float *)&v109 = (float)v100;
cocos2d::CCLabelBMFont::limitLabelWidth(v58, (float)v100, *(float *)&v108, 0.0);
v59 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_diamondsIcon_001.png");
((void (__fastcall *)(cocos2d::CCLayer *, cocos2d::CCSprite *, __int64))v111->m_mainLayer->addChild_0)(
v111->m_mainLayer,
v59,
2);
v60 = ((__int64 (__fastcall *)(cocos2d::CCLabelBMFont *))v58->getPosition)(v58);
v112 = *(float *)((__int64 (__fastcall *)(cocos2d::CCLabelBMFont *))v58->getContentSize)(v58);
v61 = ((float (__fastcall *)(cocos2d::CCLabelBMFont *))v58->getScale)(v58);
sub_10028CBE0(v110, (float)(v112 * v61) + 10.0, 0.0);
sub_10028CCE0(&v113, v60);
((void (__fastcall *)(cocos2d::CCSprite *, std::string *))v59->setPosition)(v59, &v113);
((void (__fastcall *)(cocos2d::CCSprite *, float))v59->setScale)(v59, 0.69999999);
GameToolbox::pointsToString(&v113);
if ( (*(_BYTE *)&v113.__r_.__value_.__s.0 & 1) != 0 )
v62 = v113.__r_.__value_.__l.__data_;
else
v62 = v113.__r_.__value_.__s.__data_;
v63 = cocos2d::CCLabelBMFont::create_3(v62, "bigFont.fnt");
if ( (*(_BYTE *)&v113.__r_.__value_.__s.0 & 1) != 0 )
operator delete(v113.__r_.__value_.__l.__data_);
((void (__fastcall *)(cocos2d::CCLayer *, cocos2d::CCLabelBMFont *, __int64))v111->m_mainLayer->addChild_0)(
v111->m_mainLayer,
v63,
2);
sub_10028CBE0(&v113, 0.0, 0.5);
((void (__fastcall *)(cocos2d::CCLabelBMFont *, std::string *))v63->setAnchorPoint)(v63, &v113);
v64 = ((__int64 (__fastcall *)(cocos2d::CCSprite *))v59->getPosition)(v59);
v112 = *(float *)((__int64 (__fastcall *)(cocos2d::CCSprite *))v59->getContentSize)(v59);
v65 = ((float (__fastcall *)(cocos2d::CCSprite *))v59->getScale)(v59);
v66 = (float)(v112 * v65) * 0.5 + 8.0;
sub_10028CBE0(v110, v66, 0.0);
sub_10028CCE0(&v113, v64);
((void (__fastcall *)(cocos2d::CCLabelBMFont *, std::string *))v63->setPosition)(v63, &v113);
cocos2d::CCLabelBMFont::limitLabelWidth(v63, *(float *)&v109, *(float *)&v108, 0.0);
v67 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_coinsIcon_001.png");
((void (__fastcall *)(cocos2d::CCLayer *, cocos2d::CCSprite *, __int64))v111->m_mainLayer->addChild_0)(
v111->m_mainLayer,
v67,
2);
v68 = ((__int64 (__fastcall *)(cocos2d::CCLabelBMFont *))v63->getPosition)(v63);
v112 = *(float *)((__int64 (__fastcall *)(cocos2d::CCLabelBMFont *))v63->getContentSize)(v63);
v69 = ((float (__fastcall *)(cocos2d::CCLabelBMFont *))v63->getScale)(v63);
sub_10028CBE0(v110, (float)(v112 * v69) + 10.0, 0.0);
sub_10028CCE0(&v113, v68);
((void (__fastcall *)(cocos2d::CCSprite *, std::string *))v67->setPosition)(v67, &v113);
((void (__fastcall *)(cocos2d::CCSprite *, float))v67->setScale)(v67, 0.69999999);
GameToolbox::pointsToString(&v113);
if ( (*(_BYTE *)&v113.__r_.__value_.__s.0 & 1) != 0 )
v70 = v113.__r_.__value_.__l.__data_;
else
v70 = v113.__r_.__value_.__s.__data_;
v71 = cocos2d::CCLabelBMFont::create_3(v70, "bigFont.fnt");
if ( (*(_BYTE *)&v113.__r_.__value_.__s.0 & 1) != 0 )
operator delete(v113.__r_.__value_.__l.__data_);
((void (__fastcall *)(cocos2d::CCLayer *, cocos2d::CCLabelBMFont *, __int64))v111->m_mainLayer->addChild_0)(
v111->m_mainLayer,
v71,
2);
sub_10028CBE0(&v113, 0.0, 0.5);
((void (__fastcall *)(cocos2d::CCLabelBMFont *, std::string *))v71->setAnchorPoint)(v71, &v113);
v72 = ((__int64 (__fastcall *)(cocos2d::CCSprite *))v67->getPosition)(v67);
v112 = *(float *)((__int64 (__fastcall *)(cocos2d::CCSprite *))v67->getContentSize)(v67);
v73 = ((float (__fastcall *)(cocos2d::CCSprite *))v67->getScale)(v67);
v74 = (float)(v112 * v73) * 0.5 + 8.0;
sub_10028CBE0(v110, v74, 0.0);
sub_10028CCE0(&v113, v72);
((void (__fastcall *)(cocos2d::CCLabelBMFont *, std::string *))v71->setPosition)(v71, &v113);
cocos2d::CCLabelBMFont::limitLabelWidth(v71, *(float *)&v109, *(float *)&v108, 0.0);
if ( (*(_BYTE *)&v102.__r_.__value_.__s.0 & 1) != 0 )
v75 = v102.__r_.__value_.__l.__data_;
else
v75 = v102.__r_.__value_.__s.__data_;
v76 = cocos2d::CCSprite::createWithSpriteFrameName(v75);
((void (__fastcall *)(cocos2d::CCLayer *, cocos2d::CCSprite *, __int64))v111->m_mainLayer->addChild_0)(
v111->m_mainLayer,
v76,
2);
v77 = ((__int64 (__fastcall *)(cocos2d::CCLabelBMFont *))v71->getPosition)(v71);
v112 = *(float *)((__int64 (__fastcall *)(cocos2d::CCLabelBMFont *))v71->getContentSize)(v71);
v78 = ((float (__fastcall *)(cocos2d::CCLabelBMFont *))v71->getScale)(v71);
sub_10028CBE0(v110, (float)(v112 * v78) + 10.0, 0.0);
sub_10028CCE0(&v113, v77);
((void (__fastcall *)(cocos2d::CCSprite *, std::string *))v76->setPosition)(v76, &v113);
((void (__fastcall *)(cocos2d::CCSprite *, float))v76->setScale)(v76, 0.69999999);
GameToolbox::pointsToString(&v113);
if ( (*(_BYTE *)&v113.__r_.__value_.__s.0 & 1) != 0 )
v79 = v113.__r_.__value_.__l.__data_;
else
v79 = v113.__r_.__value_.__s.__data_;
v80 = cocos2d::CCLabelBMFont::create_3(v79, "bigFont.fnt");
if ( (*(_BYTE *)&v113.__r_.__value_.__s.0 & 1) != 0 )
operator delete(v113.__r_.__value_.__l.__data_);
((void (__fastcall *)(cocos2d::CCLayer *, cocos2d::CCLabelBMFont *, __int64))v111->m_mainLayer->addChild_0)(
v111->m_mainLayer,
v80,
2);
sub_10028CBE0(&v113, 0.0, 0.5);
((void (__fastcall *)(cocos2d::CCLabelBMFont *, std::string *))v80->setAnchorPoint)(v80, &v113);
v81 = ((__int64 (__fastcall *)(cocos2d::CCSprite *))v76->getPosition)(v76);
v112 = *(float *)((__int64 (__fastcall *)(cocos2d::CCSprite *))v76->getContentSize)(v76);
v82 = ((float (__fastcall *)(cocos2d::CCSprite *))v76->getScale)(v76);
v83 = (float)(v112 * v82) * 0.5 + 8.0;
sub_10028CBE0(v110, v83, 0.0);
sub_10028CCE0(&v113, v81);
((void (__fastcall *)(cocos2d::CCLabelBMFont *, std::string *))v80->setPosition)(v80, &v113);
cocos2d::CCLabelBMFont::limitLabelWidth(v80, *(float *)&v109, *(float *)&v108, 0.0);
if ( (*(_BYTE *)&v103.__r_.__value_.__s.0 & 1) != 0 )
v84 = v103.__r_.__value_.__l.__data_;
else
v84 = v103.__r_.__value_.__s.__data_;
v85 = cocos2d::CCSprite::createWithSpriteFrameName(v84);
((void (__fastcall *)(cocos2d::CCLayer *, cocos2d::CCSprite *, __int64))v111->m_mainLayer->addChild_0)(
v111->m_mainLayer,
v85,
2);
v86 = ((__int64 (__fastcall *)(cocos2d::CCLabelBMFont *))v80->getPosition)(v80);
LODWORD(v108) = *(_DWORD *)((__int64 (__fastcall *)(cocos2d::CCLabelBMFont *))v80->getContentSize)(v80);
v87 = ((float (__fastcall *)(cocos2d::CCLabelBMFont *))v80->getScale)(v80);
sub_10028CBE0(v110, (float)(*(float *)&v108 * v87) + 10.0, 0.0);
sub_10028CCE0(&v113, v86);
((void (__fastcall *)(cocos2d::CCSprite *, std::string *))v85->setPosition)(v85, &v113);
((void (__fastcall *)(cocos2d::CCSprite *, float))v85->setScale)(v85, 0.69999999);
if ( m_creatorPoints > 0 )
{
GameToolbox::pointsToString(&v113);
if ( (*(_BYTE *)&v113.__r_.__value_.__s.0 & 1) != 0 )
v88 = v113.__r_.__value_.__l.__data_;
else
v88 = v113.__r_.__value_.__s.__data_;
v89 = cocos2d::CCLabelBMFont::create_3(v88, "bigFont.fnt");
if ( (*(_BYTE *)&v113.__r_.__value_.__s.0 & 1) != 0 )
operator delete(v113.__r_.__value_.__l.__data_);
((void (__fastcall *)(cocos2d::CCLayer *, cocos2d::CCLabelBMFont *, __int64))v111->m_mainLayer->addChild_0)(
v111->m_mainLayer,
v89,
2);
sub_10028CBE0(&v113, 0.0, 0.5);
((void (__fastcall *)(cocos2d::CCLabelBMFont *, std::string *))v89->setAnchorPoint)(v89, &v113);
v90 = ((__int64 (__fastcall *)(cocos2d::CCSprite *))v85->getPosition)(v85);
LODWORD(v108) = *(_DWORD *)((__int64 (__fastcall *)(cocos2d::CCSprite *))v85->getContentSize)(v85);
v91 = ((float (__fastcall *)(cocos2d::CCSprite *))v85->getScale)(v85);
v92 = (float)(*(float *)&v108 * v91) * 0.5 + 8.0;
sub_10028CBE0(v110, v92, 0.0);
sub_10028CCE0(&v113, v90);
((void (__fastcall *)(cocos2d::CCLabelBMFont *, std::string *))v89->setPosition)(v89, &v113);
cocos2d::CCLabelBMFont::limitLabelWidth(v89, *(float *)&v109, 0.44999999, 0.0);
v93 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_hammerIcon_001.png");
((void (__fastcall *)(cocos2d::CCLayer *, cocos2d::CCSprite *, __int64))v111->m_mainLayer->addChild_0)(
v111->m_mainLayer,
v93,
2);
v94 = ((__int64 (__fastcall *)(cocos2d::CCLabelBMFont *))v89->getPosition)(v89);
LODWORD(v111) = *(_DWORD *)((__int64 (__fastcall *)(cocos2d::CCLabelBMFont *))v89->getContentSize)(v89);
v95 = ((float (__fastcall *)(cocos2d::CCLabelBMFont *))v89->getScale)(v89);
sub_10028CBE0(v110, (float)(*(float *)&v111 * v95) + 10.0, 0.0);
sub_10028CCE0(&v113, v94);
((void (__fastcall *)(cocos2d::CCSprite *, std::string *))v93->setPosition)(v93, &v113);
((void (__fastcall *)(cocos2d::CCSprite *, float))v93->setScale)(v93, 0.69999999);
}
if ( (*(_BYTE *)&v102.__r_.__value_.__s.0 & 1) != 0 )
{
operator delete(v102.__r_.__value_.__l.__data_);
if ( (*(_BYTE *)&v103.__r_.__value_.__s.0 & 1) == 0 )
{
LABEL_85:
if ( (*(_BYTE *)&__str.__r_.__value_.__s.0 & 1) == 0 )
goto LABEL_86;
goto LABEL_91;
}
}
else if ( (*(_BYTE *)&v103.__r_.__value_.__s.0 & 1) == 0 )
{
goto LABEL_85;
}
operator delete(v103.__r_.__value_.__l.__data_);
if ( (*(_BYTE *)&__str.__r_.__value_.__s.0 & 1) == 0 )
{
LABEL_86:
if ( (*(_BYTE *)&m_userName.__r_.__value_.__s.0 & 1) == 0 )
return;
goto LABEL_87;
}
LABEL_91:
operator delete(__str.__r_.__value_.__l.__data_);
if ( (*(_BYTE *)&m_userName.__r_.__value_.__s.0 & 1) == 0 )
return;
LABEL_87:
operator delete(m_userName.__r_.__value_.__l.__data_);
}