//
// LevelListCell::loadFromList from 0x33a738 to 0x33b51a (3554 bytes)
//
// 1 xrefs:
// > CustomListView::loadCell @ 0x33bc0c
//
// 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 LevelListCell::loadFromList(LevelListCell *a1, GJLevelList *a2)
{
GJLevelList *m_levelList; // r0
cocos2d::CCSprite *v5; // r5
void (__fastcall *setPosition)(cocos2d::CCSprite *__hidden, const cocos2d::CCPoint *); // r8
int m_levelsToClaim; // r9
GameStatsManager *v8; // r0
void (__fastcall *v9)(cocos2d::CCSprite *__hidden, const cocos2d::CCPoint *); // r7
int v10; // r10
cocos2d::CCSprite *v11; // r10
void (__fastcall *v12)(cocos2d::CCSprite *__hidden, const cocos2d::CCPoint *); // r7
int v13; // r11
cocos2d::CCLabelBMFont *v14; // r7
void (__fastcall *setAnchorPoint)(cocos2d::CCLabelBMFont *__hidden, const cocos2d::CCPoint *); // r11
void (__fastcall *v16)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // r11
int v17; // r10
void (__fastcall *setColor)(cocos2d::CCLabelBMFont *__hidden, const cocos2d::ccColor3B *); // r2
int v19; // r3
cocos2d::CCSprite *v20; // r7
void (__fastcall *v21)(cocos2d::CCSprite *__hidden, const cocos2d::CCPoint *); // r8
int v22; // r0
cocos2d::CCLabelBMFont *v23; // r5
void (__fastcall *v24)(cocos2d::CCLabelBMFont *__hidden, const cocos2d::CCPoint *); // r7
void (__fastcall *v25)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // r7
const char *m_listRevision; // r1
cocos2d::CCString *v27; // r0
cocos2d::CCLabelBMFont *v28; // r7
void (__fastcall *v29)(cocos2d::CCLabelBMFont *__hidden, const cocos2d::CCPoint *); // r8
float v30; // s18
const cocos2d::CCSize *v31; // r0
void (__fastcall *v32)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // r10
int v33; // r11
char *v34; // r0
char *v35; // r2
ButtonSprite *v36; // r7
CCMenuItemSpriteExtra *v37; // r0
float m_width; // s17
void (__fastcall *v39)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // r8
float *v40; // r0
cocos2d::CCString *v41; // r0
cocos2d::CCLabelBMFont *v42; // r7
int v43; // r10
float v44; // s17
float v45; // r0
CCMenuItemSpriteExtra *v46; // r7
void (__fastcall *v47)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // r10
const char *v48; // r1
cocos2d::CCNode *v49; // r7
void (__fastcall *v50)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // r8
const char *v51; // r1
float *v52; // r8
void (__fastcall *v53)(float *, cocos2d::CCRect *); // r3
char v54; // r2
float v55; // s17
void (__fastcall *v56)(float *, cocos2d::CCRect *); // r10
void (__fastcall *v57)(float *, cocos2d::CCRect *); // r10
float v58; // s15
float v59; // s15
void (__fastcall *v60)(float *, cocos2d::CCRect *); // r10
float v61; // s14
float v62; // s15
float v63; // r3
cocos2d::CCString *v64; // r0
cocos2d::CCLabelBMFont *v65; // r9
void (__fastcall *v66)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // r10
int v67; // r11
float x; // s15
cocos2d::CCSprite *v69; // r11
void (__fastcall *v70)(cocos2d::CCSprite *__hidden, const cocos2d::CCPoint *); // r9
cocos2d::CCSprite *v71; // r9
int v72; // r10
cocos2d::CCLabelBMFont *v73; // r6
void (__fastcall *v74)(cocos2d::CCLabelBMFont *__hidden, const cocos2d::CCPoint *); // r10
void (__fastcall *setDisplayFrame)(cocos2d::CCSprite *__hidden, cocos2d::CCSpriteFrame *); // r8
cocos2d::CCSpriteFrameCache *v76; // r0
const char *v77; // r1
cocos2d::CCSpriteFrame *v78; // r0
void (__fastcall *v79)(cocos2d::CCSprite *__hidden, const cocos2d::CCPoint *); // r10
float v80; // s16
float width; // s17
float v82; // s16
int v83; // r0
cocos2d::CCLabelBMFont *v84; // r6
void (__fastcall *v85)(cocos2d::CCLabelBMFont *__hidden, const cocos2d::CCPoint *); // r10
int v86; // r10
cocos2d::CCSprite *v87; // r6
cocos2d::CCSprite *v88; // r9
void (__fastcall *v89)(cocos2d::CCSprite *__hidden, const cocos2d::CCPoint *); // r10
int v90; // r7
int v91; // r9
cocos2d::CCSprite *v92; // r7
int v93; // r10
void (__fastcall *v94)(cocos2d::CCSprite *__hidden, const cocos2d::CCPoint *); // r10
float v95; // s16
float v96; // s17
float v97; // s16
int v98; // r0
cocos2d::CCString *v99; // r0
cocos2d::CCLabelBMFont *v100; // r6
void (__fastcall *v101)(cocos2d::CCLabelBMFont *__hidden, const cocos2d::CCPoint *); // r9
void (__fastcall *v102)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // r9
int v103; // r10
cocos2d::CCSprite *v104; // r9
void (__fastcall *v105)(cocos2d::CCSprite *__hidden, const cocos2d::CCPoint *); // r7
float *v106; // r0
cocos2d::CCLabelBMFont *v107; // r7
void (__fastcall *v108)(cocos2d::CCLabelBMFont *__hidden, const cocos2d::CCPoint *); // r10
void (__fastcall *v109)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // r10
int v110; // r9
CCMenuItemSpriteExtra *v111; // r4
void (__fastcall *v112)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // r7
int v113; // r8
float v114; // s16
float v115; // r0
float v116; // [sp+10h] [bp-7Ch]
cocos2d::CCNode *v117; // [sp+14h] [bp-78h]
_BOOL4 hasClaimedListReward; // [sp+18h] [bp-74h]
void (__fastcall *v119)(cocos2d::CCSprite *__hidden, const cocos2d::CCPoint *); // [sp+18h] [bp-74h]
cocos2d::CCPoint *v120; // [sp+20h] [bp-6Ch]
cocos2d::CCPoint *v121; // [sp+20h] [bp-6Ch]
cocos2d::CCPoint *m_likes; // [sp+20h] [bp-6Ch]
cocos2d::CCPoint *v123; // [sp+20h] [bp-6Ch]
int v124; // [sp+24h] [bp-68h]
char *v125; // [sp+28h] [bp-64h]
int v126; // [sp+2Ch] [bp-60h]
int v127; // [sp+2Ch] [bp-60h]
void (__fastcall *v128)(cocos2d::CCSprite *__hidden, const cocos2d::CCPoint *); // [sp+2Ch] [bp-60h]
_BYTE v129[4]; // [sp+34h] [bp-58h] BYREF
cocos2d::CCSprite *v130; // [sp+38h] [bp-54h] BYREF
cocos2d::CCLabelBMFont *v131; // [sp+3Ch] [bp-50h] BYREF
cocos2d::CCLabelBMFont *v132; // [sp+40h] [bp-4Ch] BYREF
cocos2d::CCPoint v133; // [sp+44h] [bp-48h] BYREF
cocos2d::CCPoint v134; // [sp+4Ch] [bp-40h] BYREF
cocos2d::CCPoint v135; // [sp+54h] [bp-38h] BYREF
cocos2d::CCPoint v136; // [sp+5Ch] [bp-30h] BYREF
cocos2d::CCSize v137; // [sp+64h] [bp-28h] BYREF
cocos2d::CCPoint v138; // [sp+6Ch] [bp-20h] BYREF
cocos2d::CCRect v139; // [sp+74h] [bp-18h] BYREF
a1->m_mainLayer->removeAllChildrenWithCleanup(a1->m_mainLayer, 1);
m_levelList = a1->m_levelList;
if ( m_levelList )
cocos2d::CCObject::release(m_levelList);
a1->m_levelList = a2;
cocos2d::CCObject::retain(a2);
GJLevelList::frameForListDifficulty((GJLevelList *)&v130, a1->m_levelList->m_difficulty, ShortText);
v5 = cocos2d::CCSprite::createWithSpriteFrameName((const char *)v130);
setPosition = v5->setPosition;
cocos2d::CCPoint::CCPoint(&v139.origin, 26.0, a1->m_height * 0.5);
setPosition(v5, &v139.origin);
a1->m_mainLayer->addChild_0(a1->m_mainLayer, v5, 2);
v125 = (char *)GJLevelList::completedLevels(a1->m_levelList);
*(float *)&m_levelsToClaim = COERCE_FLOAT(GJLevelList::totalLevels(a1->m_levelList));
if ( a2->m_diamonds <= 0 || a2->m_levelsToClaim <= 0 )
{
v19 = 0;
hasClaimedListReward = 0;
}
else
{
v8 = GameStatsManager::sharedState();
hasClaimedListReward = GameStatsManager::hasClaimedListReward(v8, a1->m_levelList);
v9 = v5->setPosition;
v10 = (int)v5->getPosition(v5);
cocos2d::CCPoint::CCPoint(&v138, 0.0, 5.0);
cocos2d::CCPoint::operator+(&v139, v10, &v138);
v9(v5, &v139.origin);
v11 = cocos2d::CCSprite::createWithSpriteFrameName("diamond_small01_001.png");
a1->m_mainLayer->addChild(a1->m_mainLayer, v11);
v12 = v11->setPosition;
v13 = (int)v5->getPosition(v5);
cocos2d::CCPoint::CCPoint(&v138, 8.0, -30.0);
cocos2d::CCPoint::operator+(&v139, v13, &v138);
v12(v11, &v139.origin);
GameToolbox::intToString((GameToolbox *)&v131, a1->m_levelList->m_diamonds);
v14 = cocos2d::CCLabelBMFont::create();
sub_774008(&v131);
a1->m_mainLayer->addChild(a1->m_mainLayer, v14);
setAnchorPoint = v14->setAnchorPoint;
cocos2d::CCPoint::CCPoint(&v139.origin, 1.0, 0.5);
setAnchorPoint(v14, &v139.origin);
v16 = v14->setPosition;
v17 = (int)v11->getPosition(v11);
cocos2d::CCPoint::CCPoint(&v138, -8.0, 0.0);
cocos2d::CCPoint::operator+(&v139, v17, &v138);
v16(v14, &v139.origin);
((void (__fastcall *)(cocos2d::CCLabelBMFont *, int))v14->setScale)(v14, 1053609165);
if ( hasClaimedListReward )
{
setColor = v14->setColor;
LOWORD(v139.origin.x) = -156;
BYTE2(v139.origin.x) = -1;
setColor(v14, (const cocos2d::ccColor3B *)&v139);
}
else
{
m_levelsToClaim = a1->m_levelList->m_levelsToClaim;
}
v19 = 1;
}
v124 = v19;
if ( a1->m_levelList->m_featured )
{
v20 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_featuredCoin_001.png");
a1->m_mainLayer->addChild_0(a1->m_mainLayer, v20, 1);
v21 = v20->setPosition;
v22 = (int)v5->getPosition(v5);
v21(v20, (const cocos2d::CCPoint *)v22);
}
sub_775C20(&v132, &a1->m_levelList->m_listName);
v23 = cocos2d::CCLabelBMFont::create();
sub_774008(&v132);
a1->m_mainLayer->addChild(a1->m_mainLayer, v23);
v24 = v23->setAnchorPoint;
cocos2d::CCPoint::CCPoint(&v139.origin, 0.0, 0.5);
v24(v23, &v139.origin);
((void (__fastcall *)(cocos2d::CCLabelBMFont *, int))v23->setScale)(v23, 1065353216);
v25 = v23->setPosition;
cocos2d::CCPoint::CCPoint(&v139.origin, 50.0, (float)(a1->m_height * 0.5) + 30.0);
v25(v23, &v139.origin);
cocos2d::CCLabelBMFont::limitLabelWidth(v23, 190.0, 0.7, 0.0);
m_listRevision = (const char *)a1->m_levelList->m_listRevision;
if ( (int)m_listRevision > 0 )
{
v27 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"Rev. %i", m_listRevision);
cocos2d::CCString::getCString(v27);
v28 = cocos2d::CCLabelBMFont::create();
a1->m_mainLayer->addChild(a1->m_mainLayer, v28);
v29 = v28->setAnchorPoint;
cocos2d::CCPoint::CCPoint(&v139.origin, 0.0, 0.5);
v29(v28, &v139.origin);
((void (__fastcall *)(cocos2d::CCLabelBMFont *, int))v28->setScale)(v28, 1053609165);
v30 = COERCE_FLOAT(((int (__fastcall *)(cocos2d::CCLabelBMFont *))v23->getScale)(v23));
v31 = v23->getContentSize(v23);
cocos2d::CCSize::CCSize(&v137, v31);
v32 = v28->setPosition;
v33 = (int)v23->getPosition(v23);
cocos2d::CCPoint::CCPoint(&v138, (float)(v30 * v137.width) + 30.0, -1.0);
cocos2d::CCPoint::operator+(&v139, v33, &v138);
v32(v28, &v139.origin);
}
if ( a1->m_addingLevel )
{
v34 = "Add";
v35 = "GJ_button_02.png";
}
else
{
v34 = "View";
v35 = "GJ_button_01.png";
}
v36 = ButtonSprite::create(
(ButtonSprite *)v34,
(const char *)&word_32,
0,
0.6,
0,
"bigFont.fnt",
v35,
COERCE_CONST_CHAR_(30.0),
v116);
v137.height = 0.0;
LODWORD(v137.width) = LevelListCell::onClick;
v37 = CCMenuItemSpriteExtra::create(
v36,
nullptr,
(cocos2d::SEL_MenuHandler)__PAIR64__(LevelListCell::onClick, (unsigned int)a1));
v117 = (cocos2d::CCNode *)cocos2d::CCMenu::create((cocos2d::CCMenu *)v37, nullptr);
a1->m_mainLayer->addChild_0(a1->m_mainLayer, v117, 3);
m_width = a1->m_width;
v39 = v117->setPosition;
v40 = (float *)v36->getContentSize(v36);
cocos2d::CCPoint::CCPoint(&v139.origin, (float)(m_width - (float)(*v40 * 0.5)) - 9.0, a1->m_height * 0.5);
v39(v117, &v139.origin);
sub_775C20(&v134, &a1->m_levelList->m_creatorName);
v41 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(
(cocos2d::CCString *)"By %s",
(const char *)LODWORD(v134.x));
cocos2d::CCString::getCString(v41);
sub_774008(&v134);
v42 = cocos2d::CCLabelBMFont::create();
cocos2d::CCLabelBMFont::limitLabelWidth(v42, 140.0, 0.7, 0.0);
v43 = (int)v23->getPosition(v23);
v44 = v42->getContentSize(v42)->width * 0.5;
v45 = v42->getScale(v42);
cocos2d::CCPoint::CCPoint(&v139.origin, (float)(v44 * v45) + 2.0, -21.0);
cocos2d::CCPoint::operator+(&v133, v43, &v139);
v138.y = 0.0;
LODWORD(v138.x) = LevelListCell::onViewProfile;
v46 = CCMenuItemSpriteExtra::create(
v42,
nullptr,
(cocos2d::SEL_MenuHandler)__PAIR64__(LevelListCell::onViewProfile, (unsigned int)a1));
v117->addChild(v117, v46);
v47 = v46->setPosition;
cocos2d::CCNode::convertToNodeSpace(&v139.origin, v117, &v133);
v47(v46, &v139.origin);
v129[0] = 0;
v129[1] = 0;
v129[2] = 0;
v49 = (cocos2d::CCNode *)cocos2d::CCSprite::create((cocos2d::CCSprite *)"GJ_progressBar_001.png", v48);
((void (__fastcall *)(cocos2d::CCNode *, _BYTE *))v49->__vftable[1].getTag)(v49, v129);
((void (__fastcall *)(cocos2d::CCNode *, int))v49->__vftable[1].~CCNode_0)(v49, 125);
((void (__fastcall *)(cocos2d::CCNode *, int))v49->setScaleY)(v49, 1059313419);
((void (__fastcall *)(cocos2d::CCNode *, int))v49->setScaleX)(v49, 1056293520);
a1->m_mainLayer->addChild_0(a1->m_mainLayer, v49, 3);
v50 = v49->setPosition;
cocos2d::CCPoint::CCPoint(&v139.origin, (float)(a1->m_width * 0.5) - 45.0, (float)(a1->m_height * 0.5) - 12.0);
v50(v49, &v139.origin);
v52 = (float *)cocos2d::CCSprite::create((cocos2d::CCSprite *)"GJ_progressBar_001.png", v51);
(*(void (__fastcall **)(float *, int))(*(_DWORD *)v52 + 64))(v52, 1064984117);
(*(void (__fastcall **)(float *, int))(*(_DWORD *)v52 + 72))(v52, 1061326684);
v53 = *(void (__fastcall **)(float *, cocos2d::CCRect *))(*(_DWORD *)v52 + 472);
if ( !v124 || hasClaimedListReward )
{
LOWORD(v139.origin.x) = -16816;
v54 = -1;
}
else
{
LOWORD(v139.origin.x) = 21759;
v54 = 50;
}
BYTE2(v139.origin.x) = v54;
v53(v52, &v139);
v55 = v52[86] - (float)(v52[86] * 0.978);
v49->addChild_0(v49, (cocos2d::CCNode *)v52, 1);
v56 = *(void (__fastcall **)(float *, cocos2d::CCRect *))(*(_DWORD *)v52 + 140);
cocos2d::CCPoint::CCPoint(&v139.origin, 0.0, 0.5);
v56(v52, &v139);
v57 = *(void (__fastcall **)(float *, cocos2d::CCRect *))(*(_DWORD *)v52 + 92);
v58 = v49->getContentSize(v49)->height * 0.5;
cocos2d::CCPoint::CCPoint(&v139.origin, v55 * 0.5, v58);
v57(v52, &v139);
if ( m_levelsToClaim <= 0 )
v59 = 0.0;
else
v59 = *(float *)&m_levelsToClaim;
v60 = *(void (__fastcall **)(float *, cocos2d::CCRect *))(*(_DWORD *)v52 + 560);
if ( m_levelsToClaim > 0 )
v59 = (float)(int)v125 / (float)SLODWORD(v59);
v61 = v52[86];
v62 = v61 * v59;
if ( v61 > v62 )
v63 = v62;
else
v63 = v52[86];
cocos2d::CCRect::CCRect(&v139, 0.0, 0.0, v63, v52[87]);
v60(v52, &v139);
v64 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"%i/%i", v125, m_levelsToClaim);
cocos2d::CCString::getCString(v64);
v65 = cocos2d::CCLabelBMFont::create();
a1->m_mainLayer->addChild_0(a1->m_mainLayer, v65, 4);
v66 = v65->setPosition;
v67 = (int)v49->getPosition(v49);
cocos2d::CCPoint::CCPoint(&v136, 0.0, 0.5);
cocos2d::CCPoint::operator+(&v139, v67, &v136);
v66(v65, &v139.origin);
((void (__fastcall *)(cocos2d::CCLabelBMFont *, int))v65->setScale)(v65, 1053609165);
if ( a1->m_levelList->m_listType == Editor )
{
v104 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_infoIcon_001.png");
a1->m_mainLayer->addChild(a1->m_mainLayer, v104);
v105 = v104->setPosition;
v106 = (float *)v23->getPosition(v23);
cocos2d::CCPoint::CCPoint(&v139.origin, *v106 + 8.0, 14.0);
v105(v104, &v139.origin);
((void (__fastcall *)(cocos2d::CCSprite *, int))v104->setScale)(v104, 1058642330);
v107 = cocos2d::CCLabelBMFont::create();
a1->m_mainLayer->addChild(a1->m_mainLayer, v107);
v108 = v107->setAnchorPoint;
cocos2d::CCPoint::CCPoint(&v139.origin, 0.0, 0.5);
v108(v107, &v139.origin);
v109 = v107->setPosition;
v110 = (int)v104->getPosition(v104);
cocos2d::CCPoint::CCPoint(&v136, 13.0, 0.0);
cocos2d::CCPoint::operator+(&v139, v110, &v136);
v109(v107, &v139.origin);
((void (__fastcall *)(cocos2d::CCLabelBMFont *, int))v107->setScale)(v107, 1053609165);
}
else
{
x = v23->getPosition(v23)->x;
v69 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_downloadsIcon_001.png");
a1->m_mainLayer->addChild(a1->m_mainLayer, v69);
v70 = v69->setPosition;
cocos2d::CCPoint::CCPoint(&v139.origin, x + 9.0, 14.0);
v70(v69, &v139.origin);
((void (__fastcall *)(cocos2d::CCSprite *, int))v69->setScale)(v69, 1058642330);
v71 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_likesIcon_001.png");
a1->m_mainLayer->addChild(a1->m_mainLayer, v71);
v120 = (cocos2d::CCPoint *)v71->setPosition;
v72 = (int)v69->getPosition(v69);
cocos2d::CCPoint::CCPoint(&v136, 80.0, 0.0);
cocos2d::CCPoint::operator+(&v139, v72, &v136);
((void (__fastcall *)(cocos2d::CCSprite *, cocos2d::CCRect *))v120)(v71, &v139);
((void (__fastcall *)(cocos2d::CCSprite *, int))v71->setScale)(v71, 1058642330);
GameToolbox::intToShortString((GameToolbox *)&v135, a1->m_levelList->m_downloads);
v73 = cocos2d::CCLabelBMFont::create();
sub_774008(&v135);
a1->m_mainLayer->addChild(a1->m_mainLayer, v73);
v74 = v73->setAnchorPoint;
cocos2d::CCPoint::CCPoint(&v139.origin, 0.0, 0.5);
v74(v73, &v139.origin);
v121 = (cocos2d::CCPoint *)v73->setPosition;
v126 = (int)v69->getPosition(v69);
cocos2d::CCPoint::CCPoint(&v136, 9.0, 0.0);
cocos2d::CCPoint::operator+(&v139, v126, &v136);
((void (__fastcall *)(cocos2d::CCLabelBMFont *, cocos2d::CCRect *))v121)(v73, &v139);
((void (__fastcall *)(cocos2d::CCLabelBMFont *, int))v73->setScale)(v73, 1053609165);
cocos2d::CCLabelBMFont::limitLabelWidth(v73, 45.0, 0.4, 0.0);
m_likes = (cocos2d::CCPoint *)a1->m_levelList->m_likes;
setDisplayFrame = v71->setDisplayFrame;
v76 = cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache();
if ( (int)m_likes < 0 )
v77 = "GJ_dislikesIcon_001.png";
else
v77 = "GJ_likesIcon_001.png";
v78 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v76, v77);
setDisplayFrame(v71, v78);
v79 = v71->setPosition;
v80 = v73->getPosition(v73)->x;
width = v73->getContentSize(v73)->width;
v82 = v80 + (float)(width * COERCE_FLOAT(((int (__fastcall *)(cocos2d::CCLabelBMFont *))v73->getScale)(v73)));
v83 = (int)v71->getPosition(v71);
cocos2d::CCPoint::CCPoint(&v139.origin, v82 + 25.0, *(float *)(v83 + 4));
v79(v71, &v139.origin);
GameToolbox::intToShortString((GameToolbox *)&v136, (int)m_likes);
v84 = cocos2d::CCLabelBMFont::create();
sub_774008(&v136);
a1->m_mainLayer->addChild(a1->m_mainLayer, v84);
v85 = v84->setAnchorPoint;
cocos2d::CCPoint::CCPoint(&v139.origin, 0.0, 0.5);
v85(v84, &v139.origin);
v123 = (cocos2d::CCPoint *)v84->setPosition;
v127 = (int)v71->getPosition(v71);
cocos2d::CCPoint::CCPoint(&v136, 10.0, 0.0);
cocos2d::CCPoint::operator+(&v139, v127, &v136);
((void (__fastcall *)(cocos2d::CCLabelBMFont *, cocos2d::CCRect *))v123)(v84, &v139);
((void (__fastcall *)(cocos2d::CCLabelBMFont *, int))v84->setScale)(v84, 1053609165);
cocos2d::CCLabelBMFont::limitLabelWidth(v84, 45.0, 0.4, 0.0);
v128 = v71->setPosition;
v86 = (int)v71->getPosition(v71);
cocos2d::CCPoint::CCPoint(&v136, 0.0, 1.0);
cocos2d::CCPoint::operator+(&v139, v86, &v136);
v128(v71, &v139.origin);
if ( v124 && !hasClaimedListReward )
{
v88 = cocos2d::CCSprite::createWithSpriteFrameName("diamond_small01_001.png");
a1->m_mainLayer->addChild_0(a1->m_mainLayer, v88, 10);
v89 = v88->setPosition;
v90 = (int)v49->getPosition(v49);
cocos2d::CCPoint::CCPoint(&v136, 73.0, 0.0);
cocos2d::CCPoint::operator+(&v139, v90, &v136);
v89(v88, &v139.origin);
v91 = GJLevelList::totalLevels(a1->m_levelList);
v92 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_completesIcon_001.png");
a1->m_mainLayer->addChild(a1->m_mainLayer, v92);
v119 = v92->setPosition;
v93 = (int)v69->getPosition(v69);
cocos2d::CCPoint::CCPoint(&v136, 80.0, 0.0);
cocos2d::CCPoint::operator+(&v139, v93, &v136);
v119(v92, &v139.origin);
((void (__fastcall *)(cocos2d::CCSprite *, int))v92->setScale)(v92, 1058642330);
v94 = v92->setPosition;
v95 = v84->getPosition(v84)->x;
v96 = v84->getContentSize(v84)->width;
v97 = v95 + (float)(v96 * COERCE_FLOAT(((int (__fastcall *)(cocos2d::CCLabelBMFont *))v84->getScale)(v84)));
v98 = (int)v92->getPosition(v92);
cocos2d::CCPoint::CCPoint(&v139.origin, v97 + 25.0, *(float *)(v98 + 4));
v94(v92, &v139.origin);
v99 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"%i/%i", v125, v91);
cocos2d::CCString::getCString(v99);
v100 = cocos2d::CCLabelBMFont::create();
a1->m_mainLayer->addChild(a1->m_mainLayer, v100);
v101 = v100->setAnchorPoint;
cocos2d::CCPoint::CCPoint(&v139.origin, 0.0, 0.5);
v101(v100, &v139.origin);
v102 = v100->setPosition;
v103 = (int)v92->getPosition(v92);
cocos2d::CCPoint::CCPoint(&v136, 10.0, 0.0);
cocos2d::CCPoint::operator+(&v139, v103, &v136);
v102(v100, &v139.origin);
((void (__fastcall *)(cocos2d::CCLabelBMFont *, int))v100->setScale)(v100, 1053609165);
cocos2d::CCLabelBMFont::limitLabelWidth(v100, 45.0, 0.4, 0.0);
}
}
v87 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_infoIcon_001.png");
((void (__fastcall *)(cocos2d::CCSprite *, int))v87->setScale)(v87, 1059481190);
v139.origin.y = 0.0;
LODWORD(v139.origin.x) = LevelListCell::onListInfo;
v111 = CCMenuItemSpriteExtra::create(
v87,
nullptr,
(cocos2d::SEL_MenuHandler)__PAIR64__(LevelListCell::onListInfo, (unsigned int)a1));
CCMenuItemSpriteExtra::setSizeMult(v111, 1.2);
v117->addChild(v117, v111);
v112 = v111->setPosition;
v113 = (int)v23->getPosition(v23);
v114 = v23->getContentSize(v23)->width;
v115 = v23->getScale(v23);
cocos2d::CCPoint::CCPoint(&v134, (float)(v114 * v115) + 15.0, -1.0);
cocos2d::CCPoint::operator+(&v135, v113, &v134);
cocos2d::CCNode::convertToNodeSpace(&v136, v117, &v135);
v112(v111, &v136);
sub_774008(&v130);
}