//
// LevelListLayer::updateStatsArt from 0x6d6034 to 0x6d6a68 (2612 bytes)
//
// 5 xrefs:
// > LevelListLayer::likedItem @ 0x6d6acc
// > LevelListLayer::iconSelectClosed @ 0x6d6ae6
// > LevelListLayer::loadLevelsFinished @ 0x6d724a
// > LevelListLayer::init @ 0x6d958e
// > LevelListLayer::onEnter @ 0x6d9e3c
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 11:57:07 +0000
//
int __fastcall LevelListLayer::updateStatsArt(LevelListLayer *this)
{
int v2; // r3
cocos2d::CCSpriteFrameCache *v3; // r0
int v4; // r6
void (__fastcall *v5)(int, int); // r7
cocos2d::CCSpriteFrameCache *v6; // r8
cocos2d::CCLabelBMFont *v7; // r1
_DWORD *v8; // r2
int *v9; // r6
int *v10; // r5
int v11; // r0
int v12; // t1
int v13; // r0
cocos2d::CCDirector *v14; // r0
GameStatsManager *v15; // r0
const char *v16; // r1
int v17; // r3
int v18; // r8
int hasClaimedListReward; // r6
GameStatsManager *v20; // r0
int v21; // r2
int v22; // r3
cocos2d::CCObject *v23; // r5
void (__fastcall *v24)(cocos2d::CCObject *, _DWORD *); // r9
const char *v25; // r1
float *v26; // r10
void (__fastcall *v27)(float *, _DWORD *); // r3
char v28; // r2
float v29; // s16
void (__fastcall *v30)(float *, _DWORD *); // r9
void (__fastcall *v31)(float *, _DWORD *); // r9
float v32; // s15
float v33; // s15
void (__fastcall *v34)(float *, _DWORD *); // r9
float v35; // s14
float v36; // s15
float v37; // r3
cocos2d::CCString *v38; // r0
cocos2d::CCLabelBMFont *CString; // r0
const char *v40; // r2
cocos2d::CCObject *v41; // r9
void (__fastcall *v42)(cocos2d::CCObject *, _DWORD *); // r10
int v43; // r11
int result; // r0
const char *v45; // r1
float v46; // s16
cocos2d::CCObject *v47; // r7
void (__fastcall *v48)(cocos2d::CCObject *, _DWORD *); // r9
const char *v49; // r2
cocos2d::CCLabelBMFont *v50; // r0
cocos2d::CCObject *v51; // r9
int v52; // r11
const char *v53; // r1
char *v54; // r0
cocos2d::CCObject *v55; // r9
void (__fastcall *v56)(cocos2d::CCObject *, _DWORD *); // r10
int v57; // r0
float v58; // s15
int v59; // r11
const char *v60; // r2
cocos2d::CCLabelBMFont *v61; // r0
cocos2d::CCObject *v62; // r10
const char *v63; // r1
float v64; // s16
cocos2d::CCObject *v65; // r10
int v66; // r5
const char *v67; // r1
cocos2d::CCObject *v68; // r10
void (__fastcall *v69)(cocos2d::CCObject *, _DWORD *); // r5
int v70; // r9
int v71; // r0
cocos2d::CCString *v72; // r0
cocos2d::CCLabelBMFont *v73; // r0
const char *v74; // r2
cocos2d::CCObject *v75; // r5
int v76; // r9
cocos2d::CCNode *v77; // r0
int v78; // r9
int (__fastcall *v79)(int, _DWORD *); // r5
cocos2d::CCNode *v80; // r0
int v81; // r8
void (__fastcall *v82)(int, _DWORD *); // r5
float v83; // s16
int v84; // r0
const char *v85; // r1
float *v86; // r6
void (__fastcall *v87)(float *, _DWORD *); // r2
int v88; // r7
void (__fastcall *v89)(int, _BYTE *); // r9
const char *v90; // r1
int v91; // r9
int v92; // r6
cocos2d::CCLabelBMFont *v93; // r0
int v94; // r6
void (__fastcall *v95)(int, _BYTE *); // r8
void (__fastcall *v96)(int, _BYTE *); // r8
int v97; // r9
cocos2d::CCArray *v98; // r0
cocos2d::CCObject *v99; // r1
cocos2d::CCObject *v100; // r5
void (__fastcall *v101)(cocos2d::CCObject *, _DWORD *); // r6
int v102; // r9
const char *v103; // r2
cocos2d::CCLabelBMFont *v104; // r0
cocos2d::CCObject *v105; // r9
void (__fastcall *v106)(cocos2d::CCObject *, _DWORD *); // r6
int v107; // r5
int v108; // [sp+Ch] [bp-58h]
void (__fastcall *v109)(cocos2d::CCObject *, _DWORD *); // [sp+Ch] [bp-58h]
void (__fastcall *v110)(cocos2d::CCObject *, _DWORD *); // [sp+Ch] [bp-58h]
int v111; // [sp+Ch] [bp-58h]
void (__fastcall *v112)(int, _BYTE *); // [sp+Ch] [bp-58h]
char *v113; // [sp+10h] [bp-54h]
void (__fastcall *v114)(cocos2d::CCObject *, _DWORD *); // [sp+14h] [bp-50h]
int v115; // [sp+14h] [bp-50h]
void (__fastcall *v116)(cocos2d::CCObject *, _DWORD *); // [sp+1Ch] [bp-48h]
_BYTE v117[4]; // [sp+24h] [bp-40h] BYREF
float v118[2]; // [sp+28h] [bp-3Ch] BYREF
_BYTE v119[8]; // [sp+30h] [bp-34h] BYREF
_BYTE v120[8]; // [sp+38h] [bp-2Ch] BYREF
int v121[2]; // [sp+40h] [bp-24h] BYREF
cocos2d::CCLabelBMFont *v122; // [sp+48h] [bp-1Ch]
_DWORD v123[4]; // [sp+4Ch] [bp-18h] BYREF
*((_BYTE *)this + 692) = 0;
v2 = *((_DWORD *)this + 168);
if ( v2 )
{
v8 = *(_DWORD **)(v2 + 52);
if ( *v8 )
{
v9 = (int *)v8[3];
v10 = &v9[*v8 - 1];
while ( v9 <= v10 )
{
v12 = *v9++;
v11 = v12;
if ( !v12 )
break;
(*(void (__fastcall **)(int))(*(_DWORD *)v11 + 268))(v11);
}
}
}
v3 = (cocos2d::CCSpriteFrameCache *)cocos2d::CCArray::removeAllObjects(*((cocos2d::CCArray **)this + 168));
v4 = *((_DWORD *)this + 169);
v5 = *(void (__fastcall **)(int, int))(*(_DWORD *)v4 + 580);
v6 = (cocos2d::CCSpriteFrameCache *)cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(v3);
GJLevelList::frameForListDifficulty(v121, *(const char **)(*((_DWORD *)this + 160) + 292), 2);
if ( (v121[0] & 1) != 0 )
v7 = v122;
else
v7 = (cocos2d::CCLabelBMFont *)((char *)v121 + 1);
v13 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v6, (const char *)v7);
v5(v4, v13);
std::string::~string((int)v121);
v14 = (cocos2d::CCDirector *)(*(int (__fastcall **)(_DWORD, _DWORD))(**((_DWORD **)this + 170) + 172))(
*((_DWORD *)this + 170),
*(unsigned __int8 *)(*((_DWORD *)this + 160) + 329));
cocos2d::CCDirector::sharedDirector(v14);
cocos2d::CCDirector::getWinSize((cocos2d::CCDirector *)v118);
v113 = (char *)GJLevelList::completedLevels(*((GJLevelList **)this + 160));
v15 = (GameStatsManager *)GJLevelList::totalLevels(*((GJLevelList **)this + 160));
v17 = *((_DWORD *)this + 160);
v18 = (int)v15;
if ( *(int *)(v17 + 316) > 0 && *(int *)(v17 + 320) > 0 )
{
v20 = (GameStatsManager *)GameStatsManager::sharedState(v15);
hasClaimedListReward = GameStatsManager::hasClaimedListReward(v20, *((GJLevelList **)this + 160), v21, v22);
if ( !hasClaimedListReward )
v18 = *(int *)(*((_DWORD *)this + 160) + 320);
v108 = 1;
}
else
{
hasClaimedListReward = 0;
v108 = 0;
}
v117[0] = 0;
v117[1] = 0;
v117[2] = 0;
v23 = (cocos2d::CCObject *)cocos2d::CCSprite::create((cocos2d::CCSprite *)"GJ_progressBar_001.png", v16);
(*(void (__fastcall **)(cocos2d::CCObject *, _BYTE *))(*(_DWORD *)v23 + 480))(v23, v117);
(*(void (__fastcall **)(cocos2d::CCObject *, int))(*(_DWORD *)v23 + 456))(v23, 125);
(*(void (__fastcall **)(cocos2d::CCObject *, int))(*(_DWORD *)v23 + 72))(v23, 1061997773);
(*(void (__fastcall **)(cocos2d::CCObject *, int))(*(_DWORD *)v23 + 64))(v23, 1061997773);
(*(void (__fastcall **)(LevelListLayer *, cocos2d::CCObject *, int))(*(_DWORD *)this + 232))(this, v23, 3);
cocos2d::CCArray::addObject(*((cocos2d::CCArray **)this + 168), v23);
v24 = *(void (__fastcall **)(cocos2d::CCObject *, _DWORD *))(*(_DWORD *)v23 + 92);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v123, v118[0] * 0.5, 16.0);
v24(v23, v123);
v26 = (float *)cocos2d::CCSprite::create((cocos2d::CCSprite *)"GJ_progressBar_001.png", v25);
(*(void (__fastcall **)(float *, int))(*(_DWORD *)v26 + 64))(v26, 1065017672);
(*(void (__fastcall **)(float *, int))(*(_DWORD *)v26 + 72))(v26, 1061326684);
v27 = *(void (__fastcall **)(float *, _DWORD *))(*(_DWORD *)v26 + 480);
if ( !v108 || hasClaimedListReward )
{
LOWORD(v123[0]) = -16816;
v28 = -1;
}
else
{
LOWORD(v123[0]) = 21759;
v28 = 50;
}
BYTE2(v123[0]) = v28;
v27(v26, v123);
(*(void (__fastcall **)(float *, int))(*(_DWORD *)v26 + 456))(v26, 225);
v29 = v26[86] - (float)(v26[86] * 0.98);
(*(void (__fastcall **)(cocos2d::CCObject *, float *, int))(*(_DWORD *)v23 + 232))(v23, v26, 1);
v30 = *(void (__fastcall **)(float *, _DWORD *))(*(_DWORD *)v26 + 148);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v123, 0.0, 0.5);
v30(v26, v123);
v31 = *(void (__fastcall **)(float *, _DWORD *))(*(_DWORD *)v26 + 92);
v32 = *(float *)((*(int (__fastcall **)(cocos2d::CCObject *))(*(_DWORD *)v23 + 164))(v23) + 4) * 0.5;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v123, v29 * 0.5, v32);
v31(v26, v123);
if ( v18 <= 0 )
v33 = 0.0;
else
v33 = *(float *)&v18;
v34 = *(void (__fastcall **)(float *, _DWORD *))(*(_DWORD *)v26 + 568);
if ( v18 > 0 )
v33 = (float)(int)v113 / (float)SLODWORD(v33);
v35 = v26[86];
v36 = v35 * v33;
if ( v35 > v36 )
v37 = v36;
else
v37 = v26[86];
cocos2d::CCRect::CCRect((cocos2d::CCRect *)v123, 0.0, 0.0, v37, v26[87]);
v34(v26, v123);
v38 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"%i/%i", v113, v18);
CString = (cocos2d::CCLabelBMFont *)cocos2d::CCString::getCString(v38);
v41 = (cocos2d::CCObject *)cocos2d::CCLabelBMFont::create(CString, "bigFont.fnt", v40);
(*(void (__fastcall **)(LevelListLayer *, cocos2d::CCObject *, int))(*(_DWORD *)this + 232))(this, v41, 4);
cocos2d::CCArray::addObject(*((cocos2d::CCArray **)this + 168), v41);
v42 = *(void (__fastcall **)(cocos2d::CCObject *, _DWORD *))(*(_DWORD *)v41 + 92);
v43 = (*(int (__fastcall **)(cocos2d::CCObject *))(*(_DWORD *)v23 + 96))(v23);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v120, 0.0, 1.0);
cocos2d::CCPoint::operator+(v123, v43, v120);
v42(v41, v123);
result = (*(int (__fastcall **)(cocos2d::CCObject *, int))(*(_DWORD *)v41 + 80))(v41, 1056964608);
if ( *(_DWORD *)(*((_DWORD *)this + 160) + 408) != 2 )
{
if ( v108 )
{
v46 = 52.0;
if ( !hasClaimedListReward )
v46 = 45.0;
}
else
{
v46 = 52.0;
}
v47 = (cocos2d::CCObject *)cocos2d::CCSprite::createWithSpriteFrameName(
(cocos2d::CCSprite *)"GJ_downloadsIcon_001.png",
v45);
(*(void (__fastcall **)(cocos2d::CCObject *, int))(*(_DWORD *)v47 + 80))(v47, 1061997773);
v48 = *(void (__fastcall **)(cocos2d::CCObject *, _DWORD *))(*(_DWORD *)v47 + 92);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v123, 26.0, (float)(v118[1] * 0.5) + 88.0);
v48(v47, v123);
(*(void (__fastcall **)(LevelListLayer *, cocos2d::CCObject *, int))(*(_DWORD *)this + 232))(this, v47, 1);
cocos2d::CCArray::addObject(*((cocos2d::CCArray **)this + 168), v47);
GameToolbox::intToShortString((GameToolbox *)v121, *(_DWORD *)(*((_DWORD *)this + 160) + 284), 0);
if ( (v121[0] & 1) != 0 )
v50 = v122;
else
v50 = (cocos2d::CCLabelBMFont *)((char *)v121 + 1);
v51 = (cocos2d::CCObject *)cocos2d::CCLabelBMFont::create(v50, "bigFont.fnt", v49);
std::string::~string((int)v121);
(*(void (__fastcall **)(cocos2d::CCObject *, int))(*(_DWORD *)v51 + 80))(v51, 1053609165);
v114 = *(void (__fastcall **)(cocos2d::CCObject *, _DWORD *))(*(_DWORD *)v51 + 92);
v52 = (*(int (__fastcall **)(cocos2d::CCObject *))(*(_DWORD *)v47 + 96))(v47);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v120, 0.0, -21.0);
cocos2d::CCPoint::operator+(v123, v52, v120);
v114(v51, v123);
(*(void (__fastcall **)(LevelListLayer *, cocos2d::CCObject *, int))(*(_DWORD *)this + 232))(this, v51, 1);
cocos2d::CCArray::addObject(*((cocos2d::CCArray **)this + 168), v51);
if ( *(int *)(*((_DWORD *)this + 160) + 288) >= 0 )
v54 = "GJ_likesIcon_001.png";
else
v54 = "GJ_dislikesIcon_001.png";
v55 = (cocos2d::CCObject *)cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)v54, v53);
(*(void (__fastcall **)(cocos2d::CCObject *, int))(*(_DWORD *)v55 + 80))(v55, 1061997773);
v56 = *(void (__fastcall **)(cocos2d::CCObject *, _DWORD *))(*(_DWORD *)v55 + 92);
v57 = (*(int (__fastcall **)(cocos2d::CCObject *))(*(_DWORD *)v47 + 96))(v47);
v58 = 4.0;
if ( *(int *)(*((_DWORD *)this + 160) + 288) >= 0 )
v58 = 0.0;
v59 = v57;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v120, 0.0, v58 - v46);
cocos2d::CCPoint::operator+(v123, v59, v120);
v56(v55, v123);
(*(void (__fastcall **)(LevelListLayer *, cocos2d::CCObject *, int))(*(_DWORD *)this + 232))(this, v55, 1);
cocos2d::CCArray::addObject(*((cocos2d::CCArray **)this + 168), v55);
GameToolbox::intToShortString((GameToolbox *)v121, *(_DWORD *)(*((_DWORD *)this + 160) + 288), 0);
if ( (v121[0] & 1) != 0 )
v61 = v122;
else
v61 = (cocos2d::CCLabelBMFont *)((char *)v121 + 1);
v62 = (cocos2d::CCObject *)cocos2d::CCLabelBMFont::create(v61, "bigFont.fnt", v60);
std::string::~string((int)v121);
(*(void (__fastcall **)(cocos2d::CCObject *, int))(*(_DWORD *)v62 + 80))(v62, 1053609165);
v116 = *(void (__fastcall **)(cocos2d::CCObject *, _DWORD *))(*(_DWORD *)v62 + 92);
v115 = (*(int (__fastcall **)(cocos2d::CCObject *))(*(_DWORD *)v55 + 96))(v55);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v120, 0.0, -21.0);
cocos2d::CCPoint::operator+(v123, v115, v120);
v116(v62, v123);
(*(void (__fastcall **)(LevelListLayer *, cocos2d::CCObject *, int))(*(_DWORD *)this + 232))(this, v62, 1);
result = cocos2d::CCArray::addObject(*((cocos2d::CCArray **)this + 168), v62);
if ( v108 )
{
v64 = -v46;
if ( hasClaimedListReward )
{
v100 = (cocos2d::CCObject *)cocos2d::CCSprite::createWithSpriteFrameName(
(cocos2d::CCSprite *)"GJ_diamondsIcon_001.png",
v63);
(*(void (__fastcall **)(LevelListLayer *, cocos2d::CCObject *))(*(_DWORD *)this + 228))(this, v100);
cocos2d::CCArray::addObject(*((cocos2d::CCArray **)this + 168), v100);
v101 = *(void (__fastcall **)(cocos2d::CCObject *, _DWORD *))(*(_DWORD *)v100 + 92);
v102 = (*(int (__fastcall **)(cocos2d::CCObject *))(*(_DWORD *)v55 + 96))(v55);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v120, 0.0, v64);
cocos2d::CCPoint::operator+(v123, v102, v120);
v101(v100, v123);
(*(void (__fastcall **)(cocos2d::CCObject *, int))(*(_DWORD *)v100 + 80))(v100, 1063675494);
GameToolbox::intToShortString((GameToolbox *)v121, *(_DWORD *)(*((_DWORD *)this + 160) + 316), 0);
if ( (v121[0] & 1) != 0 )
v104 = v122;
else
v104 = (cocos2d::CCLabelBMFont *)((char *)v121 + 1);
v105 = (cocos2d::CCObject *)cocos2d::CCLabelBMFont::create(v104, "bigFont.fnt", v103);
std::string::~string((int)v121);
(*(void (__fastcall **)(cocos2d::CCObject *, int))(*(_DWORD *)v105 + 80))(v105, 1053609165);
v106 = *(void (__fastcall **)(cocos2d::CCObject *, _DWORD *))(*(_DWORD *)v105 + 92);
v107 = (*(int (__fastcall **)(cocos2d::CCObject *))(*(_DWORD *)v100 + 96))(v100);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v120, 0.0, -21.0);
cocos2d::CCPoint::operator+(v123, v107, v120);
v106(v105, v123);
(*(void (__fastcall **)(LevelListLayer *, cocos2d::CCObject *, int))(*(_DWORD *)this + 232))(this, v105, 1);
v98 = *((cocos2d::CCArray **)this + 168);
v99 = v105;
}
else
{
v65 = (cocos2d::CCObject *)cocos2d::CCSprite::createWithSpriteFrameName(
(cocos2d::CCSprite *)"diamond_small01_001.png",
v63);
(*(void (__fastcall **)(LevelListLayer *, cocos2d::CCObject *, int))(*(_DWORD *)this + 232))(this, v65, 10);
cocos2d::CCArray::addObject(*((cocos2d::CCArray **)this + 168), v65);
v109 = *(void (__fastcall **)(cocos2d::CCObject *, _DWORD *))(*(_DWORD *)v65 + 92);
v66 = (*(int (__fastcall **)(cocos2d::CCObject *))(*(_DWORD *)v23 + 96))(v23);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v120, 125.0, 0.0);
cocos2d::CCPoint::operator+(v123, v66, v120);
v109(v65, v123);
v68 = (cocos2d::CCObject *)cocos2d::CCSprite::createWithSpriteFrameName(
(cocos2d::CCSprite *)"GJ_completesIcon_001.png",
v67);
(*(void (__fastcall **)(LevelListLayer *, cocos2d::CCObject *))(*(_DWORD *)this + 228))(this, v68);
cocos2d::CCArray::addObject(*((cocos2d::CCArray **)this + 168), v68);
v69 = *(void (__fastcall **)(cocos2d::CCObject *, _DWORD *))(*(_DWORD *)v68 + 92);
v70 = (*(int (__fastcall **)(cocos2d::CCObject *))(*(_DWORD *)v55 + 96))(v55);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v120, 0.0, v64);
cocos2d::CCPoint::operator+(v123, v70, v120);
v69(v68, v123);
(*(void (__fastcall **)(cocos2d::CCObject *, int))(*(_DWORD *)v68 + 80))(v68, 1061997773);
v71 = GJLevelList::totalLevels(*((GJLevelList **)this + 160));
v72 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"%i/%i", v113, v71);
v73 = (cocos2d::CCLabelBMFont *)cocos2d::CCString::getCString(v72);
v75 = (cocos2d::CCObject *)cocos2d::CCLabelBMFont::create(v73, "bigFont.fnt", v74);
(*(void (__fastcall **)(LevelListLayer *, cocos2d::CCObject *))(*(_DWORD *)this + 228))(this, v75);
cocos2d::CCArray::addObject(*((cocos2d::CCArray **)this + 168), v75);
v110 = *(void (__fastcall **)(cocos2d::CCObject *, _DWORD *))(*(_DWORD *)v75 + 92);
v76 = (*(int (__fastcall **)(cocos2d::CCObject *))(*(_DWORD *)v68 + 96))(v68);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v120, 0.0, -21.0);
cocos2d::CCPoint::operator+(v123, v76, v120);
v110(v75, v123);
v77 = (cocos2d::CCNode *)(*(int (__fastcall **)(cocos2d::CCObject *, int))(*(_DWORD *)v75 + 80))(
v75,
1053609165);
v78 = cocos2d::CCNode::create(v77);
v79 = *(int (__fastcall **)(int, _DWORD *))(*(_DWORD *)v78 + 160);
cocos2d::CCSize::CCSize((cocos2d::CCSize *)v123, 50.0, 50.0);
v80 = (cocos2d::CCNode *)v79(v78, v123);
v81 = cocos2d::CCNode::create(v80);
(*(void (__fastcall **)(int, void *))(*(_DWORD *)v81 + 160))(v81, &unk_D2D9A0);
(*(void (__fastcall **)(int, int))(*(_DWORD *)v78 + 228))(v78, v81);
v82 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v81 + 92);
v83 = *(float *)(*(int (__fastcall **)(int))(*(_DWORD *)v78 + 164))(v78);
v84 = (*(int (__fastcall **)(int))(*(_DWORD *)v78 + 164))(v78);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v123, v83 * 0.5, *(float *)(v84 + 4) * 0.5);
v82(v81, v123);
if ( (int)v113 < *(_DWORD *)(*((_DWORD *)this + 160) + 320) )
{
v121[0] = 0;
v121[1] = 0;
v122 = nullptr;
std::string::__init(v121, "GJ_rewardBtn_001.png", 0x14u);
v86 = (float *)CCSpriteGrayscale::createWithSpriteFrameName((char *)v121);
std::string::~string((int)v121);
CCSpriteWithHue::setEvenLuminance(v86, 1.0);
v87 = *(void (__fastcall **)(float *, _DWORD *))(*(_DWORD *)v86 + 480);
LOWORD(v123[0]) = -20561;
BYTE2(v123[0]) = -81;
v87(v86, v123);
}
else
{
v86 = (float *)cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_rewardBtn_001.png", v85);
}
(*(void (__fastcall **)(float *, int))(*(_DWORD *)v86 + 80))(v86, 1058642330);
(*(void (__fastcall **)(int, float *))(*(_DWORD *)v81 + 228))(v81, v86);
v123[0] = LevelListLayer::onClaimReward;
v123[1] = 0;
v88 = CCMenuItemSpriteExtra::create(v78, 0, (int)this, (int)LevelListLayer::onClaimReward, 0);
(*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 156) + 228))(*((_DWORD *)this + 156), v88);
v111 = (*(int (__fastcall **)(cocos2d::CCObject *))(*(_DWORD *)v68 + 96))(v68);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v119, 0.0, -54.0);
cocos2d::CCPoint::operator+(v120, v111, v119);
cocos2d::CCPoint::operator=((char *)this + 684, v120);
v89 = *(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v88 + 92);
cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)v120, *((const cocos2d::CCPoint **)this + 156));
v89(v88, v120);
v91 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"diamond_small01_001.png", v90);
(*(void (__fastcall **)(int, int))(*(_DWORD *)v81 + 228))(v81, v91);
v112 = *(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v91 + 92);
v92 = (*(int (__fastcall **)(float *))(*(_DWORD *)v86 + 96))(v86);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v119, 8.0, -25.0);
cocos2d::CCPoint::operator+(v120, v92, v119);
v112(v91, v120);
GameToolbox::intToString((GameToolbox *)v121, *(_DWORD *)(*((_DWORD *)this + 160) + 316));
if ( (v121[0] & 1) != 0 )
v93 = v122;
else
v93 = (cocos2d::CCLabelBMFont *)((char *)v121 + 1);
v94 = cocos2d::CCLabelBMFont::create(v93, "bigFont.fnt", (const char *)(LOBYTE(v121[0]) << 31));
std::string::~string((int)v121);
(*(void (__fastcall **)(int, int))(*(_DWORD *)v81 + 228))(v81, v94);
v95 = *(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v94 + 148);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v120, 1.0, 0.5);
v95(v94, v120);
v96 = *(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v94 + 92);
v97 = (*(int (__fastcall **)(int))(*(_DWORD *)v91 + 96))(v91);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v119, -8.0, 0.0);
cocos2d::CCPoint::operator+(v120, v97, v119);
v96(v94, v120);
(*(void (__fastcall **)(int, int))(*(_DWORD *)v94 + 80))(v94, 1053609165);
v98 = *((cocos2d::CCArray **)this + 168);
v99 = (cocos2d::CCObject *)v88;
}
return cocos2d::CCArray::addObject(v98, v99);
}
}
return result;
}