//
// GameObject::playDestroyObjectAnim from 0x1402a7830 to 0x1402a8a48 (4632 bytes)
//
// 2 xrefs:
// > GJBaseGameLayer::destroyObject @ 0x14031d52a
// > ??> @ 0x14091db10
//
// 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:29:19 +0000
//
// Hidden C++ exception states: #wind=2
void __fastcall GameObject::playDestroyObjectAnim(__int64 a1, __int64 a2)
{
float v4; // xmm6_4
__int64 v5; // rcx
bool v6; // al
int v7; // ecx
const struct cocos2d::CCPoint *v8; // rax
__int64 v9; // rax
int v10; // r8d
int v11; // r9d
cocos2d::CCNode *v12; // r12
const struct cocos2d::CCSize *v13; // rax
struct cocos2d::CCSprite *v14; // r14
__int64 v15; // rcx
void (__fastcall **v16)(__int64, __int64); // rbx
__int64 v17; // rax
char *v18; // r13
__int64 v19; // rax
void (__fastcall **v20)(char *, __int64); // rbx
__int64 v21; // rax
__int64 v22; // rbx
__int64 v23; // rbx
__int64 v24; // rcx
__int64 v25; // rbx
__int64 v26; // rax
void (__fastcall **v27)(__int64, __int64); // rbx
__int64 v28; // rax
__int64 v29; // rax
unsigned __int8 v30; // si
__int64 v31; // rax
unsigned __int8 v32; // r14
unsigned __int8 v33; // di
struct cocos2d::CCAction *v34; // rax
struct cocos2d::CCAction *v35; // rax
cocos2d::CCNode *v36; // r14
struct cocos2d::CCAction *v37; // rax
cocos2d::CCNode *v38; // rsi
__int64 v39; // rcx
cocos2d::CCArray *v40; // rdi
cocos2d::CCString *v41; // rax
const char *CString; // rbx
__int64 v43; // rdx
__int64 v44; // rcx
cocos2d::CCSpriteFrameCache *v45; // rax
struct cocos2d::CCObject *v46; // rax
cocos2d::CCString *v47; // rax
const char *v48; // rbx
__int64 v49; // rdx
__int64 v50; // rcx
cocos2d::CCSpriteFrameCache *v51; // rax
struct cocos2d::CCObject *v52; // rax
cocos2d::CCString *v53; // rax
const char *v54; // rbx
__int64 v55; // rdx
__int64 v56; // rcx
cocos2d::CCSpriteFrameCache *v57; // rax
struct cocos2d::CCObject *v58; // rax
cocos2d::CCString *v59; // rax
const char *v60; // rbx
__int64 v61; // rdx
__int64 v62; // rcx
cocos2d::CCSpriteFrameCache *v63; // rax
struct cocos2d::CCObject *v64; // rax
struct cocos2d::CCAnimation *v65; // rax
struct cocos2d::CCAnimate *v66; // rbx
struct cocos2d::CCAction *v67; // rax
__int64 v68; // rcx
cocos2d::CCArray *v69; // rdi
cocos2d::CCString *v70; // rax
const char *v71; // rbx
__int64 v72; // rdx
__int64 v73; // rcx
cocos2d::CCSpriteFrameCache *v74; // rax
struct cocos2d::CCObject *v75; // rax
cocos2d::CCString *v76; // rax
const char *v77; // rbx
__int64 v78; // rdx
__int64 v79; // rcx
cocos2d::CCSpriteFrameCache *v80; // rax
struct cocos2d::CCObject *v81; // rax
cocos2d::CCString *v82; // rax
const char *v83; // rbx
__int64 v84; // rdx
__int64 v85; // rcx
cocos2d::CCSpriteFrameCache *v86; // rax
struct cocos2d::CCObject *v87; // rax
cocos2d::CCString *v88; // rax
const char *v89; // rbx
__int64 v90; // rdx
__int64 v91; // rcx
cocos2d::CCSpriteFrameCache *v92; // rax
struct cocos2d::CCObject *v93; // rax
struct cocos2d::CCAnimation *v94; // rax
struct cocos2d::CCAnimate *v95; // rbx
struct cocos2d::CCAction *v96; // rax
struct cocos2d::CCFiniteTimeAction *v97; // rbx
struct cocos2d::CCFadeTo *v98; // rax
struct cocos2d::CCAction *v99; // rax
__int64 v100; // rcx
cocos2d::CCArray *v101; // rdi
cocos2d::CCString *v102; // rax
const char *v103; // rbx
__int64 v104; // rdx
__int64 v105; // rcx
cocos2d::CCSpriteFrameCache *v106; // rax
struct cocos2d::CCObject *v107; // rax
cocos2d::CCString *v108; // rax
const char *v109; // rbx
__int64 v110; // rdx
__int64 v111; // rcx
cocos2d::CCSpriteFrameCache *v112; // rax
struct cocos2d::CCObject *v113; // rax
cocos2d::CCString *v114; // rax
const char *v115; // rbx
__int64 v116; // rdx
__int64 v117; // rcx
cocos2d::CCSpriteFrameCache *v118; // rax
struct cocos2d::CCObject *v119; // rax
cocos2d::CCString *v120; // rax
const char *v121; // rbx
__int64 v122; // rdx
__int64 v123; // rcx
cocos2d::CCSpriteFrameCache *v124; // rax
struct cocos2d::CCObject *v125; // rax
struct cocos2d::CCAnimation *v126; // rax
struct cocos2d::CCAnimate *v127; // rbx
struct cocos2d::CCAction *v128; // rax
struct cocos2d::CCFiniteTimeAction *v129; // rbx
struct cocos2d::CCFadeTo *v130; // rax
struct cocos2d::CCAction *v131; // rax
int v132; // r8d
int v133; // r9d
int v134; // edx
int v135; // edi
__int64 v136; // rax
_QWORD *v137; // rax
size_t v138; // r8
__int64 v139; // rcx
void **v140; // rsi
unsigned __int64 v141; // rdi
__int64 v142; // rbx
void **v143; // rcx
cocos2d::CCNode *v144; // r14
__int64 v145; // rax
__int64 v146; // rsi
__int64 v147; // rdi
void (__fastcall *v148)(__int64); // rbx
__int64 v149; // rdi
void (__fastcall *v150)(__int64); // rbx
int ParentMode; // eax
unsigned __int8 v152; // r10
int v153; // r11d
__int64 v154; // rax
__int64 v155; // rbx
__int64 v156; // rax
void (__fastcall **v157)(__int64, __int64); // rbx
__int64 v158; // rax
const char *v159; // rcx
struct cocos2d::CCSprite *v160; // rax
struct cocos2d::CCSprite *v161; // rsi
__int64 v162; // r8
float *v163; // rbx
__int64 v164; // rdi
__int64 v165; // rax
__int64 v166; // rax
void (__fastcall **v167)(__int64, __int64); // rbx
__int64 v168; // rax
__int64 v169; // rbx
unsigned __int8 v170; // al
struct cocos2d::CCFiniteTimeAction *v171; // rbx
struct cocos2d::CCFadeTo *v172; // rax
struct cocos2d::CCAction *v173; // rax
__int64 v174; // rbx
float *v175; // rax
float v176; // xmm0_4
int v177; // edx
int v178; // r9d
__int64 *v179; // r8
__int64 *i; // rax
float v181; // xmm8_4
float v182; // xmm7_4
float *v183; // rax
float v184; // xmm6_4
__int64 v185; // rax
void *v186; // rcx
char hasUniqueCoin; // r14
const struct cocos2d::CCPoint *v188; // rax
__int64 v189; // rax
int v190; // r8d
int v191; // r9d
__int64 v192; // rax
__int64 v193; // rdx
__int64 v194; // rcx
__int64 v195; // r8
__int64 v196; // rbx
int v197; // xmm0_4
int v198; // xmm1_4
__int64 v199; // rdx
__int64 v200; // rcx
__int64 v201; // r8
cocos2d::CCObject *v202; // rsi
char v203; // al
char v204; // cl
__int64 v205; // rbx
__int64 v206; // rax
__int64 v207; // rdx
__int64 v208; // rcx
__int64 v209; // r8
cocos2d::CCObject *v210; // rax
cocos2d::CCObject *v211; // rsi
char v212; // cl
__int64 v213; // rbx
__int64 v214; // rax
const char *v215; // rcx
const char *v216; // rax
const char *v217; // rsi
struct cocos2d::CCSprite *v218; // r14
__int64 v219; // rbx
__int64 v220; // rcx
__int64 v221; // rbx
__int64 v222; // rax
__int64 v223; // rcx
void (__fastcall **v224)(__int64, __int64); // rbx
__int64 v225; // rax
cocos2d::CCArray *v226; // rdi
cocos2d::CCString *v227; // rax
const char *v228; // rbx
__int64 v229; // rdx
__int64 v230; // rcx
cocos2d::CCSpriteFrameCache *v231; // rax
struct cocos2d::CCObject *v232; // rax
cocos2d::CCString *v233; // rax
const char *v234; // rbx
__int64 v235; // rdx
__int64 v236; // rcx
cocos2d::CCSpriteFrameCache *v237; // rax
struct cocos2d::CCObject *v238; // rax
cocos2d::CCString *v239; // rax
const char *v240; // rbx
__int64 v241; // rdx
__int64 v242; // rcx
cocos2d::CCSpriteFrameCache *v243; // rax
struct cocos2d::CCObject *v244; // rax
cocos2d::CCString *v245; // rax
const char *v246; // rbx
__int64 v247; // rdx
__int64 v248; // rcx
cocos2d::CCSpriteFrameCache *v249; // rax
struct cocos2d::CCObject *v250; // rax
struct cocos2d::CCAnimation *v251; // rax
struct cocos2d::CCActionInterval *v252; // rax
struct cocos2d::CCAction *v253; // rax
__int16 v254; // [rsp+70h] [rbp-90h] BYREF
char v255; // [rsp+72h] [rbp-8Eh]
_DWORD v256[2]; // [rsp+78h] [rbp-88h] BYREF
cocos2d::CCNode *v257; // [rsp+80h] [rbp-80h] BYREF
__int16 v258; // [rsp+88h] [rbp-78h]
float v259[2]; // [rsp+90h] [rbp-70h] BYREF
_BYTE v260[8]; // [rsp+98h] [rbp-68h] BYREF
__int128 v261; // [rsp+A0h] [rbp-60h] BYREF
unsigned __int64 v262; // [rsp+B0h] [rbp-50h]
__int64 v263; // [rsp+B8h] [rbp-48h]
void *Src[2]; // [rsp+C0h] [rbp-40h] BYREF
unsigned __int64 v265; // [rsp+D0h] [rbp-30h]
unsigned __int64 v266; // [rsp+D8h] [rbp-28h]
_QWORD v267[4]; // [rsp+E0h] [rbp-20h] BYREF
if ( a2 )
{
v4 = (float)(*(unsigned __int8 (__fastcall **)(__int64))(*(_QWORD *)(a1 + 320) + 32LL))(a1 + 320);
v6 = true;
if ( v4 <= 0.0 )
{
v5 = *(_QWORD *)(a1 + 896);
if ( !v5 || !(*(unsigned __int8 (__fastcall **)(__int64))(*(_QWORD *)(v5 + 320) + 32LL))(v5 + 320) )
v6 = false;
}
v7 = *(_DWORD *)(a1 + 1036);
if ( v7 == 143 )
{
v8 = (const struct cocos2d::CCPoint *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a1 + 200LL))(a1);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v257, v8);
GJBaseGameLayer::spawnParticle(a2, (unsigned int)"glassDestroy01.plist", v10, v11, v9);
return;
}
if ( v7 == 1614 )
{
if ( !*(_BYTE *)(a1 + 1007) && v6 )
{
v12 = cocos2d::CCSprite::createWithSpriteFrameName("smallCoin_01_001.png");
(*(void (__fastcall **)(__int64, _QWORD))(*((_QWORD *)v12 + 40) + 40LL))(
(__int64)v12 + 320,
(unsigned __int8)(int)v4);
v13 = (const struct cocos2d::CCSize *)(*(__int64 (__fastcall **)(cocos2d::CCNode *))(*(_QWORD *)v12 + 320LL))(v12);
cocos2d::CCSize::CCSize((cocos2d::CCSize *)v259, v13);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v260, v259[0] * 0.5, v259[1] * 0.5);
v14 = cocos2d::CCSprite::createWithSpriteFrameName("smallCoin_01_color_001.png");
Src[0] = v14;
(*(void (__fastcall **)(cocos2d::CCNode *, struct cocos2d::CCSprite *, __int64))(*(_QWORD *)v12 + 456LL))(
v12,
v14,
1);
(*(void (__fastcall **)(__int64, _QWORD))(*((_QWORD *)v14 + 40) + 40LL))(
(__int64)v14 + 320,
(unsigned __int8)(int)v4);
(*(void (__fastcall **)(struct cocos2d::CCSprite *, _BYTE *))(*(_QWORD *)v14 + 184LL))(v14, v260);
v15 = *(_QWORD *)(a1 + 896);
if ( v15 )
{
v16 = *((void (__fastcall ***)(__int64, __int64))v14 + 40);
v17 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)(v15 + 320) + 8LL))(v15 + 320);
(*v16)((__int64)v14 + 320, v17);
}
v257 = cocos2d::CCSprite::createWithSpriteFrameName("smallCoin_01_highlight_001.png");
(*(void (__fastcall **)(cocos2d::CCNode *, cocos2d::CCNode *, __int64))(*(_QWORD *)v12 + 456LL))(v12, v257, 2);
(*(void (__fastcall **)(cocos2d::CCNode *, _BYTE *))(*(_QWORD *)v257 + 184LL))(v257, v260);
v18 = (char *)v257 + 320;
(*(void (__fastcall **)(char *, _QWORD))(*((_QWORD *)v257 + 40) + 40LL))(
(char *)v257 + 320,
(unsigned __int8)(int)v4);
v19 = (*(__int64 (__fastcall **)(__int64, __int64))(*(_QWORD *)a1 + 472LL))(a1, 2);
if ( v19 )
{
v20 = *(void (__fastcall ***)(char *, __int64))v18;
v21 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)(v19 + 320) + 8LL))(v19 + 320);
(*v20)(v18, v21);
}
v22 = *(_QWORD *)v12;
(*(void (__fastcall **)(__int64))(*(_QWORD *)a1 + 128LL))(a1);
(*(void (__fastcall **)(cocos2d::CCNode *))(v22 + 120))(v12);
v23 = *(_QWORD *)v12;
(*(void (__fastcall **)(__int64))(*(_QWORD *)a1 + 144LL))(a1);
(*(void (__fastcall **)(cocos2d::CCNode *))(v23 + 136))(v12);
v24 = *(_QWORD *)(a1 + 216);
if ( v24 )
(*(void (__fastcall **)(__int64, cocos2d::CCNode *))(*(_QWORD *)v24 + 456LL))(v24, v12);
v25 = *(_QWORD *)v12;
v26 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a1 + 200LL))(a1);
(*(void (__fastcall **)(cocos2d::CCNode *, __int64))(v25 + 184))(v12, v26);
v27 = *((void (__fastcall ***)(__int64, __int64))v12 + 40);
v28 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)(a1 + 320) + 8LL))(a1 + 320);
(*v27)((__int64)v12 + 320, v28);
v29 = (*(__int64 (__fastcall **)(__int64))(*((_QWORD *)v12 + 40) + 8LL))((__int64)v12 + 320);
v258 = *(_WORD *)v29;
v30 = v258;
LOBYTE(v27) = *(_BYTE *)(v29 + 2);
v31 = (*(__int64 (__fastcall **)(__int64))(*((_QWORD *)v14 + 40) + 8LL))((__int64)v14 + 320);
LOWORD(v256[0]) = *(_WORD *)v31;
v32 = v256[0];
v33 = *(_BYTE *)(v31 + 2);
v254 = -1;
v255 = -56;
(**((void (__fastcall ***)(__int64, __int16 *))v12 + 40))((__int64)v12 + 320, &v254);
v254 = -1;
v255 = -56;
(**((void (__fastcall ***)(char *, __int16 *))Src[0] + 40))((char *)Src[0] + 320, &v254);
(*(void (__fastcall **)(char *, _QWORD))(*(_QWORD *)v18 + 40LL))(v18, 0);
v34 = cocos2d::CCTintTo::create(0.30000001, v30, HIBYTE(v258), (unsigned __int8)v27);
cocos2d::CCNode::runAction(v12, v34);
v35 = cocos2d::CCTintTo::create(0.30000001, v32, BYTE1(v256[0]), v33);
v36 = (cocos2d::CCNode *)Src[0];
cocos2d::CCNode::runAction((cocos2d::CCNode *)Src[0], v35);
v37 = cocos2d::CCFadeTo::create(0.30000001, (int)v4);
v38 = v257;
cocos2d::CCNode::runAction(v257, v37);
v40 = (cocos2d::CCArray *)cocos2d::CCArray::create(v39);
v41 = cocos2d::CCString::createWithFormat("smallCoin_01_%s001.png", &byte_1406ED6E0);
CString = cocos2d::CCString::getCString(v41);
v45 = (cocos2d::CCSpriteFrameCache *)cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(v44, v43);
v46 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v45, CString);
cocos2d::CCArray::addObject(v40, v46);
v47 = cocos2d::CCString::createWithFormat("smallCoin_02_%s001.png", &byte_1406ED6E0);
v48 = cocos2d::CCString::getCString(v47);
v51 = (cocos2d::CCSpriteFrameCache *)cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(v50, v49);
v52 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v51, v48);
cocos2d::CCArray::addObject(v40, v52);
v53 = cocos2d::CCString::createWithFormat("smallCoin_03_%s001.png", &byte_1406ED6E0);
v54 = cocos2d::CCString::getCString(v53);
v57 = (cocos2d::CCSpriteFrameCache *)cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(v56, v55);
v58 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v57, v54);
cocos2d::CCArray::addObject(v40, v58);
v59 = cocos2d::CCString::createWithFormat("smallCoin_04_%s001.png", &byte_1406ED6E0);
v60 = cocos2d::CCString::getCString(v59);
v63 = (cocos2d::CCSpriteFrameCache *)cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(v62, v61);
v64 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v63, v60);
cocos2d::CCArray::addObject(v40, v64);
v65 = cocos2d::CCAnimation::createWithSpriteFrames(v40, 0.050000001);
v66 = cocos2d::CCAnimate::create(v65);
v67 = cocos2d::CCRepeatForever::create(v66);
*((_BYTE *)v66 + 133) = 1;
cocos2d::CCNode::runAction(v12, v67);
v69 = (cocos2d::CCArray *)cocos2d::CCArray::create(v68);
v70 = cocos2d::CCString::createWithFormat("smallCoin_01_%s001.png", "color_");
v71 = cocos2d::CCString::getCString(v70);
v74 = (cocos2d::CCSpriteFrameCache *)cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(v73, v72);
v75 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v74, v71);
cocos2d::CCArray::addObject(v69, v75);
v76 = cocos2d::CCString::createWithFormat("smallCoin_02_%s001.png", "color_");
v77 = cocos2d::CCString::getCString(v76);
v80 = (cocos2d::CCSpriteFrameCache *)cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(v79, v78);
v81 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v80, v77);
cocos2d::CCArray::addObject(v69, v81);
v82 = cocos2d::CCString::createWithFormat("smallCoin_03_%s001.png", "color_");
v83 = cocos2d::CCString::getCString(v82);
v86 = (cocos2d::CCSpriteFrameCache *)cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(v85, v84);
v87 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v86, v83);
cocos2d::CCArray::addObject(v69, v87);
v88 = cocos2d::CCString::createWithFormat("smallCoin_04_%s001.png", "color_");
v89 = cocos2d::CCString::getCString(v88);
v92 = (cocos2d::CCSpriteFrameCache *)cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(v91, v90);
v93 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v92, v89);
cocos2d::CCArray::addObject(v69, v93);
v94 = cocos2d::CCAnimation::createWithSpriteFrames(v69, 0.050000001);
v95 = cocos2d::CCAnimate::create(v94);
v96 = cocos2d::CCRepeatForever::create(v95);
*((_BYTE *)v95 + 132) = 1;
cocos2d::CCNode::runAction(v36, v96);
v97 = cocos2d::CCDelayTime::create(0.30000001);
v98 = cocos2d::CCFadeTo::create(0.30000001, 0);
v99 = cocos2d::CCSequence::create(v97, v98, 0);
cocos2d::CCNode::runAction(v36, v99);
v101 = (cocos2d::CCArray *)cocos2d::CCArray::create(v100);
v102 = cocos2d::CCString::createWithFormat("smallCoin_01_%s001.png", "highlight_");
v103 = cocos2d::CCString::getCString(v102);
v106 = (cocos2d::CCSpriteFrameCache *)cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(v105, v104);
v107 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v106, v103);
cocos2d::CCArray::addObject(v101, v107);
v108 = cocos2d::CCString::createWithFormat("smallCoin_02_%s001.png", "highlight_");
v109 = cocos2d::CCString::getCString(v108);
v112 = (cocos2d::CCSpriteFrameCache *)cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(v111, v110);
v113 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v112, v109);
cocos2d::CCArray::addObject(v101, v113);
v114 = cocos2d::CCString::createWithFormat("smallCoin_03_%s001.png", "highlight_");
v115 = cocos2d::CCString::getCString(v114);
v118 = (cocos2d::CCSpriteFrameCache *)cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(v117, v116);
v119 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v118, v115);
cocos2d::CCArray::addObject(v101, v119);
v120 = cocos2d::CCString::createWithFormat("smallCoin_04_%s001.png", "highlight_");
v121 = cocos2d::CCString::getCString(v120);
v124 = (cocos2d::CCSpriteFrameCache *)cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(v123, v122);
v125 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v124, v121);
cocos2d::CCArray::addObject(v101, v125);
v126 = cocos2d::CCAnimation::createWithSpriteFrames(v101, 0.050000001);
v127 = cocos2d::CCAnimate::create(v126);
v128 = cocos2d::CCRepeatForever::create(v127);
*((_BYTE *)v127 + 132) = 1;
cocos2d::CCNode::runAction(v38, v128);
v129 = cocos2d::CCDelayTime::create(0.30000001);
v130 = cocos2d::CCFadeTo::create(0.30000001, 0);
v131 = cocos2d::CCSequence::create(v129, v130, 0);
cocos2d::CCNode::runAction(v38, v131);
v134 = (int)v12;
LABEL_83:
GameObject::playPickupAnimation_1(a1, v134, v132, v133, 0, 0);
}
}
else
{
v135 = *(_DWORD *)(a1 + 928);
if ( v135 == 22 || v135 == 31 )
{
hasUniqueCoin = GJBaseGameLayer::hasUniqueCoin(a2, a1);
v188 = (const struct cocos2d::CCPoint *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a1 + 200LL))(a1);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v257, v188);
v192 = GJBaseGameLayer::spawnParticle(a2, (unsigned int)"coinPickupEffect.plist", v190, v191, v189);
v196 = v192;
if ( v135 == 31 && v192 )
{
v197 = *(_DWORD *)((*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v192 + 1344LL))(v192) + 12);
Src[0] = (void *)0x3F8000003F800000LL;
LODWORD(Src[1]) = 1065353216;
HIDWORD(Src[1]) = v197;
(*(void (__fastcall **)(__int64, void **))(*(_QWORD *)v196 + 1352LL))(v196, Src);
v198 = *(_DWORD *)((*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v196 + 1376LL))(v196) + 12);
Src[0] = (void *)0x3F0000003F000000LL;
LODWORD(Src[1]) = 1056964608;
HIDWORD(Src[1]) = v198;
(*(void (__fastcall **)(__int64, void **))(*(_QWORD *)v196 + 1384LL))(v196, Src);
v202 = CCCircleWave::create(v200, v199, v201, 0, 0);
v203 = -56;
v204 = -56;
}
else
{
v202 = CCCircleWave::create(v194, v193, v195, 0, 0);
if ( v135 == 31 )
{
v203 = -56;
v204 = -56;
}
else
{
v203 = 0;
v204 = -1;
}
}
*((_BYTE *)v202 + 340) = v204;
*((_BYTE *)v202 + 341) = -56;
*((_BYTE *)v202 + 342) = v203;
v205 = *(_QWORD *)v202;
v206 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a1 + 200LL))(a1);
(*(void (__fastcall **)(cocos2d::CCObject *, __int64))(v205 + 184))(v202, v206);
(*(void (__fastcall **)(_QWORD, cocos2d::CCObject *, _QWORD))(**(_QWORD **)(a2 + 4296) + 456LL))(
*(_QWORD *)(a2 + 4296),
v202,
0);
v210 = CCCircleWave::create(v208, v207, v209, 0, 1);
v211 = v210;
v254 = -1;
if ( v135 == 31 )
v212 = -1;
else
v212 = 0;
*((_WORD *)v210 + 170) = v254;
*((_BYTE *)v210 + 342) = v212;
v213 = *(_QWORD *)v210;
v214 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a1 + 200LL))(a1);
(*(void (__fastcall **)(cocos2d::CCObject *, __int64))(v213 + 184))(v211, v214);
(*(void (__fastcall **)(_QWORD, cocos2d::CCObject *, _QWORD))(**(_QWORD **)(a2 + 4296) + 456LL))(
*(_QWORD *)(a2 + 4296),
v211,
0);
*((_DWORD *)v211 + 88) = 1;
*((_DWORD *)v211 + 89) = 4;
if ( *(_DWORD *)(a1 + 928) == 31 )
{
v215 = "secretCoin_2_01_001.png";
v217 = "secretCoin_2_b";
v216 = "secretCoin_2";
}
else
{
v215 = "secretCoin_01_001.png";
v216 = "secretCoin";
v217 = "secretCoin_b";
}
if ( !hasUniqueCoin )
v217 = v216;
v218 = cocos2d::CCSprite::createWithSpriteFrameName(v215);
v219 = *(_QWORD *)v218;
(*(void (__fastcall **)(__int64))(*(_QWORD *)a1 + 128LL))(a1);
(*(void (__fastcall **)(struct cocos2d::CCSprite *))(v219 + 160))(v218);
v220 = *(_QWORD *)(a1 + 216);
if ( v220 )
(*(void (__fastcall **)(__int64, struct cocos2d::CCSprite *))(*(_QWORD *)v220 + 456LL))(v220, v218);
v221 = *(_QWORD *)v218;
v222 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a1 + 200LL))(a1);
(*(void (__fastcall **)(struct cocos2d::CCSprite *, __int64))(v221 + 184))(v218, v222);
if ( v135 == 31 )
{
v224 = *((void (__fastcall ***)(__int64, __int64))v218 + 40);
v225 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)(a1 + 320) + 8LL))(a1 + 320);
(*v224)((__int64)v218 + 320, v225);
}
v226 = (cocos2d::CCArray *)cocos2d::CCArray::create(v223);
v227 = cocos2d::CCString::createWithFormat("%s_01_001.png", v217);
v228 = cocos2d::CCString::getCString(v227);
v231 = (cocos2d::CCSpriteFrameCache *)cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(v230, v229);
v232 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v231, v228);
cocos2d::CCArray::addObject(v226, v232);
v233 = cocos2d::CCString::createWithFormat("%s_01_002.png", v217);
v234 = cocos2d::CCString::getCString(v233);
v237 = (cocos2d::CCSpriteFrameCache *)cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(v236, v235);
v238 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v237, v234);
cocos2d::CCArray::addObject(v226, v238);
v239 = cocos2d::CCString::createWithFormat("%s_01_003.png", v217);
v240 = cocos2d::CCString::getCString(v239);
v243 = (cocos2d::CCSpriteFrameCache *)cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(v242, v241);
v244 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v243, v240);
cocos2d::CCArray::addObject(v226, v244);
v245 = cocos2d::CCString::createWithFormat("%s_01_004.png", v217);
v246 = cocos2d::CCString::getCString(v245);
v249 = (cocos2d::CCSpriteFrameCache *)cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(v248, v247);
v250 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v249, v246);
cocos2d::CCArray::addObject(v226, v250);
v251 = cocos2d::CCAnimation::createWithSpriteFrames(v226, 0.050000001);
v252 = cocos2d::CCAnimate::create(v251);
v253 = cocos2d::CCRepeatForever::create(v252);
cocos2d::CCNode::runAction(v218, v253);
v134 = (int)v218;
goto LABEL_83;
}
if ( v135 == 30 && !*(_BYTE *)(a1 + 1007) && v6 )
{
v256[0] = *(_DWORD *)(a1 + 1036);
v136 = ObjectToolbox::sharedState();
v137 = (_QWORD *)sub_1402D6130(v136 + 320, v256);
if ( v137[3] > 0xFu )
v137 = (_QWORD *)*v137;
*(_OWORD *)Src = 0;
v265 = 0;
v266 = 0;
v138 = -1;
do
++v138;
while ( *((_BYTE *)v137 + v138) );
sub_14003D230(Src, v137, v138);
v261 = 0;
v262 = 0;
v263 = 0;
v140 = Src;
if ( v266 > 0xF )
v140 = (void **)Src[0];
v141 = v265;
v142 = 0x7FFFFFFFFFFFFFFFLL;
if ( v265 > 0x7FFFFFFFFFFFFFFFLL )
sub_140009D90(v139);
if ( v265 > 0xF )
{
if ( (v265 | 0xF) <= 0x7FFFFFFFFFFFFFFFLL )
{
v142 = v265 | 0xF;
if ( (v265 | 0xF) < 0x16 )
v142 = 22;
}
*(_QWORD *)&v261 = sub_14003D460(v142 + 1);
v262 = v141;
v263 = v142;
memcpy((void *)v261, v140, v141 + 1);
}
else
{
v262 = v265;
v263 = 15;
v261 = *(_OWORD *)v140;
}
GameObject::getColorFrame(v139, v267, &v261);
v143 = Src;
if ( v266 > 0xF )
v143 = (void **)Src[0];
v144 = cocos2d::CCSprite::createWithSpriteFrameName((const char *)v143);
(*(void (__fastcall **)(__int64, _QWORD))(*((_QWORD *)v144 + 40) + 40LL))(
(__int64)v144 + 320,
(unsigned int)(int)v4);
v145 = (*(__int64 (__fastcall **)(__int64, __int64))(*(_QWORD *)a1 + 472LL))(a1, 1);
v146 = v145;
if ( v145 )
{
v147 = *(_QWORD *)v144;
v148 = *(void (__fastcall **)(__int64))(*(_QWORD *)a1 + 128LL);
(*(void (__fastcall **)(__int64))(*(_QWORD *)v145 + 128LL))(v145);
v148(a1);
(*(void (__fastcall **)(cocos2d::CCNode *))(v147 + 120))(v144);
v149 = *(_QWORD *)v144;
v150 = *(void (__fastcall **)(__int64))(*(_QWORD *)v146 + 144LL);
(*(void (__fastcall **)(__int64))(*(_QWORD *)a1 + 144LL))(a1);
v150(v146);
(*(void (__fastcall **)(cocos2d::CCNode *))(v149 + 136))(v144);
}
ParentMode = GameObject::getParentMode(a1);
v154 = GameObject::parentForZLayer(a1, v153, v152, ParentMode);
(*(void (__fastcall **)(__int64, cocos2d::CCNode *))(*(_QWORD *)v154 + 456LL))(v154, v144);
v155 = *(_QWORD *)v144;
v156 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a1 + 200LL))(a1);
(*(void (__fastcall **)(cocos2d::CCNode *, __int64))(v155 + 184))(v144, v156);
v157 = *((void (__fastcall ***)(__int64, __int64))v144 + 40);
v158 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)(a1 + 320) + 8LL))(a1 + 320);
(*v157)((__int64)v144 + 320, v158);
if ( *(_QWORD *)(a1 + 896) )
{
v159 = (const char *)v267;
if ( v267[3] > 0xFu )
v159 = (const char *)v267[0];
v160 = cocos2d::CCSprite::createWithSpriteFrameName(v159);
v161 = v160;
v162 = -1;
if ( *(_BYTE *)(a1 + 1061) )
v162 = 1;
(*(void (__fastcall **)(cocos2d::CCNode *, struct cocos2d::CCSprite *, __int64))(*(_QWORD *)v144 + 456LL))(
v144,
v160,
v162);
v163 = (float *)(*(__int64 (__fastcall **)(cocos2d::CCNode *))(*(_QWORD *)v144 + 320LL))(v144);
v164 = *(_QWORD *)v161;
v165 = (*(__int64 (__fastcall **)(cocos2d::CCNode *))(*(_QWORD *)v144 + 320LL))(v144);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v257, *v163 * 0.5, *(float *)(v165 + 4) * 0.5);
(*(void (__fastcall **)(struct cocos2d::CCSprite *, __int64))(v164 + 184))(v161, v166);
v167 = *((void (__fastcall ***)(__int64, __int64))v161 + 40);
v168 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)(*(_QWORD *)(a1 + 896) + 320LL) + 8LL))(*(_QWORD *)(a1 + 896) + 320LL);
(*v167)((__int64)v161 + 320, v168);
v169 = *((_QWORD *)v161 + 40);
v170 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)(*(_QWORD *)(a1 + 896) + 320LL) + 32LL))(*(_QWORD *)(a1 + 896) + 320LL);
(*(void (__fastcall **)(_QWORD *, _QWORD))(v169 + 40))((_QWORD *)v161 + 40, v170);
v171 = cocos2d::CCDelayTime::create(0.44999999);
v172 = cocos2d::CCFadeTo::create(0.15000001, 0);
v173 = cocos2d::CCSequence::create(v171, v172, 0);
cocos2d::CCNode::runAction(v161, v173);
}
v174 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a1 + 200LL))(a1);
v175 = (float *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a1 + 200LL))(a1);
v176 = *(float *)(v174 + 4);
v177 = (int)*v175;
v256[0] = v177;
v178 = (int)v176;
v256[1] = (int)v176;
v179 = *(__int64 **)(a2 + 12528);
for ( i = (__int64 *)v179[1]; !*((_BYTE *)i + 25); i = (__int64 *)*i )
{
if ( *((_DWORD *)i + 7) < v177 || *((_DWORD *)i + 7) <= v177 && *((_DWORD *)i + 8) < v178 )
i += 2;
else
v179 = i;
}
if ( *((_BYTE *)v179 + 25)
|| v177 < *((_DWORD *)v179 + 7)
|| v177 <= *((_DWORD *)v179 + 7) && v178 < *((_DWORD *)v179 + 8) )
{
v181 = (float)rand() / 32767.0;
v182 = (float)rand() / 32767.0;
v183 = (float *)sub_1403541C0(a2 + 12528, v256);
*v183 = (float)(v182 + v182) - 1.0;
v183[1] = v181;
}
v184 = *(float *)sub_1403541C0(a2 + 12528, v256);
v185 = sub_1403541C0(a2 + 12528, v256);
GameObject::playPickupAnimation(
a1,
v144,
20.0,
30.0,
65.0,
115.0,
10.0,
0.60000002,
0.44999999,
0.15000001,
1,
v184,
*(float *)(v185 + 4));
sub_14003D310((__int64)v267);
if ( v266 > 0xF )
{
v186 = Src[0];
if ( v266 + 1 >= 0x1000 )
{
v186 = *((void **)Src[0] - 1);
if ( (unsigned __int64)((char *)Src[0] - (char *)v186 - 8) > 0x1F )
invoke_watson(nullptr, nullptr, nullptr, 0, 0);
}
j_j_free(v186);
}
}
}
}
}