// // CurrencyRewardLayer::init from 0xa6abcc to 0xa6c858 (7308 bytes) // // 2 xrefs: // > CurrencyRewardLayer::create @ 0xa6ca10 // > @ 0xe6c68 // // This function is hookable on this platform (idp: arm, 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 13:00:21 +0000 // __int64 __fastcall CurrencyRewardLayer::init( __int64 a1, int a2, int a3, int a4, int a5, int a6, int a7, int a8, float a9, float a10, int a11, const cocos2d::CCPoint *a12, unsigned int a13) { unsigned __int64 v21; // x0 int v22; // w1 cocos2d::CCDirector *v23; // x0 cocos2d::CCTextureCache *WinSize; // x0 cocos2d::CCTextureCache *v25; // x0 cocos2d::CCSpriteBatchNode *v26; // x28 unsigned int v27; // w2 __int64 v28; // x0 unsigned int v29; // w2 __int64 v30; // x0 cocos2d::CCNode *v31; // x0 __int64 v32; // x0 GameStatsManager *v33; // x0 GameStatsManager *v34; // x0 GameStatsManager *v35; // x0 GameStatsManager *v36; // x0 GameStatsManager *v37; // x0 GameStatsManager *v38; // x0 GameStatsManager *v39; // x0 GameStatsManager *v40; // x0 __int64 v41; // x1 __n128 v42; // q0 __int64 v43; // x1 cocos2d::CCString *v44; // x0 cocos2d::CCLabelBMFont *CString; // x0 const char *v46; // x2 __int64 v47; // x0 __int64 v48; // x3 __int64 v49; // x28 void (__fastcall *v50)(__int64, __int64 *); // x21 __int64 v51; // x0 void (__fastcall *v52)(__int64, __int64 *); // x3 __int64 v53; // x28 void (__fastcall *v54)(__int64, __int64 *); // x21 const cocos2d::CCSize *v55; // x0 float v56; // s0 __int64 v57; // x0 float v58; // s0 const char *v59; // x1 __int64 v60; // x28 cocos2d::CCNode *v61; // x21 const cocos2d::CCPoint *v62; // x0 unsigned __int8 v63; // w3 cocos2d::CCSequence *v64; // x21 unsigned __int8 v65; // w3 cocos2d::CCFiniteTimeAction *v66; // x0 cocos2d::CCRepeatForever *v67; // x0 cocos2d::CCActionInterval *v68; // x1 cocos2d::CCAction *v69; // x0 bool v70; // w2 cocos2d::CCParticleSystem *v71; // x21 void (__fastcall *v72)(cocos2d::CCParticleSystem *, __int64 *); // x2 void (__fastcall *v73)(cocos2d::CCParticleSystem *, __int64 *); // x2 void (__fastcall *v74)(cocos2d::CCParticleSystem *, __int64 *); // x2 void (__fastcall *v75)(cocos2d::CCParticleSystem *, __int64 *); // x2 void (__fastcall *v76)(cocos2d::CCParticleSystem *, __int64); // x20 __int64 v77; // x0 cocos2d::CCString *v78; // x0 cocos2d::CCLabelBMFont *v79; // x0 const char *v80; // x2 __int64 v81; // x0 __int64 v82; // x3 __int64 v83; // x28 void (__fastcall *v84)(__int64, __int64 *); // x21 __int64 v85; // x0 void (__fastcall *v86)(__int64, __int64 *); // x2 __int64 v87; // x28 void (__fastcall *v88)(__int64, __int64 *); // x21 const cocos2d::CCSize *v89; // x0 float v90; // s0 __int64 v91; // x0 float v92; // s0 int v93; // w1 const char *v94; // x1 __int64 v95; // x28 cocos2d::CCNode *v96; // x21 const cocos2d::CCPoint *v97; // x0 unsigned __int8 v98; // w3 cocos2d::CCSequence *v99; // x21 unsigned __int8 v100; // w3 cocos2d::CCFiniteTimeAction *v101; // x0 cocos2d::CCRepeatForever *v102; // x0 cocos2d::CCActionInterval *v103; // x1 cocos2d::CCAction *v104; // x0 bool v105; // w2 cocos2d::CCParticleSystem *v106; // x21 void (__fastcall *v107)(cocos2d::CCParticleSystem *, __int64 *); // x2 void (__fastcall *v108)(cocos2d::CCParticleSystem *, __int64 *); // x2 void (__fastcall *v109)(cocos2d::CCParticleSystem *, __int64 *); // x2 void (__fastcall *v110)(cocos2d::CCParticleSystem *, __int64 *); // x2 void (__fastcall *v111)(cocos2d::CCParticleSystem *, __int64); // x20 __int64 v112; // x0 cocos2d::CCString *v113; // x0 cocos2d::CCLabelBMFont *v114; // x0 const char *v115; // x2 __int64 v116; // x0 __int64 v117; // x3 __int64 v118; // x28 void (__fastcall *v119)(__int64, __int64 *); // x21 __int64 v120; // x0 void (__fastcall *v121)(__int64, __int64 *); // x3 __int64 v122; // x28 void (__fastcall *v123)(__int64, __int64 *); // x21 const cocos2d::CCSize *v124; // x0 float v125; // s0 __int64 v126; // x0 float v127; // s0 int v128; // w1 const char *v129; // x1 __int64 v130; // x28 cocos2d::CCNode *v131; // x21 const cocos2d::CCPoint *v132; // x0 unsigned __int8 v133; // w3 cocos2d::CCSequence *v134; // x21 unsigned __int8 v135; // w3 cocos2d::CCFiniteTimeAction *v136; // x0 cocos2d::CCRepeatForever *v137; // x0 cocos2d::CCActionInterval *v138; // x1 cocos2d::CCAction *v139; // x0 bool v140; // w2 cocos2d::CCParticleSystem *v141; // x21 void (__fastcall *v142)(cocos2d::CCParticleSystem *, __int64 *); // x2 void (__fastcall *v143)(cocos2d::CCParticleSystem *, __int64 *); // x2 void (__fastcall *v144)(cocos2d::CCParticleSystem *, __int64 *); // x2 void (__fastcall *v145)(cocos2d::CCParticleSystem *, __int64 *); // x2 void (__fastcall *v146)(cocos2d::CCParticleSystem *, __int64); // x20 __int64 v147; // x0 cocos2d::CCString *v148; // x0 cocos2d::CCLabelBMFont *v149; // x0 const char *v150; // x2 __int64 v151; // x0 __int64 v152; // x3 __int64 v153; // x28 void (__fastcall *v154)(__int64, __int64 *); // x21 __int64 v155; // x0 void (__fastcall *v156)(__int64, __int64 *); // x3 __int64 v157; // x28 void (__fastcall *v158)(__int64, __int64 *); // x21 const cocos2d::CCSize *v159; // x0 float v160; // s0 __int64 v161; // x0 float v162; // s0 int v163; // w1 const char *v164; // x1 __int64 v165; // x28 cocos2d::CCNode *v166; // x21 const cocos2d::CCPoint *v167; // x0 bool v168; // w2 cocos2d::CCParticleSystem *v169; // x21 void (__fastcall *v170)(cocos2d::CCParticleSystem *, __int64 *); // x2 void (__fastcall *v171)(cocos2d::CCParticleSystem *, __int64 *); // x2 void (__fastcall *v172)(cocos2d::CCParticleSystem *, __int64 *); // x2 void (__fastcall *v173)(cocos2d::CCParticleSystem *, __int64 *); // x2 void (__fastcall *v174)(cocos2d::CCParticleSystem *, __int64); // x20 __int64 v175; // x0 cocos2d::CCString *v176; // x0 cocos2d::CCLabelBMFont *v177; // x0 const char *v178; // x2 __int64 v179; // x0 __int64 v180; // x3 __int64 v181; // x28 void (__fastcall *v182)(__int64, __int64 *); // x21 __int64 v183; // x0 void (__fastcall *v184)(__int64, __int64 *); // x3 __int64 v185; // x28 void (__fastcall *v186)(__int64, __int64 *); // x21 const cocos2d::CCSize *v187; // x0 float v188; // s0 __int64 v189; // x0 float v190; // s0 int v191; // w1 __int64 v192; // x28 void (__fastcall *v193)(__int64, long double); // x21 long double v194; // q0 cocos2d::CCNode *v195; // x21 const cocos2d::CCPoint *v196; // x0 cocos2d::CCString *v197; // x0 cocos2d::CCLabelBMFont *v198; // x0 const char *v199; // x2 __int64 v200; // x0 __int64 v201; // x3 __int64 v202; // x28 void (__fastcall *v203)(__int64, __int64 *); // x21 __int64 v204; // x0 void (__fastcall *v205)(__int64, __int64 *); // x3 __int64 v206; // x28 void (__fastcall *v207)(__int64, __int64 *); // x21 const cocos2d::CCSize *v208; // x0 float v209; // s0 __int64 v210; // x0 float v211; // s0 int v212; // w1 __int64 v213; // x25 __int64 v214; // x28 void (__fastcall *v215)(__int64, long double); // x21 long double v216; // q0 cocos2d::CCNode *v217; // x21 const cocos2d::CCPoint *v218; // x0 const cocos2d::CCPoint *v219; // x0 __int64 v220; // x25 const cocos2d::CCPoint *v221; // x1 cocos2d::CCEaseInOut *v222; // x0 cocos2d::CCActionInterval *v223; // x1 cocos2d::CCAction *v224; // x0 cocos2d::CCArray *v225; // x0 cocos2d::CCObject *v226; // x0 float v227; // s8 float v228; // s0 float v229; // s0 int v230; // w28 float v231; // s8 float v232; // s9 GameStatsManager *v234; // x0 const char *v235; // x1 GameStatsManager *v236; // x0 char *v237; // x1 __int64 v238; // [xsp+88h] [xbp+88h] __int64 v239; // [xsp+88h] [xbp+88h] __int64 v240; // [xsp+88h] [xbp+88h] __int64 v241; // [xsp+88h] [xbp+88h] __int64 v242; // [xsp+88h] [xbp+88h] void (__fastcall *v243)(__int64, __int64 *); // [xsp+90h] [xbp+90h] void (__fastcall *v244)(__int64, __int64 *); // [xsp+90h] [xbp+90h] void (__fastcall *v245)(__int64, __int64 *); // [xsp+90h] [xbp+90h] void (__fastcall *v246)(__int64, __int64 *); // [xsp+90h] [xbp+90h] void (__fastcall *v247)(__int64, __int64 *); // [xsp+90h] [xbp+90h] void (__fastcall *v248)(__int64, __int64 *); // [xsp+90h] [xbp+90h] __int64 v249; // [xsp+90h] [xbp+90h] void (__fastcall *v250)(cocos2d::CCParticleSystem *, __int64 *); // [xsp+98h] [xbp+98h] void (__fastcall *v251)(cocos2d::CCParticleSystem *, __int64 *); // [xsp+98h] [xbp+98h] void (__fastcall *v252)(cocos2d::CCParticleSystem *, __int64 *); // [xsp+98h] [xbp+98h] void (__fastcall *v253)(cocos2d::CCParticleSystem *, __int64 *); // [xsp+98h] [xbp+98h] void (__fastcall *v254)(__int64, __int64 *); // [xsp+98h] [xbp+98h] int v255; // [xsp+A0h] [xbp+A0h] unsigned __int8 v256; // [xsp+A7h] [xbp+A7h] __int64 v259; // [xsp+B8h] [xbp+B8h] BYREF _BYTE v260[8]; // [xsp+C0h] [xbp+C0h] BYREF float v261; // [xsp+C8h] [xbp+C8h] BYREF float v262; // [xsp+CCh] [xbp+CCh] _BYTE v263[8]; // [xsp+D0h] [xbp+D0h] BYREF __int64 v264; // [xsp+D8h] [xbp+D8h] BYREF _BYTE v265[8]; // [xsp+E0h] [xbp+E0h] BYREF __int64 v266; // [xsp+E8h] [xbp+E8h] BYREF float v267; // [xsp+F0h] [xbp+F0h] float v268; // [xsp+F4h] [xbp+F4h] __int64 v269[2]; // [xsp+F8h] [xbp+F8h] BYREF void *v270; // [xsp+108h] [xbp+108h] __int64 v271[2]; // [xsp+110h] [xbp+110h] BYREF char *v272; // [xsp+120h] [xbp+120h] v255 = a7; v256 = cocos2d::CCLayer::init((cocos2d::CCLayer *)a1); if ( v256 ) { v21 = a13; *(_DWORD *)(a1 + 636) = a13; *(float *)(a1 + 568) = a10; if ( a6 == a8 && a6 ) { v22 = a11; a8 = 0; a11 = 0; v21 = (unsigned int)(a7 + v22); v255 = a7 + v22; } v23 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector((cocos2d::CCDirector *)v21); WinSize = (cocos2d::CCTextureCache *)cocos2d::CCDirector::getWinSize(&v259, v23); v25 = (cocos2d::CCTextureCache *)cocos2d::CCTextureCache::sharedTextureCache(WinSize); v26 = (cocos2d::CCSpriteBatchNode *)cocos2d::CCTextureCache::addImage(v25, "GJ_GameSheet03.png", 0); v28 = cocos2d::CCSpriteBatchNode::createWithTexture(v26, (cocos2d::CCTexture2D *)((char *)&off_18 + 5), v27); *(_QWORD *)(a1 + 528) = v28; (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v28 + 912LL))(v28, 0x100000302LL); (*(void (__fastcall **)(__int64, _QWORD, __int64))(*(_QWORD *)a1 + 464LL))(a1, *(_QWORD *)(a1 + 528), 1); v30 = cocos2d::CCSpriteBatchNode::createWithTexture(v26, (cocos2d::CCTexture2D *)((char *)&off_18 + 5), v29); *(_QWORD *)(a1 + 520) = v30; v31 = (cocos2d::CCNode *)(*(__int64 (__fastcall **)(__int64, __int64, __int64))(*(_QWORD *)a1 + 464LL))(a1, v30, 2); v32 = cocos2d::CCNode::create(v31); *(_QWORD *)(a1 + 624) = v32; (*(void (__fastcall **)(__int64, void *))(*(_QWORD *)v32 + 320LL))(v32, &unk_155D710); (*(void (__fastcall **)(__int64, _QWORD, __int64))(*(_QWORD *)a1 + 464LL))(a1, *(_QWORD *)(a1 + 624), 4); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)v260, *(float *)&v259 - 40.0, (float)(*((float *)&v259 + 1) - 5.0) + a9); v33 = (GameStatsManager *)(*(__int64 (__fastcall **)(_QWORD, _BYTE *))(**(_QWORD **)(a1 + 624) + 184LL))( *(_QWORD *)(a1 + 624), v260); v34 = (GameStatsManager *)GameStatsManager::sharedState(v33); v35 = (GameStatsManager *)((unsigned int)GameStatsManager::getStat(v34, (const char *)&word_1217DE8) - a2); *(_DWORD *)(a1 + 536) = (_DWORD)v35; v36 = (GameStatsManager *)GameStatsManager::sharedState(v35); v37 = (GameStatsManager *)((unsigned int)GameStatsManager::getStat(v36, "6") - a3); *(_DWORD *)(a1 + 540) = (_DWORD)v37; v38 = (GameStatsManager *)GameStatsManager::sharedState(v37); v39 = (GameStatsManager *)((unsigned int)GameStatsManager::getStat(v38, "28") - a4); *(_DWORD *)(a1 + 544) = (_DWORD)v39; v40 = (GameStatsManager *)GameStatsManager::sharedState(v39); *(_DWORD *)(a1 + 548) = GameStatsManager::getStat(v40, "13") - a5; CurrencySprite::spriteTypeToStat(a6, v269); v41 = LOBYTE(v269[0]) >> 1; if ( (v269[0] & 1) != 0 ) v41 = v269[1]; if ( v41 ) { v234 = (GameStatsManager *)GameStatsManager::sharedState((GameStatsManager *)LOBYTE(v269[0])); v235 = (char *)v269 + 1; if ( (v269[0] & 1) != 0 ) v235 = (const char *)v270; *(_DWORD *)(a1 + 552) = GameStatsManager::getStat(v234, v235) - v255; } else { a6 = 0; } CurrencySprite::spriteTypeToStat(a8, v271); v43 = LOBYTE(v271[0]) >> 1; if ( (v271[0] & 1) != 0 ) v43 = v271[1]; if ( v43 ) { v236 = (GameStatsManager *)GameStatsManager::sharedState((GameStatsManager *)LOBYTE(v271[0])); v237 = (char *)v271 + 1; if ( (v271[0] & 1) != 0 ) v237 = v272; *(_DWORD *)(a1 + 556) = GameStatsManager::getStat(v236, v237) - a11; } else { a8 = 0; } *(_DWORD *)(a1 + 632) = 0; if ( a2 > 0 ) { v44 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"%i", (const char *)*(unsigned int *)(a1 + 536)); CString = (cocos2d::CCLabelBMFont *)cocos2d::CCString::getCString(v44); v47 = cocos2d::CCLabelBMFont::create(CString, "bigFont.fnt", v46); v48 = *(_QWORD *)(a1 + 624); *(_QWORD *)(a1 + 424) = v47; (*(void (__fastcall **)(__int64, __int64, __int64))(*(_QWORD *)v48 + 464LL))(v48, v47, 10); v49 = *(_QWORD *)(a1 + 424); v50 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v49 + 296LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v266, 1.0, 1.0); v50(v49, &v266); (*(void (__fastcall **)(_QWORD, float))(**(_QWORD **)(a1 + 424) + 160LL))(*(_QWORD *)(a1 + 424), 0.6); v51 = *(_QWORD *)(a1 + 424); v52 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v51 + 1072LL); LOWORD(v266) = -106; BYTE2(v266) = -1; v52(v51, &v266); v53 = *(_QWORD *)(a1 + 424); v54 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v53 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v266, 0.0, (float)(-30 * *(_DWORD *)(a1 + 632))); v54(v53, &v266); v55 = (const cocos2d::CCSize *)(*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 424) + 328LL))(*(_QWORD *)(a1 + 424)); cocos2d::CCSize::CCSize((cocos2d::CCSize *)&v264, v55); v56 = (*(float (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 424) + 168LL))(*(_QWORD *)(a1 + 424)); v57 = *(_QWORD *)(a1 + 424); *(float *)&v264 = v56 * *(float *)&v264; v58 = (*(float (__fastcall **)(__int64))(*(_QWORD *)v57 + 168LL))(v57); *((float *)&v264 + 1) = v58 * *((float *)&v264 + 1); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)v265, (float)-*(float *)&v264 * 0.5, (float)-*((float *)&v264 + 1) * 0.5); cocos2d::CCPoint::operator+(&v266, v260); cocos2d::CCPoint::operator=(a1 + 572, &v266); v59 = (const char *)(unsigned int)(*(_DWORD *)(a1 + 632) + 1); *(_DWORD *)(a1 + 632) = (_DWORD)v59; v60 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"currencyOrbIcon_001.png", v59); (*(void (__fastcall **)(_QWORD, __int64, __int64))(**(_QWORD **)(a1 + 624) + 464LL))( *(_QWORD *)(a1 + 624), v60, 3); v243 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v60 + 184LL); v238 = (*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 424) + 192LL))(*(_QWORD *)(a1 + 424)); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v265, 15.0, -0.5 - (float)(*((float *)&v264 + 1) * 0.5)); cocos2d::CCPoint::operator+(&v266, v238); v243(v60, &v266); v61 = *(cocos2d::CCNode **)(a1 + 624); v62 = (const cocos2d::CCPoint *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v60 + 192LL))(v60); cocos2d::CCNode::convertToWorldSpace(&v266, v61, v62); cocos2d::CCPoint::operator=(a1 + 572, &v266); *(_QWORD *)(a1 + 472) = v60; v64 = (cocos2d::CCSequence *)cocos2d::CCTintTo::create(nullptr, 0.3, 0xFFu, 0xFFu, v63); v66 = (cocos2d::CCFiniteTimeAction *)cocos2d::CCTintTo::create( (cocos2d::CCTintTo *)0xFFFFFF96LL, 0.3, 0xFFu, 0xFFu, v65); v67 = (cocos2d::CCRepeatForever *)cocos2d::CCSequence::create(v64, v66, 0); v69 = (cocos2d::CCAction *)cocos2d::CCRepeatForever::create(v67, v68); cocos2d::CCNode::runAction(*(cocos2d::CCNode **)(a1 + 424), v69); v71 = (cocos2d::CCParticleSystem *)cocos2d::CCParticleSystemQuad::create( (cocos2d::CCParticleSystemQuad *)"keyEffect.plist", nullptr, v70); (*(void (__fastcall **)(cocos2d::CCParticleSystem *, __int64))(*(_QWORD *)v71 + 1504LL))(v71, 8); v72 = *(void (__fastcall **)(cocos2d::CCParticleSystem *, __int64 *))(*(_QWORD *)v71 + 1360LL); v266 = 0x3F48C8C900000000LL; v267 = 1.0; v268 = 1.0; v72(v71, &v266); v73 = *(void (__fastcall **)(cocos2d::CCParticleSystem *, __int64 *))(*(_QWORD *)v71 + 1392LL); v266 = 0; v267 = 0.58824; v268 = 1.0; v73(v71, &v266); v74 = *(void (__fastcall **)(cocos2d::CCParticleSystem *, __int64 *))(*(_QWORD *)v71 + 1376LL); v266 = 0; v267 = 0.0; v268 = 0.0; v74(v71, &v266); v75 = *(void (__fastcall **)(cocos2d::CCParticleSystem *, __int64 *))(*(_QWORD *)v71 + 1408LL); v266 = 0; v267 = 0.0; v268 = 0.0; v75(v71, &v266); (*(void (__fastcall **)(cocos2d::CCParticleSystem *, float))(*(_QWORD *)v71 + 976LL))(v71, 1.0); (*(void (__fastcall **)(cocos2d::CCParticleSystem *, float))(*(_QWORD *)v71 + 992LL))(v71, 0.2); v250 = *(void (__fastcall **)(cocos2d::CCParticleSystem *, __int64 *))(*(_QWORD *)v71 + 960LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v266, 12.0, 10.0); v250(v71, &v266); (*(void (__fastcall **)(_QWORD, cocos2d::CCParticleSystem *, __int64))(**(_QWORD **)(a1 + 624) + 464LL))( *(_QWORD *)(a1 + 624), v71, 100); v76 = *(void (__fastcall **)(cocos2d::CCParticleSystem *, __int64))(*(_QWORD *)v71 + 184LL); v77 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v60 + 192LL))(v60); v76(v71, v77); (*(void (__fastcall **)(cocos2d::CCParticleSystem *, __int64))(*(_QWORD *)v71 + 1568LL))(v71, 2); cocos2d::CCParticleSystem::resetSystem(v71); } if ( a3 > 0 ) { v78 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"%i", (const char *)*(unsigned int *)(a1 + 540)); v79 = (cocos2d::CCLabelBMFont *)cocos2d::CCString::getCString(v78); v81 = cocos2d::CCLabelBMFont::create(v79, "bigFont.fnt", v80); v82 = *(_QWORD *)(a1 + 624); *(_QWORD *)(a1 + 432) = v81; (*(void (__fastcall **)(__int64, __int64, __int64))(*(_QWORD *)v82 + 464LL))(v82, v81, 10); v83 = *(_QWORD *)(a1 + 432); v84 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v83 + 296LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v266, 1.0, 1.0); v84(v83, &v266); (*(void (__fastcall **)(_QWORD, float))(**(_QWORD **)(a1 + 432) + 160LL))(*(_QWORD *)(a1 + 432), 0.6); v85 = *(_QWORD *)(a1 + 432); v86 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v85 + 1072LL); LOBYTE(v266) = -1; *(_WORD *)((char *)&v266 + 1) = 200; v86(v85, &v266); v87 = *(_QWORD *)(a1 + 432); v88 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v87 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v266, 0.0, (float)(-30 * *(_DWORD *)(a1 + 632))); v88(v87, &v266); v89 = (const cocos2d::CCSize *)(*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 432) + 328LL))(*(_QWORD *)(a1 + 432)); cocos2d::CCSize::CCSize((cocos2d::CCSize *)&v261, v89); v90 = (*(float (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 432) + 168LL))(*(_QWORD *)(a1 + 432)); v91 = *(_QWORD *)(a1 + 432); v261 = v90 * v261; v92 = (*(float (__fastcall **)(__int64))(*(_QWORD *)v91 + 168LL))(v91); v93 = *(_DWORD *)(a1 + 632); v262 = v92 * v262; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v263, 0.0, (float)(-30 * v93)); cocos2d::CCPoint::operator+(&v264, v260); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v265, (float)-v261 * 0.5, (float)-v262 * 0.5); cocos2d::CCPoint::operator+(&v266, &v264); cocos2d::CCPoint::operator=(a1 + 580, &v266); v94 = (const char *)(unsigned int)(*(_DWORD *)(a1 + 632) + 1); *(_DWORD *)(a1 + 632) = (_DWORD)v94; v95 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_bigStar_001.png", v94); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v95 + 160LL))(v95, 0.5); (*(void (__fastcall **)(_QWORD, __int64, __int64))(**(_QWORD **)(a1 + 624) + 464LL))( *(_QWORD *)(a1 + 624), v95, 3); v244 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v95 + 184LL); v239 = (*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 432) + 192LL))(*(_QWORD *)(a1 + 432)); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v265, 15.0, -0.5 - (float)(v262 * 0.5)); cocos2d::CCPoint::operator+(&v266, v239); v244(v95, &v266); v96 = *(cocos2d::CCNode **)(a1 + 624); v97 = (const cocos2d::CCPoint *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v95 + 192LL))(v95); cocos2d::CCNode::convertToWorldSpace(&v266, v96, v97); cocos2d::CCPoint::operator=(a1 + 580, &v266); *(_QWORD *)(a1 + 480) = v95; v99 = (cocos2d::CCSequence *)cocos2d::CCTintTo::create((cocos2d::CCTintTo *)0xFFFFFFFFLL, 0.3, 0xFFu, 0, v98); v101 = (cocos2d::CCFiniteTimeAction *)cocos2d::CCTintTo::create( (cocos2d::CCTintTo *)0xFFFFFFFFLL, 0.3, 0xC8u, 0, v100); v102 = (cocos2d::CCRepeatForever *)cocos2d::CCSequence::create(v99, v101, 0); v104 = (cocos2d::CCAction *)cocos2d::CCRepeatForever::create(v102, v103); cocos2d::CCNode::runAction(*(cocos2d::CCNode **)(a1 + 432), v104); v106 = (cocos2d::CCParticleSystem *)cocos2d::CCParticleSystemQuad::create( (cocos2d::CCParticleSystemQuad *)"keyEffect.plist", nullptr, v105); (*(void (__fastcall **)(cocos2d::CCParticleSystem *, __int64))(*(_QWORD *)v106 + 1504LL))(v106, 8); v107 = *(void (__fastcall **)(cocos2d::CCParticleSystem *, __int64 *))(*(_QWORD *)v106 + 1360LL); LODWORD(v266) = 1.0; HIDWORD(v266) = 1.0; v267 = 0.0; v268 = 1.0; v107(v106, &v266); v108 = *(void (__fastcall **)(cocos2d::CCParticleSystem *, __int64 *))(*(_QWORD *)v106 + 1392LL); v267 = 0.0; v266 = 1061734601; v268 = 1.0; v108(v106, &v266); v109 = *(void (__fastcall **)(cocos2d::CCParticleSystem *, __int64 *))(*(_QWORD *)v106 + 1376LL); v266 = 0; v267 = 0.0; v268 = 0.0; v109(v106, &v266); v110 = *(void (__fastcall **)(cocos2d::CCParticleSystem *, __int64 *))(*(_QWORD *)v106 + 1408LL); v266 = 0; v267 = 0.0; v268 = 0.0; v110(v106, &v266); (*(void (__fastcall **)(cocos2d::CCParticleSystem *, float))(*(_QWORD *)v106 + 976LL))(v106, 1.0); (*(void (__fastcall **)(cocos2d::CCParticleSystem *, float))(*(_QWORD *)v106 + 992LL))(v106, 0.2); v251 = *(void (__fastcall **)(cocos2d::CCParticleSystem *, __int64 *))(*(_QWORD *)v106 + 960LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v266, 12.0, 10.0); v251(v106, &v266); (*(void (__fastcall **)(_QWORD, cocos2d::CCParticleSystem *, __int64))(**(_QWORD **)(a1 + 624) + 464LL))( *(_QWORD *)(a1 + 624), v106, 100); v111 = *(void (__fastcall **)(cocos2d::CCParticleSystem *, __int64))(*(_QWORD *)v106 + 184LL); v112 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v95 + 192LL))(v95); v111(v106, v112); (*(void (__fastcall **)(cocos2d::CCParticleSystem *, __int64))(*(_QWORD *)v106 + 1568LL))(v106, 2); cocos2d::CCParticleSystem::resetSystem(v106); } if ( a4 > 0 ) { v113 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"%i", (const char *)*(unsigned int *)(a1 + 544)); v114 = (cocos2d::CCLabelBMFont *)cocos2d::CCString::getCString(v113); v116 = cocos2d::CCLabelBMFont::create(v114, "bigFont.fnt", v115); v117 = *(_QWORD *)(a1 + 624); *(_QWORD *)(a1 + 440) = v116; (*(void (__fastcall **)(__int64, __int64, __int64))(*(_QWORD *)v117 + 464LL))(v117, v116, 10); v118 = *(_QWORD *)(a1 + 440); v119 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v118 + 296LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v266, 1.0, 1.0); v119(v118, &v266); (*(void (__fastcall **)(_QWORD, float))(**(_QWORD **)(a1 + 440) + 160LL))(*(_QWORD *)(a1 + 440), 0.6); v120 = *(_QWORD *)(a1 + 440); v121 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v120 + 1072LL); LOWORD(v266) = -256; BYTE2(v266) = -1; v121(v120, &v266); v122 = *(_QWORD *)(a1 + 440); v123 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v122 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v266, 0.0, (float)(-30 * *(_DWORD *)(a1 + 632))); v123(v122, &v266); v124 = (const cocos2d::CCSize *)(*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 440) + 328LL))(*(_QWORD *)(a1 + 440)); cocos2d::CCSize::CCSize((cocos2d::CCSize *)&v261, v124); v125 = (*(float (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 440) + 168LL))(*(_QWORD *)(a1 + 440)); v126 = *(_QWORD *)(a1 + 440); v261 = v125 * v261; v127 = (*(float (__fastcall **)(__int64))(*(_QWORD *)v126 + 168LL))(v126); v128 = *(_DWORD *)(a1 + 632); v262 = v127 * v262; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v263, 0.0, (float)(-30 * v128)); cocos2d::CCPoint::operator+(&v264, v260); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v265, (float)-v261 * 0.5, (float)-v262 * 0.5); cocos2d::CCPoint::operator+(&v266, &v264); cocos2d::CCPoint::operator=(a1 + 588, &v266); v129 = (const char *)(unsigned int)(*(_DWORD *)(a1 + 632) + 1); *(_DWORD *)(a1 + 632) = (_DWORD)v129; v130 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_bigMoon_001.png", v129); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v130 + 160LL))(v130, 0.5); (*(void (__fastcall **)(_QWORD, __int64, __int64))(**(_QWORD **)(a1 + 624) + 464LL))( *(_QWORD *)(a1 + 624), v130, 3); v245 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v130 + 184LL); v240 = (*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 440) + 192LL))(*(_QWORD *)(a1 + 440)); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v265, 15.0, -0.5 - (float)(v262 * 0.5)); cocos2d::CCPoint::operator+(&v266, v240); v245(v130, &v266); v131 = *(cocos2d::CCNode **)(a1 + 624); v132 = (const cocos2d::CCPoint *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v130 + 192LL))(v130); cocos2d::CCNode::convertToWorldSpace(&v266, v131, v132); cocos2d::CCPoint::operator=(a1 + 588, &v266); *(_QWORD *)(a1 + 488) = v130; v134 = (cocos2d::CCSequence *)cocos2d::CCTintTo::create(nullptr, 0.3, 0xFFu, 0xFFu, v133); v136 = (cocos2d::CCFiniteTimeAction *)cocos2d::CCTintTo::create(nullptr, 0.3, 0xC8u, 0xFFu, v135); v137 = (cocos2d::CCRepeatForever *)cocos2d::CCSequence::create(v134, v136, 0); v139 = (cocos2d::CCAction *)cocos2d::CCRepeatForever::create(v137, v138); cocos2d::CCNode::runAction(*(cocos2d::CCNode **)(a1 + 440), v139); v141 = (cocos2d::CCParticleSystem *)cocos2d::CCParticleSystemQuad::create( (cocos2d::CCParticleSystemQuad *)"keyEffect.plist", nullptr, v140); (*(void (__fastcall **)(cocos2d::CCParticleSystem *, __int64))(*(_QWORD *)v141 + 1504LL))(v141, 8); v142 = *(void (__fastcall **)(cocos2d::CCParticleSystem *, __int64 *))(*(_QWORD *)v141 + 1360LL); HIDWORD(v266) = 1.0; LODWORD(v266) = 0; v267 = 1.0; v268 = 1.0; v142(v141, &v266); v143 = *(void (__fastcall **)(cocos2d::CCParticleSystem *, __int64 *))(*(_QWORD *)v141 + 1392LL); v266 = 0; v267 = 0.78431; v268 = 1.0; v143(v141, &v266); v144 = *(void (__fastcall **)(cocos2d::CCParticleSystem *, __int64 *))(*(_QWORD *)v141 + 1376LL); v266 = 0; v267 = 0.0; v268 = 0.0; v144(v141, &v266); v145 = *(void (__fastcall **)(cocos2d::CCParticleSystem *, __int64 *))(*(_QWORD *)v141 + 1408LL); v266 = 0; v267 = 0.0; v268 = 0.0; v145(v141, &v266); (*(void (__fastcall **)(cocos2d::CCParticleSystem *, float))(*(_QWORD *)v141 + 976LL))(v141, 1.0); (*(void (__fastcall **)(cocos2d::CCParticleSystem *, float))(*(_QWORD *)v141 + 992LL))(v141, 0.2); v252 = *(void (__fastcall **)(cocos2d::CCParticleSystem *, __int64 *))(*(_QWORD *)v141 + 960LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v266, 12.0, 10.0); v252(v141, &v266); (*(void (__fastcall **)(_QWORD, cocos2d::CCParticleSystem *, __int64))(**(_QWORD **)(a1 + 624) + 464LL))( *(_QWORD *)(a1 + 624), v141, 100); v146 = *(void (__fastcall **)(cocos2d::CCParticleSystem *, __int64))(*(_QWORD *)v141 + 184LL); v147 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v130 + 192LL))(v130); v146(v141, v147); (*(void (__fastcall **)(cocos2d::CCParticleSystem *, __int64))(*(_QWORD *)v141 + 1568LL))(v141, 2); cocos2d::CCParticleSystem::resetSystem(v141); } if ( a5 > 0 ) { v148 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"%i", (const char *)*(unsigned int *)(a1 + 548)); v149 = (cocos2d::CCLabelBMFont *)cocos2d::CCString::getCString(v148); v151 = cocos2d::CCLabelBMFont::create(v149, "bigFont.fnt", v150); v152 = *(_QWORD *)(a1 + 624); *(_QWORD *)(a1 + 448) = v151; (*(void (__fastcall **)(__int64, __int64, __int64))(*(_QWORD *)v152 + 464LL))(v152, v151, 10); v153 = *(_QWORD *)(a1 + 448); v154 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v153 + 296LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v266, 1.0, 1.0); v154(v153, &v266); (*(void (__fastcall **)(_QWORD, float))(**(_QWORD **)(a1 + 448) + 160LL))(*(_QWORD *)(a1 + 448), 0.6); v155 = *(_QWORD *)(a1 + 448); v156 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v155 + 1072LL); LOWORD(v266) = -1; BYTE2(v266) = -1; v156(v155, &v266); v157 = *(_QWORD *)(a1 + 448); v158 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v157 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v266, 0.0, (float)(-30 * *(_DWORD *)(a1 + 632))); v158(v157, &v266); v159 = (const cocos2d::CCSize *)(*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 448) + 328LL))(*(_QWORD *)(a1 + 448)); cocos2d::CCSize::CCSize((cocos2d::CCSize *)&v261, v159); v160 = (*(float (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 448) + 168LL))(*(_QWORD *)(a1 + 448)); v161 = *(_QWORD *)(a1 + 448); v261 = v160 * v261; v162 = (*(float (__fastcall **)(__int64))(*(_QWORD *)v161 + 168LL))(v161); v163 = *(_DWORD *)(a1 + 632); v262 = v162 * v262; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v263, 0.0, (float)(-30 * v163)); cocos2d::CCPoint::operator+(&v264, v260); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v265, (float)-v261 * 0.5, (float)-v262 * 0.5); cocos2d::CCPoint::operator+(&v266, &v264); cocos2d::CCPoint::operator=(a1 + 596, &v266); v164 = (const char *)(unsigned int)(*(_DWORD *)(a1 + 632) + 1); *(_DWORD *)(a1 + 632) = (_DWORD)v164; v165 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_bigDiamond_001.png", v164); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v165 + 160LL))(v165, 0.5); (*(void (__fastcall **)(_QWORD, __int64, __int64))(**(_QWORD **)(a1 + 624) + 464LL))( *(_QWORD *)(a1 + 624), v165, 3); v246 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v165 + 184LL); v241 = (*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 448) + 192LL))(*(_QWORD *)(a1 + 448)); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v265, 15.0, -0.5 - (float)(v262 * 0.5)); cocos2d::CCPoint::operator+(&v266, v241); v246(v165, &v266); v166 = *(cocos2d::CCNode **)(a1 + 624); v167 = (const cocos2d::CCPoint *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v165 + 192LL))(v165); cocos2d::CCNode::convertToWorldSpace(&v266, v166, v167); cocos2d::CCPoint::operator=(a1 + 596, &v266); *(_QWORD *)(a1 + 496) = v165; v169 = (cocos2d::CCParticleSystem *)cocos2d::CCParticleSystemQuad::create( (cocos2d::CCParticleSystemQuad *)"keyEffect.plist", nullptr, v168); (*(void (__fastcall **)(cocos2d::CCParticleSystem *, __int64))(*(_QWORD *)v169 + 1504LL))(v169, 8); v170 = *(void (__fastcall **)(cocos2d::CCParticleSystem *, __int64 *))(*(_QWORD *)v169 + 1360LL); LODWORD(v266) = 1.0; HIDWORD(v266) = 1.0; v267 = 1.0; v268 = 1.0; v170(v169, &v266); v171 = *(void (__fastcall **)(cocos2d::CCParticleSystem *, __int64 *))(*(_QWORD *)v169 + 1392LL); HIDWORD(v266) = 1.0; LODWORD(v266) = 1058444951; v267 = 1.0; v268 = 1.0; v171(v169, &v266); v172 = *(void (__fastcall **)(cocos2d::CCParticleSystem *, __int64 *))(*(_QWORD *)v169 + 1376LL); v266 = 0; v267 = 0.0; v268 = 0.0; v172(v169, &v266); v173 = *(void (__fastcall **)(cocos2d::CCParticleSystem *, __int64 *))(*(_QWORD *)v169 + 1408LL); v266 = 0; v267 = 0.0; v268 = 0.0; v173(v169, &v266); (*(void (__fastcall **)(cocos2d::CCParticleSystem *, float))(*(_QWORD *)v169 + 976LL))(v169, 1.0); (*(void (__fastcall **)(cocos2d::CCParticleSystem *, float))(*(_QWORD *)v169 + 992LL))(v169, 0.2); v253 = *(void (__fastcall **)(cocos2d::CCParticleSystem *, __int64 *))(*(_QWORD *)v169 + 960LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v266, 12.0, 10.0); v253(v169, &v266); (*(void (__fastcall **)(_QWORD, cocos2d::CCParticleSystem *, __int64))(**(_QWORD **)(a1 + 624) + 464LL))( *(_QWORD *)(a1 + 624), v169, 100); v174 = *(void (__fastcall **)(cocos2d::CCParticleSystem *, __int64))(*(_QWORD *)v169 + 184LL); v175 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v165 + 192LL))(v165); v174(v169, v175); (*(void (__fastcall **)(cocos2d::CCParticleSystem *, __int64))(*(_QWORD *)v169 + 1568LL))(v169, 2); cocos2d::CCParticleSystem::resetSystem(v169); } if ( a6 > 0 ) { v176 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"%i", (const char *)*(unsigned int *)(a1 + 552)); v177 = (cocos2d::CCLabelBMFont *)cocos2d::CCString::getCString(v176); v179 = cocos2d::CCLabelBMFont::create(v177, "bigFont.fnt", v178); v180 = *(_QWORD *)(a1 + 624); *(_QWORD *)(a1 + 456) = v179; (*(void (__fastcall **)(__int64, __int64, __int64))(*(_QWORD *)v180 + 464LL))(v180, v179, 10); v181 = *(_QWORD *)(a1 + 456); v182 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v181 + 296LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v266, 1.0, 1.0); v182(v181, &v266); (*(void (__fastcall **)(_QWORD, float))(**(_QWORD **)(a1 + 456) + 160LL))(*(_QWORD *)(a1 + 456), 0.6); v183 = *(_QWORD *)(a1 + 456); v184 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v183 + 1072LL); LOWORD(v266) = -1; BYTE2(v266) = -1; v184(v183, &v266); v185 = *(_QWORD *)(a1 + 456); v186 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v185 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v266, 0.0, (float)(-30 * *(_DWORD *)(a1 + 632))); v186(v185, &v266); (*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(a1 + 456) + 72LL))(*(_QWORD *)(a1 + 456), (unsigned int)a6); v187 = (const cocos2d::CCSize *)(*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 456) + 328LL))(*(_QWORD *)(a1 + 456)); cocos2d::CCSize::CCSize((cocos2d::CCSize *)&v261, v187); v188 = (*(float (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 456) + 168LL))(*(_QWORD *)(a1 + 456)); v189 = *(_QWORD *)(a1 + 456); v261 = v188 * v261; v190 = (*(float (__fastcall **)(__int64))(*(_QWORD *)v189 + 168LL))(v189); v191 = *(_DWORD *)(a1 + 632); v262 = v190 * v262; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v263, 0.0, (float)(-30 * v191)); cocos2d::CCPoint::operator+(&v264, v260); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v265, (float)-v261 * 0.5, (float)-v262 * 0.5); cocos2d::CCPoint::operator+(&v266, &v264); cocos2d::CCPoint::operator=(a1 + 604, &v266); ++*(_DWORD *)(a1 + 632); v192 = CurrencySprite::create(a6, 1u); (*(void (__fastcall **)(_QWORD, __int64, __int64))(**(_QWORD **)(a1 + 624) + 464LL))( *(_QWORD *)(a1 + 624), v192, 3); v247 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v192 + 184LL); v242 = (*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 456) + 192LL))(*(_QWORD *)(a1 + 456)); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v265, 15.0, -0.5 - (float)(v262 * 0.5)); cocos2d::CCPoint::operator+(&v266, v242); v247(v192, &v266); v193 = *(void (__fastcall **)(__int64, long double))(*(_QWORD *)v192 + 160LL); if ( (unsigned __int8)isSpecialCurrencyType(a6) ) LODWORD(v194) = 1059481190; else LODWORD(v194) = 0.5; v193(v192, v194); *(_QWORD *)(a1 + 504) = v192; v195 = *(cocos2d::CCNode **)(a1 + 624); v196 = (const cocos2d::CCPoint *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v192 + 192LL))(v192); cocos2d::CCNode::convertToWorldSpace(&v266, v195, v196); v42 = cocos2d::CCPoint::operator=(a1 + 604, &v266); } if ( a8 > 0 ) { v197 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"%i", (const char *)*(unsigned int *)(a1 + 556), v42.n128_f64[0]); v198 = (cocos2d::CCLabelBMFont *)cocos2d::CCString::getCString(v197); v200 = cocos2d::CCLabelBMFont::create(v198, "bigFont.fnt", v199); v201 = *(_QWORD *)(a1 + 624); *(_QWORD *)(a1 + 464) = v200; (*(void (__fastcall **)(__int64, __int64, __int64))(*(_QWORD *)v201 + 464LL))(v201, v200, 10); v202 = *(_QWORD *)(a1 + 464); v203 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v202 + 296LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v266, 1.0, 1.0); v203(v202, &v266); (*(void (__fastcall **)(_QWORD, float))(**(_QWORD **)(a1 + 464) + 160LL))(*(_QWORD *)(a1 + 464), 0.6); v204 = *(_QWORD *)(a1 + 464); v205 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v204 + 1072LL); LOWORD(v266) = -1; BYTE2(v266) = -1; v205(v204, &v266); v206 = *(_QWORD *)(a1 + 464); v207 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v206 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v266, 0.0, (float)(-30 * *(_DWORD *)(a1 + 632))); v207(v206, &v266); (*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(a1 + 464) + 72LL))(*(_QWORD *)(a1 + 464), (unsigned int)a8); v208 = (const cocos2d::CCSize *)(*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 464) + 328LL))(*(_QWORD *)(a1 + 464)); cocos2d::CCSize::CCSize((cocos2d::CCSize *)&v261, v208); v209 = (*(float (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 464) + 168LL))(*(_QWORD *)(a1 + 464)); v210 = *(_QWORD *)(a1 + 464); v261 = v209 * v261; v211 = (*(float (__fastcall **)(__int64))(*(_QWORD *)v210 + 168LL))(v210); v212 = *(_DWORD *)(a1 + 632); v262 = v211 * v262; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v263, 0.0, (float)(-30 * v212)); cocos2d::CCPoint::operator+(&v264, v260); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v265, (float)-v261 * 0.5, (float)-v262 * 0.5); cocos2d::CCPoint::operator+(&v266, &v264); cocos2d::CCPoint::operator=(a1 + 612, &v266); ++*(_DWORD *)(a1 + 632); v213 = CurrencySprite::create(a8, 1u); (*(void (__fastcall **)(_QWORD, __int64, __int64))(**(_QWORD **)(a1 + 624) + 464LL))( *(_QWORD *)(a1 + 624), v213, 3); v248 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v213 + 184LL); v214 = (*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 464) + 192LL))(*(_QWORD *)(a1 + 464)); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v265, 15.0, -0.5 - (float)(v262 * 0.5)); cocos2d::CCPoint::operator+(&v266, v214); v248(v213, &v266); v215 = *(void (__fastcall **)(__int64, long double))(*(_QWORD *)v213 + 160LL); if ( (unsigned __int8)isSpecialCurrencyType(a8) ) LODWORD(v216) = 1059481190; else LODWORD(v216) = 0.5; v215(v213, v216); *(_QWORD *)(a1 + 512) = v213; v217 = *(cocos2d::CCNode **)(a1 + 624); v218 = (const cocos2d::CCPoint *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v213 + 192LL))(v213); cocos2d::CCNode::convertToWorldSpace(&v266, v217, v218); v42 = cocos2d::CCPoint::operator=(a1 + 612, &v266); } v219 = (const cocos2d::CCPoint *)(*(__int64 (__fastcall **)(_QWORD, long double))(**(_QWORD **)(a1 + 624) + 192LL))( *(_QWORD *)(a1 + 624), *(long double *)&v42); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v264, v219); v220 = *(_QWORD *)(a1 + 624); v254 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v220 + 184LL); v249 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v220 + 192LL))(v220); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v265, 0.0, (float)(30 * (*(_DWORD *)(a1 + 632) - 1) + 40)); cocos2d::CCPoint::operator+(&v266, v249); v254(v220, &v266); v222 = (cocos2d::CCEaseInOut *)cocos2d::CCMoveTo::create((cocos2d::CCMoveTo *)&v264, a10 * 0.5, v221); v224 = (cocos2d::CCAction *)cocos2d::CCEaseInOut::create(v222, v223, 2.0); v225 = (cocos2d::CCArray *)cocos2d::CCNode::runAction(*(cocos2d::CCNode **)(a1 + 624), v224); v226 = (cocos2d::CCObject *)cocos2d::CCArray::create(v225); *(_QWORD *)(a1 + 416) = v226; cocos2d::CCObject::retain(v226); v227 = a10 * 0.2; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v266, a12); CurrencyRewardLayer::createObjects(a1, 1, a2, (cocos2d::CCPoint *)&v266, 0.0); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v266, a12); v228 = 0.0; if ( a2 > 0 ) v228 = a10 * 0.2; CurrencyRewardLayer::createObjects(a1, 2, a3, (cocos2d::CCPoint *)&v266, v228); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v266, a12); v229 = 0.0; if ( a2 > 0 ) v229 = a10 * 0.2; CurrencyRewardLayer::createObjects(a1, 15, a4, (cocos2d::CCPoint *)&v266, v229); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v266, a12); v230 = (a2 > 0) + (a3 > 0) + (a4 > 0); CurrencyRewardLayer::createObjects(a1, 3, a5, (cocos2d::CCPoint *)&v266, (float)v230 * v227); if ( a5 > 0 ) ++v230; v231 = (float)((float)((float)v230 * v227) + 0.1) * a10; v232 = v231; if ( (unsigned __int8)isSpecialCurrencyType(a6) ) v232 = v231 + 0.2; if ( (unsigned __int8)isSpecialCurrencyType(a8) ) v231 = v231 + 0.2; if ( a6 ) { cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v266, a12); CurrencyRewardLayer::createObjects(a1, a6, v255, (cocos2d::CCPoint *)&v266, v232); } if ( a8 ) { cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v266, a12); CurrencyRewardLayer::createObjects(a1, a8, a11, (cocos2d::CCPoint *)&v266, v231); } *(_BYTE *)(a1 + 621) = 1; cocos2d::CCNode::scheduleUpdate((cocos2d::CCNode *)a1); if ( (v271[0] & 1) != 0 ) operator delete(v272); if ( (v269[0] & 1) != 0 ) operator delete(v270); } return v256; }