//
// CurrencyRewardLayer::init from 0x6054d0 to 0x6069de (5390 bytes)
//
// 1 xrefs:
// > CurrencyRewardLayer::create @ 0x606b34
//
// 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:54:44 +0000
//
cocos2d::CCDirector *__fastcall CurrencyRewardLayer::init(
float a1,
int a2,
int a3,
int a4,
int a5,
int a6,
int a7,
int a8,
int a9,
const cocos2d::CCPoint *a10,
int a11,
float a12,
float a13)
{
int v14; // r5
cocos2d::CCDirector *v15; // r0
cocos2d::CCTextureCache *WinSize; // r0
cocos2d::CCTextureCache *v17; // r0
cocos2d::CCSpriteBatchNode *v18; // r6
unsigned int v19; // r2
int *v20; // r0
int v21; // r3
unsigned int v22; // r2
int v23; // r0
int v24; // r3
cocos2d::CCNode *v25; // r0
int v26; // r0
GameStatsManager *v27; // r0
GameStatsManager *v28; // r0
GameStatsManager *v29; // r0
GameStatsManager *v30; // r0
GameStatsManager *v31; // r0
GameStatsManager *v32; // r0
GameStatsManager *v33; // r0
GameStatsManager *v34; // r0
int v35; // r3
GameStatsManager *v36; // r0
const char *v37; // r1
int *v38; // r0
int v39; // r3
GameStatsManager *v40; // r0
const char *v41; // r1
cocos2d::CCString *v42; // r0
cocos2d::CCLabelBMFont *CString; // r0
const char *v44; // r2
int v45; // r0
int v46; // r7
void (__fastcall *v47)(int, _DWORD *); // r8
int v48; // r0
void (__fastcall *v49)(int, _DWORD *); // r2
int v50; // r6
void (__fastcall *v51)(int, _DWORD *); // r8
const cocos2d::CCSize *v52; // r0
float v53; // s14
int v54; // r0
float v55; // r0
const char *v56; // r1
int v57; // r6
void (__fastcall *v58)(int, _DWORD *); // r10
int v59; // r11
const cocos2d::CCPoint *v60; // r9
cocos2d::CCSequence *v61; // r7
cocos2d::CCFiniteTimeAction *v62; // r0
cocos2d::CCRepeatForever *v63; // r0
cocos2d::CCActionInterval *v64; // r1
cocos2d::CCAction *v65; // r0
bool v66; // r2
cocos2d::CCParticleSystem *v67; // r7
void (__fastcall *v68)(cocos2d::CCParticleSystem *, _DWORD *); // r9
void (__fastcall *v69)(cocos2d::CCParticleSystem *, _DWORD *); // r9
void (__fastcall *v70)(cocos2d::CCParticleSystem *, _DWORD *); // r2
void (__fastcall *v71)(cocos2d::CCParticleSystem *, _DWORD *); // r3
void (__fastcall *v72)(cocos2d::CCParticleSystem *, _DWORD *); // r9
void (__fastcall *v73)(cocos2d::CCParticleSystem *, int); // r8
int v74; // r0
cocos2d::CCString *v75; // r0
cocos2d::CCLabelBMFont *v76; // r0
const char *v77; // r2
int v78; // r0
int v79; // r7
void (__fastcall *v80)(int, _DWORD *); // r8
int v81; // r0
void (__fastcall *v82)(int, _DWORD *); // r3
int v83; // r6
void (__fastcall *v84)(int, _DWORD *); // r8
const cocos2d::CCSize *v85; // r0
float v86; // s14
int v87; // r0
float v88; // r0
int v89; // r2
const char *v90; // r1
int v91; // r6
void (__fastcall *v92)(int, _DWORD *); // r10
int v93; // r11
const cocos2d::CCPoint *v94; // r9
cocos2d::CCSequence *v95; // r7
cocos2d::CCFiniteTimeAction *v96; // r0
cocos2d::CCRepeatForever *v97; // r0
cocos2d::CCActionInterval *v98; // r1
cocos2d::CCAction *v99; // r0
bool v100; // r2
cocos2d::CCParticleSystem *v101; // r7
void (__fastcall *v102)(cocos2d::CCParticleSystem *, _DWORD *); // r9
void (__fastcall *v103)(cocos2d::CCParticleSystem *, _DWORD *); // r9
void (__fastcall *v104)(cocos2d::CCParticleSystem *, _DWORD *); // r2
void (__fastcall *v105)(cocos2d::CCParticleSystem *, _DWORD *); // r3
void (__fastcall *v106)(cocos2d::CCParticleSystem *, _DWORD *); // r9
void (__fastcall *v107)(cocos2d::CCParticleSystem *, int); // r8
int v108; // r0
cocos2d::CCString *v109; // r0
cocos2d::CCLabelBMFont *v110; // r0
const char *v111; // r2
int v112; // r0
int v113; // r7
void (__fastcall *v114)(int, _DWORD *); // r8
int v115; // r0
void (__fastcall *v116)(int, _DWORD *); // r2
int v117; // r6
void (__fastcall *v118)(int, _DWORD *); // r8
const cocos2d::CCSize *v119; // r0
float v120; // s14
int v121; // r0
float v122; // r0
int v123; // r2
const char *v124; // r1
int v125; // r6
void (__fastcall *v126)(int, _DWORD *); // r10
int v127; // r11
const cocos2d::CCPoint *v128; // r9
cocos2d::CCSequence *v129; // r7
cocos2d::CCFiniteTimeAction *v130; // r0
cocos2d::CCRepeatForever *v131; // r0
cocos2d::CCActionInterval *v132; // r1
cocos2d::CCAction *v133; // r0
bool v134; // r2
cocos2d::CCParticleSystem *v135; // r7
void (__fastcall *v136)(cocos2d::CCParticleSystem *, _DWORD *); // r9
void (__fastcall *v137)(cocos2d::CCParticleSystem *, _DWORD *); // r9
void (__fastcall *v138)(cocos2d::CCParticleSystem *, _DWORD *); // r2
void (__fastcall *v139)(cocos2d::CCParticleSystem *, _DWORD *); // r3
void (__fastcall *v140)(cocos2d::CCParticleSystem *, _DWORD *); // r9
void (__fastcall *v141)(cocos2d::CCParticleSystem *, int); // r8
int v142; // r0
cocos2d::CCString *v143; // r0
cocos2d::CCLabelBMFont *v144; // r0
const char *v145; // r2
int v146; // r0
int v147; // r7
void (__fastcall *v148)(int, _DWORD *); // r8
int v149; // r0
void (__fastcall *v150)(int, _DWORD *); // r2
int v151; // r6
void (__fastcall *v152)(int, _DWORD *); // r8
const cocos2d::CCSize *v153; // r0
float v154; // s14
int v155; // r0
float v156; // r0
int v157; // r2
const char *v158; // r1
int v159; // r6
void (__fastcall *v160)(int, _DWORD *); // r10
int v161; // r11
const cocos2d::CCPoint *v162; // r9
bool v163; // r2
cocos2d::CCParticleSystem *v164; // r7
void (__fastcall *v165)(cocos2d::CCParticleSystem *, _DWORD *); // r9
void (__fastcall *v166)(cocos2d::CCParticleSystem *, _DWORD *); // r9
void (__fastcall *v167)(cocos2d::CCParticleSystem *, _DWORD *); // r2
void (__fastcall *v168)(cocos2d::CCParticleSystem *, _DWORD *); // r3
void (__fastcall *v169)(cocos2d::CCParticleSystem *, _DWORD *); // r9
void (__fastcall *v170)(cocos2d::CCParticleSystem *, int); // r8
int v171; // r0
cocos2d::CCString *v172; // r0
cocos2d::CCLabelBMFont *v173; // r0
const char *v174; // r2
int v175; // r0
int v176; // r7
void (__fastcall *v177)(int, _DWORD *); // r8
int v178; // r0
void (__fastcall *v179)(int, _DWORD *); // r2
int v180; // r6
void (__fastcall *v181)(int, _DWORD *); // r8
const cocos2d::CCSize *v182; // r0
float v183; // s14
int v184; // r0
float v185; // r0
int v186; // r2
CurrencySprite *v187; // r6
void (__fastcall *v188)(CurrencySprite *, _DWORD *); // r10
int v189; // r11
void (__fastcall *v190)(CurrencySprite *, _DWORD); // r8
float v191; // r1
const cocos2d::CCPoint *v192; // r8
cocos2d::CCString *v193; // r0
cocos2d::CCLabelBMFont *v194; // r0
const char *v195; // r2
int v196; // r0
int v197; // r7
void (__fastcall *v198)(int, _DWORD *); // r8
void (*v199)(void); // r2
int v200; // r6
void (__fastcall *v201)(int, _DWORD *); // r8
const cocos2d::CCSize *v202; // r0
float v203; // s14
int v204; // r0
float v205; // r0
int v206; // r2
CurrencySprite *v207; // r6
void (__fastcall *v208)(CurrencySprite *, _DWORD *); // r10
int v209; // r11
void (__fastcall *v210)(CurrencySprite *, _DWORD); // r8
float v211; // r1
const cocos2d::CCPoint *v212; // r8
const cocos2d::CCPoint *v213; // r0
int v214; // r6
void (__fastcall *v215)(int, _DWORD *); // r9
int v216; // r10
const cocos2d::CCPoint *v217; // r2
cocos2d::CCEaseInOut *v218; // r0
float v219; // r2
cocos2d::CCAction *v220; // r0
cocos2d::CCArray *v221; // r0
cocos2d::CCObject *v222; // r0
float v223; // s19
float v224; // s15
float v225; // s15
int v226; // r6
float v227; // s16
float v228; // s18
unsigned __int8 v230; // [sp+0h] [bp-8Ch]
unsigned __int8 v231; // [sp+0h] [bp-8Ch]
unsigned __int8 v232; // [sp+0h] [bp-8Ch]
unsigned __int8 v233; // [sp+0h] [bp-8Ch]
cocos2d::CCDirector *v237; // [sp+18h] [bp-74h]
float v238[4]; // [sp+24h] [bp-68h] BYREF
_BYTE v239[8]; // [sp+34h] [bp-58h] BYREF
float v240; // [sp+3Ch] [bp-50h] BYREF
float v241; // [sp+40h] [bp-4Ch]
_BYTE v242[8]; // [sp+44h] [bp-48h] BYREF
float v243; // [sp+4Ch] [bp-40h] BYREF
float v244; // [sp+50h] [bp-3Ch]
_BYTE v245[8]; // [sp+54h] [bp-38h] BYREF
int v246[3]; // [sp+5Ch] [bp-30h] BYREF
int v247[3]; // [sp+68h] [bp-24h] BYREF
_DWORD v248[4]; // [sp+74h] [bp-18h] BYREF
v14 = a6;
v15 = (cocos2d::CCDirector *)cocos2d::CCLayer::init((cocos2d::CCLayer *)LODWORD(a1));
v237 = v15;
if ( v15 )
{
*(float *)(LODWORD(a1) + 412) = a13;
*(_DWORD *)(LODWORD(a1) + 476) = a11;
if ( a6 && a6 == a8 )
{
a7 += a9;
a9 = 0;
a8 = 0;
}
cocos2d::CCDirector::sharedDirector(v15);
WinSize = (cocos2d::CCTextureCache *)cocos2d::CCDirector::getWinSize((cocos2d::CCDirector *)v238);
v17 = (cocos2d::CCTextureCache *)cocos2d::CCTextureCache::sharedTextureCache(WinSize);
v18 = (cocos2d::CCSpriteBatchNode *)cocos2d::CCTextureCache::addImage(v17, "GJ_GameSheet03.png", 0);
v20 = (int *)cocos2d::CCSpriteBatchNode::createWithTexture(
v18,
(cocos2d::CCTexture2D *)((char *)&dword_1C + 1),
v19);
*(_DWORD *)(LODWORD(a1) + 376) = v20;
v21 = *v20;
LODWORD(v238[2]) = 770;
LODWORD(v238[3]) = 1;
(*(void (__fastcall **)(int *, int, int))(v21 + 456))(v20, 770, 1);
(*(void (__fastcall **)(float, _DWORD, int))(*(_DWORD *)LODWORD(a1) + 232))(
COERCE_FLOAT(LODWORD(a1)),
*(_DWORD *)(LODWORD(a1) + 376),
1);
v23 = cocos2d::CCSpriteBatchNode::createWithTexture(v18, (cocos2d::CCTexture2D *)((char *)&dword_1C + 1), v22);
v24 = *(_DWORD *)LODWORD(a1);
*(_DWORD *)(LODWORD(a1) + 372) = v23;
v25 = (cocos2d::CCNode *)(*(int (__fastcall **)(float, int, int))(v24 + 232))(COERCE_FLOAT(LODWORD(a1)), v23, 2);
v26 = cocos2d::CCNode::create(v25);
*(_DWORD *)(LODWORD(a1) + 468) = v26;
(*(void (__fastcall **)(int, void *))(*(_DWORD *)v26 + 160))(v26, &unk_D2C848);
(*(void (__fastcall **)(float, _DWORD, int))(*(_DWORD *)LODWORD(a1) + 232))(
COERCE_FLOAT(LODWORD(a1)),
*(_DWORD *)(LODWORD(a1) + 468),
4);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v239, v238[0] - 40.0, (float)(v238[1] - 5.0) + a12);
v27 = (GameStatsManager *)(*(int (__fastcall **)(_DWORD, _BYTE *))(**(_DWORD **)(LODWORD(a1) + 468) + 92))(
*(_DWORD *)(LODWORD(a1) + 468),
v239);
v28 = (GameStatsManager *)GameStatsManager::sharedState(v27);
v29 = (GameStatsManager *)(GameStatsManager::getStat(v28, "14") - a2);
*(_DWORD *)(LODWORD(a1) + 380) = v29;
v30 = (GameStatsManager *)GameStatsManager::sharedState(v29);
v31 = (GameStatsManager *)(GameStatsManager::getStat(v30, "6") - a3);
*(_DWORD *)(LODWORD(a1) + 384) = v31;
v32 = (GameStatsManager *)GameStatsManager::sharedState(v31);
v33 = (GameStatsManager *)(GameStatsManager::getStat(v32, "28") - a4);
*(_DWORD *)(LODWORD(a1) + 388) = v33;
v34 = (GameStatsManager *)GameStatsManager::sharedState(v33);
*(_DWORD *)(LODWORD(a1) + 392) = GameStatsManager::getStat(v34, "13") - a5;
CurrencySprite::spriteTypeToStat(v246, a6);
if ( (v246[0] & 1) != 0 )
v35 = v246[1];
else
v35 = (int)LOBYTE(v246[0]) >> 1;
if ( v35 )
{
v36 = (GameStatsManager *)GameStatsManager::sharedState((GameStatsManager *)(LOBYTE(v246[0]) << 31));
if ( (v246[0] & 1) != 0 )
v37 = (const char *)v246[2];
else
v37 = (char *)v246 + 1;
*(_DWORD *)(LODWORD(a1) + 396) = GameStatsManager::getStat(v36, v37) - a7;
}
else
{
v14 = 0;
}
v38 = CurrencySprite::spriteTypeToStat(v247, a8);
if ( (v247[0] & 1) != 0 )
v39 = v247[1];
else
v39 = (int)LOBYTE(v247[0]) >> 1;
if ( v39 )
{
v40 = (GameStatsManager *)GameStatsManager::sharedState((GameStatsManager *)v38);
if ( (v247[0] & 1) != 0 )
v41 = (const char *)v247[2];
else
v41 = (char *)v247 + 1;
*(_DWORD *)(LODWORD(a1) + 400) = GameStatsManager::getStat(v40, v41) - a9;
}
else
{
a8 = 0;
}
*(_DWORD *)(LODWORD(a1) + 472) = 0;
if ( a2 > 0 )
{
v42 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(
(cocos2d::CCString *)"%i",
*(const char **)(LODWORD(a1) + 380));
CString = (cocos2d::CCLabelBMFont *)cocos2d::CCString::getCString(v42);
v45 = cocos2d::CCLabelBMFont::create(CString, "bigFont.fnt", v44);
*(_DWORD *)(LODWORD(a1) + 324) = v45;
(*(void (__fastcall **)(_DWORD, int, int))(**(_DWORD **)(LODWORD(a1) + 468) + 232))(
*(_DWORD *)(LODWORD(a1) + 468),
v45,
10);
v46 = *(_DWORD *)(LODWORD(a1) + 324);
v47 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v46 + 148);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v248, 1.0, 1.0);
v47(v46, v248);
(*(void (__fastcall **)(_DWORD, int))(**(_DWORD **)(LODWORD(a1) + 324) + 80))(
*(_DWORD *)(LODWORD(a1) + 324),
1058642330);
v48 = *(_DWORD *)(LODWORD(a1) + 324);
v49 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v48 + 536);
LOWORD(v248[0]) = -106;
BYTE2(v248[0]) = -1;
v49(v48, v248);
v50 = *(_DWORD *)(LODWORD(a1) + 324);
v51 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v50 + 92);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v248, 0.0, (float)(-30 * *(_DWORD *)(LODWORD(a1) + 472)));
v51(v50, v248);
v52 = (const cocos2d::CCSize *)(*(int (__fastcall **)(_DWORD))(**(_DWORD **)(LODWORD(a1) + 324) + 164))(*(_DWORD *)(LODWORD(a1) + 324));
cocos2d::CCSize::CCSize((cocos2d::CCSize *)&v243, v52);
v53 = COERCE_FLOAT((*(int (__fastcall **)(_DWORD))(**(_DWORD **)(LODWORD(a1) + 324) + 84))(*(_DWORD *)(LODWORD(a1) + 324)));
v54 = *(_DWORD *)(LODWORD(a1) + 324);
v243 = v243 * v53;
v55 = (*(float (__fastcall **)(int))(*(_DWORD *)v54 + 84))(v54);
v244 = v55 * v244;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v245, -(float)(v243 * 0.5), -(float)(v244 * 0.5));
cocos2d::CCPoint::operator+(v248, v239, v245);
cocos2d::CCPoint::operator=(LODWORD(a1) + 416, v248);
++*(_DWORD *)(LODWORD(a1) + 472);
v57 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"currencyOrbIcon_001.png", v56);
(*(void (__fastcall **)(_DWORD, int, int))(**(_DWORD **)(LODWORD(a1) + 468) + 232))(
*(_DWORD *)(LODWORD(a1) + 468),
v57,
3);
v58 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v57 + 92);
v59 = (*(int (__fastcall **)(_DWORD))(**(_DWORD **)(LODWORD(a1) + 324) + 96))(*(_DWORD *)(LODWORD(a1) + 324));
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v245, 15.0, -0.5 - (float)(v244 * 0.5));
cocos2d::CCPoint::operator+(v248, v59, v245);
v58(v57, v248);
v60 = *(const cocos2d::CCPoint **)(LODWORD(a1) + 468);
(*(void (__fastcall **)(int))(*(_DWORD *)v57 + 96))(v57);
cocos2d::CCNode::convertToWorldSpace((cocos2d::CCNode *)v248, v60);
cocos2d::CCPoint::operator=(LODWORD(a1) + 416, v248);
*(_DWORD *)(LODWORD(a1) + 348) = v57;
v61 = (cocos2d::CCSequence *)cocos2d::CCTintTo::create((cocos2d::CCTintTo *)0x3E99999A, 0.0, 0xFFu, 0xFFu, v230);
v62 = (cocos2d::CCFiniteTimeAction *)cocos2d::CCTintTo::create(
(cocos2d::CCTintTo *)0x3E99999A,
COERCE_FLOAT(150),
0xFFu,
0xFFu,
v231);
v63 = (cocos2d::CCRepeatForever *)cocos2d::CCSequence::create(v61, v62, 0);
v65 = (cocos2d::CCAction *)cocos2d::CCRepeatForever::create(v63, v64);
cocos2d::CCNode::runAction(*(cocos2d::CCNode **)(LODWORD(a1) + 324), v65);
v67 = (cocos2d::CCParticleSystem *)cocos2d::CCParticleSystemQuad::create(
(cocos2d::CCParticleSystemQuad *)"keyEffect.plist",
nullptr,
v66);
(*(void (__fastcall **)(cocos2d::CCParticleSystem *, int))(*(_DWORD *)v67 + 752))(v67, 8);
v68 = *(void (__fastcall **)(cocos2d::CCParticleSystem *, _DWORD *))(*(_DWORD *)v67 + 680);
memset(v248, 0, sizeof(v248));
v248[3] = 1065353216;
v248[2] = 1065353216;
v248[1] = 1061734601;
v68(v67, v248);
v69 = *(void (__fastcall **)(cocos2d::CCParticleSystem *, _DWORD *))(*(_DWORD *)v67 + 696);
memset(v248, 0, sizeof(v248));
v248[3] = 1065353216;
v248[2] = 1058444951;
v69(v67, v248);
v70 = *(void (__fastcall **)(cocos2d::CCParticleSystem *, _DWORD *))(*(_DWORD *)v67 + 688);
memset(v248, 0, sizeof(v248));
v70(v67, v248);
v71 = *(void (__fastcall **)(cocos2d::CCParticleSystem *, _DWORD *))(*(_DWORD *)v67 + 704);
memset(v248, 0, sizeof(v248));
v71(v67, v248);
(*(void (__fastcall **)(cocos2d::CCParticleSystem *, int))(*(_DWORD *)v67 + 488))(v67, 1065353216);
(*(void (__fastcall **)(cocos2d::CCParticleSystem *, int))(*(_DWORD *)v67 + 496))(v67, 1045220557);
v72 = *(void (__fastcall **)(cocos2d::CCParticleSystem *, _DWORD *))(*(_DWORD *)v67 + 480);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v248, 12.0, 10.0);
v72(v67, v248);
(*(void (__fastcall **)(_DWORD, cocos2d::CCParticleSystem *, int))(**(_DWORD **)(LODWORD(a1) + 468) + 232))(
*(_DWORD *)(LODWORD(a1) + 468),
v67,
100);
v73 = *(void (__fastcall **)(cocos2d::CCParticleSystem *, int))(*(_DWORD *)v67 + 92);
v74 = (*(int (__fastcall **)(int))(*(_DWORD *)v57 + 96))(v57);
v73(v67, v74);
(*(void (__fastcall **)(cocos2d::CCParticleSystem *, int))(*(_DWORD *)v67 + 784))(v67, 2);
cocos2d::CCParticleSystem::resetSystem(v67);
}
if ( a3 > 0 )
{
v75 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(
(cocos2d::CCString *)"%i",
*(const char **)(LODWORD(a1) + 384));
v76 = (cocos2d::CCLabelBMFont *)cocos2d::CCString::getCString(v75);
v78 = cocos2d::CCLabelBMFont::create(v76, "bigFont.fnt", v77);
*(_DWORD *)(LODWORD(a1) + 328) = v78;
(*(void (__fastcall **)(_DWORD, int, int))(**(_DWORD **)(LODWORD(a1) + 468) + 232))(
*(_DWORD *)(LODWORD(a1) + 468),
v78,
10);
v79 = *(_DWORD *)(LODWORD(a1) + 328);
v80 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v79 + 148);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v248, 1.0, 1.0);
v80(v79, v248);
(*(void (__fastcall **)(_DWORD, int))(**(_DWORD **)(LODWORD(a1) + 328) + 80))(
*(_DWORD *)(LODWORD(a1) + 328),
1058642330);
v81 = *(_DWORD *)(LODWORD(a1) + 328);
v82 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v81 + 536);
LOWORD(v248[0]) = -14081;
BYTE2(v248[0]) = 0;
v82(v81, v248);
v83 = *(_DWORD *)(LODWORD(a1) + 328);
v84 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v83 + 92);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v248, 0.0, (float)(-30 * *(_DWORD *)(LODWORD(a1) + 472)));
v84(v83, v248);
v85 = (const cocos2d::CCSize *)(*(int (__fastcall **)(_DWORD))(**(_DWORD **)(LODWORD(a1) + 328) + 164))(*(_DWORD *)(LODWORD(a1) + 328));
cocos2d::CCSize::CCSize((cocos2d::CCSize *)&v240, v85);
v86 = COERCE_FLOAT((*(int (__fastcall **)(_DWORD))(**(_DWORD **)(LODWORD(a1) + 328) + 84))(*(_DWORD *)(LODWORD(a1) + 328)));
v87 = *(_DWORD *)(LODWORD(a1) + 328);
v240 = v240 * v86;
v88 = (*(float (__fastcall **)(int))(*(_DWORD *)v87 + 84))(v87);
v89 = -30 * *(_DWORD *)(LODWORD(a1) + 472);
v241 = v241 * v88;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v242, 0.0, (float)v89);
cocos2d::CCPoint::operator+(&v243, v239, v242);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v245, -(float)(v240 * 0.5), -(float)(v241 * 0.5));
cocos2d::CCPoint::operator+(v248, &v243, v245);
cocos2d::CCPoint::operator=(LODWORD(a1) + 424, v248);
++*(_DWORD *)(LODWORD(a1) + 472);
v91 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_bigStar_001.png", v90);
(*(void (__fastcall **)(int, int))(*(_DWORD *)v91 + 80))(v91, 1056964608);
(*(void (__fastcall **)(_DWORD, int, int))(**(_DWORD **)(LODWORD(a1) + 468) + 232))(
*(_DWORD *)(LODWORD(a1) + 468),
v91,
3);
v92 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v91 + 92);
v93 = (*(int (__fastcall **)(_DWORD))(**(_DWORD **)(LODWORD(a1) + 328) + 96))(*(_DWORD *)(LODWORD(a1) + 328));
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v245, 15.0, -0.5 - (float)(v241 * 0.5));
cocos2d::CCPoint::operator+(v248, v93, v245);
v92(v91, v248);
v94 = *(const cocos2d::CCPoint **)(LODWORD(a1) + 468);
(*(void (__fastcall **)(int))(*(_DWORD *)v91 + 96))(v91);
cocos2d::CCNode::convertToWorldSpace((cocos2d::CCNode *)v248, v94);
cocos2d::CCPoint::operator=(LODWORD(a1) + 424, v248);
*(_DWORD *)(LODWORD(a1) + 352) = v91;
v95 = (cocos2d::CCSequence *)cocos2d::CCTintTo::create(
(cocos2d::CCTintTo *)0x3E99999A,
COERCE_FLOAT(255),
0xFFu,
0,
v230);
v96 = (cocos2d::CCFiniteTimeAction *)cocos2d::CCTintTo::create(
(cocos2d::CCTintTo *)0x3E99999A,
COERCE_FLOAT(255),
0xC8u,
0,
v232);
v97 = (cocos2d::CCRepeatForever *)cocos2d::CCSequence::create(v95, v96, 0);
v99 = (cocos2d::CCAction *)cocos2d::CCRepeatForever::create(v97, v98);
cocos2d::CCNode::runAction(*(cocos2d::CCNode **)(LODWORD(a1) + 328), v99);
v101 = (cocos2d::CCParticleSystem *)cocos2d::CCParticleSystemQuad::create(
(cocos2d::CCParticleSystemQuad *)"keyEffect.plist",
nullptr,
v100);
(*(void (__fastcall **)(cocos2d::CCParticleSystem *, int))(*(_DWORD *)v101 + 752))(v101, 8);
v102 = *(void (__fastcall **)(cocos2d::CCParticleSystem *, _DWORD *))(*(_DWORD *)v101 + 680);
memset(v248, 0, sizeof(v248));
v248[3] = 1065353216;
v248[0] = 1065353216;
v248[1] = 1065353216;
v102(v101, v248);
v103 = *(void (__fastcall **)(cocos2d::CCParticleSystem *, _DWORD *))(*(_DWORD *)v101 + 696);
memset(v248, 0, sizeof(v248));
v248[3] = 1065353216;
v248[0] = 1061734601;
v103(v101, v248);
v104 = *(void (__fastcall **)(cocos2d::CCParticleSystem *, _DWORD *))(*(_DWORD *)v101 + 688);
memset(v248, 0, sizeof(v248));
v104(v101, v248);
v105 = *(void (__fastcall **)(cocos2d::CCParticleSystem *, _DWORD *))(*(_DWORD *)v101 + 704);
memset(v248, 0, sizeof(v248));
v105(v101, v248);
(*(void (__fastcall **)(cocos2d::CCParticleSystem *, int))(*(_DWORD *)v101 + 488))(v101, 1065353216);
(*(void (__fastcall **)(cocos2d::CCParticleSystem *, int))(*(_DWORD *)v101 + 496))(v101, 1045220557);
v106 = *(void (__fastcall **)(cocos2d::CCParticleSystem *, _DWORD *))(*(_DWORD *)v101 + 480);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v248, 12.0, 10.0);
v106(v101, v248);
(*(void (__fastcall **)(_DWORD, cocos2d::CCParticleSystem *, int))(**(_DWORD **)(LODWORD(a1) + 468) + 232))(
*(_DWORD *)(LODWORD(a1) + 468),
v101,
100);
v107 = *(void (__fastcall **)(cocos2d::CCParticleSystem *, int))(*(_DWORD *)v101 + 92);
v108 = (*(int (__fastcall **)(int))(*(_DWORD *)v91 + 96))(v91);
v107(v101, v108);
(*(void (__fastcall **)(cocos2d::CCParticleSystem *, int))(*(_DWORD *)v101 + 784))(v101, 2);
cocos2d::CCParticleSystem::resetSystem(v101);
}
if ( a4 > 0 )
{
v109 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(
(cocos2d::CCString *)"%i",
*(const char **)(LODWORD(a1) + 388));
v110 = (cocos2d::CCLabelBMFont *)cocos2d::CCString::getCString(v109);
v112 = cocos2d::CCLabelBMFont::create(v110, "bigFont.fnt", v111);
*(_DWORD *)(LODWORD(a1) + 332) = v112;
(*(void (__fastcall **)(_DWORD, int, int))(**(_DWORD **)(LODWORD(a1) + 468) + 232))(
*(_DWORD *)(LODWORD(a1) + 468),
v112,
10);
v113 = *(_DWORD *)(LODWORD(a1) + 332);
v114 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v113 + 148);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v248, 1.0, 1.0);
v114(v113, v248);
(*(void (__fastcall **)(_DWORD, int))(**(_DWORD **)(LODWORD(a1) + 332) + 80))(
*(_DWORD *)(LODWORD(a1) + 332),
1058642330);
v115 = *(_DWORD *)(LODWORD(a1) + 332);
v116 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v115 + 536);
LOWORD(v248[0]) = -256;
BYTE2(v248[0]) = -1;
v116(v115, v248);
v117 = *(_DWORD *)(LODWORD(a1) + 332);
v118 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v117 + 92);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v248, 0.0, (float)(-30 * *(_DWORD *)(LODWORD(a1) + 472)));
v118(v117, v248);
v119 = (const cocos2d::CCSize *)(*(int (__fastcall **)(_DWORD))(**(_DWORD **)(LODWORD(a1) + 332) + 164))(*(_DWORD *)(LODWORD(a1) + 332));
cocos2d::CCSize::CCSize((cocos2d::CCSize *)&v240, v119);
v120 = COERCE_FLOAT((*(int (__fastcall **)(_DWORD))(**(_DWORD **)(LODWORD(a1) + 332) + 84))(*(_DWORD *)(LODWORD(a1) + 332)));
v121 = *(_DWORD *)(LODWORD(a1) + 332);
v240 = v240 * v120;
v122 = (*(float (__fastcall **)(int))(*(_DWORD *)v121 + 84))(v121);
v123 = -30 * *(_DWORD *)(LODWORD(a1) + 472);
v241 = v241 * v122;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v242, 0.0, (float)v123);
cocos2d::CCPoint::operator+(&v243, v239, v242);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v245, -(float)(v240 * 0.5), -(float)(v241 * 0.5));
cocos2d::CCPoint::operator+(v248, &v243, v245);
cocos2d::CCPoint::operator=(LODWORD(a1) + 432, v248);
++*(_DWORD *)(LODWORD(a1) + 472);
v125 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_bigMoon_001.png", v124);
(*(void (__fastcall **)(int, int))(*(_DWORD *)v125 + 80))(v125, 1056964608);
(*(void (__fastcall **)(_DWORD, int, int))(**(_DWORD **)(LODWORD(a1) + 468) + 232))(
*(_DWORD *)(LODWORD(a1) + 468),
v125,
3);
v126 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v125 + 92);
v127 = (*(int (__fastcall **)(_DWORD))(**(_DWORD **)(LODWORD(a1) + 332) + 96))(*(_DWORD *)(LODWORD(a1) + 332));
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v245, 15.0, -0.5 - (float)(v241 * 0.5));
cocos2d::CCPoint::operator+(v248, v127, v245);
v126(v125, v248);
v128 = *(const cocos2d::CCPoint **)(LODWORD(a1) + 468);
(*(void (__fastcall **)(int))(*(_DWORD *)v125 + 96))(v125);
cocos2d::CCNode::convertToWorldSpace((cocos2d::CCNode *)v248, v128);
cocos2d::CCPoint::operator=(LODWORD(a1) + 432, v248);
*(_DWORD *)(LODWORD(a1) + 356) = v125;
v129 = (cocos2d::CCSequence *)cocos2d::CCTintTo::create((cocos2d::CCTintTo *)0x3E99999A, 0.0, 0xFFu, 0xFFu, v230);
v130 = (cocos2d::CCFiniteTimeAction *)cocos2d::CCTintTo::create(
(cocos2d::CCTintTo *)0x3E99999A,
0.0,
0xC8u,
0xFFu,
v233);
v131 = (cocos2d::CCRepeatForever *)cocos2d::CCSequence::create(v129, v130, 0);
v133 = (cocos2d::CCAction *)cocos2d::CCRepeatForever::create(v131, v132);
cocos2d::CCNode::runAction(*(cocos2d::CCNode **)(LODWORD(a1) + 332), v133);
v135 = (cocos2d::CCParticleSystem *)cocos2d::CCParticleSystemQuad::create(
(cocos2d::CCParticleSystemQuad *)"keyEffect.plist",
nullptr,
v134);
(*(void (__fastcall **)(cocos2d::CCParticleSystem *, int))(*(_DWORD *)v135 + 752))(v135, 8);
v136 = *(void (__fastcall **)(cocos2d::CCParticleSystem *, _DWORD *))(*(_DWORD *)v135 + 680);
memset(v248, 0, sizeof(v248));
v248[3] = 1065353216;
v248[1] = 1065353216;
v248[2] = 1065353216;
v136(v135, v248);
v137 = *(void (__fastcall **)(cocos2d::CCParticleSystem *, _DWORD *))(*(_DWORD *)v135 + 696);
memset(v248, 0, sizeof(v248));
v248[3] = 1065353216;
v248[2] = 1061734601;
v137(v135, v248);
v138 = *(void (__fastcall **)(cocos2d::CCParticleSystem *, _DWORD *))(*(_DWORD *)v135 + 688);
memset(v248, 0, sizeof(v248));
v138(v135, v248);
v139 = *(void (__fastcall **)(cocos2d::CCParticleSystem *, _DWORD *))(*(_DWORD *)v135 + 704);
memset(v248, 0, sizeof(v248));
v139(v135, v248);
(*(void (__fastcall **)(cocos2d::CCParticleSystem *, int))(*(_DWORD *)v135 + 488))(v135, 1065353216);
(*(void (__fastcall **)(cocos2d::CCParticleSystem *, int))(*(_DWORD *)v135 + 496))(v135, 1045220557);
v140 = *(void (__fastcall **)(cocos2d::CCParticleSystem *, _DWORD *))(*(_DWORD *)v135 + 480);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v248, 12.0, 10.0);
v140(v135, v248);
(*(void (__fastcall **)(_DWORD, cocos2d::CCParticleSystem *, int))(**(_DWORD **)(LODWORD(a1) + 468) + 232))(
*(_DWORD *)(LODWORD(a1) + 468),
v135,
100);
v141 = *(void (__fastcall **)(cocos2d::CCParticleSystem *, int))(*(_DWORD *)v135 + 92);
v142 = (*(int (__fastcall **)(int))(*(_DWORD *)v125 + 96))(v125);
v141(v135, v142);
(*(void (__fastcall **)(cocos2d::CCParticleSystem *, int))(*(_DWORD *)v135 + 784))(v135, 2);
cocos2d::CCParticleSystem::resetSystem(v135);
}
if ( a5 > 0 )
{
v143 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(
(cocos2d::CCString *)"%i",
*(const char **)(LODWORD(a1) + 392));
v144 = (cocos2d::CCLabelBMFont *)cocos2d::CCString::getCString(v143);
v146 = cocos2d::CCLabelBMFont::create(v144, "bigFont.fnt", v145);
*(_DWORD *)(LODWORD(a1) + 336) = v146;
(*(void (__fastcall **)(_DWORD, int, int))(**(_DWORD **)(LODWORD(a1) + 468) + 232))(
*(_DWORD *)(LODWORD(a1) + 468),
v146,
10);
v147 = *(_DWORD *)(LODWORD(a1) + 336);
v148 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v147 + 148);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v248, 1.0, 1.0);
v148(v147, v248);
(*(void (__fastcall **)(_DWORD, int))(**(_DWORD **)(LODWORD(a1) + 336) + 80))(
*(_DWORD *)(LODWORD(a1) + 336),
1058642330);
v149 = *(_DWORD *)(LODWORD(a1) + 336);
v150 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v149 + 536);
LOWORD(v248[0]) = -1;
BYTE2(v248[0]) = -1;
v150(v149, v248);
v151 = *(_DWORD *)(LODWORD(a1) + 336);
v152 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v151 + 92);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v248, 0.0, (float)(-30 * *(_DWORD *)(LODWORD(a1) + 472)));
v152(v151, v248);
v153 = (const cocos2d::CCSize *)(*(int (__fastcall **)(_DWORD))(**(_DWORD **)(LODWORD(a1) + 336) + 164))(*(_DWORD *)(LODWORD(a1) + 336));
cocos2d::CCSize::CCSize((cocos2d::CCSize *)&v240, v153);
v154 = COERCE_FLOAT((*(int (__fastcall **)(_DWORD))(**(_DWORD **)(LODWORD(a1) + 336) + 84))(*(_DWORD *)(LODWORD(a1) + 336)));
v155 = *(_DWORD *)(LODWORD(a1) + 336);
v240 = v240 * v154;
v156 = (*(float (__fastcall **)(int))(*(_DWORD *)v155 + 84))(v155);
v157 = -30 * *(_DWORD *)(LODWORD(a1) + 472);
v241 = v241 * v156;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v242, 0.0, (float)v157);
cocos2d::CCPoint::operator+(&v243, v239, v242);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v245, -(float)(v240 * 0.5), -(float)(v241 * 0.5));
cocos2d::CCPoint::operator+(v248, &v243, v245);
cocos2d::CCPoint::operator=(LODWORD(a1) + 440, v248);
++*(_DWORD *)(LODWORD(a1) + 472);
v159 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_bigDiamond_001.png", v158);
(*(void (__fastcall **)(int, int))(*(_DWORD *)v159 + 80))(v159, 1056964608);
(*(void (__fastcall **)(_DWORD, int, int))(**(_DWORD **)(LODWORD(a1) + 468) + 232))(
*(_DWORD *)(LODWORD(a1) + 468),
v159,
3);
v160 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v159 + 92);
v161 = (*(int (__fastcall **)(_DWORD))(**(_DWORD **)(LODWORD(a1) + 336) + 96))(*(_DWORD *)(LODWORD(a1) + 336));
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v245, 15.0, -0.5 - (float)(v241 * 0.5));
cocos2d::CCPoint::operator+(v248, v161, v245);
v160(v159, v248);
v162 = *(const cocos2d::CCPoint **)(LODWORD(a1) + 468);
(*(void (__fastcall **)(int))(*(_DWORD *)v159 + 96))(v159);
cocos2d::CCNode::convertToWorldSpace((cocos2d::CCNode *)v248, v162);
cocos2d::CCPoint::operator=(LODWORD(a1) + 440, v248);
*(_DWORD *)(LODWORD(a1) + 360) = v159;
v164 = (cocos2d::CCParticleSystem *)cocos2d::CCParticleSystemQuad::create(
(cocos2d::CCParticleSystemQuad *)"keyEffect.plist",
nullptr,
v163);
(*(void (__fastcall **)(cocos2d::CCParticleSystem *, int))(*(_DWORD *)v164 + 752))(v164, 8);
v165 = *(void (__fastcall **)(cocos2d::CCParticleSystem *, _DWORD *))(*(_DWORD *)v164 + 680);
v248[3] = 1065353216;
v248[0] = 1065353216;
v248[1] = 1065353216;
v248[2] = 1065353216;
v165(v164, v248);
v166 = *(void (__fastcall **)(cocos2d::CCParticleSystem *, _DWORD *))(*(_DWORD *)v164 + 696);
v248[3] = 1065353216;
v248[1] = 1065353216;
v248[0] = 1058444951;
v248[2] = 1065353216;
v166(v164, v248);
v167 = *(void (__fastcall **)(cocos2d::CCParticleSystem *, _DWORD *))(*(_DWORD *)v164 + 688);
memset(v248, 0, sizeof(v248));
v167(v164, v248);
v168 = *(void (__fastcall **)(cocos2d::CCParticleSystem *, _DWORD *))(*(_DWORD *)v164 + 704);
memset(v248, 0, sizeof(v248));
v168(v164, v248);
(*(void (__fastcall **)(cocos2d::CCParticleSystem *, int))(*(_DWORD *)v164 + 488))(v164, 1065353216);
(*(void (__fastcall **)(cocos2d::CCParticleSystem *, int))(*(_DWORD *)v164 + 496))(v164, 1045220557);
v169 = *(void (__fastcall **)(cocos2d::CCParticleSystem *, _DWORD *))(*(_DWORD *)v164 + 480);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v248, 12.0, 10.0);
v169(v164, v248);
(*(void (__fastcall **)(_DWORD, cocos2d::CCParticleSystem *, int))(**(_DWORD **)(LODWORD(a1) + 468) + 232))(
*(_DWORD *)(LODWORD(a1) + 468),
v164,
100);
v170 = *(void (__fastcall **)(cocos2d::CCParticleSystem *, int))(*(_DWORD *)v164 + 92);
v171 = (*(int (__fastcall **)(int))(*(_DWORD *)v159 + 96))(v159);
v170(v164, v171);
(*(void (__fastcall **)(cocos2d::CCParticleSystem *, int))(*(_DWORD *)v164 + 784))(v164, 2);
cocos2d::CCParticleSystem::resetSystem(v164);
}
if ( v14 > 0 )
{
v172 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(
(cocos2d::CCString *)"%i",
*(const char **)(LODWORD(a1) + 396));
v173 = (cocos2d::CCLabelBMFont *)cocos2d::CCString::getCString(v172);
v175 = cocos2d::CCLabelBMFont::create(v173, "bigFont.fnt", v174);
*(_DWORD *)(LODWORD(a1) + 340) = v175;
(*(void (__fastcall **)(_DWORD, int, int))(**(_DWORD **)(LODWORD(a1) + 468) + 232))(
*(_DWORD *)(LODWORD(a1) + 468),
v175,
10);
v176 = *(_DWORD *)(LODWORD(a1) + 340);
v177 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v176 + 148);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v248, 1.0, 1.0);
v177(v176, v248);
(*(void (__fastcall **)(_DWORD, int))(**(_DWORD **)(LODWORD(a1) + 340) + 80))(
*(_DWORD *)(LODWORD(a1) + 340),
1058642330);
v178 = *(_DWORD *)(LODWORD(a1) + 340);
v179 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v178 + 536);
LOWORD(v248[0]) = -1;
BYTE2(v248[0]) = -1;
v179(v178, v248);
v180 = *(_DWORD *)(LODWORD(a1) + 340);
v181 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v180 + 92);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v248, 0.0, (float)(-30 * *(_DWORD *)(LODWORD(a1) + 472)));
v181(v180, v248);
(*(void (__fastcall **)(_DWORD, int))(**(_DWORD **)(LODWORD(a1) + 340) + 36))(*(_DWORD *)(LODWORD(a1) + 340), v14);
v182 = (const cocos2d::CCSize *)(*(int (__fastcall **)(_DWORD))(**(_DWORD **)(LODWORD(a1) + 340) + 164))(*(_DWORD *)(LODWORD(a1) + 340));
cocos2d::CCSize::CCSize((cocos2d::CCSize *)&v240, v182);
v183 = COERCE_FLOAT((*(int (__fastcall **)(_DWORD))(**(_DWORD **)(LODWORD(a1) + 340) + 84))(*(_DWORD *)(LODWORD(a1) + 340)));
v184 = *(_DWORD *)(LODWORD(a1) + 340);
v240 = v240 * v183;
v185 = (*(float (__fastcall **)(int))(*(_DWORD *)v184 + 84))(v184);
v186 = -30 * *(_DWORD *)(LODWORD(a1) + 472);
v241 = v241 * v185;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v242, 0.0, (float)v186);
cocos2d::CCPoint::operator+(&v243, v239, v242);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v245, -(float)(v240 * 0.5), -(float)(v241 * 0.5));
cocos2d::CCPoint::operator+(v248, &v243, v245);
cocos2d::CCPoint::operator=(LODWORD(a1) + 448, v248);
++*(_DWORD *)(LODWORD(a1) + 472);
v187 = CurrencySprite::create(v14, 1);
(*(void (__fastcall **)(_DWORD, CurrencySprite *, int))(**(_DWORD **)(LODWORD(a1) + 468) + 232))(
*(_DWORD *)(LODWORD(a1) + 468),
v187,
3);
v188 = *(void (__fastcall **)(CurrencySprite *, _DWORD *))(*(_DWORD *)v187 + 92);
v189 = (*(int (__fastcall **)(_DWORD))(**(_DWORD **)(LODWORD(a1) + 340) + 96))(*(_DWORD *)(LODWORD(a1) + 340));
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v245, 15.0, -0.5 - (float)(v241 * 0.5));
cocos2d::CCPoint::operator+(v248, v189, v245);
v188(v187, v248);
v190 = *(void (__fastcall **)(CurrencySprite *, _DWORD))(*(_DWORD *)v187 + 80);
if ( isSpecialCurrencyType(v14) )
v191 = 0.65;
else
v191 = 0.5;
v190(v187, LODWORD(v191));
*(_DWORD *)(LODWORD(a1) + 364) = v187;
v192 = *(const cocos2d::CCPoint **)(LODWORD(a1) + 468);
(*(void (__fastcall **)(CurrencySprite *))(*(_DWORD *)v187 + 96))(v187);
cocos2d::CCNode::convertToWorldSpace((cocos2d::CCNode *)v248, v192);
cocos2d::CCPoint::operator=(LODWORD(a1) + 448, v248);
}
if ( a8 > 0 )
{
v193 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(
(cocos2d::CCString *)"%i",
*(const char **)(LODWORD(a1) + 400));
v194 = (cocos2d::CCLabelBMFont *)cocos2d::CCString::getCString(v193);
v196 = cocos2d::CCLabelBMFont::create(v194, "bigFont.fnt", v195);
*(_DWORD *)(LODWORD(a1) + 344) = v196;
(*(void (__fastcall **)(_DWORD, int, int))(**(_DWORD **)(LODWORD(a1) + 468) + 232))(
*(_DWORD *)(LODWORD(a1) + 468),
v196,
10);
v197 = *(_DWORD *)(LODWORD(a1) + 344);
v198 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v197 + 148);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v248, 1.0, 1.0);
v198(v197, v248);
(*(void (__fastcall **)(_DWORD, int))(**(_DWORD **)(LODWORD(a1) + 344) + 80))(
*(_DWORD *)(LODWORD(a1) + 344),
1058642330);
v199 = *(void (**)(void))(**(_DWORD **)(LODWORD(a1) + 344) + 536);
LOBYTE(v248[0]) = -1;
*(_WORD *)((char *)v248 + 1) = -1;
v199();
v200 = *(_DWORD *)(LODWORD(a1) + 344);
v201 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v200 + 92);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v248, 0.0, (float)(-30 * *(_DWORD *)(LODWORD(a1) + 472)));
v201(v200, v248);
(*(void (__fastcall **)(_DWORD, int))(**(_DWORD **)(LODWORD(a1) + 344) + 36))(*(_DWORD *)(LODWORD(a1) + 344), a8);
v202 = (const cocos2d::CCSize *)(*(int (__fastcall **)(_DWORD))(**(_DWORD **)(LODWORD(a1) + 344) + 164))(*(_DWORD *)(LODWORD(a1) + 344));
cocos2d::CCSize::CCSize((cocos2d::CCSize *)&v240, v202);
v203 = COERCE_FLOAT((*(int (__fastcall **)(_DWORD))(**(_DWORD **)(LODWORD(a1) + 344) + 84))(*(_DWORD *)(LODWORD(a1) + 344)));
v204 = *(_DWORD *)(LODWORD(a1) + 344);
v240 = v240 * v203;
v205 = (*(float (__fastcall **)(int))(*(_DWORD *)v204 + 84))(v204);
v206 = -30 * *(_DWORD *)(LODWORD(a1) + 472);
v241 = v241 * v205;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v242, 0.0, (float)v206);
cocos2d::CCPoint::operator+(&v243, v239, v242);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v245, -(float)(v240 * 0.5), -(float)(v241 * 0.5));
cocos2d::CCPoint::operator+(v248, &v243, v245);
cocos2d::CCPoint::operator=(LODWORD(a1) + 456, v248);
++*(_DWORD *)(LODWORD(a1) + 472);
v207 = CurrencySprite::create(a8, 1);
(*(void (__fastcall **)(_DWORD, CurrencySprite *, int))(**(_DWORD **)(LODWORD(a1) + 468) + 232))(
*(_DWORD *)(LODWORD(a1) + 468),
v207,
3);
v208 = *(void (__fastcall **)(CurrencySprite *, _DWORD *))(*(_DWORD *)v207 + 92);
v209 = (*(int (__fastcall **)(_DWORD))(**(_DWORD **)(LODWORD(a1) + 344) + 96))(*(_DWORD *)(LODWORD(a1) + 344));
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v245, 15.0, -0.5 - (float)(v241 * 0.5));
cocos2d::CCPoint::operator+(v248, v209, v245);
v208(v207, v248);
v210 = *(void (__fastcall **)(CurrencySprite *, _DWORD))(*(_DWORD *)v207 + 80);
if ( isSpecialCurrencyType(a8) )
v211 = 0.65;
else
v211 = 0.5;
v210(v207, LODWORD(v211));
*(_DWORD *)(LODWORD(a1) + 368) = v207;
v212 = *(const cocos2d::CCPoint **)(LODWORD(a1) + 468);
(*(void (__fastcall **)(CurrencySprite *))(*(_DWORD *)v207 + 96))(v207);
cocos2d::CCNode::convertToWorldSpace((cocos2d::CCNode *)v248, v212);
cocos2d::CCPoint::operator=(LODWORD(a1) + 456, v248);
}
v213 = (const cocos2d::CCPoint *)(*(int (__fastcall **)(_DWORD))(**(_DWORD **)(LODWORD(a1) + 468) + 96))(*(_DWORD *)(LODWORD(a1) + 468));
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v243, v213);
v214 = *(_DWORD *)(LODWORD(a1) + 468);
v215 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v214 + 92);
v216 = (*(int (__fastcall **)(int))(*(_DWORD *)v214 + 96))(v214);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v245, 0.0, (float)(30 * (*(_DWORD *)(LODWORD(a1) + 472) - 1) + 40));
cocos2d::CCPoint::operator+(v248, v216, v245);
v215(v214, v248);
v218 = (cocos2d::CCEaseInOut *)cocos2d::CCMoveTo::create(
COERCE_COCOS2D_CCMOVETO_(a13 * 0.5),
COERCE_FLOAT(&v243),
v217);
v220 = (cocos2d::CCAction *)cocos2d::CCEaseInOut::create(v218, (cocos2d::CCActionInterval *)0x40000000, v219);
v221 = (cocos2d::CCArray *)cocos2d::CCNode::runAction(*(cocos2d::CCNode **)(LODWORD(a1) + 468), v220);
v222 = (cocos2d::CCObject *)cocos2d::CCArray::create(v221);
*(_DWORD *)(LODWORD(a1) + 320) = v222;
cocos2d::CCObject::retain(v222);
v223 = a13 * 0.2;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v248, a10);
CurrencyRewardLayer::createObjects(a1, 1, a2, (cocos2d::CCPoint *)v248, 0.0);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v248, a10);
v224 = 0.0;
if ( a2 > 0 )
v224 = a13 * 0.2;
CurrencyRewardLayer::createObjects(a1, 2, a3, (cocos2d::CCPoint *)v248, v224);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v248, a10);
v225 = 0.0;
if ( a2 > 0 )
v225 = a13 * 0.2;
CurrencyRewardLayer::createObjects(a1, 15, a4, (cocos2d::CCPoint *)v248, v225);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v248, a10);
v226 = (a4 > 0) + (a3 > 0) + (a2 > 0);
CurrencyRewardLayer::createObjects(a1, 3, a5, (cocos2d::CCPoint *)v248, v223 * (float)v226);
if ( a5 > 0 )
++v226;
v227 = (float)((float)(v223 * (float)v226) + 0.1) * a13;
if ( isSpecialCurrencyType(v14) )
v228 = v227 + 0.2;
else
v228 = (float)((float)(v223 * (float)v226) + 0.1) * a13;
if ( isSpecialCurrencyType(a8) )
v227 = v227 + 0.2;
if ( v14 )
{
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v248, a10);
CurrencyRewardLayer::createObjects(a1, v14, a7, (cocos2d::CCPoint *)v248, v228);
}
if ( a8 )
{
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v248, a10);
CurrencyRewardLayer::createObjects(a1, a8, a9, (cocos2d::CCPoint *)v248, v227);
}
*(_BYTE *)(LODWORD(a1) + 465) = 1;
cocos2d::CCNode::scheduleUpdate((cocos2d::CCNode *)LODWORD(a1));
std::string::~string((int)v247);
std::string::~string((int)v246);
}
return v237;
}