//
// LevelListLayer::updateStatsArt from 0xa74814 to 0xa75808 (4084 bytes)
//
// 6 xrefs:
// > LevelListLayer::iconSelectClosed @ 0xa75844
// > LevelListLayer::loadLevelsFinished @ 0xa759b8
// > LevelListLayer::init @ 0xa76904
// > LevelListLayer::likedItem @ 0xa77b70
// > LevelListLayer::onEnter @ 0xa7b258
// > ??> @ 0x8eb60
//
// 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 LevelListLayer::updateStatsArt(LevelListLayer *a1)
{
__int64 v2; // x0
cocos2d::CCArray *m_objects; // x1
cocos2d::ccArray *data; // x2
cocos2d::CCSprite *m_diffSprite; // x21
void (__fastcall *setDisplayFrame)(cocos2d::CCSprite *__hidden, cocos2d::CCSpriteFrame *); // x22
cocos2d::CCSpriteFrameCache *v7; // x23
cocos2d::CCSpriteFrame *v8; // x0
void *v9; // x0
cocos2d::CCDirector *v10; // x0
int m_levelsToClaim; // w23
GJLevelList *m_levelList; // x0
const char *m_diamonds; // x1
GameStatsManager *v14; // x0
unsigned int v15; // w28
bool hasClaimedListReward; // w0
unsigned int v17; // w27
cocos2d::CCNode *v18; // x21
void (__fastcall *setPosition)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // x26
const char *v20; // x1
float *v21; // x24
void (__fastcall *v22)(float *, cocos2d::CCRect *); // x2
float v23; // s8
__int64 v24; // x0
float v25; // s2
float v26; // s0
float v27; // s2
cocos2d::CCString *v28; // x0
cocos2d::CCLabelBMFont *v29; // x23
void (__fastcall *v30)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // x24
float v31; // s10
cocos2d::CCSprite *v32; // x23
void (__fastcall *v33)(cocos2d::CCSprite *__hidden, const cocos2d::CCPoint *); // x24
cocos2d::CCLabelBMFont *v34; // x24
void *v35; // x0
const char *v36; // x0
cocos2d::CCSprite *v37; // x24
cocos2d::CCSprite *v38; // x0
const cocos2d::CCPoint *(__fastcall *getPosition)(cocos2d::CCNode *__hidden); // x1
void (__fastcall *v40)(cocos2d::CCSprite *__hidden, const cocos2d::CCPoint *); // x23
__int64 v41; // x1
float v42; // s1
cocos2d::CCLabelBMFont *v43; // x23
void *v44; // x0
cocos2d::CCSprite *v45; // x21
void (__fastcall *v46)(cocos2d::CCSprite *__hidden, const cocos2d::CCPoint *); // x23
__int64 v47; // x24
cocos2d::CCLabelBMFont *v48; // x23
void *v49; // x0
cocos2d::CCSprite *v50; // x0
const cocos2d::CCPoint *(__fastcall *v51)(cocos2d::CCNode *__hidden); // x1
void (__fastcall *v52)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // x21
__int64 v53; // x24
cocos2d::CCObject **arr; // x20
cocos2d::CCObject **v55; // x21
cocos2d::CCObject *v56; // x0
cocos2d::CCSprite *v57; // x23
cocos2d::CCNode *v58; // x0
const cocos2d::CCPoint *(__fastcall *v59)(cocos2d::CCNode *__hidden); // x1
void (__fastcall *v60)(cocos2d::CCSprite *__hidden, const cocos2d::CCPoint *); // x21
__int64 v61; // x28
cocos2d::CCSprite *v62; // x21
void (__fastcall *v63)(cocos2d::CCSprite *__hidden, const cocos2d::CCPoint *); // x23
__int64 v64; // x24
unsigned int v65; // w0
cocos2d::CCString *v66; // x0
cocos2d::CCLabelBMFont *v67; // x23
void (__fastcall *v68)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // x24
__int64 v69; // x28
cocos2d::CCNode *v70; // x24
void (__fastcall *setContentSize)(cocos2d::CCNode *__hidden, const cocos2d::CCSize *); // x23
cocos2d::CCNode *v72; // x23
void (__fastcall *v73)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // x28
__int64 v74; // x0
CCSpriteGrayscale *v75; // x28
void *v76; // x0
void (__fastcall *setColor)(cocos2d::CCSprite *__hidden, const cocos2d::ccColor3B *); // x3
CCMenuItemSpriteExtra *v78; // x24
__int64 v79; // x21
float v80; // s0
float v81; // s1
void (__fastcall *v82)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // x21
cocos2d::CCSprite *v83; // x21
void (__fastcall *v84)(cocos2d::CCSprite *__hidden, const cocos2d::CCPoint *); // x27
__int64 v85; // x28
cocos2d::CCLabelBMFont *v86; // x26
void *v87; // x0
void (__fastcall *setAnchorPoint)(cocos2d::CCLabelBMFont *__hidden, const cocos2d::CCPoint *); // x23
cocos2d::CCSprite *v89; // x0
const cocos2d::CCPoint *(__fastcall *v90)(cocos2d::CCNode *__hidden); // x1
void (__fastcall *v91)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // x21
__int64 v92; // x23
unsigned int *v93; // x1
int v94; // w2
unsigned int *v95; // x1
int v96; // w2
unsigned int *v97; // x1
int v98; // w2
unsigned int *v99; // x1
int v100; // w2
unsigned int *v101; // x1
int v102; // w2
unsigned int *v103; // x1
int v104; // w2
void (__fastcall *v105)(float *, cocos2d::CCRect *); // [xsp+80h] [xbp+80h]
void (__fastcall *v106)(float *, cocos2d::CCRect *); // [xsp+80h] [xbp+80h]
void (__fastcall *v107)(float *, cocos2d::CCRect *); // [xsp+80h] [xbp+80h]
__int64 v108; // [xsp+80h] [xbp+80h]
__int64 v109; // [xsp+80h] [xbp+80h]
__int64 v110; // [xsp+80h] [xbp+80h]
__int64 v111; // [xsp+80h] [xbp+80h]
float v112; // [xsp+80h] [xbp+80h]
void (__fastcall *v113)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // [xsp+90h] [xbp+90h]
void (__fastcall *v114)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // [xsp+90h] [xbp+90h]
int v115; // [xsp+98h] [xbp+98h]
_BYTE v116[8]; // [xsp+B0h] [xbp+B0h] BYREF
float v117; // [xsp+B8h] [xbp+B8h]
float v118; // [xsp+BCh] [xbp+BCh]
cocos2d::CCPoint v119; // [xsp+C0h] [xbp+C0h] BYREF
cocos2d::CCRect v120; // [xsp+C8h] [xbp+C8h] BYREF
__int64 v121; // [xsp+D8h] [xbp+D8h]
cocos2d::CCPoint v122; // 0:kr08_8.8
cocos2d::SEL_MenuHandler v123; // 0:x2.16
v2 = _stack_chk_guard;
m_objects = a1->m_objects;
a1->m_exited = 0;
v121 = v2;
if ( m_objects )
{
data = m_objects->data;
if ( data->num )
{
arr = data->arr;
v55 = &arr[data->num - 1];
if ( arr <= v55 )
{
v56 = *arr;
if ( *arr )
{
do
{
++arr;
((void (__fastcall *)(cocos2d::CCObject *))v56->__vftable[6].update)(v56);
if ( v55 < arr )
break;
v56 = *arr;
}
while ( *arr );
m_objects = a1->m_objects;
}
}
}
}
cocos2d::CCArray::removeAllObjects(m_objects);
m_diffSprite = a1->m_diffSprite;
setDisplayFrame = m_diffSprite->setDisplayFrame;
v7 = cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache();
GJLevelList::frameForListDifficulty(a1->m_levelList->m_difficulty, 2, (__int64)&v120);
v8 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v7, *(const char **)&v120.origin);
setDisplayFrame(m_diffSprite, v8);
v9 = (void *)(*(_QWORD *)&v120.origin - 24LL);
if ( (__int64 *)(*(_QWORD *)&v120.origin - 24LL) != &qword_124B6B0 )
{
if ( &pthread_create )
{
v93 = (unsigned int *)(*(_QWORD *)&v120.origin - 8LL);
do
v94 = __ldaxr(v93);
while ( __stlxr(v94 - 1, v93) );
}
else
{
v94 = *(_DWORD *)(*(_QWORD *)&v120.origin - 8LL);
*(_DWORD *)(*(_QWORD *)&v120.origin - 8LL) = v94 - 1;
}
if ( v94 <= 0 )
operator delete(v9);
}
a1->m_featureSprite->setVisible(a1->m_featureSprite, a1->m_levelList->m_featured);
v10 = cocos2d::CCDirector::sharedDirector();
cocos2d::CCDirector::getWinSize(v10);
v115 = GJLevelList::completedLevels(a1->m_levelList);
m_levelsToClaim = GJLevelList::totalLevels(a1->m_levelList);
m_levelList = a1->m_levelList;
m_diamonds = (const char *)(unsigned int)m_levelList->m_diamonds;
if ( (int)m_diamonds <= 0 || m_levelList->m_levelsToClaim <= 0 )
{
v17 = 0;
v15 = 0;
}
else
{
v14 = GameStatsManager::sharedState();
v15 = 1;
hasClaimedListReward = GameStatsManager::hasClaimedListReward(v14, a1->m_levelList);
v17 = hasClaimedListReward;
if ( !hasClaimedListReward )
m_levelsToClaim = a1->m_levelList->m_levelsToClaim;
}
v116[0] = 0;
v116[1] = 0;
v116[2] = 0;
v18 = (cocos2d::CCNode *)cocos2d::CCSprite::create((cocos2d::CCSprite *)"GJ_progressBar_001.png", m_diamonds);
((void (__fastcall *)(cocos2d::CCNode *, _BYTE *))v18->__vftable[1].getTag)(v18, v116);
((void (__fastcall *)(cocos2d::CCNode *, __int64))v18->__vftable[1].~CCNode_0)(v18, 125);
v18->setScaleY(v18, 0.8);
v18->setScaleX(v18, 0.8);
a1->addChild_0(a1, v18, 3);
cocos2d::CCArray::addObject(a1->m_objects, v18);
setPosition = v18->setPosition;
cocos2d::CCPoint::CCPoint(&v120.origin, v117 * 0.5, 16.0);
setPosition(v18, &v120.origin);
v21 = (float *)cocos2d::CCSprite::create((cocos2d::CCSprite *)"GJ_progressBar_001.png", v20);
(*(void (__fastcall **)(float *, float))(*(_QWORD *)v21 + 128LL))(v21, 0.98);
(*(void (__fastcall **)(float *, float))(*(_QWORD *)v21 + 144LL))(v21, 0.76);
v22 = *(void (__fastcall **)(float *, cocos2d::CCRect *))(*(_QWORD *)v21 + 944LL);
if ( v15 <= v17 )
{
LOWORD(v120.origin.x) = -16816;
BYTE2(v120.origin.x) = -1;
}
else
{
LOWORD(v120.origin.x) = 21759;
BYTE2(v120.origin.x) = 50;
}
v22(v21, &v120);
(*(void (__fastcall **)(float *, __int64))(*(_QWORD *)v21 + 896LL))(v21, 4294967265LL);
v23 = v21[108] - (float)(v21[108] * 0.98);
v18->addChild_0(v18, (cocos2d::CCNode *)v21, 1);
v105 = *(void (__fastcall **)(float *, cocos2d::CCRect *))(*(_QWORD *)v21 + 280LL);
cocos2d::CCPoint::CCPoint(&v120.origin, 0.0, 0.5);
v105(v21, &v120);
v106 = *(void (__fastcall **)(float *, cocos2d::CCRect *))(*(_QWORD *)v21 + 184LL);
v24 = (__int64)v18->getContentSize(v18);
cocos2d::CCPoint::CCPoint(&v120.origin, v23 * 0.5, *(float *)(v24 + 4) * 0.5);
v106(v21, &v120);
if ( m_levelsToClaim <= 0 )
v25 = 0.0;
else
v25 = (float)v115 / (float)m_levelsToClaim;
v26 = v21[108];
v27 = v25 * v26;
if ( v26 <= v27 )
v27 = v21[108];
v107 = *(void (__fastcall **)(float *, cocos2d::CCRect *))(*(_QWORD *)v21 + 1120LL);
cocos2d::CCRect::CCRect(&v120, 0.0, 0.0, v27, v21[109]);
v107(v21, &v120);
v28 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(
(cocos2d::CCString *)"%i/%i",
(const char *)(unsigned int)v115,
(unsigned int)m_levelsToClaim);
cocos2d::CCString::getCString(v28);
v29 = cocos2d::CCLabelBMFont::create();
a1->addChild_0(a1, v29, 4);
cocos2d::CCArray::addObject(a1->m_objects, v29);
v30 = v29->setPosition;
v108 = (__int64)v18->getPosition(v18);
cocos2d::CCPoint::CCPoint(&v119, 0.0, 1.0);
cocos2d::CCPoint::operator+(&v120, v108, &v119);
v30(v29, &v120.origin);
v29->setScale(v29, 0.5);
if ( a1->m_levelList->m_listType != Editor )
{
if ( v15 > v17 )
v31 = 45.0;
else
v31 = 52.0;
v32 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_downloadsIcon_001.png");
v32->setScale(v32, 0.8);
v33 = v32->setPosition;
cocos2d::CCPoint::CCPoint(&v120.origin, 26.0, (float)(v118 * 0.5) + 88.0);
v33(v32, &v120.origin);
a1->addChild_0(a1, v32, 1);
cocos2d::CCArray::addObject(a1->m_objects, v32);
GameToolbox::intToShortString((GameToolbox *)(unsigned int)a1->m_levelList->m_downloads, (__int64)&v120);
v34 = cocos2d::CCLabelBMFont::create();
v35 = (void *)(*(_QWORD *)&v120.origin - 24LL);
if ( (__int64 *)(*(_QWORD *)&v120.origin - 24LL) != &qword_124B6B0 )
{
if ( &pthread_create )
{
v95 = (unsigned int *)(*(_QWORD *)&v120.origin - 8LL);
do
v96 = __ldaxr(v95);
while ( __stlxr(v96 - 1, v95) );
}
else
{
v96 = *(_DWORD *)(*(_QWORD *)&v120.origin - 8LL);
*(_DWORD *)(*(_QWORD *)&v120.origin - 8LL) = v96 - 1;
}
if ( v96 <= 0 )
operator delete(v35);
}
v34->setScale(v34, 0.4);
v113 = v34->setPosition;
v109 = (__int64)v32->getPosition(v32);
cocos2d::CCPoint::CCPoint(&v119, 0.0, -21.0);
cocos2d::CCPoint::operator+(&v120, v109, &v119);
v113(v34, &v120.origin);
a1->addChild_0(a1, v34, 1);
cocos2d::CCArray::addObject(a1->m_objects, v34);
if ( a1->m_levelList->m_likes < 0 )
v36 = "GJ_dislikesIcon_001.png";
else
v36 = "GJ_likesIcon_001.png";
v37 = cocos2d::CCSprite::createWithSpriteFrameName(v36);
v37->setScale(v37, 0.8);
v38 = v32;
getPosition = v32->getPosition;
v40 = v37->setPosition;
v41 = (__int64)getPosition(v38);
v42 = 0.0;
if ( a1->m_levelList->m_likes < 0 )
v42 = 4.0;
v110 = v41;
cocos2d::CCPoint::CCPoint(&v119, 0.0, v42 - v31);
cocos2d::CCPoint::operator+(&v120, v110, &v119);
v40(v37, &v120.origin);
a1->addChild_0(a1, v37, 1);
cocos2d::CCArray::addObject(a1->m_objects, v37);
GameToolbox::intToShortString((GameToolbox *)(unsigned int)a1->m_levelList->m_likes, (__int64)&v120);
v43 = cocos2d::CCLabelBMFont::create();
v44 = (void *)(*(_QWORD *)&v120.origin - 24LL);
if ( (__int64 *)(*(_QWORD *)&v120.origin - 24LL) != &qword_124B6B0 )
{
if ( &pthread_create )
{
v97 = (unsigned int *)(*(_QWORD *)&v120.origin - 8LL);
do
v98 = __ldaxr(v97);
while ( __stlxr(v98 - 1, v97) );
}
else
{
v98 = *(_DWORD *)(*(_QWORD *)&v120.origin - 8LL);
*(_DWORD *)(*(_QWORD *)&v120.origin - 8LL) = v98 - 1;
}
if ( v98 <= 0 )
operator delete(v44);
}
v43->setScale(v43, 0.4);
v114 = v43->setPosition;
v111 = (__int64)v37->getPosition(v37);
cocos2d::CCPoint::CCPoint(&v119, 0.0, -21.0);
cocos2d::CCPoint::operator+(&v120, v111, &v119);
v114(v43, &v120.origin);
a1->addChild_0(a1, v43, 1);
cocos2d::CCArray::addObject(a1->m_objects, v43);
if ( v15 )
{
if ( v17 )
{
v45 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_diamondsIcon_001.png");
a1->addChild(a1, v45);
cocos2d::CCArray::addObject(a1->m_objects, v45);
v46 = v45->setPosition;
v47 = (__int64)v37->getPosition(v37);
cocos2d::CCPoint::CCPoint(&v119, 0.0, -v31);
cocos2d::CCPoint::operator+(&v120, v47, &v119);
v46(v45, &v120.origin);
v45->setScale(v45, 0.9);
GameToolbox::intToShortString((GameToolbox *)(unsigned int)a1->m_levelList->m_diamonds, (__int64)&v120);
v48 = cocos2d::CCLabelBMFont::create();
v49 = (void *)(*(_QWORD *)&v120.origin - 24LL);
if ( (__int64 *)(*(_QWORD *)&v120.origin - 24LL) != &qword_124B6B0 )
{
if ( &pthread_create )
{
v101 = (unsigned int *)(*(_QWORD *)&v120.origin - 8LL);
do
v102 = __ldaxr(v101);
while ( __stlxr(v102 - 1, v101) );
}
else
{
v102 = *(_DWORD *)(*(_QWORD *)&v120.origin - 8LL);
*(_DWORD *)(*(_QWORD *)&v120.origin - 8LL) = v102 - 1;
}
if ( v102 <= 0 )
operator delete(v49);
}
v48->setScale(v48, 0.4);
v50 = v45;
v51 = v45->getPosition;
v52 = v48->setPosition;
v53 = (__int64)v51(v50);
cocos2d::CCPoint::CCPoint(&v119, 0.0, -21.0);
cocos2d::CCPoint::operator+(&v120, v53, &v119);
v52(v48, &v120.origin);
a1->addChild_0(a1, v48, 1);
cocos2d::CCArray::addObject(a1->m_objects, v48);
}
else
{
v57 = cocos2d::CCSprite::createWithSpriteFrameName("diamond_small01_001.png");
a1->addChild_0(a1, v57, 10);
cocos2d::CCArray::addObject(a1->m_objects, v57);
v58 = v18;
v59 = v18->getPosition;
v60 = v57->setPosition;
v61 = (__int64)v59(v58);
cocos2d::CCPoint::CCPoint(&v119, 125.0, 0.0);
cocos2d::CCPoint::operator+(&v120, v61, &v119);
v60(v57, &v120.origin);
v62 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_completesIcon_001.png");
a1->addChild(a1, v62);
cocos2d::CCArray::addObject(a1->m_objects, v62);
v63 = v62->setPosition;
v64 = (__int64)v37->getPosition(v37);
cocos2d::CCPoint::CCPoint(&v119, 0.0, -v31);
cocos2d::CCPoint::operator+(&v120, v64, &v119);
v63(v62, &v120.origin);
v62->setScale(v62, 0.8);
v65 = GJLevelList::totalLevels(a1->m_levelList);
v66 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(
(cocos2d::CCString *)"%i/%i",
(const char *)(unsigned int)v115,
v65);
cocos2d::CCString::getCString(v66);
v67 = cocos2d::CCLabelBMFont::create();
a1->addChild(a1, v67);
cocos2d::CCArray::addObject(a1->m_objects, v67);
v68 = v67->setPosition;
v69 = (__int64)v62->getPosition(v62);
cocos2d::CCPoint::CCPoint(&v119, 0.0, -21.0);
cocos2d::CCPoint::operator+(&v120, v69, &v119);
v68(v67, &v120.origin);
v67->setScale(v67, 0.4);
v70 = cocos2d::CCNode::create();
setContentSize = v70->setContentSize;
cocos2d::CCSize::CCSize((cocos2d::CCSize *)&v120, 50.0, 50.0);
setContentSize(v70, (const cocos2d::CCSize *)&v120);
v72 = cocos2d::CCNode::create();
v72->setContentSize(v72, &stru_1244580);
v70->addChild(v70, v72);
v73 = v72->setPosition;
v112 = v70->getContentSize(v70)->width * 0.5;
v74 = (__int64)v70->getContentSize(v70);
cocos2d::CCPoint::CCPoint(&v120.origin, v112, *(float *)(v74 + 4) * 0.5);
v73(v72, &v120.origin);
if ( v115 >= a1->m_levelList->m_levelsToClaim )
{
v75 = (CCSpriteGrayscale *)cocos2d::CCSprite::createWithSpriteFrameName("GJ_rewardBtn_001.png");
}
else
{
sub_D153B8((int)&v120, "GJ_rewardBtn_001.png");
v75 = CCSpriteGrayscale::createWithSpriteFrameName((const char **)&v120);
v76 = (void *)(*(_QWORD *)&v120.origin - 24LL);
if ( (__int64 *)(*(_QWORD *)&v120.origin - 24LL) != &qword_124B6B0 )
{
if ( &pthread_create )
{
v103 = (unsigned int *)(*(_QWORD *)&v120.origin - 8LL);
do
v104 = __ldaxr(v103);
while ( __stlxr(v104 - 1, v103) );
}
else
{
v104 = *(_DWORD *)(*(_QWORD *)&v120.origin - 8LL);
*(_DWORD *)(*(_QWORD *)&v120.origin - 8LL) = v104 - 1;
}
if ( v104 <= 0 )
operator delete(v76);
}
CCSpriteWithHue::setEvenLuminance(v75, 1.0);
setColor = v75->setColor;
LOWORD(v120.origin.x) = -20561;
BYTE2(v120.origin.x) = -81;
setColor(v75, (const cocos2d::ccColor3B *)&v120);
}
v75->setScale(v75, 0.6);
v72->addChild(v72, v75);
v123.ptr = (void (__cdecl *)(cocos2d::CCObject *))a1;
v123.adj = (size_t)LevelListLayer::onClaimReward;
v78 = CCMenuItemSpriteExtra::create(v70, nullptr, v123);
a1->m_buttonMenu->addChild(a1->m_buttonMenu, v78);
v79 = (__int64)v62->getPosition(v62);
cocos2d::CCPoint::CCPoint(&v119, 0.0, -54.0);
cocos2d::CCPoint::operator+(&v120, v79, &v119);
cocos2d::CCPoint::operator=(&a1->m_rewardPosition, v80, v81);
v82 = v78->setPosition;
v122 = cocos2d::CCNode::convertToNodeSpace(a1->m_buttonMenu, &a1->m_rewardPosition);
((void (__fastcall *)(CCMenuItemSpriteExtra *, cocos2d::CCRect *, float, float))v82)(v78, &v120, v122.x, v122.y);
v83 = cocos2d::CCSprite::createWithSpriteFrameName("diamond_small01_001.png");
v72->addChild(v72, v83);
v84 = v83->setPosition;
v85 = (__int64)v75->getPosition(v75);
cocos2d::CCPoint::CCPoint(&v119, 8.0, -25.0);
cocos2d::CCPoint::operator+(&v120, v85, &v119);
v84(v83, &v120.origin);
GameToolbox::intToString((__int64 *)&v120, (GameToolbox *)(unsigned int)a1->m_levelList->m_diamonds);
v86 = cocos2d::CCLabelBMFont::create();
v87 = (void *)(*(_QWORD *)&v120.origin - 24LL);
if ( (__int64 *)(*(_QWORD *)&v120.origin - 24LL) != &qword_124B6B0 )
{
if ( &pthread_create )
{
v99 = (unsigned int *)(*(_QWORD *)&v120.origin - 8LL);
do
v100 = __ldaxr(v99);
while ( __stlxr(v100 - 1, v99) );
}
else
{
v100 = *(_DWORD *)(*(_QWORD *)&v120.origin - 8LL);
*(_DWORD *)(*(_QWORD *)&v120.origin - 8LL) = v100 - 1;
}
if ( v100 <= 0 )
operator delete(v87);
}
v72->addChild(v72, v86);
setAnchorPoint = v86->setAnchorPoint;
cocos2d::CCPoint::CCPoint(&v120.origin, 1.0, 0.5);
setAnchorPoint(v86, &v120.origin);
v89 = v83;
v90 = v83->getPosition;
v91 = v86->setPosition;
v92 = (__int64)v90(v89);
cocos2d::CCPoint::CCPoint(&v119, -8.0, 0.0);
cocos2d::CCPoint::operator+(&v120, v92, &v119);
v91(v86, &v120.origin);
v86->setScale(v86, 0.4);
cocos2d::CCArray::addObject(a1->m_objects, v78);
}
}
}
}