//
// ShardsPage::init from 0x14062a980 to 0x14062d920 (12192 bytes)
//
// 5 xrefs:
// > GJGarageLayer::onShards @ 0x140381754
// > GJGarageLayer::onShards @ 0x14038175b
// > GJGarageLayer::onShards @ 0x140381745
// > ??> @ 0x14081b6e8
// > ??> @ 0x14093095c
//
// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!
//
// 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:35:27 +0000
//
// Hidden C++ exception states: #wind=19
bool __fastcall ShardsPage::init(__int64 a1)
{
bool result; // al
__int64 v3; // rcx
__int64 v4; // rax
__int64 v5; // rax
__int64 *v6; // rdi
__int64 v7; // rdx
void (__fastcall *v8)(__int64 *, __int64); // r8
__int64 v9; // rbx
__int64 v10; // rax
__int64 v11; // rbx
__int64 v12; // rax
int v13; // r14d
int i; // esi
cocos2d::CCSprite *v15; // rdi
float v16; // xmm6_4
float v17; // xmm7_4
__int64 v18; // rbx
__int64 v19; // rax
struct cocos2d::CCSprite *v20; // rbx
__int64 v21; // rax
struct cocos2d::CCSprite *v22; // rbx
__int64 v23; // rax
struct cocos2d::CCSprite *v24; // rbx
__int64 v25; // rax
__int64 v26; // rcx
cocos2d::CCObject *v27; // rax
__int64 *v28; // rdi
__int64 v29; // rbx
struct cocos2d::CCMenu *v30; // rax
__int64 v31; // rdi
struct cocos2d::CCMenu *v32; // rbx
__int64 v33; // rax
__int64 v34; // rcx
int v35; // r15d
__int64 v36; // rcx
cocos2d::CCArray *v37; // r13
char *v38; // rax
unsigned __int64 v39; // rdi
_BYTE *v40; // rbx
unsigned __int64 v41; // rcx
__int64 v42; // rsi
char *v43; // rbx
void *v44; // rcx
__int64 v45; // rcx
unsigned __int64 v46; // rdi
void **v47; // rbx
unsigned __int64 v48; // rcx
__int64 v49; // rbx
_QWORD *v50; // rax
char v51; // cl
char *v52; // rsi
void *v53; // rcx
char *v54; // rax
unsigned __int64 v55; // rdi
_BYTE *v56; // rbx
unsigned __int64 v57; // rcx
__int64 v58; // rsi
_WORD *v59; // rbx
void *v60; // rcx
__int64 v61; // rcx
unsigned __int64 v62; // rbx
char *v63; // rcx
unsigned __int64 v64; // rcx
__int64 v65; // rdi
void *v66; // rcx
char *v67; // rax
unsigned __int64 v68; // rdi
_BYTE *v69; // rbx
unsigned __int64 v70; // rcx
__int64 v71; // rbx
char *v72; // rsi
void *v73; // rcx
__int64 v74; // rcx
unsigned __int64 v75; // rdi
void **v76; // rbx
unsigned __int64 v77; // rcx
__int64 v78; // rsi
_BYTE *v79; // rax
char v80; // cl
void *v81; // rbx
void *v82; // rcx
char *v83; // rax
unsigned __int64 v84; // rdi
_BYTE *v85; // rbx
unsigned __int64 v86; // rcx
__int64 v87; // rbx
char *v88; // rsi
void *v89; // rcx
__int64 v90; // rcx
void **v91; // rbx
unsigned __int64 v92; // rcx
__int64 v93; // rsi
char *v94; // rax
unsigned __int64 v95; // rdi
_BYTE *v96; // rbx
unsigned __int64 v97; // rcx
__int64 v98; // rsi
char *v99; // rbx
void *v100; // rcx
__int64 v101; // rcx
void **v102; // rbx
unsigned __int64 v103; // rcx
__int64 v104; // rbx
char *v105; // rax
unsigned __int64 v106; // rdi
_BYTE *v107; // rbx
unsigned __int64 v108; // rcx
__int64 v109; // rsi
_WORD *v110; // rbx
void *v111; // rcx
unsigned __int64 v112; // rdi
void **v113; // rbx
int v114; // eax
int v115; // ecx
unsigned __int64 v116; // rcx
__int64 v117; // rbx
char *v118; // rsi
void *v119; // rcx
char *v120; // rax
unsigned __int64 v121; // rdi
_BYTE *v122; // rbx
unsigned __int64 v123; // rcx
__int64 v124; // rsi
_WORD *v125; // rbx
void *v126; // rcx
__int64 v127; // rcx
char *v128; // rdx
int v129; // eax
int v130; // ecx
__int64 v131; // rax
const char *v132; // rcx
struct cocos2d::CCObject *v133; // rdi
__int64 v134; // rax
cocos2d::CCString *v135; // rax
const char *CString; // rax
struct cocos2d::CCObject *v137; // rsi
__int64 v138; // rbx
__int64 v139; // rax
float *v140; // rax
__int64 v141; // rax
__int64 v142; // rbx
__int64 v143; // rax
void **v144; // rcx
struct cocos2d::CCObject *v145; // rdi
__int64 v146; // rbx
__int64 v147; // rax
float *v148; // rax
__int64 v149; // rax
__int64 v150; // rbx
__int64 v151; // rax
int v152; // r13d
unsigned int v153; // r15d
char *v154; // rax
unsigned __int64 v155; // rdi
_BYTE *v156; // rbx
unsigned __int64 v157; // rcx
__int64 v158; // rsi
_WORD *v159; // rbx
void *v160; // rcx
__int64 v161; // rcx
unsigned __int64 v162; // rdi
void **v163; // rbx
unsigned __int64 v164; // rcx
__int64 v165; // rbx
char *v166; // rsi
void *v167; // rcx
__int64 v168; // rax
__int64 v169; // rax
__int64 v170; // rax
char *v171; // rax
unsigned __int64 v172; // rdi
_BYTE *v173; // rbx
unsigned __int64 v174; // rcx
__int64 v175; // rbx
char *v176; // rsi
void *v177; // rcx
unsigned __int64 v178; // rdi
void **v179; // rbx
unsigned __int64 v180; // rcx
__int64 v181; // rsi
_WORD *v182; // rbx
void *v183; // rcx
void **v184; // rdx
cocos2d::CCString *v185; // rax
const char *v186; // rax
size_t v187; // r8
__int64 v188; // rcx
void **v189; // rsi
unsigned __int64 v190; // rdi
unsigned __int64 v191; // rbx
int v192; // ebx
char *v193; // rdi
cocos2d::CCObject *v194; // rsi
__int64 v195; // rbx
__int64 v196; // rax
__int64 v197; // rbx
float v198; // xmm6_4
float *v199; // rax
__int64 v200; // rax
__int64 v201; // rax
__int64 v202; // rdi
__int64 v203; // rbx
__int64 v204; // rax
__int64 v205; // rax
cocos2d::CCArray *v206; // rdi
int v207; // esi
cocos2d::CCString *v208; // rax
const char *v209; // rax
struct cocos2d::CCObject *v210; // rsi
__int64 v211; // rbx
__int64 v212; // rax
float v213; // xmm1_4
__int64 v214; // rax
void **v215; // rcx
struct cocos2d::CCObject *v216; // rdi
__int64 v217; // rbx
__int64 v218; // rax
float *v219; // rax
__int64 v220; // rax
__int64 v221; // rbx
__int64 v222; // rax
__int64 v223; // rax
struct cocos2d::CCObject *v224; // rdi
__int64 v225; // rbx
__int64 v226; // rax
__int64 v227; // rbx
__int64 v228; // rbx
__int64 v229; // rdx
int v230; // edx
struct cocos2d::CCObject *v231; // rdi
__int64 v232; // rbx
__int64 v233; // rax
__int64 v234; // rax
__int64 v235; // rbx
__int64 v236; // rbx
_BYTE *v237; // rcx
__int64 v238; // rsi
float v239; // xmm6_4
__int64 *v240; // rdi
__int64 *v241; // rax
cocos2d::CCObject *v242; // rbx
__int64 v243; // rdi
__int64 v244; // rcx
cocos2d::CCDirector *v245; // rax
float v246; // xmm0_4
__int64 v247; // rbx
__int64 v248; // rax
__int64 v249; // rax
cocos2d::CCSprite *v250; // rdi
__int64 *v251; // rax
cocos2d::CCObject *v252; // rbx
__int64 v253; // rdi
__int64 v254; // rcx
cocos2d::CCDirector *v255; // rax
float v256; // xmm0_4
__int64 v257; // rbx
__int64 v258; // rax
__int64 v259; // rax
struct cocos2d::CCSprite *v260; // rax
__int64 v261; // rdi
__int64 v262; // rbx
__int64 v263; // rax
int v264; // r15d
__int64 v265; // rsi
struct cocos2d::CCObject *v266; // rax
__int64 v267; // rdx
unsigned int *v268; // rbx
__int64 v269; // rax
_QWORD *v270; // rbx
_QWORD *j; // rdi
__int64 v272; // rdx
__int64 v273; // rdi
__int64 v274; // rbx
__int64 v275; // rdx
__int64 v276; // rcx
cocos2d::CCSpriteFrameCache *v277; // rax
struct cocos2d::CCSpriteFrame *v278; // rax
__int64 v279; // [rsp+38h] [rbp-D0h]
int v280; // [rsp+58h] [rbp-B0h]
__int16 v281; // [rsp+5Ch] [rbp-ACh]
int Stat; // [rsp+60h] [rbp-A8h]
__int16 v283; // [rsp+64h] [rbp-A4h] BYREF
char v284; // [rsp+66h] [rbp-A2h]
__int16 v285; // [rsp+68h] [rbp-A0h] BYREF
char v286; // [rsp+6Ah] [rbp-9Eh]
float v287; // [rsp+70h] [rbp-98h] BYREF
float v288; // [rsp+74h] [rbp-94h]
int v289; // [rsp+78h] [rbp-90h]
int v290; // [rsp+7Ch] [rbp-8Ch]
int v291; // [rsp+80h] [rbp-88h]
_BYTE *v292; // [rsp+88h] [rbp-80h] BYREF
char v293[8]; // [rsp+90h] [rbp-78h] BYREF
__int16 v294; // [rsp+98h] [rbp-70h]
__int16 v295; // [rsp+9Ch] [rbp-6Ch]
__int16 v296; // [rsp+A0h] [rbp-68h]
__int16 v297; // [rsp+A4h] [rbp-64h]
__int16 v298; // [rsp+A8h] [rbp-60h]
__int16 v299; // [rsp+ACh] [rbp-5Ch]
__int16 v300; // [rsp+B0h] [rbp-58h]
__int16 v301; // [rsp+B4h] [rbp-54h]
__int16 v302; // [rsp+B8h] [rbp-50h]
__int16 v303; // [rsp+BCh] [rbp-4Ch]
__int16 v304; // [rsp+C0h] [rbp-48h]
__int16 v305; // [rsp+C4h] [rbp-44h]
__int16 v306; // [rsp+C8h] [rbp-40h]
__int16 v307; // [rsp+CCh] [rbp-3Ch]
__int16 v308; // [rsp+D0h] [rbp-38h]
__int16 v309; // [rsp+D4h] [rbp-34h]
__int16 v310; // [rsp+D8h] [rbp-30h]
__int16 v311; // [rsp+DCh] [rbp-2Ch]
__int16 v312; // [rsp+E0h] [rbp-28h]
__int16 v313; // [rsp+E4h] [rbp-24h]
__int16 v314; // [rsp+E8h] [rbp-20h]
__int16 v315; // [rsp+ECh] [rbp-1Ch]
__int16 v316; // [rsp+F0h] [rbp-18h]
__int16 v317; // [rsp+F4h] [rbp-14h]
__int16 v318; // [rsp+F8h] [rbp-10h]
__int16 v319; // [rsp+FCh] [rbp-Ch]
__int16 v320; // [rsp+100h] [rbp-8h]
__int16 v321; // [rsp+104h] [rbp-4h]
__int16 v322; // [rsp+108h] [rbp+0h]
__int16 v323; // [rsp+10Ch] [rbp+4h]
__int16 v324; // [rsp+110h] [rbp+8h]
__int16 v325; // [rsp+114h] [rbp+Ch]
__int16 v326; // [rsp+118h] [rbp+10h]
__int16 v327; // [rsp+128h] [rbp+20h] BYREF
char v328; // [rsp+12Ah] [rbp+22h]
__int16 v329; // [rsp+138h] [rbp+30h] BYREF
char v330; // [rsp+13Ah] [rbp+32h]
__int16 v331; // [rsp+148h] [rbp+40h]
__int16 v332; // [rsp+158h] [rbp+50h] BYREF
char v333; // [rsp+15Ah] [rbp+52h]
__int16 v334; // [rsp+168h] [rbp+60h]
cocos2d::CCArray *v335; // [rsp+170h] [rbp+68h]
unsigned int v336; // [rsp+178h] [rbp+70h] BYREF
int v337; // [rsp+17Ch] [rbp+74h] BYREF
char v338[8]; // [rsp+180h] [rbp+78h] BYREF
char v339[8]; // [rsp+188h] [rbp+80h] BYREF
char v340[8]; // [rsp+190h] [rbp+88h] BYREF
char v341[8]; // [rsp+198h] [rbp+90h] BYREF
__int64 v342[2]; // [rsp+1A0h] [rbp+98h] BYREF
__int128 v343; // [rsp+1B0h] [rbp+A8h] BYREF
unsigned __int64 v344; // [rsp+1C0h] [rbp+B8h]
__int64 v345; // [rsp+1C8h] [rbp+C0h]
char v346[8]; // [rsp+1D0h] [rbp+C8h] BYREF
char v347[8]; // [rsp+1D8h] [rbp+D0h] BYREF
char v348[8]; // [rsp+1E0h] [rbp+D8h] BYREF
char v349[8]; // [rsp+1E8h] [rbp+E0h] BYREF
struct cocos2d::CCSprite *v350; // [rsp+1F0h] [rbp+E8h]
char v351[8]; // [rsp+1F8h] [rbp+F0h] BYREF
char v352[8]; // [rsp+200h] [rbp+F8h] BYREF
char v353[8]; // [rsp+208h] [rbp+100h] BYREF
char v354[8]; // [rsp+210h] [rbp+108h] BYREF
void *v355; // [rsp+218h] [rbp+110h]
void *v356; // [rsp+220h] [rbp+118h]
void *v357; // [rsp+228h] [rbp+120h]
char v358[8]; // [rsp+230h] [rbp+128h] BYREF
char v359[8]; // [rsp+238h] [rbp+130h] BYREF
char v360[8]; // [rsp+240h] [rbp+138h] BYREF
char v361[8]; // [rsp+248h] [rbp+140h] BYREF
char v362[8]; // [rsp+250h] [rbp+148h] BYREF
char v363[8]; // [rsp+258h] [rbp+150h] BYREF
char v364[8]; // [rsp+260h] [rbp+158h] BYREF
__int128 *v365; // [rsp+268h] [rbp+160h]
void *v366; // [rsp+270h] [rbp+168h]
char *v367; // [rsp+278h] [rbp+170h]
void *v368; // [rsp+280h] [rbp+178h]
char v369[8]; // [rsp+288h] [rbp+180h] BYREF
char v370[8]; // [rsp+290h] [rbp+188h] BYREF
char v371[8]; // [rsp+298h] [rbp+190h] BYREF
char v372[8]; // [rsp+2A0h] [rbp+198h] BYREF
char v373[8]; // [rsp+2A8h] [rbp+1A0h] BYREF
void *v374; // [rsp+2B0h] [rbp+1A8h]
char v375[8]; // [rsp+2B8h] [rbp+1B0h] BYREF
char v376[8]; // [rsp+2C0h] [rbp+1B8h] BYREF
char v377[8]; // [rsp+2C8h] [rbp+1C0h] BYREF
char v378[8]; // [rsp+2D0h] [rbp+1C8h] BYREF
void *v379; // [rsp+2D8h] [rbp+1D0h]
char v380[8]; // [rsp+2E0h] [rbp+1D8h] BYREF
void *v381; // [rsp+2E8h] [rbp+1E0h]
void *v382; // [rsp+2F0h] [rbp+1E8h]
void *v383[2]; // [rsp+2F8h] [rbp+1F0h] BYREF
__int64 v384; // [rsp+308h] [rbp+200h]
unsigned __int64 v385; // [rsp+310h] [rbp+208h]
void *v386[2]; // [rsp+318h] [rbp+210h] BYREF
__int64 v387; // [rsp+328h] [rbp+220h]
unsigned __int64 v388; // [rsp+330h] [rbp+228h]
__int128 v389; // [rsp+338h] [rbp+230h] BYREF
__int64 v390; // [rsp+348h] [rbp+240h]
unsigned __int64 v391; // [rsp+350h] [rbp+248h]
void *Src[2]; // [rsp+358h] [rbp+250h] BYREF
unsigned __int64 v393; // [rsp+368h] [rbp+260h]
unsigned __int64 v394; // [rsp+370h] [rbp+268h]
result = FLAlertLayer::init_1(a1, 150);
if ( !result )
return result;
v4 = cocos2d::CCDirector::sharedDirector(v3);
cocos2d::CCDirector::getWinSize(v4, &v287);
cocos2d::CCRect::CCRect((cocos2d::CCRect *)v342, 0.0, 0.0, 80.0, 80.0);
v6 = (__int64 *)cocos2d::extension::CCScale9Sprite::create("GJ_square01.png", v5);
v7 = v6[40];
v8 = *(void (__fastcall **)(__int64 *, __int64))(v7 + 40);
LOBYTE(v7) = -1;
v8(v6 + 40, v7);
v9 = *v6;
cocos2d::CCSize::CCSize((cocos2d::CCSize *)&v292, 420.0, 280.0);
(*(void (__fastcall **)(__int64 *, __int64))(v9 + 312))(v6, v10);
(*(void (__fastcall **)(_QWORD, __int64 *, __int64))(**(_QWORD **)(a1 + 584) + 456LL))(
*(_QWORD *)(a1 + 584),
v6,
0xFFFFFFFFLL);
v11 = *v6;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v292, v287 * 0.5, v288 * 0.5);
(*(void (__fastcall **)(__int64 *, __int64))(v11 + 184))(v6, v12);
v13 = 0;
for ( i = 0; i < 4; ++i )
{
v15 = cocos2d::CCSprite::createWithSpriteFrameName("dailyLevelCorner_001.png");
(*(void (__fastcall **)(_QWORD, cocos2d::CCSprite *, __int64))(**(_QWORD **)(a1 + 584) + 456LL))(
*(_QWORD *)(a1 + 584),
v15,
8);
v16 = 185.0;
v17 = 115.0;
if ( i )
{
switch ( i )
{
case 1:
v16 = -185.0;
cocos2d::CCSprite::setFlipY(v15, 1);
break;
case 2:
cocos2d::CCSprite::setFlipX(v15, 1);
cocos2d::CCSprite::setFlipY(v15, 1);
break;
case 3:
v17 = -115.0;
cocos2d::CCSprite::setFlipX(v15, 1);
break;
}
}
else
{
v16 = -185.0;
v17 = -115.0;
}
v18 = *(_QWORD *)v15;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v292, (float)(v287 * 0.5) + v16, (float)(v288 * 0.5) + v17);
(*(void (__fastcall **)(cocos2d::CCSprite *, __int64))(v18 + 184))(v15, v19);
}
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v338, v287 * 0.5, (float)((float)(v288 * 0.5) + 140.0) - 28.0);
v20 = cocos2d::CCSprite::createWithSpriteFrameName("label_shards_001.png");
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v292, -80.0, 0.0);
cocos2d::CCPoint::operator+(v338, v293, v21);
(*(void (__fastcall **)(struct cocos2d::CCSprite *, char *))(*(_QWORD *)v20 + 184LL))(v20, v293);
(*(void (__fastcall **)(_QWORD, struct cocos2d::CCSprite *))(**(_QWORD **)(a1 + 584) + 464LL))(
*(_QWORD *)(a1 + 584),
v20);
v22 = cocos2d::CCSprite::createWithSpriteFrameName("label_of_001.png");
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v292, 4.0, 0.0);
cocos2d::CCPoint::operator+(v338, v293, v23);
(*(void (__fastcall **)(struct cocos2d::CCSprite *, char *))(*(_QWORD *)v22 + 184LL))(v22, v293);
(*(void (__fastcall **)(_QWORD, struct cocos2d::CCSprite *))(**(_QWORD **)(a1 + 584) + 464LL))(
*(_QWORD *)(a1 + 584),
v22);
v24 = cocos2d::CCSprite::createWithSpriteFrameName("label_power_001.png");
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v292, 85.0, 0.0);
cocos2d::CCPoint::operator+(v338, v293, v25);
(*(void (__fastcall **)(struct cocos2d::CCSprite *, char *))(*(_QWORD *)v24 + 184LL))(v24, v293);
(*(void (__fastcall **)(_QWORD, struct cocos2d::CCSprite *))(**(_QWORD **)(a1 + 584) + 464LL))(
*(_QWORD *)(a1 + 584),
v24);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v346, v287 * 0.5, (float)(v288 * 0.5) + 80.0);
v27 = (cocos2d::CCObject *)cocos2d::CCDictionary::create(v26);
*(_QWORD *)(a1 + 664) = v27;
cocos2d::CCObject::retain(v27);
v28 = (__int64 *)cocos2d::CCSprite::createWithSpriteFrameName("GJ_closeBtn_001.png");
v292 = operator new(0x208u);
v29 = CCMenuItemSpriteExtra::CCMenuItemSpriteExtra((__int64)v292);
if ( !v29 )
goto LABEL_16;
if ( !CCMenuItemSpriteExtra::init((__int64 *)v29, v28, 0, a1, (__int64)PagedListPopup::onClose) )
{
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v29 + 8LL))(v29, 1);
LABEL_16:
v29 = 0;
goto LABEL_17;
}
cocos2d::CCObject::autorelease((cocos2d::CCObject *)v29);
LABEL_17:
*(_DWORD *)(v29 + 372) = 1070386381;
v30 = cocos2d::CCMenu::create((struct cocos2d::CCMenuItem *)v29, 0);
*(_QWORD *)(a1 + 552) = v30;
v31 = *(_QWORD *)v30;
v32 = v30;
cocos2d::CCPoint::CCPoint(
(cocos2d::CCPoint *)&v292,
(float)((float)(v287 * 0.5) - 210.0) + 10.0,
(float)((float)(v288 * 0.5) + 140.0) - 10.0);
(*(void (__fastcall **)(struct cocos2d::CCMenu *, __int64))(v31 + 184))(v32, v33);
(*(void (__fastcall **)(_QWORD, _QWORD, __int64))(**(_QWORD **)(a1 + 584) + 456LL))(
*(_QWORD *)(a1 + 584),
*(_QWORD *)(a1 + 552),
10);
v350 = cocos2d::CCSprite::createWithSpriteFrameName("playerSquare_001.png");
v289 = -1;
v290 = -1;
LODWORD(v34) = 0;
v291 = 0;
do
{
v35 = (int)floorf((float)((int)v34 / 3));
v37 = cocos2d::CCDictionary::objectForKey(*(cocos2d::CCDictionary **)(a1 + 664), v35);
v335 = v37;
if ( !v37 )
{
v37 = (cocos2d::CCArray *)cocos2d::CCArray::create(v36);
v335 = v37;
cocos2d::CCDictionary::setObject(*(cocos2d::CCDictionary **)(a1 + 664), v37, v35);
}
v389 = 0;
v390 = 0;
v391 = 15;
LOBYTE(v389) = 0;
*(_OWORD *)v383 = 0;
v384 = 0;
v385 = 15;
LOBYTE(v383[0]) = 0;
Stat = 0;
v281 = -1;
v280 = -1;
v283 = -1;
v284 = -1;
v285 = -1;
v286 = -1;
*(_OWORD *)v386 = 0;
v387 = 0;
v388 = 15;
LOBYTE(v386[0]) = 0;
switch ( v291 )
{
case 0:
v38 = (char *)sub_14003D460(0x20u);
v390 = 22;
v391 = 31;
strcpy(v38, "fireShardLabel_001.png");
*(_QWORD *)&v389 = v38;
v39 = v385;
if ( v385 < 0x16 )
{
v41 = v385 >> 1;
v42 = 0x7FFFFFFFFFFFFFFFLL;
if ( v385 <= 0x7FFFFFFFFFFFFFFFLL - (v385 >> 1) )
{
v42 = 31;
if ( v385 + v41 > 0x1F )
v42 = v385 + v41;
}
v43 = (char *)sub_14003D460(v42 + 1);
v384 = 22;
v385 = v42;
strcpy(v43, "fireShardSmall_001.png");
if ( v39 > 0xF )
{
v44 = v383[0];
if ( v39 + 1 >= 0x1000 )
{
v44 = *((void **)v383[0] - 1);
if ( (unsigned __int64)((char *)v383[0] - (char *)v44 - 8) > 0x1F )
goto LABEL_311;
}
j_j_free(v44);
}
v383[0] = v43;
}
else
{
v40 = v383[0];
v384 = 22;
memmove(v383[0], "fireShardSmall_001.png", 0x16u);
v40[22] = 0;
}
v45 = qword_14090BFE0;
if ( !qword_14090BFE0 )
{
v374 = operator new(0x3E8u);
qword_14090BFE0 = sub_1402D6480((__int64)v374);
(*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFE0 + 72LL))(qword_14090BFE0);
v45 = qword_14090BFE0;
}
Stat = GameStatsManager::getStat(v45, &word_140737FE8);
v294 = 19455;
v281 = 19455;
v295 = -14081;
v280 = -922812416;
v296 = -1;
v283 = -1;
v284 = 0;
v297 = -1;
v285 = -1;
v286 = 0;
v46 = v388;
if ( v388 >= 9 )
{
v47 = v386;
if ( v388 > 0xF )
v47 = (void **)v386[0];
v387 = 9;
memmove(v47, "shardFire", 9u);
*((_BYTE *)v47 + 9) = 0;
goto LABEL_250;
}
v48 = v388 >> 1;
if ( v388 <= 0x7FFFFFFFFFFFFFFFLL - (v388 >> 1) )
{
v49 = 15;
if ( v388 + v48 > 0xF )
v49 = v388 + v48;
}
else
{
v49 = 0x7FFFFFFFFFFFFFFFLL;
}
v50 = sub_14003D460(v49 + 1);
v387 = 9;
v388 = v49;
*v50 = *(_QWORD *)"shardFire";
v51 = aShardfire[8];
goto LABEL_42;
case 1:
v54 = (char *)sub_14003D460(0x20u);
v390 = 21;
v391 = 31;
strcpy(v54, "iceShardLabel_001.png");
*(_QWORD *)&v389 = v54;
v55 = v385;
if ( v385 < 0x15 )
{
v57 = v385 >> 1;
if ( v385 <= 0x7FFFFFFFFFFFFFFFLL - (v385 >> 1) )
{
v58 = 31;
if ( v57 + v385 > 0x1F )
v58 = v57 + v385;
}
else
{
v58 = 0x7FFFFFFFFFFFFFFFLL;
}
v59 = sub_14003D460(v58 + 1);
v384 = 21;
v385 = v58;
qmemcpy(v59, "iceShardSmall_001.pn", 20);
v59[10] = (unsigned __int8)aIceshardsmall0[20];
if ( v55 > 0xF )
{
v60 = v383[0];
if ( v55 + 1 >= 0x1000 )
{
v60 = *((void **)v383[0] - 1);
if ( (unsigned __int64)((char *)v383[0] - (char *)v60 - 8) > 0x1F )
goto LABEL_311;
}
j_j_free(v60);
}
v383[0] = v59;
}
else
{
v56 = v383[0];
v384 = 21;
memmove(v383[0], "iceShardSmall_001.png", 0x15u);
v56[21] = 0;
}
v61 = qword_14090BFE0;
if ( !qword_14090BFE0 )
{
v379 = operator new(0x3E8u);
qword_14090BFE0 = sub_1402D6480((__int64)v379);
(*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFE0 + 72LL))(qword_14090BFE0);
v61 = qword_14090BFE0;
}
Stat = GameStatsManager::getStat(v61, &word_140737FE4);
v298 = -27136;
v281 = -27136;
v299 = -256;
v280 = -16711681;
v300 = -156;
v283 = -156;
v284 = -1;
v301 = -256;
v285 = -256;
v286 = -1;
v62 = v388;
if ( v388 >= 8 )
{
v63 = (char *)v386;
if ( v388 > 0xF )
v63 = (char *)v386[0];
v387 = 8;
strcpy(v63, "shardIce");
goto LABEL_250;
}
v64 = v388 >> 1;
if ( v388 <= 0x7FFFFFFFFFFFFFFFLL - (v388 >> 1) )
{
v65 = 15;
if ( v64 + v388 > 0xF )
v65 = v64 + v388;
}
else
{
v65 = 0x7FFFFFFFFFFFFFFFLL;
}
v52 = (char *)sub_14003D460(v65 + 1);
v387 = 8;
v388 = v65;
strcpy(v52, "shardIce");
if ( v62 <= 0xF )
goto LABEL_46;
v66 = v386[0];
if ( v62 + 1 >= 0x1000 )
{
v66 = *((void **)v386[0] - 1);
if ( (unsigned __int64)((char *)v386[0] - (char *)v66 - 8) > 0x1F )
goto LABEL_311;
}
j_j_free(v66);
v386[0] = v52;
goto LABEL_250;
case 2:
v67 = (char *)sub_14003D460(0x20u);
v390 = 24;
v391 = 31;
strcpy(v67, "poisonShardLabel_001.png");
*(_QWORD *)&v389 = v67;
v68 = v385;
if ( v385 < 0x18 )
{
v70 = v385 >> 1;
if ( v385 <= 0x7FFFFFFFFFFFFFFFLL - (v385 >> 1) )
{
v71 = 31;
if ( v70 + v385 > 0x1F )
v71 = v70 + v385;
}
else
{
v71 = 0x7FFFFFFFFFFFFFFFLL;
}
v72 = (char *)sub_14003D460(v71 + 1);
v384 = 24;
v385 = v71;
strcpy(v72, "poisonShardSmall_001.png");
if ( v68 > 0xF )
{
v73 = v383[0];
if ( v68 + 1 >= 0x1000 )
{
v73 = *((void **)v383[0] - 1);
if ( (unsigned __int64)((char *)v383[0] - (char *)v73 - 8) > 0x1F )
goto LABEL_311;
}
j_j_free(v73);
}
v383[0] = v72;
}
else
{
v69 = v383[0];
v384 = 24;
memmove(v383[0], "poisonShardSmall_001.png", 0x18u);
v69[24] = 0;
}
v74 = qword_14090BFE0;
if ( !qword_14090BFE0 )
{
v381 = operator new(0x3E8u);
qword_14090BFE0 = sub_1402D6480((__int64)v381);
(*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFE0 + 72LL))(qword_14090BFE0);
v74 = qword_14090BFE0;
}
Stat = GameStatsManager::getStat(v74, &word_140737FF0);
v302 = -24576;
v281 = -24576;
v303 = -256;
v280 = -16777216;
v304 = -181;
v283 = -181;
v284 = 75;
v305 = -256;
v285 = -256;
v286 = 0;
v75 = v388;
if ( v388 >= 0xB )
{
v76 = v386;
if ( v388 > 0xF )
v76 = (void **)v386[0];
v387 = 11;
memmove(v76, "shardPoison", 0xBu);
*((_BYTE *)v76 + 11) = 0;
goto LABEL_250;
}
v77 = v388 >> 1;
if ( v388 <= 0x7FFFFFFFFFFFFFFFLL - (v388 >> 1) )
{
v78 = 15;
if ( v388 + v77 > 0xF )
v78 = v388 + v77;
}
else
{
v78 = 0x7FFFFFFFFFFFFFFFLL;
}
v79 = sub_14003D460(v78 + 1);
v387 = 11;
v388 = v78;
qmemcpy(v79, "shardPoiso", 10);
v80 = aShardpoison[10];
goto LABEL_94;
case 3:
v83 = (char *)sub_14003D460(0x20u);
v390 = 24;
v391 = 31;
strcpy(v83, "shadowShardLabel_001.png");
*(_QWORD *)&v389 = v83;
v84 = v385;
if ( v385 < 0x18 )
{
v86 = v385 >> 1;
if ( v385 <= 0x7FFFFFFFFFFFFFFFLL - (v385 >> 1) )
{
v87 = 31;
if ( v385 + v86 > 0x1F )
v87 = v385 + v86;
}
else
{
v87 = 0x7FFFFFFFFFFFFFFFLL;
}
v88 = (char *)sub_14003D460(v87 + 1);
v384 = 24;
v385 = v87;
strcpy(v88, "shadowShardSmall_001.png");
if ( v84 > 0xF )
{
v89 = v383[0];
if ( v84 + 1 >= 0x1000 )
{
v89 = *((void **)v383[0] - 1);
if ( (unsigned __int64)((char *)v383[0] - (char *)v89 - 8) > 0x1F )
goto LABEL_311;
}
j_j_free(v89);
}
v383[0] = v88;
}
else
{
v85 = v383[0];
v384 = 24;
memmove(v383[0], "shadowShardSmall_001.png", 0x18u);
v85[24] = 0;
}
v90 = qword_14090BFE0;
if ( !qword_14090BFE0 )
{
v382 = operator new(0x3E8u);
qword_14090BFE0 = sub_1402D6480((__int64)v382);
(*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFE0 + 72LL))(qword_14090BFE0);
v90 = qword_14090BFE0;
}
Stat = GameStatsManager::getStat(v90, &word_140737FEC);
v306 = 150;
v281 = 150;
v307 = 13055;
v280 = 855623935;
v308 = 25855;
v283 = 25855;
v284 = -1;
v309 = 255;
v285 = 255;
v286 = -1;
v75 = v388;
if ( v388 < 0xB )
{
v92 = v388 >> 1;
if ( v388 <= 0x7FFFFFFFFFFFFFFFLL - (v388 >> 1) )
{
v93 = 15;
if ( v388 + v92 > 0xF )
v93 = v388 + v92;
}
else
{
v93 = 0x7FFFFFFFFFFFFFFFLL;
}
v79 = sub_14003D460(v93 + 1);
v387 = 11;
v388 = v93;
qmemcpy(v79, "shardShado", 10);
v80 = aShardshadow[10];
LABEL_94:
v79[10] = v80;
v79[11] = 0;
v81 = v79;
if ( v75 > 0xF )
{
v82 = v386[0];
if ( v75 + 1 >= 0x1000 )
{
v82 = *((void **)v386[0] - 1);
if ( (unsigned __int64)((char *)v386[0] - (char *)v82 - 8) > 0x1F )
goto LABEL_311;
}
j_j_free(v82);
}
v386[0] = v81;
}
else
{
v91 = v386;
if ( v388 > 0xF )
v91 = (void **)v386[0];
v387 = 11;
memmove(v91, "shardShadow", 0xBu);
*((_BYTE *)v91 + 11) = 0;
}
goto LABEL_250;
case 4:
v94 = (char *)sub_14003D460(0x20u);
v390 = 22;
v391 = 31;
strcpy(v94, "lavaShardLabel_001.png");
*(_QWORD *)&v389 = v94;
v95 = v385;
if ( v385 < 0x16 )
{
v97 = v385 >> 1;
if ( v385 <= 0x7FFFFFFFFFFFFFFFLL - (v385 >> 1) )
{
v98 = 31;
if ( v97 + v385 > 0x1F )
v98 = v97 + v385;
}
else
{
v98 = 0x7FFFFFFFFFFFFFFFLL;
}
v99 = (char *)sub_14003D460(v98 + 1);
v384 = 22;
v385 = v98;
strcpy(v99, "lavaShardSmall_001.png");
if ( v95 > 0xF )
{
v100 = v383[0];
if ( v95 + 1 >= 0x1000 )
{
v100 = *((void **)v383[0] - 1);
if ( (unsigned __int64)((char *)v383[0] - (char *)v100 - 8) > 0x1F )
goto LABEL_311;
}
j_j_free(v100);
}
v383[0] = v99;
}
else
{
v96 = v383[0];
v384 = 22;
memmove(v383[0], "lavaShardSmall_001.png", 0x16u);
v96[22] = 0;
}
v101 = qword_14090BFE0;
if ( !qword_14090BFE0 )
{
v355 = operator new(0x3E8u);
qword_14090BFE0 = sub_1402D6480((__int64)v355);
(*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFE0 + 72LL))(qword_14090BFE0);
v101 = qword_14090BFE0;
}
Stat = GameStatsManager::getStat(v101, &word_1407380D0);
v310 = 175;
v281 = 175;
v311 = 13055;
v280 = 855572505;
v312 = 13055;
v283 = 13055;
v284 = 50;
v313 = 255;
v285 = 255;
v286 = 0;
v46 = v388;
if ( v388 < 9 )
{
v103 = v388 >> 1;
if ( v388 <= 0x7FFFFFFFFFFFFFFFLL - (v388 >> 1) )
{
v104 = 15;
if ( v388 + v103 > 0xF )
v104 = v388 + v103;
}
else
{
v104 = 0x7FFFFFFFFFFFFFFFLL;
}
v50 = sub_14003D460(v104 + 1);
v387 = 9;
v388 = v104;
*v50 = *(_QWORD *)"shardLava";
v51 = aShardlava[8];
LABEL_42:
*((_BYTE *)v50 + 8) = v51;
*((_BYTE *)v50 + 9) = 0;
v52 = (char *)v50;
if ( v46 > 0xF )
{
v53 = v386[0];
if ( v46 + 1 >= 0x1000 )
{
v53 = *((void **)v386[0] - 1);
if ( (unsigned __int64)((char *)v386[0] - (char *)v53 - 8) > 0x1F )
goto LABEL_311;
}
j_j_free(v53);
}
LABEL_46:
v386[0] = v52;
}
else
{
v102 = v386;
if ( v388 > 0xF )
v102 = (void **)v386[0];
v387 = 9;
memmove(v102, "shardLava", 9u);
*((_BYTE *)v102 + 9) = 0;
}
LABEL_250:
v114 = Stat;
v115 = v289;
if ( Stat >= v289 )
goto LABEL_251;
goto LABEL_252;
case 5:
v105 = (char *)sub_14003D460(0x20u);
v390 = 23;
v391 = 31;
strcpy(v105, "bonusShardLabel_001.png");
*(_QWORD *)&v389 = v105;
v106 = v385;
if ( v385 < 0x17 )
{
v108 = v385 >> 1;
if ( v385 <= 0x7FFFFFFFFFFFFFFFLL - (v385 >> 1) )
{
v109 = 31;
if ( v385 + v108 > 0x1F )
v109 = v385 + v108;
}
else
{
v109 = 0x7FFFFFFFFFFFFFFFLL;
}
v110 = sub_14003D460(v109 + 1);
v384 = 23;
v385 = v109;
qmemcpy(v110, "bonusShardSmall_001.pn", 22);
v110[11] = (unsigned __int8)aBonusshardsmal[22];
if ( v106 > 0xF )
{
v111 = v383[0];
if ( v106 + 1 >= 0x1000 )
{
v111 = *((void **)v383[0] - 1);
if ( (unsigned __int64)((char *)v383[0] - (char *)v111 - 8) > 0x1F )
goto LABEL_311;
}
j_j_free(v111);
}
v383[0] = v110;
}
else
{
v107 = v383[0];
v384 = 23;
memmove(v383[0], "bonusShardSmall_001.png", 0x17u);
v107[23] = 0;
}
Stat = v289;
v314 = -26986;
v281 = -26986;
v315 = -1;
v280 = -26881;
v112 = v388;
if ( v388 < 0xA )
{
v116 = v388 >> 1;
if ( v388 <= 0x7FFFFFFFFFFFFFFFLL - (v388 >> 1) )
{
v117 = 15;
if ( v388 + v116 > 0xF )
v117 = v388 + v116;
}
else
{
v117 = 0x7FFFFFFFFFFFFFFFLL;
}
v118 = (char *)sub_14003D460(v117 + 1);
v387 = 10;
v388 = v117;
strcpy(v118, "shardBonus");
if ( v112 > 0xF )
{
v119 = v386[0];
if ( v112 + 1 >= 0x1000 )
{
v119 = *((void **)v386[0] - 1);
if ( (unsigned __int64)((char *)v386[0] - (char *)v119 - 8) > 0x1F )
goto LABEL_311;
}
j_j_free(v119);
}
v386[0] = v118;
v114 = Stat;
v115 = Stat;
}
else
{
v113 = v386;
if ( v388 > 0xF )
v113 = (void **)v386[0];
v387 = 10;
memmove(v113, "shardBonus", 0xAu);
*((_BYTE *)v113 + 10) = 0;
v114 = Stat;
v115 = Stat;
}
LABEL_251:
if ( v115 == -1 )
LABEL_252:
v289 = v114;
goto LABEL_185;
case 6:
v120 = (char *)sub_14003D460(0x20u);
v390 = 27;
v391 = 31;
strcpy(v120, "shard0201ShardLabel_001.png");
*(_QWORD *)&v389 = v120;
v121 = v385;
if ( v385 < 0x1B )
{
v123 = v385 >> 1;
if ( v385 <= 0x7FFFFFFFFFFFFFFFLL - (v385 >> 1) )
{
v124 = 31;
if ( v385 + v123 > 0x1F )
v124 = v385 + v123;
}
else
{
v124 = 0x7FFFFFFFFFFFFFFFLL;
}
v125 = sub_14003D460(v124 + 1);
v384 = 27;
v385 = v124;
qmemcpy(v125, "shard0201ShardSmall_001.pn", 26);
v125[13] = (unsigned __int8)aShard0201shard[26];
if ( v121 > 0xF )
{
v126 = v383[0];
if ( v121 + 1 >= 0x1000 )
{
v126 = *((void **)v383[0] - 1);
if ( (unsigned __int64)((char *)v383[0] - (char *)v126 - 8) > 0x1F )
goto LABEL_311;
}
j_j_free(v126);
}
v383[0] = v125;
}
else
{
v122 = v383[0];
v384 = 27;
memmove(v383[0], "shard0201ShardSmall_001.png", 0x1Bu);
v122[27] = 0;
}
v127 = qword_14090BFE0;
if ( !qword_14090BFE0 )
{
v356 = operator new(0x3E8u);
qword_14090BFE0 = sub_1402D6480((__int64)v356);
(*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFE0 + 72LL))(qword_14090BFE0);
v127 = qword_14090BFE0;
}
Stat = GameStatsManager::getStat(v127, byte_1407380CC);
v316 = 25251;
v281 = 25251;
v317 = -7939;
v280 = -520272224;
v128 = "shardEarth";
LABEL_181:
sub_140040580(v386, v128);
goto LABEL_182;
case 7:
v154 = (char *)sub_14003D460(0x20u);
v390 = 27;
v391 = 31;
strcpy(v154, "shard0202ShardLabel_001.png");
*(_QWORD *)&v389 = v154;
v155 = v385;
if ( v385 < 0x1B )
{
v157 = v385 >> 1;
if ( v385 <= 0x7FFFFFFFFFFFFFFFLL - (v385 >> 1) )
{
v158 = 31;
if ( v385 + v157 > 0x1F )
v158 = v385 + v157;
}
else
{
v158 = 0x7FFFFFFFFFFFFFFFLL;
}
v159 = sub_14003D460(v158 + 1);
v384 = 27;
v385 = v158;
qmemcpy(v159, "shard0202ShardSmall_001.pn", 26);
v159[13] = (unsigned __int8)aShard0202shard[26];
if ( v155 > 0xF )
{
v160 = v383[0];
if ( v155 + 1 >= 0x1000 )
{
v160 = *((void **)v383[0] - 1);
if ( (unsigned __int64)((char *)v383[0] - (char *)v160 - 8) > 0x1F )
goto LABEL_311;
}
j_j_free(v160);
}
v383[0] = v159;
}
else
{
v156 = v383[0];
v384 = 27;
memmove(v383[0], "shard0202ShardSmall_001.png", 0x1Bu);
v156[27] = 0;
}
v161 = qword_14090BFE0;
if ( !qword_14090BFE0 )
{
v357 = operator new(0x3E8u);
qword_14090BFE0 = sub_1402D6480((__int64)v357);
(*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFE0 + 72LL))(qword_14090BFE0);
v161 = qword_14090BFE0;
}
Stat = GameStatsManager::getStat(v161, byte_1407380D8);
v318 = 150;
v281 = 150;
v319 = 255;
v280 = 16711680;
v162 = v388;
if ( v388 < 0xA )
{
v164 = v388 >> 1;
if ( v388 <= 0x7FFFFFFFFFFFFFFFLL - (v388 >> 1) )
{
v165 = 15;
if ( v164 + v388 > 0xF )
v165 = v164 + v388;
}
else
{
v165 = 0x7FFFFFFFFFFFFFFFLL;
}
v166 = (char *)sub_14003D460(v165 + 1);
v387 = 10;
v388 = v165;
strcpy(v166, "shardBlood");
if ( v162 > 0xF )
{
v167 = v386[0];
if ( v162 + 1 >= 0x1000 )
{
v167 = *((void **)v386[0] - 1);
if ( (unsigned __int64)((char *)v386[0] - (char *)v167 - 8) > 0x1F )
goto LABEL_311;
}
j_j_free(v167);
}
v386[0] = v166;
}
else
{
v163 = v386;
if ( v388 > 0xF )
v163 = (void **)v386[0];
v387 = 10;
memmove(v163, "shardBlood", 0xAu);
*((_BYTE *)v163 + 10) = 0;
}
LABEL_182:
v129 = Stat;
v130 = v290;
if ( Stat >= v290 )
goto LABEL_183;
goto LABEL_184;
case 8:
sub_140040580(&v389, "shard0203ShardLabel_001.png");
sub_140040580(v383, "shard0203ShardSmall_001.png");
v168 = GameStatsManager::sharedState();
Stat = GameStatsManager::getStat(v168, &word_1407380D4);
v320 = -32640;
v281 = -32640;
v321 = -1;
v280 = -32513;
v128 = "shardMetal";
goto LABEL_181;
case 9:
sub_140040580(&v389, "shard0204ShardLabel_001.png");
sub_140040580(v383, "shard0204ShardSmall_001.png");
v169 = GameStatsManager::sharedState();
Stat = GameStatsManager::getStat(v169, byte_1407380E0);
v322 = -1281;
v281 = -1281;
v323 = -1;
v280 = -32832;
v128 = "shardLight";
goto LABEL_181;
case 10:
sub_140040580(&v389, "shard0205ShardLabel_001.png");
sub_140040580(v383, "shard0205ShardSmall_001.png");
v170 = GameStatsManager::sharedState();
Stat = GameStatsManager::getStat(v170, byte_1407380DC);
v324 = 100;
v281 = 100;
v325 = 255;
v280 = 16750205;
v128 = "shardSoul";
goto LABEL_181;
case 11:
v171 = (char *)sub_14003D460(0x20u);
v390 = 23;
v391 = 31;
strcpy(v171, "bonusShardLabel_001.png");
*(_QWORD *)&v389 = v171;
v172 = v385;
if ( v385 < 0x18 )
{
v174 = v385 >> 1;
if ( v385 <= 0x7FFFFFFFFFFFFFFFLL - (v385 >> 1) )
{
v175 = 31;
if ( v385 + v174 > 0x1F )
v175 = v385 + v174;
}
else
{
v175 = 0x7FFFFFFFFFFFFFFFLL;
}
v176 = (char *)sub_14003D460(v175 + 1);
v384 = 24;
v385 = v175;
strcpy(v176, "bonusShard2Small_001.png");
if ( v172 > 0xF )
{
v177 = v383[0];
if ( v172 + 1 >= 0x1000 )
{
v177 = *((void **)v383[0] - 1);
if ( (unsigned __int64)((char *)v383[0] - (char *)v177 - 8) > 0x1F )
LABEL_311:
invoke_watson(nullptr, nullptr, nullptr, 0, 0);
}
j_j_free(v177);
}
v383[0] = v176;
}
else
{
v173 = v383[0];
v384 = 24;
memmove(v383[0], "bonusShard2Small_001.png", 0x18u);
v173[24] = 0;
}
Stat = v290;
v334 = -26986;
v281 = -26986;
v326 = -1;
v280 = -26881;
v178 = v388;
if ( v388 < 0xB )
{
v180 = v388 >> 1;
if ( v388 <= 0x7FFFFFFFFFFFFFFFLL - (v388 >> 1) )
{
v181 = 15;
if ( v388 + v180 > 0xF )
v181 = v388 + v180;
}
else
{
v181 = 0x7FFFFFFFFFFFFFFFLL;
}
v182 = sub_14003D460(v181 + 1);
v387 = 11;
v388 = v181;
qmemcpy(v182, "shardBonus", 10);
v182[5] = (unsigned __int8)aShardbonusb[10];
if ( v178 > 0xF )
{
v183 = v386[0];
if ( v178 + 1 >= 0x1000 )
{
v183 = *((void **)v386[0] - 1);
if ( (unsigned __int64)((char *)v386[0] - (char *)v183 - 8) > 0x1F )
goto LABEL_311;
}
j_j_free(v183);
}
v386[0] = v182;
v129 = Stat;
v130 = Stat;
}
else
{
v179 = v386;
if ( v388 > 0xF )
v179 = (void **)v386[0];
v387 = 11;
memmove(v179, "shardBonusB", 0xBu);
*((_BYTE *)v179 + 11) = 0;
v129 = Stat;
v130 = Stat;
}
LABEL_183:
if ( v130 == -1 )
LABEL_184:
v290 = v129;
LABEL_185:
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v358, 0.0, (float)(v291 - 3 * v35) * -77.0);
cocos2d::CCPoint::operator+(v346, v340, v131);
v132 = (const char *)&v389;
if ( v391 > 0xF )
v132 = (const char *)v389;
v133 = cocos2d::CCSprite::createWithSpriteFrameName(v132);
(*(void (__fastcall **)(_QWORD, struct cocos2d::CCObject *))(**(_QWORD **)(a1 + 584) + 464LL))(
*(_QWORD *)(a1 + 584),
v133);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v359, -20.0, 0.0);
cocos2d::CCPoint::operator+(v340, v347, v134);
(*(void (__fastcall **)(struct cocos2d::CCObject *, char *))(*(_QWORD *)v133 + 184LL))(v133, v347);
cocos2d::CCArray::addObject(v37, v133);
v135 = cocos2d::CCString::createWithFormat((const char *)&word_1406ED6F8, (unsigned int)Stat);
CString = cocos2d::CCString::getCString(v135);
v137 = cocos2d::CCLabelBMFont::create(CString, &qword_140704F78);
(*(void (__fastcall **)(struct cocos2d::CCObject *))(*(_QWORD *)v137 + 160LL))(v137);
(*(void (__fastcall **)(_QWORD, struct cocos2d::CCObject *))(**(_QWORD **)(a1 + 584) + 464LL))(
*(_QWORD *)(a1 + 584),
v137);
v138 = *(_QWORD *)v137;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v360, 0.0, 0.5);
(*(void (__fastcall **)(struct cocos2d::CCObject *, __int64))(v138 + 288))(v137, v139);
v140 = (float *)(*(__int64 (__fastcall **)(struct cocos2d::CCObject *))(*(_QWORD *)v133 + 320LL))(v133);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v361, (float)(*v140 * 0.5) + 5.0, 1.0);
v142 = v141;
v143 = (*(__int64 (__fastcall **)(struct cocos2d::CCObject *))(*(_QWORD *)v133 + 200LL))(v133);
cocos2d::CCPoint::operator+(v143, v348, v142);
(*(void (__fastcall **)(struct cocos2d::CCObject *, char *))(*(_QWORD *)v137 + 184LL))(v137, v348);
cocos2d::CCArray::addObject(v37, v137);
v144 = v383;
if ( v385 > 0xF )
v144 = (void **)v383[0];
v145 = cocos2d::CCSprite::createWithSpriteFrameName((const char *)v144);
(*(void (__fastcall **)(_QWORD, struct cocos2d::CCObject *))(**(_QWORD **)(a1 + 584) + 464LL))(
*(_QWORD *)(a1 + 584),
v145);
v146 = *(_QWORD *)v145;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v362, 0.0, 0.5);
(*(void (__fastcall **)(struct cocos2d::CCObject *, __int64))(v146 + 288))(v145, v147);
v148 = (float *)(*(__int64 (__fastcall **)(struct cocos2d::CCObject *, char *))(*(_QWORD *)v137 + 328LL))(
v137,
v363);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v364, *v148 + 2.0, 0.0);
v150 = v149;
v151 = (*(__int64 (__fastcall **)(struct cocos2d::CCObject *))(*(_QWORD *)v137 + 200LL))(v137);
cocos2d::CCPoint::operator+(v151, v349, v150);
(*(void (__fastcall **)(struct cocos2d::CCObject *, char *))(*(_QWORD *)v145 + 184LL))(v145, v349);
cocos2d::CCArray::addObject(v37, v145);
v152 = 1;
break;
default:
if ( v291 < 6 )
goto LABEL_250;
goto LABEL_182;
}
do
{
v153 = 0;
switch ( v152 )
{
case 1:
v153 = 5;
break;
case 2:
v153 = 15;
break;
case 3:
v153 = 35;
break;
case 4:
v153 = 65;
break;
case 5:
v153 = 100;
break;
}
v184 = v386;
if ( v388 > 0xF )
v184 = (void **)v386[0];
v185 = cocos2d::CCString::createWithFormat("geometry.ach.%s%02d", (const char *)v184, v152);
v186 = cocos2d::CCString::getCString(v185);
*(_OWORD *)Src = 0;
v393 = 0;
v394 = 0;
v187 = -1;
do
++v187;
while ( v186[v187] );
sub_14003D230(Src, v186, v187);
v337 = 0;
v336 = 0;
v365 = &v343;
v343 = 0;
v344 = 0;
v345 = 0;
v189 = Src;
v292 = Src[0];
if ( v394 > 0xF )
v189 = (void **)Src[0];
v190 = v393;
if ( v393 > 0x7FFFFFFFFFFFFFFFLL )
sub_140009D90(v188);
if ( v393 > 0xF )
{
v191 = v393 | 0xF;
if ( (v393 | 0xF) <= 0x7FFFFFFFFFFFFFFFLL )
{
if ( v191 < 0x16 )
v191 = 22;
}
else
{
v191 = 0x7FFFFFFFFFFFFFFFLL;
}
*(_QWORD *)&v343 = sub_14003D460(v191 + 1);
v344 = v190;
v345 = v191;
memcpy((void *)v343, v189, v190 + 1);
}
else
{
v344 = v393;
v345 = 15;
v343 = *(_OWORD *)v189;
}
if ( !qword_14090BFD0 )
{
v366 = operator new(0x6E8u);
qword_14090BFD0 = GameManager::GameManager((__int64)v366);
(*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0);
}
GameManager::getUnlockForAchievement(v188, (__int64 *)&v343, &v336, &v337);
v192 = v337;
if ( v337 > 0 )
{
v193 = (char *)operator new(0x278u);
v367 = v193;
cocos2d::CCSprite::CCSprite((cocos2d::CCSprite *)v193);
*(_QWORD *)v193 = &GJItemIcon::`vftable';
*((_QWORD *)v193 + 40) = &GJItemIcon::`vftable';
*((_QWORD *)v193 + 43) = &GJItemIcon::`vftable';
*((_QWORD *)v193 + 75) = 0;
*((_DWORD *)v193 + 152) = 0;
cocos2d::CCSize::CCSize((cocos2d::CCSize *)(v193 + 612));
v193[620] = 0;
*((_QWORD *)v193 + 78) = 0;
v327 = HIWORD(v280);
v328 = v280;
v329 = v281;
v330 = BYTE1(v280);
if ( GJItemIcon::init((__int64)v193, v192, v336, (__int64)&v329, (__int64)&v327, 0, v279, 0) )
{
cocos2d::CCObject::autorelease((cocos2d::CCObject *)v193);
}
else
{
(*(void (__fastcall **)(char *, __int64))(*(_QWORD *)v193 + 8LL))(v193, 1);
v193 = nullptr;
}
(*(void (__fastcall **)(char *))(*(_QWORD *)v193 + 160LL))(v193);
if ( Stat < (int)v153 )
{
GJItemIcon::changeToLockedState(v193);
v331 = 12375;
v332 = 12375;
v333 = 29;
GJItemIcon::darkenStoreItem((__int64)v193, (__int64)&v332);
}
v368 = operator new(0x208u);
v194 = (cocos2d::CCObject *)CCMenuItemSpriteExtra::CCMenuItemSpriteExtra((__int64)v368);
if ( v194 )
{
if ( CCMenuItemSpriteExtra::init((__int64 *)v194, (__int64 *)v193, 0, a1, (__int64)ShardsPage::onIconInfo) )
{
cocos2d::CCObject::autorelease(v194);
LABEL_284:
(*(void (__fastcall **)(_QWORD, cocos2d::CCObject *))(**(_QWORD **)(a1 + 552) + 464LL))(
*(_QWORD *)(a1 + 552),
v194);
v195 = *(_QWORD *)v194;
v196 = (*(__int64 (__fastcall **)(struct cocos2d::CCSprite *))(*(_QWORD *)v350 + 320LL))(v350);
(*(void (__fastcall **)(cocos2d::CCObject *, __int64))(v195 + 312))(v194, v196);
v197 = *(_QWORD *)v193;
v198 = *(float *)((*(__int64 (__fastcall **)(cocos2d::CCObject *))(*(_QWORD *)v194 + 320LL))(v194) + 4)
* 0.5;
v199 = (float *)(*(__int64 (__fastcall **)(cocos2d::CCObject *))(*(_QWORD *)v194 + 320LL))(v194);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v369, *v199 * 0.5, v198);
(*(void (__fastcall **)(char *, __int64))(v197 + 184))(v193, v200);
(*(void (__fastcall **)(cocos2d::CCObject *, _QWORD))(*(_QWORD *)v194 + 64LL))(v194, (unsigned int)v291);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v370, (float)(v152 - 3) * 70.0, -30.0);
cocos2d::CCPoint::operator+(v340, v339, v201);
v202 = *(_QWORD *)v194;
v203 = *(_QWORD *)(a1 + 552);
cocos2d::CCNode::convertToWorldSpace(*(_QWORD *)(a1 + 584), v371, v339);
cocos2d::CCNode::convertToNodeSpace(v203, v372, v204);
(*(void (__fastcall **)(cocos2d::CCObject *, __int64))(v202 + 184))(v194, v205);
v206 = v335;
cocos2d::CCArray::addObject(v335, v194);
v207 = Stat;
if ( Stat < (int)v153 )
{
v208 = cocos2d::CCString::createWithFormat((const char *)&word_1406ED6F8, v153);
v209 = cocos2d::CCString::getCString(v208);
v210 = cocos2d::CCLabelBMFont::create(v209, &qword_140704F78);
(*(void (__fastcall **)(struct cocos2d::CCObject *))(*(_QWORD *)v210 + 160LL))(v210);
(*(void (__fastcall **)(_QWORD, struct cocos2d::CCObject *))(**(_QWORD **)(a1 + 584) + 464LL))(
*(_QWORD *)(a1 + 584),
v210);
v211 = *(_QWORD *)v210;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v373, 0.0, 0.5);
(*(void (__fastcall **)(struct cocos2d::CCObject *, __int64))(v211 + 288))(v210, v212);
if ( v153 < 0xA )
v213 = -8.0;
else
v213 = -10.0;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v380, v213, -22.0);
cocos2d::CCPoint::operator+(v339, v351, v214);
(*(void (__fastcall **)(struct cocos2d::CCObject *, char *))(*(_QWORD *)v210 + 184LL))(v210, v351);
(**((void (__fastcall ***)(__int64, __int16 *))v210 + 46))((__int64)v210 + 368, &v283);
cocos2d::CCArray::addObject(v206, v210);
v215 = v383;
if ( v385 > 0xF )
v215 = (void **)v383[0];
v216 = cocos2d::CCSprite::createWithSpriteFrameName((const char *)v215);
(*(void (__fastcall **)(_QWORD, struct cocos2d::CCObject *))(**(_QWORD **)(a1 + 584) + 464LL))(
*(_QWORD *)(a1 + 584),
v216);
(*(void (__fastcall **)(struct cocos2d::CCObject *))(*(_QWORD *)v216 + 160LL))(v216);
v217 = *(_QWORD *)v216;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v375, 0.0, 0.5);
(*(void (__fastcall **)(struct cocos2d::CCObject *, __int64))(v217 + 288))(v216, v218);
v219 = (float *)(*(__int64 (__fastcall **)(struct cocos2d::CCObject *, char *))(*(_QWORD *)v210 + 328LL))(
v210,
v376);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v377, *v219 + 2.0, 0.0);
v221 = v220;
v222 = (*(__int64 (__fastcall **)(struct cocos2d::CCObject *))(*(_QWORD *)v210 + 200LL))(v210);
cocos2d::CCPoint::operator+(v222, v352, v221);
(*(void (__fastcall **)(struct cocos2d::CCObject *, char *))(*(_QWORD *)v216 + 184LL))(v216, v352);
cocos2d::CCArray::addObject(v335, v216);
v207 = Stat;
}
if ( (unsigned int)v152 > 1 )
{
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v378, -51.0, 0.0);
cocos2d::CCPoint::operator+(v339, v293, v223);
v224 = cocos2d::CCSprite::createWithSpriteFrameName("whiteSquare20_001.png");
v225 = *(_QWORD *)v224;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v354, 0.0, 0.5);
(*(void (__fastcall **)(struct cocos2d::CCObject *, __int64))(v225 + 288))(v224, v226);
(*(void (__fastcall **)(struct cocos2d::CCObject *, char *))(*(_QWORD *)v224 + 184LL))(v224, v293);
(*(void (__fastcall **)(_QWORD, struct cocos2d::CCObject *, _QWORD))(**(_QWORD **)(a1 + 584) + 456LL))(
*(_QWORD *)(a1 + 584),
v224,
0);
v227 = *(_QWORD *)v224;
(*(void (__fastcall **)(struct cocos2d::CCObject *))(*(_QWORD *)v224 + 320LL))(v224);
(*(void (__fastcall **)(struct cocos2d::CCObject *))(v227 + 120))(v224);
v228 = *(_QWORD *)v224;
(*(__int64 (__fastcall **)(struct cocos2d::CCObject *))(*(_QWORD *)v224 + 320LL))(v224);
(*(void (__fastcall **)(struct cocos2d::CCObject *))(v228 + 136))(v224);
(**((void (__fastcall ***)(__int64, void *))v224 + 40))((__int64)v224 + 320, &unk_1407046B0);
LOBYTE(v229) = 110;
(*(void (__fastcall **)(__int64, __int64))(*((_QWORD *)v224 + 40) + 40LL))((__int64)v224 + 320, v229);
cocos2d::CCArray::addObject(v335, v224);
v230 = 0;
switch ( v152 )
{
case 2:
v230 = 5;
break;
case 3:
v230 = 15;
break;
case 4:
v230 = 35;
break;
case 5:
v230 = 65;
break;
}
if ( fminf(1.0, (float)(v207 - v230) / (float)(int)(v153 - v230)) > 0.0 )
{
v231 = cocos2d::CCSprite::createWithSpriteFrameName("whiteSquare20_001.png");
v232 = *(_QWORD *)v231;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v341, 0.0, 0.5);
(*(void (__fastcall **)(struct cocos2d::CCObject *, __int64))(v232 + 288))(v231, v233);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v342, 2.0, 0.0);
cocos2d::CCPoint::operator+(v293, v353, v234);
(*(void (__fastcall **)(struct cocos2d::CCObject *, char *))(*(_QWORD *)v231 + 184LL))(v231, v353);
(*(void (__fastcall **)(_QWORD, struct cocos2d::CCObject *, __int64))(**(_QWORD **)(a1 + 584) + 456LL))(
*(_QWORD *)(a1 + 584),
v231,
1);
v235 = *(_QWORD *)v231;
(*(__int64 (__fastcall **)(struct cocos2d::CCObject *))(*(_QWORD *)v231 + 320LL))(v231);
(*(void (__fastcall **)(struct cocos2d::CCObject *))(v235 + 120))(v231);
v236 = *(_QWORD *)v231;
(*(__int64 (__fastcall **)(struct cocos2d::CCObject *))(*(_QWORD *)v231 + 320LL))(v231);
(*(void (__fastcall **)(struct cocos2d::CCObject *))(v236 + 136))(v231);
(**((void (__fastcall ***)(__int64, __int16 *))v231 + 40))((__int64)v231 + 320, &v285);
cocos2d::CCArray::addObject(v335, v231);
}
}
goto LABEL_302;
}
(*(void (__fastcall **)(cocos2d::CCObject *, __int64))(*(_QWORD *)v194 + 8LL))(v194, 1);
}
v194 = nullptr;
goto LABEL_284;
}
LABEL_302:
if ( v394 > 0xF )
{
v237 = v292;
if ( v394 + 1 >= 0x1000 )
{
v237 = *((_BYTE **)v292 - 1);
if ( (unsigned __int64)(v292 - v237 - 8) > 0x1F )
invoke_watson(nullptr, nullptr, nullptr, 0, 0);
}
j_j_free(v237);
}
++v152;
}
while ( v152 <= 5 );
sub_14003D310((__int64)v386);
sub_14003D310((__int64)v383);
sub_14003D310((__int64)&v389);
v34 = (unsigned int)(v291 + 1);
v291 = v34;
}
while ( (int)v34 < 12 );
v238 = cocos2d::CCMenu::create(v34);
v239 = v288 * 0.5;
v240 = (__int64 *)cocos2d::CCSprite::createWithSpriteFrameName("GJ_arrow_01_001.png");
v342[0] = (__int64)operator new(0x208u);
v241 = (__int64 *)CCMenuItemSpriteExtra::CCMenuItemSpriteExtra(v342[0]);
v242 = (cocos2d::CCObject *)v241;
if ( v241 )
{
if ( CCMenuItemSpriteExtra::init(v241, v240, 0, a1, (__int64)ShardsPage::onSwitchPage) )
{
cocos2d::CCObject::autorelease(v242);
goto LABEL_315;
}
(*(void (__fastcall **)(cocos2d::CCObject *, __int64))(*(_QWORD *)v242 + 8LL))(v242, 1);
}
v242 = nullptr;
LABEL_315:
*(_QWORD *)(a1 + 672) = v242;
(*(void (__fastcall **)(__int64, cocos2d::CCObject *))(*(_QWORD *)v238 + 464LL))(v238, v242);
v243 = **(_QWORD **)(a1 + 672);
v245 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v244);
v246 = cocos2d::CCDirector::getScreenLeft(v245) + 24.0;
v247 = *(_QWORD *)(a1 + 672);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v342, v246, v239);
cocos2d::CCNode::convertToNodeSpace(v238, v341, v248);
(*(void (__fastcall **)(__int64, __int64))(v243 + 184))(v247, v249);
(*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(a1 + 672) + 64LL))(*(_QWORD *)(a1 + 672), 0);
*(_DWORD *)(*(_QWORD *)(a1 + 672) + 372LL) = 1068708659;
v250 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_arrow_01_001.png");
cocos2d::CCSprite::setFlipX(v250, 1);
v342[0] = (__int64)operator new(0x208u);
v251 = (__int64 *)CCMenuItemSpriteExtra::CCMenuItemSpriteExtra(v342[0]);
v252 = (cocos2d::CCObject *)v251;
if ( v251 )
{
if ( CCMenuItemSpriteExtra::init(v251, (__int64 *)v250, 0, a1, (__int64)ShardsPage::onSwitchPage) )
{
cocos2d::CCObject::autorelease(v252);
goto LABEL_320;
}
(*(void (__fastcall **)(cocos2d::CCObject *, __int64))(*(_QWORD *)v252 + 8LL))(v252, 1);
}
v252 = nullptr;
LABEL_320:
*(_QWORD *)(a1 + 680) = v252;
(*(void (__fastcall **)(__int64, cocos2d::CCObject *))(*(_QWORD *)v238 + 464LL))(v238, v252);
v253 = **(_QWORD **)(a1 + 680);
v255 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v254);
v256 = cocos2d::CCDirector::getScreenRight(v255) - 24.0;
v257 = *(_QWORD *)(a1 + 680);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v342, v256, v239);
cocos2d::CCNode::convertToNodeSpace(v238, v341, v258);
(*(void (__fastcall **)(__int64, __int64))(v253 + 184))(v257, v259);
(*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 680) + 64LL))(*(_QWORD *)(a1 + 680), 1);
*(_DWORD *)(*(_QWORD *)(a1 + 680) + 372LL) = 1068708659;
(*(void (__fastcall **)(_QWORD, __int64, __int64))(**(_QWORD **)(a1 + 584) + 456LL))(*(_QWORD *)(a1 + 584), v238, 10);
v260 = cocos2d::CCSprite::createWithSpriteFrameName("tier1Icon_001.png");
*(_QWORD *)(a1 + 688) = v260;
(*(void (__fastcall **)(_QWORD, struct cocos2d::CCSprite *, __int64))(**(_QWORD **)(a1 + 584) + 456LL))(
*(_QWORD *)(a1 + 584),
v260,
10);
v261 = **(_QWORD **)(a1 + 688);
v262 = *(_QWORD *)(a1 + 688);
cocos2d::CCPoint::CCPoint(
(cocos2d::CCPoint *)v354,
(float)((float)(v287 * 0.5) + 210.0) - 18.0,
(float)((float)(v288 * 0.5) + 140.0) - 18.0);
(*(void (__fastcall **)(__int64, __int64))(v261 + 184))(v262, v263);
if ( *(_DWORD *)(a1 + 696) )
{
*(_DWORD *)(a1 + 696) = 0;
v264 = cocos2d::CCDictionary::count(*(cocos2d::CCDictionary **)(a1 + 664));
if ( v264 > 0 )
{
v265 = 0;
do
{
v266 = cocos2d::CCDictionary::objectForKey(*(cocos2d::CCDictionary **)(a1 + 664), v265);
if ( v266 )
{
v268 = *((unsigned int **)v266 + 7);
v269 = *v268;
if ( (_DWORD)v269 )
{
v270 = *((_QWORD **)v268 + 2);
for ( j = &v270[v269 - 1]; v270 <= j; ++v270 )
{
if ( !*v270 )
break;
LOBYTE(v267) = v13 == 0;
(*(void (__fastcall **)(_QWORD, __int64))(*(_QWORD *)*v270 + 336LL))(*v270, v267);
}
}
}
++v13;
++v265;
}
while ( v13 < v264 );
}
(*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(a1 + 672) + 336LL))(*(_QWORD *)(a1 + 672), 0);
LOBYTE(v272) = 1;
(*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 680) + 336LL))(*(_QWORD *)(a1 + 680), v272);
v273 = **(_QWORD **)(a1 + 688);
v274 = *(_QWORD *)(a1 + 688);
v277 = (cocos2d::CCSpriteFrameCache *)cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(v276, v275);
v278 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v277, "tier1Icon_001.png");
(*(void (__fastcall **)(__int64, struct cocos2d::CCSpriteFrame *))(v273 + 1008))(v274, v278);
}
return 1;
}