//
// GJScoreCell::loadFromScore from 0x1400b8490 to 0x1400b9a22 (5522 bytes)
//
// 2 xrefs:
// > CustomListView::loadCell @ 0x1400ab952
// > ??> @ 0x1406c7cb0
//
// 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
//
// Hidden C++ exception states: #wind=8
void GJScoreCell::loadFromScore(GJScoreCell *a1, GJUserScore *a2)
{
GJUserScore *v2; // r15
SimplePlayer *v4; // rsi
SimplePlayer_vtbl *v5; // rbx
const cocos2d::CCPoint *v6; // rax
cocos2d::ccColor3B *v7; // rcx
cocos2d::CCRGBAProtocol_vtbl *v8; // rdi
cocos2d::ccColor3B *v9; // rax
cocos2d::ccColor3B *v10; // rcx
cocos2d::ccColor3B *v11; // rax
GJUserScore *m_score; // rax
bool v13; // al
struct cocos2d::CCMenu *v14; // r13
GJUserScore *v15; // rdx
cocos2d::CCString *v16; // rax
const char *CString; // rax
struct cocos2d::CCLabelBMFont *v18; // rdi
cocos2d::CCLabelBMFont_vtbl *v19; // rbx
const cocos2d::CCPoint *v20; // rax
void **v21; // rcx
struct cocos2d::CCLabelBMFont *v22; // rdi
CCMenuItemSpriteExtra *v23; // r12
float *v24; // rbx
double v25; // xmm0_8
float v26; // xmm9_4
__int64 v27; // rax
float v28; // xmm6_4
double v29; // xmm0_8
CCMenuItemSpriteExtra_vtbl *v30; // rbx
struct cocos2d::CCPoint v31; // rax
__int64 v32; // rax
float v33; // xmm6_4
float v34; // xmm8_4
int v35; // eax
float v36; // xmm13_4
float x; // r15d
float v38; // r12d
float v39; // r13d
__int64 v40; // rdx
__int64 v41; // r8
__int64 v42; // r9
void **v43; // r12
size_t v44; // rsi
size_t v45; // rbx
_QWORD *v46; // rdi
void **v47; // rdx
void **v48; // rdx
void **v49; // rdx
void **v50; // rdx
char *v51; // rax
void **v52; // rdx
void **v53; // rdx
__m128i *v54; // rax
struct cocos2d::CCLabelBMFont *v55; // rdi
cocos2d::CCLabelBMFont_vtbl *v56; // rbx
const cocos2d::CCPoint *v57; // rax
void **v58; // rcx
struct cocos2d::CCSprite *v59; // r15
float *v60; // rbx
double v61; // xmm0_8
__int64 v62; // rax
__m128i *v63; // rax
struct cocos2d::CCLabelBMFont *v64; // rsi
cocos2d::CCLabelBMFont_vtbl *v65; // rbx
const cocos2d::CCPoint *v66; // rax
float *v67; // rbx
float v68; // xmm0_4
__int64 v69; // rax
void **v70; // rcx
struct cocos2d::CCSprite *v71; // rdi
float *v72; // rbx
double v73; // xmm0_8
__int64 v74; // rax
__m128i *v75; // rax
struct cocos2d::CCLabelBMFont *v76; // rdi
cocos2d::CCLabelBMFont_vtbl *v77; // rbx
const cocos2d::CCPoint *v78; // rax
cocos2d::CCLabelBMFont_vtbl *v79; // rbx
const cocos2d::CCPoint *v80; // rax
struct cocos2d::CCSprite *v81; // rsi
float *v82; // rbx
double v83; // xmm0_8
__int64 v84; // rax
__m128i *v85; // rax
struct cocos2d::CCLabelBMFont *v86; // rdi
cocos2d::CCLabelBMFont_vtbl *v87; // rbx
const cocos2d::CCPoint *v88; // rax
float *v89; // rbx
float v90; // xmm0_4
__int64 v91; // rax
struct cocos2d::CCSprite *v92; // rsi
float *v93; // rbx
double v94; // xmm0_8
__int64 v95; // rax
__m128i *v96; // rax
struct cocos2d::CCLabelBMFont *v97; // rdi
cocos2d::CCLabelBMFont_vtbl *v98; // rbx
const cocos2d::CCPoint *v99; // rax
float *v100; // rbx
float v101; // xmm0_4
__int64 v102; // rax
void **v103; // rcx
struct cocos2d::CCSprite *v104; // rsi
float *v105; // rbx
double v106; // xmm0_8
__int64 v107; // rax
__m128i *v108; // rax
struct cocos2d::CCLabelBMFont *v109; // rdi
cocos2d::CCLabelBMFont_vtbl *v110; // rbx
const cocos2d::CCPoint *v111; // rax
float *v112; // rbx
float v113; // xmm0_4
__int64 v114; // rax
void **v115; // rcx
struct cocos2d::CCSprite *v116; // r15
float *v117; // rbx
double v118; // xmm0_8
__int64 v119; // rax
__m128i *v120; // rax
struct cocos2d::CCLabelBMFont *v121; // rsi
cocos2d::CCLabelBMFont_vtbl *v122; // rbx
const cocos2d::CCPoint *v123; // rax
float *v124; // rbx
float v125; // xmm0_4
__int64 v126; // rax
struct cocos2d::CCSprite *v127; // rdi
float *v128; // rbx
double v129; // xmm0_8
__int64 v130; // rax
void *v131; // rcx
void *v132; // rcx
void *v133; // rcx
void *v134; // rcx
cocos2d::CCPoint v135; // [rsp+20h] [rbp-E0h] BYREF
cocos2d::CCPoint v136; // [rsp+28h] [rbp-D8h] BYREF
cocos2d::CCPoint v137; // [rsp+30h] [rbp-D0h] BYREF
cocos2d::CCPoint v138; // [rsp+38h] [rbp-C8h] BYREF
char v139[8]; // [rsp+40h] [rbp-C0h] BYREF
void *Block[2]; // [rsp+48h] [rbp-B8h] BYREF
size_t v141; // [rsp+58h] [rbp-A8h]
unsigned __int64 v142; // [rsp+60h] [rbp-A0h]
void *v143[2]; // [rsp+68h] [rbp-98h] BYREF
size_t Size; // [rsp+78h] [rbp-88h]
unsigned __int64 v145; // [rsp+80h] [rbp-80h]
void *v146[2]; // [rsp+88h] [rbp-78h] BYREF
size_t v147; // [rsp+98h] [rbp-68h]
unsigned __int64 v148; // [rsp+A0h] [rbp-60h]
void *v149[2]; // [rsp+A8h] [rbp-58h] BYREF
size_t v150; // [rsp+B8h] [rbp-48h]
unsigned __int64 v151; // [rsp+C0h] [rbp-40h]
void *Src[2]; // [rsp+C8h] [rbp-38h] BYREF
size_t v153; // [rsp+D8h] [rbp-28h]
unsigned __int64 v154; // [rsp+E0h] [rbp-20h]
v2 = a2;
LOBYTE(a2) = 1;
a1->m_mainLayer->removeAllChildrenWithCleanup(a1->m_mainLayer, (bool)a2);
a1->m_score = v2;
LODWORD(v138.x) = v2->m_creatorPoints;
v4 = SimplePlayer::create(1);
a1->m_mainLayer->addChild_0(a1->m_mainLayer, v4, 1);
((void (__fastcall *)(SimplePlayer *))v4->setScale_0)(v4);
v5 = v4->cocos2d::CCSprite::cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable;
cocos2d::CCPoint::CCPoint(&v137, 30.0, (float)(a1->m_height * 0.5) + 7.0);
v5->setPosition_0(v4, v6);
v7 = (cocos2d::ccColor3B *)qword_1406C2ED8;
if ( !qword_1406C2ED8 )
{
v135 = (cocos2d::CCPoint)operator new(0x668u);
qword_1406C2ED8 = ((__int64 (__fastcall *)(_QWORD))sub_14017AB00)(v135);
(*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2ED8 + 72LL))(qword_1406C2ED8);
v7 = (cocos2d::ccColor3B *)qword_1406C2ED8;
}
v8 = v4->cocos2d::CCSprite::cocos2d::CCNodeRGBA::cocos2d::CCRGBAProtocol::__vftable;
v9 = GameManager::colorForIdx(v7, (GameManager *)&v136, a1->m_score->m_color1);
v8->setColor(&v4->cocos2d::CCRGBAProtocol, v9);
v10 = (cocos2d::ccColor3B *)qword_1406C2ED8;
if ( !qword_1406C2ED8 )
{
v137 = (cocos2d::CCPoint)operator new(0x668u);
qword_1406C2ED8 = ((__int64 (__fastcall *)(_QWORD))sub_14017AB00)(v137);
(*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2ED8 + 72LL))(qword_1406C2ED8);
v10 = (cocos2d::ccColor3B *)qword_1406C2ED8;
}
v11 = GameManager::colorForIdx(v10, (GameManager *)&v135, a1->m_score->m_color2);
v4->m_secondLayer->setColor(&v4->m_secondLayer->cocos2d::CCRGBAProtocol, v11);
SimplePlayer::updateColors(v4);
SimplePlayer::tryEnableCustomGlowColor(v4, a1->m_score->m_color3);
m_score = a1->m_score;
v13 = m_score->m_special == 2 || m_score->m_glowEnabled;
v4->m_hasGlowOutline = v13;
SimplePlayer::updatePlayerFrame(v4, a1->m_score->m_iconID, a1->m_score->m_iconType);
SimplePlayer::updateColors(v4);
v14 = cocos2d::CCMenu::create(nullptr);
a1->m_mainLayer->addChild_1(a1->m_mainLayer, v14);
v15 = a1->m_score;
if ( v15->m_scoreType != 2 )
{
v16 = cocos2d::CCString::createWithFormat("%i", v15->m_playerRank);
CString = cocos2d::CCString::getCString(v16);
v18 = cocos2d::CCLabelBMFont::create(CString, "goldFont.fnt");
a1->m_mainLayer->addChild_1(a1->m_mainLayer, v18);
v19 = v18->cocos2d::CCSpriteBatchNode::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable;
cocos2d::CCPoint::CCPoint(&v137, 30.0, (float)(a1->m_height * 0.5) - 18.0);
v19->setPosition_0(v18, v20);
cocos2d::CCLabelBMFont::limitLabelWidth(v18, 40.0, 0.64999998, 0.0);
}
sub_14003BDB0((__int64)Block, (__int64)&a1->m_score->m_userName);
v21 = Block;
if ( v142 > 0xF )
v21 = (void **)Block[0];
v22 = cocos2d::CCLabelBMFont::create((const char *)v21, "goldFont.fnt");
sub_14003A830((__int64)Block);
cocos2d::CCLabelBMFont::limitLabelWidth(v22, 120.0, 0.80000001, 0.0);
v23 = CCMenuItemSpriteExtra::create(v22, nullptr, a1, (cocos2d::SEL_MenuHandler *)GJScoreCell::onViewProfile);
v14->addChild_1(v14, v23);
v24 = (float *)v22->getContentSize(v22);
v25 = ((double (__fastcall *)(struct cocos2d::CCLabelBMFont *))v22->getScale)(v22);
v26 = *(float *)&v25 * *v24;
cocos2d::CCPoint::CCPoint(&v137, 30.0, 7.0);
v27 = (__int64)v4->getPosition_0(v4);
cocos2d::CCPoint::operator+(v27, v139);
v28 = v22->getContentSize(v22)->width * 0.5;
v29 = ((double (__fastcall *)(struct cocos2d::CCLabelBMFont *))v22->getScale)(v22);
cocos2d::CCPoint::CCPoint(&v135, *(float *)&v29 * v28, 0.0);
cocos2d::CCPoint::operator+(v139, &v137);
v30 = v23->cocos2d::CCMenuItemSprite::cocos2d::CCMenuItem::cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable;
v31 = cocos2d::CCNode::convertToNodeSpace(v14, &v136);
((void (__fastcall *)(CCMenuItemSpriteExtra *, struct cocos2d::CCPoint))v30->setPosition_0)(v23, v31);
if ( a1->m_score->m_scoreType == 2 )
{
cocos2d::CCPoint::CCPoint(&v135, 0.0, -7.0);
v32 = (__int64)v4->getPosition_0(v4);
cocos2d::CCPoint::operator+(v32, &v137);
v4->setPosition_0(v4, &v137);
}
if ( GJUserScore::isCurrentUser(a1->m_score) )
{
LOWORD(v136.x) = -26906;
BYTE2(v136.x) = 10;
a1->m_backgroundLayer->setColor(&a1->m_backgroundLayer->cocos2d::CCRGBAProtocol, (const cocos2d::ccColor3B *)&v136);
}
if ( v2->m_accountID <= 0 && v2->m_scoreType != 1 )
{
LOWORD(v136.x) = -166;
BYTE2(v136.x) = -1;
v22->setColor(&v22->cocos2d::CCRGBAProtocol, (const cocos2d::ccColor3B *)&v136);
v23->setEnabled(v23, 0);
}
v33 = (float)(a1->m_height * 0.5) - 13.0;
if ( SLODWORD(v138.x) <= 0 )
v34 = 0.5;
else
v34 = 0.44999999;
v35 = 50;
if ( SLODWORD(v138.x) > 0 )
v35 = 35;
v36 = (float)v35;
x = *(float *)&a1->m_score->m_stars;
*(_OWORD *)Src = 0;
v153 = 0;
v154 = 15;
Src[0] = sub_14003AA10(0x20u);
v153 = 20;
v154 = 31;
strcpy((char *)Src[0], "GJ_starsIcon_001.png");
v38 = *(float *)&a1->m_score->m_moons;
v135.x = v38;
*(_OWORD *)v149 = 0;
v150 = 0;
v151 = 15;
v149[0] = sub_14003AA10(0x20u);
v150 = 20;
v151 = 31;
strcpy((char *)v149[0], "GJ_moonsIcon_001.png");
LODWORD(v137.x) = a1->m_score->m_demons;
*(_OWORD *)v146 = 0;
v147 = 0;
v148 = 15;
v146[0] = sub_14003AA10(0x20u);
v147 = 20;
v148 = 31;
strcpy((char *)v146[0], "GJ_demonIcon_001.png");
v39 = *(float *)&a1->m_score->m_userCoins;
v136.x = v39;
*(_OWORD *)v143 = 0;
Size = 0;
v145 = 15;
v143[0] = sub_14003AA10(0x20u);
Size = 21;
v145 = 31;
strcpy((char *)v143[0], "GJ_coinsIcon2_001.png");
if ( a1->m_score->m_leaderboardStat )
{
v39 = x;
*(_OWORD *)Block = 0;
v141 = 0;
v142 = 0;
v43 = Src;
if ( v154 > 0xF )
v43 = (void **)Src[0];
v44 = v153;
v45 = 0x7FFFFFFFFFFFFFFFLL;
if ( v153 > 0x7FFFFFFFFFFFFFFFLL )
sub_140007B50((unsigned __int8)aGjCoinsicon200[20], v40, v41, v42);
if ( v153 > 0xF )
{
if ( (v153 | 0xF) <= 0x7FFFFFFFFFFFFFFFLL )
{
v45 = v153 | 0xF;
if ( (v153 | 0xF) < 0x16 )
v45 = 22;
}
v46 = sub_14003AA10(v45 + 1);
Block[0] = v46;
v141 = v44;
v142 = v45;
memcpy(v46, v43, v44 + 1);
}
else
{
v141 = v153;
v45 = 15;
v142 = 15;
*(_OWORD *)Block = *(_OWORD *)v43;
v46 = Block[0];
}
switch ( a1->m_score->m_leaderboardStat )
{
case Moons:
x = v135.x;
v52 = v149;
if ( v151 > 0xF )
v52 = (void **)v149[0];
sub_14003CCE0(Src, v52, v150);
v38 = v39;
v53 = Block;
if ( v45 > 0xF )
v53 = (void **)v46;
sub_14003CCE0(v149, v53, v44);
v45 = v142;
v46 = Block[0];
v39 = v136.x;
goto LABEL_50;
case Demons:
x = v137.x;
v49 = v146;
if ( v148 > 0xF )
v49 = (void **)v146[0];
sub_14003CCE0(Src, v49, v147);
v137.x = v39;
v50 = Block;
if ( v45 > 0xF )
v50 = (void **)v46;
sub_14003CCE0(v146, v50, v44);
v45 = v142;
v46 = Block[0];
break;
case UserCoins:
x = v136.x;
v47 = v143;
if ( v145 > 0xF )
v47 = (void **)v143[0];
sub_14003CCE0(Src, v47, Size);
v48 = Block;
if ( v45 > 0xF )
v48 = (void **)v46;
sub_14003CCE0(v143, v48, v44);
v45 = v142;
v46 = Block[0];
goto LABEL_49;
}
v39 = v136.x;
LABEL_49:
v38 = v135.x;
LABEL_50:
if ( v45 > 0xF )
{
v51 = (char *)v46;
if ( v45 + 1 >= 0x1000 )
{
v46 = (_QWORD *)*(v46 - 1);
if ( (unsigned __int64)(v51 - (char *)v46 - 8) > 0x1F )
invalid_parameter_noinfo_noreturn();
}
j_j_free(v46);
}
}
v54 = GameToolbox::pointsToString((__m128i *)Block, SLODWORD(x));
if ( v54[1].m128i_i64[1] > 0xFuLL )
v54 = (__m128i *)v54->m128i_i64[0];
v55 = cocos2d::CCLabelBMFont::create(v54->m128i_i8, (const char *)&qword_14052A4D8);
sub_14003A830((__int64)Block);
a1->m_mainLayer->addChild_0(a1->m_mainLayer, v55, 2);
v56 = v55->cocos2d::CCSpriteBatchNode::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable;
cocos2d::CCPoint::CCPoint(&v135, 0.0, 0.5);
v56->setAnchorPoint(v55, v57);
cocos2d::CCLabelBMFont::limitLabelWidth(v55, 60.0, v34, 0.0);
cocos2d::CCPoint::CCPoint(&v136, v26 + 5.0, -2.0);
cocos2d::CCPoint::operator+(v139, &v135);
v55->setPosition_0(v55, &v135);
v58 = Src;
if ( v154 > 0xF )
v58 = (void **)Src[0];
v59 = cocos2d::CCSprite::createWithSpriteFrameName((const char *)v58);
a1->m_mainLayer->addChild_0(a1->m_mainLayer, v59, 2);
v60 = (float *)v55->getContentSize(v55);
v61 = ((double (__fastcall *)(struct cocos2d::CCLabelBMFont *))v55->getScale)(v55);
cocos2d::CCPoint::CCPoint(&v136, (float)(*(float *)&v61 * *v60) + 10.0, 0.0);
v62 = (__int64)v55->getPosition_0(v55);
cocos2d::CCPoint::operator+(v62, &v135);
v59->setPosition_0(v59, &v135);
((void (__fastcall *)(struct cocos2d::CCSprite *))v59->setScale_0)(v59);
v63 = GameToolbox::pointsToString((__m128i *)Block, SLODWORD(v38));
if ( v63[1].m128i_i64[1] > 0xFuLL )
v63 = (__m128i *)v63->m128i_i64[0];
v64 = cocos2d::CCLabelBMFont::create(v63->m128i_i8, (const char *)&qword_14052A4D8);
sub_14003A830((__int64)Block);
a1->m_mainLayer->addChild_0(a1->m_mainLayer, v64, 2);
v65 = v64->cocos2d::CCSpriteBatchNode::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable;
cocos2d::CCPoint::CCPoint(&v135, 0.0, 0.5);
v65->setAnchorPoint(v64, v66);
cocos2d::CCLabelBMFont::limitLabelWidth(v64, 60.0, v34, 0.0);
v67 = (float *)v59->getContentSize(v59);
v68 = v59->getScale(v59);
cocos2d::CCPoint::CCPoint(&v136, (float)(v68 * *v67) * 0.5 + 8.0, 0.0);
v69 = (__int64)v59->getPosition_0(v59);
cocos2d::CCPoint::operator+(v69, &v135);
v64->setPosition_0(v64, &v135);
v70 = v149;
if ( v151 > 0xF )
v70 = (void **)v149[0];
v71 = cocos2d::CCSprite::createWithSpriteFrameName((const char *)v70);
a1->m_mainLayer->addChild_0(a1->m_mainLayer, v71, 2);
v72 = (float *)v64->getContentSize(v64);
v73 = ((double (__fastcall *)(struct cocos2d::CCLabelBMFont *))v64->getScale)(v64);
cocos2d::CCPoint::CCPoint(&v136, (float)(*(float *)&v73 * *v72) + 10.0, 0.0);
v74 = (__int64)v64->getPosition_0(v64);
cocos2d::CCPoint::operator+(v74, &v135);
v71->setPosition_0(v71, &v135);
((void (__fastcall *)(struct cocos2d::CCSprite *))v71->setScale_0)(v71);
v75 = GameToolbox::pointsToString((__m128i *)Block, a1->m_score->m_diamonds);
if ( v75[1].m128i_i64[1] > 0xFuLL )
v75 = (__m128i *)v75->m128i_i64[0];
v76 = cocos2d::CCLabelBMFont::create(v75->m128i_i8, (const char *)&qword_14052A4D8);
sub_14003A830((__int64)Block);
a1->m_mainLayer->addChild_0(a1->m_mainLayer, v76, 2);
v77 = v76->cocos2d::CCSpriteBatchNode::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable;
cocos2d::CCPoint::CCPoint(&v135, 0.0, 0.5);
v77->setAnchorPoint(v76, v78);
v79 = v76->cocos2d::CCSpriteBatchNode::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable;
cocos2d::CCPoint::CCPoint(&v135, 62.0, v33);
v79->setPosition_0(v76, v80);
cocos2d::CCLabelBMFont::limitLabelWidth(v76, v36, v34, 0.0);
v81 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_diamondsIcon_001.png");
a1->m_mainLayer->addChild_0(a1->m_mainLayer, v81, 2);
v82 = (float *)v76->getContentSize(v76);
v83 = ((double (__fastcall *)(struct cocos2d::CCLabelBMFont *))v76->getScale)(v76);
cocos2d::CCPoint::CCPoint(&v136, (float)(*(float *)&v83 * *v82) + 10.0, 0.0);
v84 = (__int64)v76->getPosition_0(v76);
cocos2d::CCPoint::operator+(v84, &v135);
v81->setPosition_0(v81, &v135);
((void (__fastcall *)(struct cocos2d::CCSprite *))v81->setScale_0)(v81);
v85 = GameToolbox::pointsToString((__m128i *)Block, a1->m_score->m_secretCoins);
if ( v85[1].m128i_i64[1] > 0xFuLL )
v85 = (__m128i *)v85->m128i_i64[0];
v86 = cocos2d::CCLabelBMFont::create(v85->m128i_i8, (const char *)&qword_14052A4D8);
sub_14003A830((__int64)Block);
a1->m_mainLayer->addChild_0(a1->m_mainLayer, v86, 2);
v87 = v86->cocos2d::CCSpriteBatchNode::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable;
cocos2d::CCPoint::CCPoint(&v135, 0.0, 0.5);
v87->setAnchorPoint(v86, v88);
v89 = (float *)v81->getContentSize(v81);
v90 = v81->getScale(v81);
cocos2d::CCPoint::CCPoint(&v136, (float)(v90 * *v89) * 0.5 + 8.0, 0.0);
v91 = (__int64)v81->getPosition_0(v81);
cocos2d::CCPoint::operator+(v91, &v135);
v86->setPosition_0(v86, &v135);
cocos2d::CCLabelBMFont::limitLabelWidth(v86, v36, v34, 0.0);
v92 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_coinsIcon_001.png");
a1->m_mainLayer->addChild_0(a1->m_mainLayer, v92, 2);
v93 = (float *)v86->getContentSize(v86);
v94 = ((double (__fastcall *)(struct cocos2d::CCLabelBMFont *))v86->getScale)(v86);
cocos2d::CCPoint::CCPoint(&v136, (float)(*(float *)&v94 * *v93) + 10.0, 0.0);
v95 = (__int64)v86->getPosition_0(v86);
cocos2d::CCPoint::operator+(v95, &v135);
v92->setPosition_0(v92, &v135);
((void (__fastcall *)(struct cocos2d::CCSprite *))v92->setScale_0)(v92);
v96 = GameToolbox::pointsToString((__m128i *)Block, SLODWORD(v39));
if ( v96[1].m128i_i64[1] > 0xFuLL )
v96 = (__m128i *)v96->m128i_i64[0];
v97 = cocos2d::CCLabelBMFont::create(v96->m128i_i8, (const char *)&qword_14052A4D8);
sub_14003A830((__int64)Block);
a1->m_mainLayer->addChild_0(a1->m_mainLayer, v97, 2);
v98 = v97->cocos2d::CCSpriteBatchNode::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable;
cocos2d::CCPoint::CCPoint(&v135, 0.0, 0.5);
v98->setAnchorPoint(v97, v99);
v100 = (float *)v92->getContentSize(v92);
v101 = v92->getScale(v92);
cocos2d::CCPoint::CCPoint(&v136, (float)(v101 * *v100) * 0.5 + 8.0, 0.0);
v102 = (__int64)v92->getPosition_0(v92);
cocos2d::CCPoint::operator+(v102, &v135);
v97->setPosition_0(v97, &v135);
cocos2d::CCLabelBMFont::limitLabelWidth(v97, v36, v34, 0.0);
v103 = v143;
if ( v145 > 0xF )
v103 = (void **)v143[0];
v104 = cocos2d::CCSprite::createWithSpriteFrameName((const char *)v103);
a1->m_mainLayer->addChild_0(a1->m_mainLayer, v104, 2);
v105 = (float *)v97->getContentSize(v97);
v106 = ((double (__fastcall *)(struct cocos2d::CCLabelBMFont *))v97->getScale)(v97);
cocos2d::CCPoint::CCPoint(&v136, (float)(*(float *)&v106 * *v105) + 10.0, 0.0);
v107 = (__int64)v97->getPosition_0(v97);
cocos2d::CCPoint::operator+(v107, &v135);
v104->setPosition_0(v104, &v135);
((void (__fastcall *)(struct cocos2d::CCSprite *))v104->setScale_0)(v104);
v108 = GameToolbox::pointsToString((__m128i *)Block, SLODWORD(v137.x));
if ( v108[1].m128i_i64[1] > 0xFuLL )
v108 = (__m128i *)v108->m128i_i64[0];
v109 = cocos2d::CCLabelBMFont::create(v108->m128i_i8, (const char *)&qword_14052A4D8);
sub_14003A830((__int64)Block);
a1->m_mainLayer->addChild_0(a1->m_mainLayer, v109, 2);
v110 = v109->cocos2d::CCSpriteBatchNode::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable;
cocos2d::CCPoint::CCPoint(&v137, 0.0, 0.5);
v110->setAnchorPoint(v109, v111);
v112 = (float *)v104->getContentSize(v104);
v113 = v104->getScale(v104);
cocos2d::CCPoint::CCPoint(&v135, (float)(v113 * *v112) * 0.5 + 8.0, 0.0);
v114 = (__int64)v104->getPosition_0(v104);
cocos2d::CCPoint::operator+(v114, &v137);
v109->setPosition_0(v109, &v137);
cocos2d::CCLabelBMFont::limitLabelWidth(v109, v36, v34, 0.0);
v115 = v146;
if ( v148 > 0xF )
v115 = (void **)v146[0];
v116 = cocos2d::CCSprite::createWithSpriteFrameName((const char *)v115);
a1->m_mainLayer->addChild_0(a1->m_mainLayer, v116, 2);
v117 = (float *)v109->getContentSize(v109);
v118 = ((double (__fastcall *)(struct cocos2d::CCLabelBMFont *))v109->getScale)(v109);
cocos2d::CCPoint::CCPoint(&v135, (float)(*(float *)&v118 * *v117) + 10.0, 0.0);
v119 = (__int64)v109->getPosition_0(v109);
cocos2d::CCPoint::operator+(v119, &v137);
v116->setPosition_0(v116, &v137);
((void (__fastcall *)(struct cocos2d::CCSprite *))v116->setScale_0)(v116);
if ( SLODWORD(v138.x) > 0 )
{
v120 = GameToolbox::pointsToString((__m128i *)Block, a1->m_score->m_creatorPoints);
if ( v120[1].m128i_i64[1] > 0xFuLL )
v120 = (__m128i *)v120->m128i_i64[0];
v121 = cocos2d::CCLabelBMFont::create(v120->m128i_i8, (const char *)&qword_14052A4D8);
sub_14003A830((__int64)Block);
a1->m_mainLayer->addChild_0(a1->m_mainLayer, v121, 2);
v122 = v121->cocos2d::CCSpriteBatchNode::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable;
cocos2d::CCPoint::CCPoint(&v138, 0.0, 0.5);
v122->setAnchorPoint(v121, v123);
v124 = (float *)v116->getContentSize(v116);
v125 = v116->getScale(v116);
cocos2d::CCPoint::CCPoint(&v137, (float)(v125 * *v124) * 0.5 + 8.0, 0.0);
v126 = (__int64)v116->getPosition_0(v116);
cocos2d::CCPoint::operator+(v126, &v138);
v121->setPosition_0(v121, &v138);
cocos2d::CCLabelBMFont::limitLabelWidth(v121, v36, v34, 0.0);
v127 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_hammerIcon_001.png");
a1->m_mainLayer->addChild_0(a1->m_mainLayer, v127, 2);
v128 = (float *)v121->getContentSize(v121);
v129 = ((double (__fastcall *)(struct cocos2d::CCLabelBMFont *))v121->getScale)(v121);
cocos2d::CCPoint::CCPoint(&v137, (float)(*(float *)&v129 * *v128) + 10.0, 0.0);
v130 = (__int64)v121->getPosition_0(v121);
cocos2d::CCPoint::operator+(v130, &v138);
v127->setPosition_0(v127, &v138);
((void (__fastcall *)(struct cocos2d::CCSprite *))v127->setScale_0)(v127);
}
if ( v145 > 0xF )
{
v131 = v143[0];
if ( v145 + 1 >= 0x1000 )
{
v131 = *((void **)v143[0] - 1);
if ( (unsigned __int64)((char *)v143[0] - (char *)v131 - 8) > 0x1F )
invalid_parameter_noinfo_noreturn();
}
j_j_free(v131);
}
Size = 0;
v145 = 15;
LOBYTE(v143[0]) = 0;
if ( v148 > 0xF )
{
v132 = v146[0];
if ( v148 + 1 >= 0x1000 )
{
v132 = *((void **)v146[0] - 1);
if ( (unsigned __int64)((char *)v146[0] - (char *)v132 - 8) > 0x1F )
invalid_parameter_noinfo_noreturn();
}
j_j_free(v132);
}
v147 = 0;
v148 = 15;
LOBYTE(v146[0]) = 0;
if ( v151 > 0xF )
{
v133 = v149[0];
if ( v151 + 1 >= 0x1000 )
{
v133 = *((void **)v149[0] - 1);
if ( (unsigned __int64)((char *)v149[0] - (char *)v133 - 8) > 0x1F )
invalid_parameter_noinfo_noreturn();
}
j_j_free(v133);
}
v150 = 0;
v151 = 15;
LOBYTE(v149[0]) = 0;
if ( v154 > 0xF )
{
v134 = Src[0];
if ( v154 + 1 >= 0x1000 )
{
v134 = *((void **)Src[0] - 1);
if ( (unsigned __int64)((char *)Src[0] - (char *)v134 - 8) > 0x1F )
invalid_parameter_noinfo_noreturn();
}
j_j_free(v134);
}
}