//
// ShardsPage::init from 0x62b650 to 0x62c870 (4640 bytes)
//
// 1 xrefs:
// > ShardsPage::create @ 0x62b522
//
// 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:55:13 +0000
//
GameManager *__fastcall ShardsPage::init(ShardsPage *this)
{
GameManager *v2; // r0
int v3; // r5
void (__fastcall *v4)(int, _DWORD *); // r7
void (__fastcall *v5)(int, _DWORD *); // r7
int v6; // r0
int v7; // r5
const char *v8; // r1
cocos2d::CCSprite *v9; // r6
float v10; // s15
float v11; // s14
void (__fastcall *v12)(cocos2d::CCSprite *, _DWORD *); // r9
const char *v13; // r1
int v14; // r7
void (__fastcall *v15)(int, _DWORD *); // r9
const char *v16; // r1
int v17; // r7
void (__fastcall *v18)(int, _DWORD *); // r9
const char *v19; // r1
int v20; // r7
void (__fastcall *v21)(int, _DWORD *); // r9
cocos2d::CCDictionary *v22; // r0
cocos2d::CCObject *v23; // r0
const char *v24; // r1
int v25; // r0
cocos2d::CCMenu *v26; // r6
int v27; // r0
float v28; // s15
float v29; // s19
int v30; // r6
void (__fastcall *v31)(int, _DWORD *); // r7
const char *v32; // r1
int v33; // s15
cocos2d::CCObject *v34; // r11
int *v35; // r0
GameStatsManager *v36; // r0
const char *v37; // r5
char *v38; // r1
int *v39; // r0
GameStatsManager *v40; // r0
int Stat; // r0
int *v42; // r0
GameStatsManager *v43; // r0
int v44; // r0
int *v45; // r0
GameStatsManager *v46; // r0
int *v47; // r0
GameStatsManager *v48; // r0
int *v49; // r0
GameStatsManager *v50; // r0
char *v51; // r1
int *v52; // r0
GameStatsManager *v53; // r0
int *v54; // r0
GameStatsManager *v55; // r0
int *v56; // r0
GameStatsManager *v57; // r0
int *v58; // r0
GameStatsManager *v59; // r0
const char *v60; // r3
const char *v61; // r3
const char *v62; // r1
cocos2d::CCSprite *v63; // r0
cocos2d::CCObject *v64; // r7
void (__fastcall *v65)(cocos2d::CCObject *, _DWORD *); // r9
cocos2d::CCString *v66; // r0
cocos2d::CCLabelBMFont *CString; // r0
const char *v68; // r2
cocos2d::CCObject *v69; // r6
void (__fastcall *v70)(cocos2d::CCObject *, _DWORD *); // r9
void (__fastcall *v71)(cocos2d::CCObject *, _DWORD *); // r9
int v72; // r10
float *v73; // r0
cocos2d::CCSprite *v74; // r0
cocos2d::CCObject *v75; // r7
void (__fastcall *v76)(cocos2d::CCObject *, _DWORD *); // r9
void (__fastcall *v77)(cocos2d::CCObject *, _DWORD *); // r8
int v78; // r9
int i; // r10
cocos2d::CCString *v80; // r0
const char *v81; // r7
size_t v82; // r0
GameManager *v83; // r0
int v84; // r0
AchievementManager *v85; // r6
int *v86; // r8
cocos2d::CCObject *v87; // r6
int v88; // r2
void (__fastcall *v89)(cocos2d::CCObject *, int); // r9
int v90; // r0
float v91; // s18
int v92; // r0
cocos2d::CCString *v93; // r0
cocos2d::CCLabelBMFont *v94; // r0
const char *v95; // r2
cocos2d::CCObject *v96; // r7
void (__fastcall *v97)(cocos2d::CCObject *, _DWORD *); // r8
void (__fastcall *v98)(cocos2d::CCObject *, _DWORD *); // r9
float v99; // r1
const char *v100; // r1
cocos2d::CCSprite *v101; // r0
cocos2d::CCObject *v102; // r6
void (__fastcall *v103)(cocos2d::CCObject *, _DWORD *); // r9
int v104; // r9
const char *v105; // r1
cocos2d::CCObject *v106; // r6
void (__fastcall *v107)(cocos2d::CCObject *, _DWORD *); // r8
void (__fastcall *v108)(cocos2d::CCObject *, _DWORD); // r7
float *v109; // r0
void (__fastcall *v110)(cocos2d::CCObject *, _DWORD); // r7
int v111; // r0
const char *v112; // r1
int v113; // r3
float v114; // s16
cocos2d::CCObject *v115; // r6
void (__fastcall *v116)(cocos2d::CCObject *, _DWORD *); // r8
void (__fastcall *v117)(cocos2d::CCObject *, _DWORD *); // r9
void (__fastcall *v118)(cocos2d::CCObject *, _DWORD); // r7
float *v119; // r0
void (__fastcall *v120)(cocos2d::CCObject *, _DWORD); // r7
int v121; // r0
cocos2d::CCMenu *v122; // r0
const cocos2d::CCPoint *v123; // r0
float v124; // s16
const cocos2d::CCPoint *v125; // r7
const char *v126; // r1
int v127; // r0
int v128; // r0
cocos2d::CCDirector *v129; // r0
void (__fastcall *v130)(int, _DWORD *); // r11
cocos2d::CCDirector *v131; // r0
float v132; // r0
const char *v133; // r1
cocos2d::CCSprite *v134; // r9
int v135; // r0
cocos2d::CCDirector *v136; // r0
int v137; // r9
void (__fastcall *v138)(int, float *); // r10
cocos2d::CCDirector *v139; // r0
float v140; // r0
const char *v141; // r1
int v142; // r0
int v143; // r7
void (__fastcall *v144)(int, float *); // r8
int v146; // [sp+14h] [bp-100h]
int v147; // [sp+14h] [bp-100h]
int v148; // [sp+18h] [bp-FCh]
int v149; // [sp+1Ch] [bp-F8h]
char v150; // [sp+20h] [bp-F4h]
GameManager *v151; // [sp+24h] [bp-F0h]
int v152; // [sp+28h] [bp-ECh]
void (__fastcall *v153)(int *, _DWORD *); // [sp+34h] [bp-E0h]
void (__fastcall *v154)(cocos2d::CCObject *, _DWORD *); // [sp+34h] [bp-E0h]
void (__fastcall *v155)(cocos2d::CCObject *, _DWORD *); // [sp+34h] [bp-E0h]
cocos2d::CCPoint *v156; // [sp+38h] [bp-DCh]
int v157; // [sp+5Ch] [bp-B8h]
char v158; // [sp+60h] [bp-B4h]
__int16 v159; // [sp+64h] [bp-B0h] BYREF
char v160; // [sp+66h] [bp-AEh]
__int16 v161; // [sp+68h] [bp-ACh] BYREF
char v162; // [sp+6Ah] [bp-AAh]
int v163; // [sp+6Ch] [bp-A8h]
int v164; // [sp+70h] [bp-A4h] BYREF
int v165; // [sp+74h] [bp-A0h] BYREF
float v166; // [sp+78h] [bp-9Ch] BYREF
float v167; // [sp+7Ch] [bp-98h]
_BYTE v168[8]; // [sp+80h] [bp-94h] BYREF
_BYTE v169[8]; // [sp+88h] [bp-8Ch] BYREF
_BYTE v170[8]; // [sp+90h] [bp-84h] BYREF
_BYTE v171[8]; // [sp+98h] [bp-7Ch] BYREF
float v172[6]; // [sp+A0h] [bp-74h] BYREF
_DWORD v173[2]; // [sp+B8h] [bp-5Ch] BYREF
int v174[2]; // [sp+C0h] [bp-54h] BYREF
cocos2d::CCSprite *v175; // [sp+C8h] [bp-4Ch]
int v176[2]; // [sp+CCh] [bp-48h] BYREF
cocos2d::CCSprite *v177; // [sp+D4h] [bp-40h]
int v178[2]; // [sp+D8h] [bp-3Ch] BYREF
char *v179; // [sp+E0h] [bp-34h]
int v180; // [sp+E4h] [bp-30h] BYREF
size_t v181; // [sp+E8h] [bp-2Ch]
const void *v182; // [sp+ECh] [bp-28h]
int v183; // [sp+F0h] [bp-24h] BYREF
size_t v184; // [sp+F4h] [bp-20h]
const void *v185; // [sp+F8h] [bp-1Ch]
_DWORD v186[4]; // [sp+FCh] [bp-18h] BYREF
v2 = FLAlertLayer::init(this, 150);
v151 = v2;
if ( v2 )
{
cocos2d::CCDirector::sharedDirector(v2);
cocos2d::CCDirector::getWinSize((cocos2d::CCDirector *)&v166);
cocos2d::CCRect::CCRect((cocos2d::CCRect *)v186, 0.0, 0.0, 80.0, 80.0);
v3 = cocos2d::extension::CCScale9Sprite::create("GJ_square01.png", v186);
(*(void (__fastcall **)(int, int))(*(_DWORD *)v3 + 456))(v3, 255);
v4 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v3 + 160);
cocos2d::CCSize::CCSize((cocos2d::CCSize *)v186, 420.0, 280.0);
v4(v3, v186);
(*(void (__fastcall **)(_DWORD, int, int))(**((_DWORD **)this + 115) + 232))(*((_DWORD *)this + 115), v3, -1);
v5 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v3 + 92);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v186, v166 * 0.5, v167 * 0.5);
v6 = v3;
v7 = 0;
v5(v6, v186);
while ( 1 )
{
v9 = (cocos2d::CCSprite *)cocos2d::CCSprite::createWithSpriteFrameName(
(cocos2d::CCSprite *)"dailyLevelCorner_001.png",
v8);
(*(void (__fastcall **)(_DWORD, cocos2d::CCSprite *, int))(**((_DWORD **)this + 115) + 232))(
*((_DWORD *)this + 115),
v9,
8);
if ( v7 == 2 )
{
cocos2d::CCSprite::setFlipX(v9, 1);
cocos2d::CCSprite::setFlipY(v9, 1);
v10 = 115.0;
}
else
{
if ( v7 != 3 )
{
if ( v7 == 1 )
{
cocos2d::CCSprite::setFlipY(v9, 1);
v10 = 115.0;
}
else
{
v10 = -115.0;
}
v11 = -185.0;
goto LABEL_12;
}
cocos2d::CCSprite::setFlipX(v9, 1);
v10 = -115.0;
}
v11 = 185.0;
LABEL_12:
++v7;
v12 = *(void (__fastcall **)(cocos2d::CCSprite *, _DWORD *))(*(_DWORD *)v9 + 92);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v186, v11 + (float)(v166 * 0.5), v10 + (float)(v167 * 0.5));
v12(v9, v186);
if ( v7 == 4 )
{
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v168, v166 * 0.5, (float)((float)(v167 * 0.5) + 140.0) - 28.0);
v14 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"label_shards_001.png", v13);
v15 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v14 + 92);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v173, -80.0, 0.0);
cocos2d::CCPoint::operator+(v186, v168, v173);
v15(v14, v186);
(*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 115) + 228))(*((_DWORD *)this + 115), v14);
v17 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"label_of_001.png", v16);
v18 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v17 + 92);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v173, 4.0, 0.0);
cocos2d::CCPoint::operator+(v186, v168, v173);
v18(v17, v186);
(*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 115) + 228))(*((_DWORD *)this + 115), v17);
v20 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"label_power_001.png", v19);
v21 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v20 + 92);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v173, 85.0, 0.0);
cocos2d::CCPoint::operator+(v186, v168, v173);
v21(v20, v186);
(*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 115) + 228))(*((_DWORD *)this + 115), v20);
v22 = (cocos2d::CCDictionary *)cocos2d::CCPoint::CCPoint(
(cocos2d::CCPoint *)v169,
v166 * 0.5,
(float)(v167 * 0.5) + 80.0);
v23 = (cocos2d::CCObject *)cocos2d::CCDictionary::create(v22);
*((_DWORD *)this + 130) = v23;
cocos2d::CCObject::retain(v23);
v25 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_closeBtn_001.png", v24);
LODWORD(v172[2]) = ShardsPage::onClose;
v172[3] = 0.0;
v26 = (cocos2d::CCMenu *)CCMenuItemSpriteExtra::create(v25, 0, (int)this, (int)ShardsPage::onClose, 0);
CCMenuItemSpriteExtra::setSizeMult((int)v26, 1.6);
v27 = cocos2d::CCMenu::create(v26, nullptr);
v28 = (float)(v166 * 0.5) - 210.0;
v29 = (float)(v167 * 0.5) + 140.0;
*((_DWORD *)this + 111) = v27;
v30 = v27;
v31 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v27 + 92);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v186, v28 + 10.0, v29 - 10.0);
v31(v30, v186);
(*(void (__fastcall **)(_DWORD, _DWORD, int))(**((_DWORD **)this + 115) + 232))(
*((_DWORD *)this + 115),
*((_DWORD *)this + 111),
10);
v148 = -1;
v149 = -1;
v146 = 0;
v152 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"playerSquare_001.png", v32);
while ( 1 )
{
v33 = (int)floorf((float)(v146 / 3));
v34 = (cocos2d::CCObject *)cocos2d::CCDictionary::objectForKey(*((cocos2d::CCDictionary **)this + 130), v33);
if ( !v34 )
{
v34 = (cocos2d::CCObject *)cocos2d::CCArray::create(nullptr);
cocos2d::CCDictionary::setObject(*((cocos2d::CCDictionary **)this + 130), v34, v33);
}
v174[0] = 0;
v174[1] = 0;
v175 = nullptr;
v159 = -1;
v161 = -1;
v176[0] = 0;
v176[1] = 0;
v177 = nullptr;
v160 = -1;
v162 = -1;
v178[0] = 0;
v178[1] = 0;
v179 = nullptr;
std::string::__init(v178, &unk_B6B226, 0);
switch ( v146 )
{
case 1:
std::string::assign(v174, "iceShardLabel_001.png");
v39 = std::string::assign(v176, "iceShardSmall_001.png");
v40 = (GameStatsManager *)GameStatsManager::sharedState((GameStatsManager *)v39);
Stat = GameStatsManager::getStat(v40, "19");
v159 = -156;
v37 = (const char *)Stat;
LOWORD(v157) = -27136;
BYTE2(v157) = -1;
v38 = "shardIce";
v158 = 0;
v160 = -1;
v161 = -256;
v162 = -1;
goto LABEL_22;
case 2:
std::string::assign(v174, "poisonShardLabel_001.png");
v42 = std::string::assign(v176, "poisonShardSmall_001.png");
v43 = (GameStatsManager *)GameStatsManager::sharedState((GameStatsManager *)v42);
v44 = GameStatsManager::getStat(v43, "17");
v159 = -181;
v160 = 75;
v37 = (const char *)v44;
LOWORD(v157) = -24576;
BYTE2(v157) = 0;
v158 = 0;
v38 = "shardPoison";
v161 = -256;
v162 = 0;
goto LABEL_22;
case 3:
std::string::assign(v174, "shadowShardLabel_001.png");
v45 = std::string::assign(v176, "shadowShardSmall_001.png");
v46 = (GameStatsManager *)GameStatsManager::sharedState((GameStatsManager *)v45);
v37 = (const char *)GameStatsManager::getStat(v46, "16");
LOWORD(v157) = 150;
BYTE2(v157) = -56;
v38 = "shardShadow";
v158 = -1;
v159 = 25855;
v160 = -1;
v161 = 255;
v162 = -1;
goto LABEL_22;
case 4:
std::string::assign(v174, "lavaShardLabel_001.png");
v47 = std::string::assign(v176, "lavaShardSmall_001.png");
v48 = (GameStatsManager *)GameStatsManager::sharedState((GameStatsManager *)v47);
v37 = (const char *)GameStatsManager::getStat(v48, "20");
v160 = 50;
v38 = "shardLava";
v158 = -1;
LOWORD(v157) = 175;
v159 = 13055;
BYTE2(v157) = 0;
v161 = 255;
v162 = 0;
goto LABEL_22;
case 5:
std::string::assign(v174, "bonusShardLabel_001.png");
std::string::assign(v176, "bonusShardSmall_001.png");
LOWORD(v157) = -26986;
BYTE2(v157) = -106;
v158 = -1;
std::string::assign(v178, "shardBonus");
v37 = (const char *)v149;
goto LABEL_31;
case 6:
std::string::assign(v174, "shard0201ShardLabel_001.png");
v49 = std::string::assign(v176, "shard0201ShardSmall_001.png");
v50 = (GameStatsManager *)GameStatsManager::sharedState((GameStatsManager *)v49);
v37 = (const char *)GameStatsManager::getStat(v50, "23");
LOWORD(v157) = 25251;
v51 = "shardEarth";
BYTE2(v157) = 70;
v158 = -3;
goto LABEL_29;
case 7:
std::string::assign(v174, "shard0202ShardLabel_001.png");
v52 = std::string::assign(v176, "shard0202ShardSmall_001.png");
v53 = (GameStatsManager *)GameStatsManager::sharedState((GameStatsManager *)v52);
v37 = (const char *)GameStatsManager::getStat(v53, "24");
LOWORD(v157) = 150;
v158 = -1;
v51 = "shardBlood";
BYTE2(v157) = 0;
goto LABEL_29;
case 8:
std::string::assign(v174, "shard0203ShardLabel_001.png");
v54 = std::string::assign(v176, "shard0203ShardSmall_001.png");
v55 = (GameStatsManager *)GameStatsManager::sharedState((GameStatsManager *)v54);
v37 = (const char *)GameStatsManager::getStat(v55, "25");
LOWORD(v157) = -32640;
BYTE2(v157) = 0x80;
v51 = "shardMetal";
v158 = -1;
goto LABEL_29;
case 9:
std::string::assign(v174, "shard0204ShardLabel_001.png");
v56 = std::string::assign(v176, "shard0204ShardSmall_001.png");
v57 = (GameStatsManager *)GameStatsManager::sharedState((GameStatsManager *)v56);
v37 = (const char *)GameStatsManager::getStat(v57, "26");
LOWORD(v157) = -1281;
v51 = "shardLight";
v158 = -1;
BYTE2(v157) = 127;
goto LABEL_29;
case 10:
std::string::assign(v174, "shard0205ShardLabel_001.png");
v58 = std::string::assign(v176, "shard0205ShardSmall_001.png");
v59 = (GameStatsManager *)GameStatsManager::sharedState((GameStatsManager *)v58);
v37 = (const char *)GameStatsManager::getStat(v59, "27");
v51 = "shardSoul";
LOBYTE(v157) = 100;
*(_WORD *)((char *)&v157 + 1) = -27136;
v158 = -1;
LABEL_29:
std::string::assign(v178, v51);
if ( (int)v37 >= v148 )
goto LABEL_34;
v148 = (int)v37;
break;
case 11:
std::string::assign(v174, "bonusShardLabel_001.png");
std::string::assign(v176, "bonusShard2Small_001.png");
LOWORD(v157) = -26986;
BYTE2(v157) = -106;
v158 = -1;
std::string::assign(v178, "shardBonusB");
v37 = (const char *)v148;
LABEL_34:
v61 = (const char *)v148;
if ( v148 == -1 )
v61 = v37;
v148 = (int)v61;
break;
default:
std::string::assign(v174, "fireShardLabel_001.png");
v35 = std::string::assign(v176, "fireShardSmall_001.png");
v36 = (GameStatsManager *)GameStatsManager::sharedState((GameStatsManager *)v35);
v37 = (const char *)GameStatsManager::getStat(v36, "18");
LOWORD(v157) = 19455;
BYTE2(v157) = 0;
v38 = "shardFire";
v158 = -1;
v159 = -1;
v160 = 0;
v161 = -1;
v162 = 0;
LABEL_22:
std::string::assign(v178, v38);
if ( (int)v37 >= v149 )
{
LABEL_31:
v60 = (const char *)v149;
if ( v149 == -1 )
v60 = v37;
v149 = (int)v60;
}
else
{
v149 = (int)v37;
}
break;
}
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v186, 0.0, (float)(-3 * v33 + v146) * -77.0);
cocos2d::CCPoint::operator+(v170, v169, v186);
if ( (v174[0] & 1) != 0 )
v63 = v175;
else
v63 = (cocos2d::CCSprite *)((char *)v174 + 1);
v64 = (cocos2d::CCObject *)cocos2d::CCSprite::createWithSpriteFrameName(v63, v62);
(*(void (__fastcall **)(_DWORD, cocos2d::CCObject *))(**((_DWORD **)this + 115) + 228))(
*((_DWORD *)this + 115),
v64);
v65 = *(void (__fastcall **)(cocos2d::CCObject *, _DWORD *))(*(_DWORD *)v64 + 92);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v173, -20.0, 0.0);
cocos2d::CCPoint::operator+(v186, v170, v173);
v65(v64, v186);
cocos2d::CCArray::addObject(v34, v64);
v66 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"%i", v37);
CString = (cocos2d::CCLabelBMFont *)cocos2d::CCString::getCString(v66);
v69 = (cocos2d::CCObject *)cocos2d::CCLabelBMFont::create(CString, "bigFont.fnt", v68);
(*(void (__fastcall **)(cocos2d::CCObject *, int))(*(_DWORD *)v69 + 80))(v69, 1055286886);
(*(void (__fastcall **)(_DWORD, cocos2d::CCObject *))(**((_DWORD **)this + 115) + 228))(
*((_DWORD *)this + 115),
v69);
v70 = *(void (__fastcall **)(cocos2d::CCObject *, _DWORD *))(*(_DWORD *)v69 + 148);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v186, 0.0, 0.5);
v70(v69, v186);
v71 = *(void (__fastcall **)(cocos2d::CCObject *, _DWORD *))(*(_DWORD *)v69 + 92);
v72 = (*(int (__fastcall **)(cocos2d::CCObject *))(*(_DWORD *)v64 + 96))(v64);
v73 = (float *)(*(int (__fastcall **)(cocos2d::CCObject *))(*(_DWORD *)v64 + 164))(v64);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v173, (float)(*v73 * 0.5) + 5.0, 1.0);
cocos2d::CCPoint::operator+(v186, v72, v173);
v71(v69, v186);
cocos2d::CCArray::addObject(v34, v69);
if ( (v176[0] & 1) != 0 )
v74 = v177;
else
v74 = (cocos2d::CCSprite *)((char *)v176 + 1);
v75 = (cocos2d::CCObject *)cocos2d::CCSprite::createWithSpriteFrameName(
v74,
(const char *)(LOBYTE(v176[0]) << 31));
(*(void (__fastcall **)(_DWORD, cocos2d::CCObject *))(**((_DWORD **)this + 115) + 228))(
*((_DWORD *)this + 115),
v75);
v76 = *(void (__fastcall **)(cocos2d::CCObject *, _DWORD *))(*(_DWORD *)v75 + 148);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v186, 0.0, 0.5);
v76(v75, v186);
v77 = *(void (__fastcall **)(cocos2d::CCObject *, _DWORD *))(*(_DWORD *)v75 + 92);
v78 = (*(int (__fastcall **)(cocos2d::CCObject *))(*(_DWORD *)v69 + 96))(v69);
(*(void (__fastcall **)(float *, cocos2d::CCObject *))(*(_DWORD *)v69 + 168))(v172, v69);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v173, v172[0] + 2.0, 0.0);
cocos2d::CCPoint::operator+(v186, v78, v173);
v77(v75, v186);
cocos2d::CCArray::addObject(v34, v75);
for ( i = 1; i != 6; ++i )
{
v150 = byte_BEEDEC[i - 1];
if ( (v178[0] & 1) != 0 )
v80 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(
(cocos2d::CCString *)"geometry.ach.%s%02d",
v179,
i);
else
v80 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(
(cocos2d::CCString *)"geometry.ach.%s%02d",
(const char *)v178 + 1,
i);
v81 = (const char *)cocos2d::CCString::getCString(v80);
v180 = 0;
v181 = 0;
v182 = nullptr;
v82 = strlen(v81);
v83 = (GameManager *)std::string::__init(&v180, v81, v82);
v164 = 0;
v165 = 0;
v84 = GameManager::sharedState(v83);
v183 = 0;
v184 = 0;
v85 = (AchievementManager *)v84;
v185 = nullptr;
if ( (v180 & 1) != 0 )
{
std::string::__init(&v183, v182, v181);
}
else
{
v183 = v180;
v184 = v181;
v185 = v182;
}
GameManager::getUnlockForAchievement(v85, (int)&v183, &v165, &v164);
std::string::~string((int)&v183);
if ( v164 > 0 )
{
v86 = GJItemIcon::create(v164, v165, v157, v158, 0, 0, 0);
(*(void (__fastcall **)(int *, int))(*v86 + 80))(v86, 1061997773);
if ( (int)v37 < v150 )
{
GJItemIcon::changeToLockedState((GJItemIcon *)v86, 1.25);
LOWORD(v163) = 12375;
BYTE2(v163) = 29;
GJItemIcon::darkenStoreItem((int)v86, v163, v88);
}
LODWORD(v172[4]) = ShardsPage::onIconInfo;
v172[5] = 0.0;
v87 = (cocos2d::CCObject *)CCMenuItemSpriteExtra::create(
(int)v86,
0,
(int)this,
(int)ShardsPage::onIconInfo,
0);
(*(void (__fastcall **)(_DWORD, cocos2d::CCObject *))(**((_DWORD **)this + 111) + 228))(
*((_DWORD *)this + 111),
v87);
v89 = *(void (__fastcall **)(cocos2d::CCObject *, int))(*(_DWORD *)v87 + 160);
v90 = (*(int (__fastcall **)(int))(*(_DWORD *)v152 + 164))(v152);
v89(v87, v90);
v153 = *(void (__fastcall **)(int *, _DWORD *))(*v86 + 92);
v91 = *(float *)(*(int (__fastcall **)(cocos2d::CCObject *))(*(_DWORD *)v87 + 164))(v87);
v92 = (*(int (__fastcall **)(cocos2d::CCObject *))(*(_DWORD *)v87 + 164))(v87);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v186, v91 * 0.5, *(float *)(v92 + 4) * 0.5);
v153(v86, v186);
(*(void (__fastcall **)(cocos2d::CCObject *, int))(*(_DWORD *)v87 + 36))(v87, v146);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v186, (float)(i - 3) * 70.0, -30.0);
cocos2d::CCPoint::operator+(v171, v170, v186);
v154 = *(void (__fastcall **)(cocos2d::CCObject *, _DWORD *))(*(_DWORD *)v87 + 92);
v156 = *((cocos2d::CCPoint **)this + 111);
cocos2d::CCNode::convertToWorldSpace((cocos2d::CCNode *)v173, *((const cocos2d::CCPoint **)this + 115));
cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)v186, v156);
v154(v87, v186);
cocos2d::CCArray::addObject(v34, v87);
if ( (int)v37 < v150 )
{
v93 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(
(cocos2d::CCString *)"%i",
(const char *)v150);
v94 = (cocos2d::CCLabelBMFont *)cocos2d::CCString::getCString(v93);
v96 = (cocos2d::CCObject *)cocos2d::CCLabelBMFont::create(v94, "bigFont.fnt", v95);
(*(void (__fastcall **)(cocos2d::CCObject *, int))(*(_DWORD *)v96 + 80))(v96, 1050253722);
(*(void (__fastcall **)(_DWORD, cocos2d::CCObject *))(**((_DWORD **)this + 115) + 228))(
*((_DWORD *)this + 115),
v96);
v97 = *(void (__fastcall **)(cocos2d::CCObject *, _DWORD *))(*(_DWORD *)v96 + 148);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v186, 0.0, 0.5);
v97(v96, v186);
v98 = *(void (__fastcall **)(cocos2d::CCObject *, _DWORD *))(*(_DWORD *)v96 + 92);
if ( v150 > 9 )
v99 = -10.0;
else
v99 = -8.0;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v173, v99, -22.0);
cocos2d::CCPoint::operator+(v186, v171, v173);
v98(v96, v186);
(*(void (__fastcall **)(cocos2d::CCObject *, __int16 *))(*(_DWORD *)v96 + 536))(v96, &v159);
cocos2d::CCArray::addObject(v34, v96);
if ( (v176[0] & 1) != 0 )
v101 = v177;
else
v101 = (cocos2d::CCSprite *)((char *)v176 + 1);
v102 = (cocos2d::CCObject *)cocos2d::CCSprite::createWithSpriteFrameName(v101, v100);
(*(void (__fastcall **)(_DWORD, cocos2d::CCObject *))(**((_DWORD **)this + 115) + 228))(
*((_DWORD *)this + 115),
v102);
(*(void (__fastcall **)(cocos2d::CCObject *, int))(*(_DWORD *)v102 + 80))(v102, 1060320051);
v103 = *(void (__fastcall **)(cocos2d::CCObject *, _DWORD *))(*(_DWORD *)v102 + 148);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v186, 0.0, 0.5);
v103(v102, v186);
v155 = *(void (__fastcall **)(cocos2d::CCObject *, _DWORD *))(*(_DWORD *)v102 + 92);
v104 = (*(int (__fastcall **)(cocos2d::CCObject *))(*(_DWORD *)v96 + 96))(v96);
(*(void (__fastcall **)(float *, cocos2d::CCObject *))(*(_DWORD *)v96 + 168))(v172, v96);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v173, v172[0] + 2.0, 0.0);
cocos2d::CCPoint::operator+(v186, v104, v173);
v155(v102, v186);
cocos2d::CCArray::addObject(v34, v102);
}
if ( i != 1 )
{
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v186, -51.0, 0.0);
cocos2d::CCPoint::operator+(v172, v171, v186);
v106 = (cocos2d::CCObject *)cocos2d::CCSprite::createWithSpriteFrameName(
(cocos2d::CCSprite *)"whiteSquare20_001.png",
v105);
v107 = *(void (__fastcall **)(cocos2d::CCObject *, _DWORD *))(*(_DWORD *)v106 + 148);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v186, 0.0, 0.5);
v107(v106, v186);
(*(void (__fastcall **)(cocos2d::CCObject *, float *))(*(_DWORD *)v106 + 92))(v106, v172);
(*(void (__fastcall **)(_DWORD, cocos2d::CCObject *, _DWORD))(**((_DWORD **)this + 115) + 232))(
*((_DWORD *)this + 115),
v106,
0);
v108 = *(void (__fastcall **)(cocos2d::CCObject *, _DWORD))(*(_DWORD *)v106 + 64);
v109 = (float *)(*(int (__fastcall **)(cocos2d::CCObject *))(*(_DWORD *)v106 + 164))(v106);
v108(v106, 32.0 / *v109);
v110 = *(void (__fastcall **)(cocos2d::CCObject *, _DWORD))(*(_DWORD *)v106 + 72);
v111 = (*(int (__fastcall **)(cocos2d::CCObject *))(*(_DWORD *)v106 + 164))(v106);
v110(v106, 5.0 / *(float *)(v111 + 4));
(*(void (__fastcall **)(cocos2d::CCObject *, void *))(*(_DWORD *)v106 + 480))(v106, &unk_BEEDF1);
(*(void (__fastcall **)(cocos2d::CCObject *, int))(*(_DWORD *)v106 + 456))(v106, 110);
cocos2d::CCArray::addObject(v34, v106);
if ( (unsigned int)(i - 2) > 3 )
v113 = 0;
else
v113 = *((char *)&word_BEEDE8 + i + 10);
v114 = (float)(int)&v37[-v113] / (float)(v150 - v113);
if ( v114 >= 1.0 )
{
v114 = 1.0;
}
else if ( v114 <= 0.0 )
{
goto LABEL_73;
}
v115 = (cocos2d::CCObject *)cocos2d::CCSprite::createWithSpriteFrameName(
(cocos2d::CCSprite *)"whiteSquare20_001.png",
v112);
v116 = *(void (__fastcall **)(cocos2d::CCObject *, _DWORD *))(*(_DWORD *)v115 + 148);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v186, 0.0, 0.5);
v116(v115, v186);
v117 = *(void (__fastcall **)(cocos2d::CCObject *, _DWORD *))(*(_DWORD *)v115 + 92);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v173, 2.0, 0.0);
cocos2d::CCPoint::operator+(v186, v172, v173);
v117(v115, v186);
(*(void (__fastcall **)(_DWORD, cocos2d::CCObject *, int))(**((_DWORD **)this + 115) + 232))(
*((_DWORD *)this + 115),
v115,
1);
v118 = *(void (__fastcall **)(cocos2d::CCObject *, _DWORD))(*(_DWORD *)v115 + 64);
v119 = (float *)(*(int (__fastcall **)(cocos2d::CCObject *))(*(_DWORD *)v115 + 164))(v115);
v118(v115, (float)(v114 * 28.0) / *v119);
v120 = *(void (__fastcall **)(cocos2d::CCObject *, _DWORD))(*(_DWORD *)v115 + 72);
v121 = (*(int (__fastcall **)(cocos2d::CCObject *))(*(_DWORD *)v115 + 164))(v115);
v120(v115, 2.0 / *(float *)(v121 + 4));
(*(void (__fastcall **)(cocos2d::CCObject *, __int16 *))(*(_DWORD *)v115 + 480))(v115, &v161);
cocos2d::CCArray::addObject(v34, v115);
}
}
LABEL_73:
std::string::~string((int)&v180);
}
std::string::~string((int)v178);
std::string::~string((int)v176);
v122 = (cocos2d::CCMenu *)std::string::~string((int)v174);
if ( ++v146 == 12 )
{
v123 = (const cocos2d::CCPoint *)cocos2d::CCMenu::create(v122);
v124 = v167 * 0.5;
v125 = v123;
v127 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_arrow_01_001.png", v126);
v173[0] = ShardsPage::onSwitchPage;
v173[1] = 0;
v128 = CCMenuItemSpriteExtra::create(v127, 0, (int)this, (int)ShardsPage::onSwitchPage, 0);
*((_DWORD *)this + 131) = v128;
v129 = (cocos2d::CCDirector *)(*(int (__fastcall **)(const cocos2d::CCPoint *, int))(*(_DWORD *)v125 + 228))(
v125,
v128);
v147 = *((_DWORD *)this + 131);
v130 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v147 + 92);
v131 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v129);
v132 = COERCE_FLOAT(cocos2d::CCDirector::getScreenLeft(v131));
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v172, v132 + 24.0, v124);
cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)v186, v125);
v130(v147, v186);
(*(void (__fastcall **)(_DWORD, _DWORD))(**((_DWORD **)this + 131) + 36))(*((_DWORD *)this + 131), 0);
CCMenuItemSpriteExtra::setSizeMult(*((_DWORD *)this + 131), 1.4);
v134 = (cocos2d::CCSprite *)cocos2d::CCSprite::createWithSpriteFrameName(
(cocos2d::CCSprite *)"GJ_arrow_01_001.png",
v133);
cocos2d::CCSprite::setFlipX(v134, 1);
v186[0] = ShardsPage::onSwitchPage;
v186[1] = 0;
v135 = CCMenuItemSpriteExtra::create((int)v134, 0, (int)this, (int)ShardsPage::onSwitchPage, 0);
*((_DWORD *)this + 132) = v135;
v136 = (cocos2d::CCDirector *)(*(int (__fastcall **)(const cocos2d::CCPoint *, int))(*(_DWORD *)v125 + 228))(
v125,
v135);
v137 = *((_DWORD *)this + 132);
v138 = *(void (__fastcall **)(int, float *))(*(_DWORD *)v137 + 92);
v139 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v136);
v140 = COERCE_FLOAT(cocos2d::CCDirector::getScreenRight(v139));
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v171, v140 - 24.0, v124);
cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)v172, v125);
v138(v137, v172);
(*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 132) + 36))(*((_DWORD *)this + 132), 1);
CCMenuItemSpriteExtra::setSizeMult(*((_DWORD *)this + 132), 1.4);
(*(void (__fastcall **)(_DWORD, const cocos2d::CCPoint *, int))(**((_DWORD **)this + 115) + 232))(
*((_DWORD *)this + 115),
v125,
10);
v142 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"tier1Icon_001.png", v141);
*((_DWORD *)this + 133) = v142;
(*(void (__fastcall **)(_DWORD, int, int))(**((_DWORD **)this + 115) + 232))(
*((_DWORD *)this + 115),
v142,
10);
v143 = *((_DWORD *)this + 133);
v144 = *(void (__fastcall **)(int, float *))(*(_DWORD *)v143 + 92);
cocos2d::CCPoint::CCPoint(
(cocos2d::CCPoint *)v172,
(float)((float)(v166 * 0.5) + 210.0) - 18.0,
(float)((float)(v167 * 0.5) + 140.0) - 18.0);
v144(v143, v172);
ShardsPage::goToPage((int)this, 0);
return v151;
}
}
}
}
}
return v151;
}