//
// CurrencyRewardLayer::init from 0x140139e00 to 0x14013bc7b (7803 bytes)
//
// 2 xrefs:
// > CurrencyRewardLayer::create @ 0x140139db0
// > ??> @ 0x140917270
//
// 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:27:07 +0000
//
// Hidden C++ exception states: #wind=10
bool __fastcall CurrencyRewardLayer::init(
__int64 a1,
int a2,
int a3,
int a4,
int a5,
unsigned int a6,
int a7,
unsigned int a8,
int a9,
const struct cocos2d::CCPoint *a10,
int a11,
float a12,
float a13)
{
int v15; // r13d
unsigned int v16; // r12d
bool result; // al
__int64 v18; // rcx
int v19; // r15d
int v20; // esi
__int64 v21; // rax
cocos2d::CCTextureCache *v22; // rax
struct cocos2d::CCTexture2D *v23; // rbx
struct cocos2d::CCSpriteBatchNode *v24; // rax
struct cocos2d::CCSpriteBatchNode *v25; // rax
__int64 v26; // rax
__int64 v27; // rcx
__int64 v28; // rcx
__int64 v29; // rcx
__int64 v30; // rcx
_QWORD *v31; // rbx
__int64 v32; // rcx
_QWORD *v33; // rbx
__int64 v34; // rcx
float v35; // xmm7_4
cocos2d::CCString *v36; // rax
const char *CString; // rax
struct cocos2d::CCLabelBMFont *v38; // rax
__int64 v39; // rdi
__int64 v40; // rbx
__int64 v41; // rax
__int64 v42; // rdi
__int64 v43; // rbx
__int64 v44; // rax
const struct cocos2d::CCSize *v45; // rax
float v46; // xmm0_4
float v47; // xmm0_4
__int64 v48; // rax
struct cocos2d::CCSprite *v49; // rsi
__int64 v50; // rax
__int64 v51; // rbx
__int64 v52; // rax
__int64 v53; // rbx
__int64 v54; // rax
__int64 v55; // rax
struct cocos2d::CCFiniteTimeAction *v56; // rbx
struct cocos2d::CCTintTo *v57; // rax
struct cocos2d::CCActionInterval *v58; // rax
struct cocos2d::CCAction *v59; // rax
cocos2d::CCParticleSystem *v60; // rdi
__int64 v61; // rbx
__int64 v62; // rax
__int64 v63; // rbx
__int64 v64; // rax
cocos2d::CCString *v65; // rax
const char *v66; // rax
struct cocos2d::CCLabelBMFont *v67; // rax
__int64 v68; // rdi
__int64 v69; // rbx
__int64 v70; // rax
__int64 v71; // rdi
__int64 v72; // rbx
__int64 v73; // rax
const struct cocos2d::CCSize *v74; // rax
float v75; // xmm0_4
float v76; // xmm0_4
__int64 v77; // rax
__int64 v78; // rax
struct cocos2d::CCSprite *v79; // rsi
__int64 v80; // rax
__int64 v81; // rbx
__int64 v82; // rax
__int64 v83; // rbx
__int64 v84; // rax
__int64 v85; // rax
struct cocos2d::CCFiniteTimeAction *v86; // rbx
struct cocos2d::CCTintTo *v87; // rax
struct cocos2d::CCActionInterval *v88; // rax
struct cocos2d::CCAction *v89; // rax
cocos2d::CCParticleSystem *v90; // rdi
__int64 v91; // rbx
__int64 v92; // rax
__int64 v93; // rbx
__int64 v94; // rax
cocos2d::CCString *v95; // rax
const char *v96; // rax
struct cocos2d::CCLabelBMFont *v97; // rax
__int64 v98; // rdi
__int64 v99; // rbx
__int64 v100; // rax
__int64 v101; // rdi
__int64 v102; // rbx
__int64 v103; // rax
const struct cocos2d::CCSize *v104; // rax
float v105; // xmm0_4
float v106; // xmm0_4
__int64 v107; // rax
__int64 v108; // rax
struct cocos2d::CCSprite *v109; // rsi
__int64 v110; // rax
__int64 v111; // rbx
__int64 v112; // rax
__int64 v113; // rbx
__int64 v114; // rax
__int64 v115; // rax
struct cocos2d::CCFiniteTimeAction *v116; // rbx
struct cocos2d::CCTintTo *v117; // rax
struct cocos2d::CCActionInterval *v118; // rax
struct cocos2d::CCAction *v119; // rax
cocos2d::CCParticleSystem *v120; // rdi
__int64 v121; // rbx
__int64 v122; // rax
__int64 v123; // rbx
__int64 v124; // rax
cocos2d::CCString *v125; // rax
const char *v126; // rax
struct cocos2d::CCLabelBMFont *v127; // rax
__int64 v128; // rdi
__int64 v129; // rbx
__int64 v130; // rax
__int64 v131; // rdi
__int64 v132; // rbx
__int64 v133; // rax
const struct cocos2d::CCSize *v134; // rax
float v135; // xmm0_4
float v136; // xmm0_4
__int64 v137; // rax
__int64 v138; // rax
struct cocos2d::CCSprite *v139; // rsi
__int64 v140; // rax
__int64 v141; // rbx
__int64 v142; // rax
__int64 v143; // rbx
__int64 v144; // rax
__int64 v145; // rax
cocos2d::CCParticleSystem *v146; // rdi
__int64 v147; // rbx
__int64 v148; // rax
__int64 v149; // rbx
__int64 v150; // rax
cocos2d::CCString *v151; // rax
const char *v152; // rax
struct cocos2d::CCLabelBMFont *v153; // rax
__int64 v154; // rdi
__int64 v155; // rbx
__int64 v156; // rax
__int64 v157; // rdi
__int64 v158; // rbx
__int64 v159; // rax
const struct cocos2d::CCSize *v160; // rax
float v161; // xmm0_4
float v162; // xmm0_4
__int64 v163; // rax
__int64 v164; // rax
__int64 v165; // rax
__int64 v166; // r8
cocos2d::CCObject *v167; // rdi
__int64 v168; // rax
__int64 v169; // rbx
__int64 v170; // rax
__int64 v171; // rbx
__int64 v172; // rax
__int64 v173; // rax
cocos2d::CCString *v174; // rax
const char *v175; // rax
struct cocos2d::CCLabelBMFont *v176; // rax
__int64 v177; // rdi
__int64 v178; // rbx
__int64 v179; // rax
__int64 v180; // rdi
__int64 v181; // rbx
__int64 v182; // rax
const struct cocos2d::CCSize *v183; // rax
float v184; // xmm0_4
float v185; // xmm0_4
__int64 v186; // rax
__int64 v187; // rax
__int64 v188; // rax
__int64 v189; // r8
cocos2d::CCObject *v190; // rdi
__int64 v191; // rax
__int64 v192; // rbx
__int64 v193; // rax
__int64 v194; // rbx
__int64 v195; // rax
__int64 v196; // rax
const struct cocos2d::CCPoint *v197; // rax
__int64 v198; // rax
__int64 v199; // rbx
__int64 v200; // rax
struct cocos2d::CCActionInterval *v201; // rax
struct cocos2d::CCAction *v202; // rax
__int64 v203; // rcx
cocos2d::CCObject *v204; // rax
float v205; // xmm8_4
const struct cocos2d::CCPoint *v206; // rbx
const struct cocos2d::CCPoint *v207; // rax
int v208; // edi
__int64 v209; // rax
float v210; // xmm6_4
const struct cocos2d::CCPoint *v211; // rax
__int64 v212; // rax
const struct cocos2d::CCPoint *v213; // rax
int v214; // edi
__int64 v215; // rax
BOOL v216; // esi
BOOL v217; // edi
BOOL v218; // ebx
const struct cocos2d::CCPoint *v219; // rax
__int64 v220; // rax
float v221; // xmm6_4
float v222; // xmm7_4
const struct cocos2d::CCPoint *v223; // rbx
const struct cocos2d::CCPoint *v224; // rax
__int64 v225; // rax
const struct cocos2d::CCPoint *v226; // rax
__int64 v227; // rax
__int16 v228; // [rsp+38h] [rbp-D0h] BYREF
char v229; // [rsp+3Ah] [rbp-CEh]
__int64 v230; // [rsp+40h] [rbp-C8h] BYREF
void *v231; // [rsp+48h] [rbp-C0h] BYREF
_BYTE v232[8]; // [rsp+50h] [rbp-B8h] BYREF
int v233; // [rsp+58h] [rbp-B0h] BYREF
int v234; // [rsp+60h] [rbp-A8h]
int v235; // [rsp+64h] [rbp-A4h]
int v236; // [rsp+68h] [rbp-A0h]
int v237; // [rsp+70h] [rbp-98h] BYREF
int v238; // [rsp+78h] [rbp-90h]
int v239; // [rsp+7Ch] [rbp-8Ch]
const struct cocos2d::CCPoint *v240; // [rsp+80h] [rbp-88h]
_BYTE v241[8]; // [rsp+88h] [rbp-80h] BYREF
float v242[2]; // [rsp+90h] [rbp-78h] BYREF
_BYTE v243[8]; // [rsp+98h] [rbp-70h] BYREF
__m128i si128; // [rsp+A0h] [rbp-68h] BYREF
__m128i v245; // [rsp+B0h] [rbp-58h] BYREF
_QWORD v246[4]; // [rsp+C0h] [rbp-48h] BYREF
_QWORD v247[4]; // [rsp+E0h] [rbp-28h] BYREF
v235 = a4;
v234 = a3;
v238 = a2;
v15 = a6;
v16 = a8;
v240 = a10;
result = cocos2d::CCLayer::init((cocos2d::CCLayer *)a1);
if ( result )
{
*(_DWORD *)(a1 + 636) = a11;
*(float *)(a1 + 568) = a13;
v19 = 0;
if ( a6 && a6 == a8 )
{
v20 = a9 + a7;
v16 = 0;
v236 = 0;
}
else
{
v236 = a9;
v20 = a7;
}
v239 = v20;
v21 = cocos2d::CCDirector::sharedDirector(v18);
cocos2d::CCDirector::getWinSize(v21, v242);
v22 = (cocos2d::CCTextureCache *)cocos2d::CCTextureCache::sharedTextureCache();
v23 = cocos2d::CCTextureCache::addImage(v22, "GJ_GameSheet03.png", 0);
v24 = cocos2d::CCSpriteBatchNode::createWithTexture(v23);
*(_QWORD *)(a1 + 528) = v24;
v230 = 0x100000302LL;
(**((void (__fastcall ***)(__int64, __int64))v24 + 40))((__int64)v24 + 320, 0x100000302LL);
(*(void (__fastcall **)(__int64, _QWORD, __int64))(*(_QWORD *)a1 + 456LL))(a1, *(_QWORD *)(a1 + 528), 1);
v25 = cocos2d::CCSpriteBatchNode::createWithTexture(v23);
*(_QWORD *)(a1 + 520) = v25;
(*(void (__fastcall **)(__int64, struct cocos2d::CCSpriteBatchNode *, __int64))(*(_QWORD *)a1 + 456LL))(a1, v25, 2);
v26 = cocos2d::CCNode::create();
*(_QWORD *)(a1 + 624) = v26;
(*(void (__fastcall **)(__int64, void *))(*(_QWORD *)v26 + 312LL))(v26, &unk_14090A3C0);
(*(void (__fastcall **)(__int64, _QWORD, __int64))(*(_QWORD *)a1 + 456LL))(a1, *(_QWORD *)(a1 + 624), 4);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v237, v242[0] - 40.0, (float)(v242[1] - 5.0) + a12);
(*(void (__fastcall **)(_QWORD, int *))(**(_QWORD **)(a1 + 624) + 184LL))(*(_QWORD *)(a1 + 624), &v237);
v27 = qword_14090BFE0;
if ( !qword_14090BFE0 )
{
v231 = operator new(0x3E8u);
qword_14090BFE0 = sub_1402D6480(v231);
(*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFE0 + 72LL))(qword_14090BFE0);
v27 = qword_14090BFE0;
}
*(_DWORD *)(a1 + 536) = GameStatsManager::getStat(v27, &word_140737D98) - a2;
v28 = qword_14090BFE0;
if ( !qword_14090BFE0 )
{
v231 = operator new(0x3E8u);
qword_14090BFE0 = sub_1402D6480(v231);
(*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFE0 + 72LL))(qword_14090BFE0);
v28 = qword_14090BFE0;
}
*(_DWORD *)(a1 + 540) = GameStatsManager::getStat(v28, "6") - v234;
v29 = qword_14090BFE0;
if ( !qword_14090BFE0 )
{
v231 = operator new(0x3E8u);
qword_14090BFE0 = sub_1402D6480(v231);
(*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFE0 + 72LL))(qword_14090BFE0);
v29 = qword_14090BFE0;
}
*(_DWORD *)(a1 + 544) = GameStatsManager::getStat(v29, "28") - v235;
v30 = qword_14090BFE0;
if ( !qword_14090BFE0 )
{
v231 = operator new(0x3E8u);
qword_14090BFE0 = sub_1402D6480(v231);
(*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFE0 + 72LL))(qword_14090BFE0);
v30 = qword_14090BFE0;
}
*(_DWORD *)(a1 + 548) = GameStatsManager::getStat(v30, "13") - a5;
CurrencySprite::spriteTypeToStat(v247, a6);
if ( v247[2] )
{
v31 = v247;
if ( v247[3] > 0xFu )
v31 = (_QWORD *)v247[0];
v32 = qword_14090BFE0;
if ( !qword_14090BFE0 )
{
v231 = operator new(0x3E8u);
qword_14090BFE0 = sub_1402D6480(v231);
(*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFE0 + 72LL))(qword_14090BFE0);
v32 = qword_14090BFE0;
}
*(_DWORD *)(a1 + 552) = GameStatsManager::getStat(v32, v31) - v20;
}
else
{
v15 = 0;
}
CurrencySprite::spriteTypeToStat(v246, v16);
if ( v246[2] )
{
v33 = v246;
if ( v246[3] > 0xFu )
v33 = (_QWORD *)v246[0];
v34 = qword_14090BFE0;
if ( !qword_14090BFE0 )
{
v231 = operator new(0x3E8u);
qword_14090BFE0 = sub_1402D6480(v231);
(*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFE0 + 72LL))(qword_14090BFE0);
v34 = qword_14090BFE0;
}
*(_DWORD *)(a1 + 556) = GameStatsManager::getStat(v34, v33) - v236;
}
else
{
v16 = 0;
}
*(_DWORD *)(a1 + 632) = 0;
v35 = 0.0;
if ( a2 > 0 )
{
v36 = cocos2d::CCString::createWithFormat((const char *)&word_1406ED6F8, *(unsigned int *)(a1 + 536));
CString = cocos2d::CCString::getCString(v36);
v38 = cocos2d::CCLabelBMFont::create(CString, (const char *)&qword_140704F78);
*(_QWORD *)(a1 + 424) = v38;
(*(void (__fastcall **)(_QWORD, struct cocos2d::CCLabelBMFont *, __int64))(**(_QWORD **)(a1 + 624) + 456LL))(
*(_QWORD *)(a1 + 624),
v38,
10);
v39 = **(_QWORD **)(a1 + 424);
v40 = *(_QWORD *)(a1 + 424);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v231, 1.0, 1.0);
(*(void (__fastcall **)(__int64, __int64))(v39 + 288))(v40, v41);
(*(void (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 424) + 160LL))(*(_QWORD *)(a1 + 424));
v228 = -106;
v229 = -1;
(**(void (__fastcall ***)(__int64, __int16 *))(*(_QWORD *)(a1 + 424) + 368LL))(
*(_QWORD *)(a1 + 424) + 368LL,
&v228);
v42 = **(_QWORD **)(a1 + 424);
v43 = *(_QWORD *)(a1 + 424);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v231, 0.0, (float)(-30 * *(_DWORD *)(a1 + 632)));
(*(void (__fastcall **)(__int64, __int64))(v42 + 184))(v43, v44);
v45 = (const struct cocos2d::CCSize *)(*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 424) + 320LL))(*(_QWORD *)(a1 + 424));
cocos2d::CCSize::CCSize((cocos2d::CCSize *)&v230, v45);
v46 = (*(float (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 424) + 168LL))(*(_QWORD *)(a1 + 424));
*(float *)&v230 = *(float *)&v230 * v46;
v47 = (*(float (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 424) + 168LL))(*(_QWORD *)(a1 + 424));
*((float *)&v230 + 1) = *((float *)&v230 + 1) * v47;
cocos2d::CCPoint::CCPoint(
(cocos2d::CCPoint *)&v231,
(float)-*(float *)&v230 * 0.5,
(float)-*((float *)&v230 + 1) * 0.5);
cocos2d::CCPoint::operator+(&v237, &v233, v48);
cocos2d::CCPoint::operator=(a1 + 572, &v233);
++*(_DWORD *)(a1 + 632);
v49 = cocos2d::CCSprite::createWithSpriteFrameName((const char *)&xmmword_14071BE38);
(*(void (__fastcall **)(_QWORD, struct cocos2d::CCSprite *, __int64))(**(_QWORD **)(a1 + 624) + 456LL))(
*(_QWORD *)(a1 + 624),
v49,
3);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v231, 15.0, -0.5 - (float)(*((float *)&v230 + 1) * 0.5));
v51 = v50;
v52 = (*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 424) + 200LL))(*(_QWORD *)(a1 + 424));
cocos2d::CCPoint::operator+(v52, &v233, v51);
(*(void (__fastcall **)(struct cocos2d::CCSprite *, int *))(*(_QWORD *)v49 + 184LL))(v49, &v233);
v53 = *(_QWORD *)(a1 + 624);
v54 = (*(__int64 (__fastcall **)(struct cocos2d::CCSprite *))(*(_QWORD *)v49 + 200LL))(v49);
cocos2d::CCNode::convertToWorldSpace(v53, &v231, v54);
cocos2d::CCPoint::operator=(a1 + 572, v55);
*(_QWORD *)(a1 + 472) = v49;
v56 = cocos2d::CCTintTo::create(0.30000001, 0, 0xFFu, 0xFFu);
v57 = cocos2d::CCTintTo::create(0.30000001, 0x96u, 0xFFu, 0xFFu);
v58 = cocos2d::CCSequence::create(v56, v57, 0);
v59 = cocos2d::CCRepeatForever::create(v58);
cocos2d::CCNode::runAction(*(cocos2d::CCNode **)(a1 + 424), v59);
v60 = cocos2d::CCParticleSystemQuad::create("keyEffect.plist", 0);
(*(void (__fastcall **)(cocos2d::CCParticleSystem *, __int64))(*(_QWORD *)v60 + 1496LL))(v60, 8);
si128 = _mm_load_si128((const __m128i *)&xmmword_140836BC0);
(*(void (__fastcall **)(cocos2d::CCParticleSystem *, __m128i *))(*(_QWORD *)v60 + 1352LL))(v60, &si128);
si128 = _mm_load_si128((const __m128i *)&xmmword_140836AB0);
(*(void (__fastcall **)(cocos2d::CCParticleSystem *, __m128i *))(*(_QWORD *)v60 + 1384LL))(v60, &si128);
si128 = 0;
(*(void (__fastcall **)(cocos2d::CCParticleSystem *, __m128i *))(*(_QWORD *)v60 + 1368LL))(v60, &si128);
si128 = 0;
(*(void (__fastcall **)(cocos2d::CCParticleSystem *, __m128i *))(*(_QWORD *)v60 + 1400LL))(v60, &si128);
(*(void (__fastcall **)(cocos2d::CCParticleSystem *))(*(_QWORD *)v60 + 968LL))(v60);
(*(void (__fastcall **)(cocos2d::CCParticleSystem *))(*(_QWORD *)v60 + 984LL))(v60);
v61 = *(_QWORD *)v60;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v231, 12.0, 10.0);
(*(void (__fastcall **)(cocos2d::CCParticleSystem *, __int64))(v61 + 952))(v60, v62);
(*(void (__fastcall **)(_QWORD, cocos2d::CCParticleSystem *, __int64))(**(_QWORD **)(a1 + 624) + 456LL))(
*(_QWORD *)(a1 + 624),
v60,
100);
v63 = *(_QWORD *)v60;
v64 = (*(__int64 (__fastcall **)(struct cocos2d::CCSprite *))(*(_QWORD *)v49 + 200LL))(v49);
(*(void (__fastcall **)(cocos2d::CCParticleSystem *, __int64))(v63 + 184))(v60, v64);
(*(void (__fastcall **)(cocos2d::CCParticleSystem *, __int64))(*(_QWORD *)v60 + 1528LL))(v60, 2);
cocos2d::CCParticleSystem::resetSystem(v60);
}
if ( v234 > 0 )
{
v65 = cocos2d::CCString::createWithFormat((const char *)&word_1406ED6F8, *(unsigned int *)(a1 + 540));
v66 = cocos2d::CCString::getCString(v65);
v67 = cocos2d::CCLabelBMFont::create(v66, (const char *)&qword_140704F78);
*(_QWORD *)(a1 + 432) = v67;
(*(void (__fastcall **)(_QWORD, struct cocos2d::CCLabelBMFont *, __int64))(**(_QWORD **)(a1 + 624) + 456LL))(
*(_QWORD *)(a1 + 624),
v67,
10);
v68 = **(_QWORD **)(a1 + 432);
v69 = *(_QWORD *)(a1 + 432);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v231, 1.0, 1.0);
(*(void (__fastcall **)(__int64, __int64))(v68 + 288))(v69, v70);
(*(void (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 432) + 160LL))(*(_QWORD *)(a1 + 432));
v228 = -14081;
v229 = 0;
(**(void (__fastcall ***)(__int64, __int16 *))(*(_QWORD *)(a1 + 432) + 368LL))(
*(_QWORD *)(a1 + 432) + 368LL,
&v228);
v71 = **(_QWORD **)(a1 + 432);
v72 = *(_QWORD *)(a1 + 432);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v231, 0.0, (float)(-30 * *(_DWORD *)(a1 + 632)));
(*(void (__fastcall **)(__int64, __int64))(v71 + 184))(v72, v73);
v74 = (const struct cocos2d::CCSize *)(*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 432) + 320LL))(*(_QWORD *)(a1 + 432));
cocos2d::CCSize::CCSize((cocos2d::CCSize *)&v230, v74);
v75 = (*(float (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 432) + 168LL))(*(_QWORD *)(a1 + 432));
*(float *)&v230 = *(float *)&v230 * v75;
v76 = (*(float (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 432) + 168LL))(*(_QWORD *)(a1 + 432));
*((float *)&v230 + 1) = *((float *)&v230 + 1) * v76;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v241, 0.0, (float)(-30 * *(_DWORD *)(a1 + 632)));
cocos2d::CCPoint::operator+(&v237, &v233, v77);
cocos2d::CCPoint::CCPoint(
(cocos2d::CCPoint *)v232,
(float)-*(float *)&v230 * 0.5,
(float)-*((float *)&v230 + 1) * 0.5);
cocos2d::CCPoint::operator+(&v233, &v231, v78);
cocos2d::CCPoint::operator=(a1 + 580, &v231);
++*(_DWORD *)(a1 + 632);
v79 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_bigStar_001.png");
(*(void (__fastcall **)(struct cocos2d::CCSprite *))(*(_QWORD *)v79 + 160LL))(v79);
(*(void (__fastcall **)(_QWORD, struct cocos2d::CCSprite *, __int64))(**(_QWORD **)(a1 + 624) + 456LL))(
*(_QWORD *)(a1 + 624),
v79,
3);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v232, 15.0, -0.5 - (float)(*((float *)&v230 + 1) * 0.5));
v81 = v80;
v82 = (*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 432) + 200LL))(*(_QWORD *)(a1 + 432));
cocos2d::CCPoint::operator+(v82, &v231, v81);
(*(void (__fastcall **)(struct cocos2d::CCSprite *, void **))(*(_QWORD *)v79 + 184LL))(v79, &v231);
v83 = *(_QWORD *)(a1 + 624);
v84 = (*(__int64 (__fastcall **)(struct cocos2d::CCSprite *))(*(_QWORD *)v79 + 200LL))(v79);
cocos2d::CCNode::convertToWorldSpace(v83, v232, v84);
cocos2d::CCPoint::operator=(a1 + 580, v85);
*(_QWORD *)(a1 + 480) = v79;
v86 = cocos2d::CCTintTo::create(0.30000001, 0xFFu, 0xFFu, 0);
v87 = cocos2d::CCTintTo::create(0.30000001, 0xFFu, 0xC8u, 0);
v88 = cocos2d::CCSequence::create(v86, v87, 0);
v89 = cocos2d::CCRepeatForever::create(v88);
cocos2d::CCNode::runAction(*(cocos2d::CCNode **)(a1 + 432), v89);
v90 = cocos2d::CCParticleSystemQuad::create("keyEffect.plist", 0);
(*(void (__fastcall **)(cocos2d::CCParticleSystem *, __int64))(*(_QWORD *)v90 + 1496LL))(v90, 8);
si128 = _mm_load_si128((const __m128i *)&xmmword_140836A20);
(*(void (__fastcall **)(cocos2d::CCParticleSystem *, __m128i *))(*(_QWORD *)v90 + 1352LL))(v90, &si128);
si128 = _mm_load_si128((const __m128i *)&xmmword_140836980);
(*(void (__fastcall **)(cocos2d::CCParticleSystem *, __m128i *))(*(_QWORD *)v90 + 1384LL))(v90, &si128);
si128 = 0;
(*(void (__fastcall **)(cocos2d::CCParticleSystem *, __m128i *))(*(_QWORD *)v90 + 1368LL))(v90, &si128);
si128 = 0;
(*(void (__fastcall **)(cocos2d::CCParticleSystem *, __m128i *))(*(_QWORD *)v90 + 1400LL))(v90, &si128);
(*(void (__fastcall **)(cocos2d::CCParticleSystem *))(*(_QWORD *)v90 + 968LL))(v90);
(*(void (__fastcall **)(cocos2d::CCParticleSystem *))(*(_QWORD *)v90 + 984LL))(v90);
v91 = *(_QWORD *)v90;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v232, 12.0, 10.0);
(*(void (__fastcall **)(cocos2d::CCParticleSystem *, __int64))(v91 + 952))(v90, v92);
(*(void (__fastcall **)(_QWORD, cocos2d::CCParticleSystem *, __int64))(**(_QWORD **)(a1 + 624) + 456LL))(
*(_QWORD *)(a1 + 624),
v90,
100);
v93 = *(_QWORD *)v90;
v94 = (*(__int64 (__fastcall **)(struct cocos2d::CCSprite *))(*(_QWORD *)v79 + 200LL))(v79);
(*(void (__fastcall **)(cocos2d::CCParticleSystem *, __int64))(v93 + 184))(v90, v94);
(*(void (__fastcall **)(cocos2d::CCParticleSystem *, __int64))(*(_QWORD *)v90 + 1528LL))(v90, 2);
cocos2d::CCParticleSystem::resetSystem(v90);
}
if ( v235 > 0 )
{
v95 = cocos2d::CCString::createWithFormat((const char *)&word_1406ED6F8, *(unsigned int *)(a1 + 544));
v96 = cocos2d::CCString::getCString(v95);
v97 = cocos2d::CCLabelBMFont::create(v96, (const char *)&qword_140704F78);
*(_QWORD *)(a1 + 440) = v97;
(*(void (__fastcall **)(_QWORD, struct cocos2d::CCLabelBMFont *, __int64))(**(_QWORD **)(a1 + 624) + 456LL))(
*(_QWORD *)(a1 + 624),
v97,
10);
v98 = **(_QWORD **)(a1 + 440);
v99 = *(_QWORD *)(a1 + 440);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v232, 1.0, 1.0);
(*(void (__fastcall **)(__int64, __int64))(v98 + 288))(v99, v100);
(*(void (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 440) + 160LL))(*(_QWORD *)(a1 + 440));
v228 = -256;
v229 = -1;
(**(void (__fastcall ***)(__int64, __int16 *))(*(_QWORD *)(a1 + 440) + 368LL))(
*(_QWORD *)(a1 + 440) + 368LL,
&v228);
v101 = **(_QWORD **)(a1 + 440);
v102 = *(_QWORD *)(a1 + 440);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v232, 0.0, (float)(-30 * *(_DWORD *)(a1 + 632)));
(*(void (__fastcall **)(__int64, __int64))(v101 + 184))(v102, v103);
v104 = (const struct cocos2d::CCSize *)(*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 440) + 320LL))(*(_QWORD *)(a1 + 440));
cocos2d::CCSize::CCSize((cocos2d::CCSize *)&v230, v104);
v105 = (*(float (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 440) + 168LL))(*(_QWORD *)(a1 + 440));
*(float *)&v230 = *(float *)&v230 * v105;
v106 = (*(float (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 440) + 168LL))(*(_QWORD *)(a1 + 440));
*((float *)&v230 + 1) = *((float *)&v230 + 1) * v106;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v232, 0.0, (float)(-30 * *(_DWORD *)(a1 + 632)));
cocos2d::CCPoint::operator+(&v237, &v231, v107);
cocos2d::CCPoint::CCPoint(
(cocos2d::CCPoint *)v241,
(float)-*(float *)&v230 * 0.5,
(float)-*((float *)&v230 + 1) * 0.5);
cocos2d::CCPoint::operator+(&v231, &v233, v108);
cocos2d::CCPoint::operator=(a1 + 588, &v233);
++*(_DWORD *)(a1 + 632);
v109 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_bigMoon_001.png");
(*(void (__fastcall **)(struct cocos2d::CCSprite *))(*(_QWORD *)v109 + 160LL))(v109);
(*(void (__fastcall **)(_QWORD, struct cocos2d::CCSprite *, __int64))(**(_QWORD **)(a1 + 624) + 456LL))(
*(_QWORD *)(a1 + 624),
v109,
3);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v232, 15.0, -0.5 - (float)(*((float *)&v230 + 1) * 0.5));
v111 = v110;
v112 = (*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 440) + 200LL))(*(_QWORD *)(a1 + 440));
cocos2d::CCPoint::operator+(v112, &v231, v111);
(*(void (__fastcall **)(struct cocos2d::CCSprite *, void **))(*(_QWORD *)v109 + 184LL))(v109, &v231);
v113 = *(_QWORD *)(a1 + 624);
v114 = (*(__int64 (__fastcall **)(struct cocos2d::CCSprite *))(*(_QWORD *)v109 + 200LL))(v109);
cocos2d::CCNode::convertToWorldSpace(v113, v232, v114);
cocos2d::CCPoint::operator=(a1 + 588, v115);
*(_QWORD *)(a1 + 488) = v109;
v116 = cocos2d::CCTintTo::create(0.30000001, 0, 0xFFu, 0xFFu);
v117 = cocos2d::CCTintTo::create(0.30000001, 0, 0xC8u, 0xFFu);
v118 = cocos2d::CCSequence::create(v116, v117, 0);
v119 = cocos2d::CCRepeatForever::create(v118);
cocos2d::CCNode::runAction(*(cocos2d::CCNode **)(a1 + 440), v119);
v120 = cocos2d::CCParticleSystemQuad::create("keyEffect.plist", 0);
(*(void (__fastcall **)(cocos2d::CCParticleSystem *, __int64))(*(_QWORD *)v120 + 1496LL))(v120, 8);
si128 = _mm_load_si128((const __m128i *)&xmmword_140836BD0);
(*(void (__fastcall **)(cocos2d::CCParticleSystem *, __m128i *))(*(_QWORD *)v120 + 1352LL))(v120, &si128);
si128 = _mm_load_si128((const __m128i *)&xmmword_140836B00);
(*(void (__fastcall **)(cocos2d::CCParticleSystem *, __m128i *))(*(_QWORD *)v120 + 1384LL))(v120, &si128);
si128 = 0;
(*(void (__fastcall **)(cocos2d::CCParticleSystem *, __m128i *))(*(_QWORD *)v120 + 1368LL))(v120, &si128);
si128 = 0;
(*(void (__fastcall **)(cocos2d::CCParticleSystem *, __m128i *))(*(_QWORD *)v120 + 1400LL))(v120, &si128);
(*(void (__fastcall **)(cocos2d::CCParticleSystem *))(*(_QWORD *)v120 + 968LL))(v120);
(*(void (__fastcall **)(cocos2d::CCParticleSystem *))(*(_QWORD *)v120 + 984LL))(v120);
v121 = *(_QWORD *)v120;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v232, 12.0, 10.0);
(*(void (__fastcall **)(cocos2d::CCParticleSystem *, __int64))(v121 + 952))(v120, v122);
(*(void (__fastcall **)(_QWORD, cocos2d::CCParticleSystem *, __int64))(**(_QWORD **)(a1 + 624) + 456LL))(
*(_QWORD *)(a1 + 624),
v120,
100);
v123 = *(_QWORD *)v120;
v124 = (*(__int64 (__fastcall **)(struct cocos2d::CCSprite *))(*(_QWORD *)v109 + 200LL))(v109);
(*(void (__fastcall **)(cocos2d::CCParticleSystem *, __int64))(v123 + 184))(v120, v124);
(*(void (__fastcall **)(cocos2d::CCParticleSystem *, __int64))(*(_QWORD *)v120 + 1528LL))(v120, 2);
cocos2d::CCParticleSystem::resetSystem(v120);
}
if ( a5 > 0 )
{
v125 = cocos2d::CCString::createWithFormat((const char *)&word_1406ED6F8, *(unsigned int *)(a1 + 548));
v126 = cocos2d::CCString::getCString(v125);
v127 = cocos2d::CCLabelBMFont::create(v126, (const char *)&qword_140704F78);
*(_QWORD *)(a1 + 448) = v127;
(*(void (__fastcall **)(_QWORD, struct cocos2d::CCLabelBMFont *, __int64))(**(_QWORD **)(a1 + 624) + 456LL))(
*(_QWORD *)(a1 + 624),
v127,
10);
v128 = **(_QWORD **)(a1 + 448);
v129 = *(_QWORD *)(a1 + 448);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v232, 1.0, 1.0);
(*(void (__fastcall **)(__int64, __int64))(v128 + 288))(v129, v130);
(*(void (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 448) + 160LL))(*(_QWORD *)(a1 + 448));
v228 = -1;
v229 = -1;
(**(void (__fastcall ***)(__int64, __int16 *))(*(_QWORD *)(a1 + 448) + 368LL))(
*(_QWORD *)(a1 + 448) + 368LL,
&v228);
v131 = **(_QWORD **)(a1 + 448);
v132 = *(_QWORD *)(a1 + 448);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v232, 0.0, (float)(-30 * *(_DWORD *)(a1 + 632)));
(*(void (__fastcall **)(__int64, __int64))(v131 + 184))(v132, v133);
v134 = (const struct cocos2d::CCSize *)(*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 448) + 320LL))(*(_QWORD *)(a1 + 448));
cocos2d::CCSize::CCSize((cocos2d::CCSize *)&v230, v134);
v135 = (*(float (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 448) + 168LL))(*(_QWORD *)(a1 + 448));
*(float *)&v230 = *(float *)&v230 * v135;
v136 = (*(float (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 448) + 168LL))(*(_QWORD *)(a1 + 448));
*((float *)&v230 + 1) = *((float *)&v230 + 1) * v136;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v241, 0.0, (float)(-30 * *(_DWORD *)(a1 + 632)));
cocos2d::CCPoint::operator+(&v237, &v231, v137);
cocos2d::CCPoint::CCPoint(
(cocos2d::CCPoint *)v232,
(float)-*(float *)&v230 * 0.5,
(float)-*((float *)&v230 + 1) * 0.5);
cocos2d::CCPoint::operator+(&v231, &v233, v138);
cocos2d::CCPoint::operator=(a1 + 596, &v233);
++*(_DWORD *)(a1 + 632);
v139 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_bigDiamond_001.png");
(*(void (__fastcall **)(struct cocos2d::CCSprite *))(*(_QWORD *)v139 + 160LL))(v139);
(*(void (__fastcall **)(_QWORD, struct cocos2d::CCSprite *, __int64))(**(_QWORD **)(a1 + 624) + 456LL))(
*(_QWORD *)(a1 + 624),
v139,
3);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v245, 15.0, -0.5 - (float)(*((float *)&v230 + 1) * 0.5));
v141 = v140;
v142 = (*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 448) + 200LL))(*(_QWORD *)(a1 + 448));
cocos2d::CCPoint::operator+(v142, &v231, v141);
(*(void (__fastcall **)(struct cocos2d::CCSprite *, void **))(*(_QWORD *)v139 + 184LL))(v139, &v231);
v143 = *(_QWORD *)(a1 + 624);
v144 = (*(__int64 (__fastcall **)(struct cocos2d::CCSprite *))(*(_QWORD *)v139 + 200LL))(v139);
cocos2d::CCNode::convertToWorldSpace(v143, &v245, v144);
cocos2d::CCPoint::operator=(a1 + 596, v145);
*(_QWORD *)(a1 + 496) = v139;
v146 = cocos2d::CCParticleSystemQuad::create("keyEffect.plist", 0);
(*(void (__fastcall **)(cocos2d::CCParticleSystem *, __int64))(*(_QWORD *)v146 + 1496LL))(v146, 8);
v245 = _mm_load_si128((const __m128i *)&xmmword_140836C20);
(*(void (__fastcall **)(cocos2d::CCParticleSystem *, __m128i *))(*(_QWORD *)v146 + 1352LL))(v146, &v245);
v245 = _mm_load_si128((const __m128i *)&xmmword_140836C00);
(*(void (__fastcall **)(cocos2d::CCParticleSystem *, __m128i *))(*(_QWORD *)v146 + 1384LL))(v146, &v245);
v245 = 0;
(*(void (__fastcall **)(cocos2d::CCParticleSystem *, __m128i *))(*(_QWORD *)v146 + 1368LL))(v146, &v245);
v245 = 0;
(*(void (__fastcall **)(cocos2d::CCParticleSystem *, __m128i *))(*(_QWORD *)v146 + 1400LL))(v146, &v245);
(*(void (__fastcall **)(cocos2d::CCParticleSystem *))(*(_QWORD *)v146 + 968LL))(v146);
(*(void (__fastcall **)(cocos2d::CCParticleSystem *))(*(_QWORD *)v146 + 984LL))(v146);
v147 = *(_QWORD *)v146;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&si128, 12.0, 10.0);
(*(void (__fastcall **)(cocos2d::CCParticleSystem *, __int64))(v147 + 952))(v146, v148);
(*(void (__fastcall **)(_QWORD, cocos2d::CCParticleSystem *, __int64))(**(_QWORD **)(a1 + 624) + 456LL))(
*(_QWORD *)(a1 + 624),
v146,
100);
v149 = *(_QWORD *)v146;
v150 = (*(__int64 (__fastcall **)(struct cocos2d::CCSprite *))(*(_QWORD *)v139 + 200LL))(v139);
(*(void (__fastcall **)(cocos2d::CCParticleSystem *, __int64))(v149 + 184))(v146, v150);
(*(void (__fastcall **)(cocos2d::CCParticleSystem *, __int64))(*(_QWORD *)v146 + 1528LL))(v146, 2);
cocos2d::CCParticleSystem::resetSystem(v146);
}
if ( v15 > 0 )
{
v151 = cocos2d::CCString::createWithFormat((const char *)&word_1406ED6F8, *(unsigned int *)(a1 + 552));
v152 = cocos2d::CCString::getCString(v151);
v153 = cocos2d::CCLabelBMFont::create(v152, (const char *)&qword_140704F78);
*(_QWORD *)(a1 + 456) = v153;
(*(void (__fastcall **)(_QWORD, struct cocos2d::CCLabelBMFont *, __int64))(**(_QWORD **)(a1 + 624) + 456LL))(
*(_QWORD *)(a1 + 624),
v153,
10);
v154 = **(_QWORD **)(a1 + 456);
v155 = *(_QWORD *)(a1 + 456);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&si128, 1.0, 1.0);
(*(void (__fastcall **)(__int64, __int64))(v154 + 288))(v155, v156);
(*(void (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 456) + 160LL))(*(_QWORD *)(a1 + 456));
v228 = -1;
v229 = -1;
(**(void (__fastcall ***)(__int64, __int16 *))(*(_QWORD *)(a1 + 456) + 368LL))(
*(_QWORD *)(a1 + 456) + 368LL,
&v228);
v157 = **(_QWORD **)(a1 + 456);
v158 = *(_QWORD *)(a1 + 456);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v245, 0.0, (float)(-30 * *(_DWORD *)(a1 + 632)));
(*(void (__fastcall **)(__int64, __int64))(v157 + 184))(v158, v159);
(*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(a1 + 456) + 64LL))(
*(_QWORD *)(a1 + 456),
(unsigned int)v15);
v160 = (const struct cocos2d::CCSize *)(*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 456) + 320LL))(*(_QWORD *)(a1 + 456));
cocos2d::CCSize::CCSize((cocos2d::CCSize *)&v230, v160);
v161 = (*(float (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 456) + 168LL))(*(_QWORD *)(a1 + 456));
*(float *)&v230 = *(float *)&v230 * v161;
v162 = (*(float (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 456) + 168LL))(*(_QWORD *)(a1 + 456));
*((float *)&v230 + 1) = *((float *)&v230 + 1) * v162;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v232, 0.0, (float)(-30 * *(_DWORD *)(a1 + 632)));
cocos2d::CCPoint::operator+(&v237, &v231, v163);
cocos2d::CCPoint::CCPoint(
(cocos2d::CCPoint *)&si128,
(float)-*(float *)&v230 * 0.5,
(float)-*((float *)&v230 + 1) * 0.5);
cocos2d::CCPoint::operator+(&v231, &v233, v164);
cocos2d::CCPoint::operator=(a1 + 604, &v233);
++*(_DWORD *)(a1 + 632);
si128.m128i_i64[0] = (__int64)operator new(0x2A8u);
v165 = CurrencySprite::CurrencySprite(si128.m128i_i64[0]);
v167 = (cocos2d::CCObject *)v165;
if ( v165 )
{
LOBYTE(v166) = 1;
if ( (unsigned __int8)CurrencySprite::init(v165, (unsigned int)v15, v166) )
{
cocos2d::CCObject::autorelease(v167);
}
else
{
(*(void (__fastcall **)(cocos2d::CCObject *, __int64))(*(_QWORD *)v167 + 8LL))(v167, 1);
v167 = nullptr;
}
}
(*(void (__fastcall **)(_QWORD, cocos2d::CCObject *, __int64))(**(_QWORD **)(a1 + 624) + 456LL))(
*(_QWORD *)(a1 + 624),
v167,
3);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&si128, 15.0, -0.5 - (float)(*((float *)&v230 + 1) * 0.5));
v169 = v168;
v170 = (*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 456) + 200LL))(*(_QWORD *)(a1 + 456));
cocos2d::CCPoint::operator+(v170, &v231, v169);
(*(void (__fastcall **)(cocos2d::CCObject *, void **))(*(_QWORD *)v167 + 184LL))(v167, &v231);
(*(void (__fastcall **)(cocos2d::CCObject *))(*(_QWORD *)v167 + 160LL))(v167);
*(_QWORD *)(a1 + 504) = v167;
v171 = *(_QWORD *)(a1 + 624);
v172 = (*(__int64 (__fastcall **)(cocos2d::CCObject *))(*(_QWORD *)v167 + 200LL))(v167);
cocos2d::CCNode::convertToWorldSpace(v171, &si128, v172);
cocos2d::CCPoint::operator=(a1 + 604, v173);
}
if ( (int)v16 > 0 )
{
v174 = cocos2d::CCString::createWithFormat((const char *)&word_1406ED6F8, *(unsigned int *)(a1 + 556));
v175 = cocos2d::CCString::getCString(v174);
v176 = cocos2d::CCLabelBMFont::create(v175, (const char *)&qword_140704F78);
*(_QWORD *)(a1 + 464) = v176;
(*(void (__fastcall **)(_QWORD, struct cocos2d::CCLabelBMFont *, __int64))(**(_QWORD **)(a1 + 624) + 456LL))(
*(_QWORD *)(a1 + 624),
v176,
10);
v177 = **(_QWORD **)(a1 + 464);
v178 = *(_QWORD *)(a1 + 464);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&si128, 1.0, 1.0);
(*(void (__fastcall **)(__int64, __int64))(v177 + 288))(v178, v179);
(*(void (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 464) + 160LL))(*(_QWORD *)(a1 + 464));
v228 = -1;
v229 = -1;
(**(void (__fastcall ***)(__int64, __int16 *))(*(_QWORD *)(a1 + 464) + 368LL))(
*(_QWORD *)(a1 + 464) + 368LL,
&v228);
v180 = **(_QWORD **)(a1 + 464);
v181 = *(_QWORD *)(a1 + 464);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v245, 0.0, (float)(-30 * *(_DWORD *)(a1 + 632)));
(*(void (__fastcall **)(__int64, __int64))(v180 + 184))(v181, v182);
(*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(a1 + 464) + 64LL))(*(_QWORD *)(a1 + 464), v16);
v183 = (const struct cocos2d::CCSize *)(*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 464) + 320LL))(*(_QWORD *)(a1 + 464));
cocos2d::CCSize::CCSize((cocos2d::CCSize *)&v230, v183);
v184 = (*(float (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 464) + 168LL))(*(_QWORD *)(a1 + 464));
*(float *)&v230 = *(float *)&v230 * v184;
v185 = (*(float (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 464) + 168LL))(*(_QWORD *)(a1 + 464));
*((float *)&v230 + 1) = *((float *)&v230 + 1) * v185;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v232, 0.0, (float)(-30 * *(_DWORD *)(a1 + 632)));
cocos2d::CCPoint::operator+(&v237, &v231, v186);
cocos2d::CCPoint::CCPoint(
(cocos2d::CCPoint *)&si128,
(float)-*(float *)&v230 * 0.5,
(float)-*((float *)&v230 + 1) * 0.5);
cocos2d::CCPoint::operator+(&v231, &v233, v187);
cocos2d::CCPoint::operator=(a1 + 612, &v233);
++*(_DWORD *)(a1 + 632);
si128.m128i_i64[0] = (__int64)operator new(0x2A8u);
v188 = CurrencySprite::CurrencySprite(si128.m128i_i64[0]);
v190 = (cocos2d::CCObject *)v188;
if ( v188 )
{
LOBYTE(v189) = 1;
if ( (unsigned __int8)CurrencySprite::init(v188, v16, v189) )
{
cocos2d::CCObject::autorelease(v190);
}
else
{
(*(void (__fastcall **)(cocos2d::CCObject *, __int64))(*(_QWORD *)v190 + 8LL))(v190, 1);
v190 = nullptr;
}
}
(*(void (__fastcall **)(_QWORD, cocos2d::CCObject *, __int64))(**(_QWORD **)(a1 + 624) + 456LL))(
*(_QWORD *)(a1 + 624),
v190,
3);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&si128, 15.0, -0.5 - (float)(*((float *)&v230 + 1) * 0.5));
v192 = v191;
v193 = (*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 464) + 200LL))(*(_QWORD *)(a1 + 464));
cocos2d::CCPoint::operator+(v193, &v231, v192);
(*(void (__fastcall **)(cocos2d::CCObject *, void **))(*(_QWORD *)v190 + 184LL))(v190, &v231);
(*(void (__fastcall **)(cocos2d::CCObject *))(*(_QWORD *)v190 + 160LL))(v190);
*(_QWORD *)(a1 + 512) = v190;
v194 = *(_QWORD *)(a1 + 624);
v195 = (*(__int64 (__fastcall **)(cocos2d::CCObject *))(*(_QWORD *)v190 + 200LL))(v190);
cocos2d::CCNode::convertToWorldSpace(v194, &si128, v195);
cocos2d::CCPoint::operator=(a1 + 612, v196);
}
v197 = (const struct cocos2d::CCPoint *)(*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 624) + 200LL))(*(_QWORD *)(a1 + 624));
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v243, v197);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&si128, 0.0, (float)(30 * *(_DWORD *)(a1 + 632) + 10));
v199 = v198;
v200 = (*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 624) + 200LL))(*(_QWORD *)(a1 + 624));
cocos2d::CCPoint::operator+(v200, &v231, v199);
(*(void (__fastcall **)(_QWORD, void **))(**(_QWORD **)(a1 + 624) + 184LL))(*(_QWORD *)(a1 + 624), &v231);
v201 = cocos2d::CCMoveTo::create(a13 * 0.5, (const struct cocos2d::CCPoint *)v243);
v202 = cocos2d::CCEaseInOut::create(v201, 2.0);
cocos2d::CCNode::runAction(*(cocos2d::CCNode **)(a1 + 624), v202);
v204 = (cocos2d::CCObject *)cocos2d::CCArray::create(v203);
*(_QWORD *)(a1 + 416) = v204;
cocos2d::CCObject::retain(v204);
v205 = a13 * 0.2;
v206 = v240;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v245, v240);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v232, v207);
v208 = v238;
CurrencyRewardLayer::createObjectsFull(a1, 1, v238, 0, v209, 0);
if ( v208 <= 0 )
v210 = 0.0;
else
v210 = a13 * 0.2;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&si128, v206);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v245, v211);
CurrencyRewardLayer::createObjectsFull(a1, 2, v234, 0, v212, LODWORD(v210));
if ( v208 > 0 )
v35 = a13 * 0.2;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&si128, v206);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v245, v213);
v214 = v235;
CurrencyRewardLayer::createObjectsFull(a1, 15, v235, 0, v215, LODWORD(v35));
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v232, v206);
v216 = v214 > 0;
v217 = v234 > 0;
v218 = v238 > 0;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v241, v219);
CurrencyRewardLayer::createObjectsFull(a1, 3, a5, 0, v220, (float)(v216 + v217 + v218) * v205);
LOBYTE(v19) = a5 > 0;
v221 = (float)((float)((float)(v216 + v218 + v217 + v19) * v205) + 0.1) * a13;
v222 = v221;
if ( v15 == 9 || v15 == 16 )
v221 = v221 + 0.2;
if ( v16 == 9 || v16 == 16 )
v222 = v222 + 0.2;
v223 = v240;
if ( v15 )
{
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&si128, v240);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v245, v224);
CurrencyRewardLayer::createObjectsFull(a1, v15, v239, 0, v225, LODWORD(v221));
}
if ( v16 )
{
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&si128, v223);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v245, v226);
CurrencyRewardLayer::createObjectsFull(a1, v16, v236, 0, v227, LODWORD(v222));
}
*(_BYTE *)(a1 + 621) = 1;
cocos2d::CCNode::scheduleUpdate((cocos2d::CCNode *)a1);
sub_14003D310((__int64)v246);
sub_14003D310((__int64)v247);
return 1;
}
return result;
}