//
// GameObject::playDestroyObjectAnim from 0x65eb30 to 0x65f4ac (2428 bytes)
//
// 1 xrefs:
// > GJBaseGameLayer::destroyObject @ 0x5a49fc
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 11:55:36 +0000
//
int __fastcall GameObject::playDestroyObjectAnim(int this, GJBaseGameLayer *a2)
{
GameObject *v2; // r4
const char *v4; // r1
unsigned int v5; // r8
int v6; // r3
const cocos2d::CCPoint *v7; // r0
cocos2d::CCNode *v8; // r5
const cocos2d::CCSize *v9; // r0
const char *v10; // r1
cocos2d::CCNode *v11; // r6
const char *v12; // r1
int v13; // r0
void (__fastcall *v14)(cocos2d::CCNode *, int); // r7
int v15; // r0
cocos2d::CCNode *v16; // r7
int v17; // r0
void (__fastcall *v18)(cocos2d::CCNode *, int); // r9
int v19; // r0
void (__fastcall *v20)(cocos2d::CCNode *, int); // r9
int v21; // r0
void (__fastcall *v22)(cocos2d::CCNode *, int); // r9
int v23; // r0
int v24; // r9
void (__fastcall *v25)(int, cocos2d::CCNode *, int); // r10
int ObjectZOrder; // r0
void (__fastcall *v27)(cocos2d::CCNode *, int); // r9
int v28; // r0
void (__fastcall *v29)(cocos2d::CCNode *, int); // r9
int v30; // r0
unsigned __int8 *v31; // r0
unsigned __int8 *v32; // r0
void (__fastcall *v33)(cocos2d::CCNode *, char *); // r2
unsigned __int8 v34; // r3
void (__fastcall *v35)(cocos2d::CCNode *, char *); // r2
cocos2d::CCNode *v36; // r10
int v37; // r11
cocos2d::CCAction *v38; // r0
cocos2d::CCAction *v39; // r0
unsigned __int8 v40; // r2
cocos2d::CCAction *v41; // r0
const char *v42; // r8
cocos2d::CCArray *v43; // r0
cocos2d::CCSpriteFrameCache *v44; // r9
cocos2d::CCString *v45; // r0
const char *CString; // r0
cocos2d::CCObject *v47; // r0
cocos2d::CCSpriteFrameCache *v48; // r0
cocos2d::CCString *v49; // r0
const char *v50; // r0
cocos2d::CCObject *v51; // r0
cocos2d::CCSpriteFrameCache *v52; // r0
cocos2d::CCString *v53; // r0
const char *v54; // r0
cocos2d::CCObject *v55; // r0
cocos2d::CCSpriteFrameCache *v56; // r0
cocos2d::CCString *v57; // r0
const char *v58; // r0
cocos2d::CCObject *v59; // r0
float v60; // r2
cocos2d::CCAnimate *v61; // r0
cocos2d::CCAnimation *v62; // r1
cocos2d::CCRepeatForever *v63; // r8
cocos2d::CCActionInterval *v64; // r1
cocos2d::CCAction *v65; // r1
float v66; // r1
cocos2d::CCSequence *v67; // r8
unsigned __int8 v68; // r2
cocos2d::CCFiniteTimeAction *v69; // r0
cocos2d::CCAction *v70; // r0
int v71; // r5
_BOOL4 v72; // r5
int hasUniqueCoin; // r8
const cocos2d::CCPoint *v74; // r0
int v75; // r0
int v76; // r6
void (__fastcall *v77)(int, float *); // r10
int v78; // r2
void (__fastcall *v79)(int, float *); // r10
int v80; // r2
CCCircleWave *v81; // r0
CCCircleWave *v82; // r6
char v83; // r2
char v84; // r1
int v85; // r3
void (__fastcall *v86)(CCCircleWave *, int); // r9
int v87; // r0
CCCircleWave *v88; // r0
CCCircleWave *v89; // r6
void (__fastcall *v90)(CCCircleWave *, int); // r9
int v91; // r0
const char *v92; // r1
const char *v93; // r7
char *v94; // r0
cocos2d::CCNode *v95; // r6
void (__fastcall *v96)(cocos2d::CCNode *, int); // r8
int v97; // r0
int v98; // r8
void (__fastcall *v99)(int, cocos2d::CCNode *, int); // r9
int v100; // r0
int (__fastcall *v101)(cocos2d::CCNode *, int); // r8
int v102; // r0
cocos2d::CCArray *v103; // r0
int (__fastcall *v104)(cocos2d::CCNode *, int); // r5
int v105; // r0
cocos2d::CCSpriteFrameCache *v106; // r5
cocos2d::CCSpriteFrameCache *v107; // r8
cocos2d::CCString *v108; // r0
const char *v109; // r0
cocos2d::CCObject *v110; // r0
cocos2d::CCSpriteFrameCache *v111; // r0
cocos2d::CCSpriteFrameCache *v112; // r8
cocos2d::CCString *v113; // r0
const char *v114; // r0
cocos2d::CCObject *v115; // r0
cocos2d::CCSpriteFrameCache *v116; // r0
cocos2d::CCSpriteFrameCache *v117; // r8
cocos2d::CCString *v118; // r0
const char *v119; // r0
cocos2d::CCObject *v120; // r0
cocos2d::CCSpriteFrameCache *v121; // r0
cocos2d::CCSpriteFrameCache *v122; // r8
cocos2d::CCString *v123; // r0
const char *v124; // r0
cocos2d::CCObject *v125; // r0
float v126; // r2
cocos2d::CCAnimate *v127; // r0
cocos2d::CCAnimation *v128; // r1
cocos2d::CCRepeatForever *v129; // r0
cocos2d::CCActionInterval *v130; // r1
cocos2d::CCAction *v131; // r0
int v132; // r5
ObjectToolbox *v133; // r0
char *v134; // r0
char *v135; // r6
size_t v136; // r0
const char *v137; // r1
cocos2d::CCSprite *v138; // r0
cocos2d::CCSprite *v139; // r5
int v140; // r0
int v141; // r6
int ObjectZLayer; // r8
char v143; // r6
int ParentMode; // r0
void (__fastcall *v145)(cocos2d::CCSprite *, _DWORD); // r8
float v146; // s16
float v147; // r0
void (__fastcall *v148)(cocos2d::CCSprite *, _DWORD); // r8
float v149; // s16
float v150; // r0
int v151; // r6
void (__fastcall *v152)(int, cocos2d::CCSprite *, int); // r8
int v153; // r0
void (__fastcall *v154)(cocos2d::CCSprite *, int); // r6
int v155; // r0
void (__fastcall *v156)(cocos2d::CCSprite *, int); // r6
int v157; // r0
const char *v158; // r1
cocos2d::CCSprite *v159; // r0
cocos2d::CCNode *v160; // r6
int v161; // r2
void (__fastcall *v162)(cocos2d::CCNode *, float *); // r11
float v163; // s17
int v164; // r0
void (__fastcall *v165)(cocos2d::CCNode *, int); // r11
int v166; // r0
void (__fastcall *v167)(cocos2d::CCNode *, int); // r11
int v168; // r0
float v169; // r1
cocos2d::CCSequence *v170; // r11
unsigned __int8 v171; // r2
cocos2d::CCFiniteTimeAction *v172; // r0
cocos2d::CCAction *v173; // r0
unsigned __int8 v174; // [sp+0h] [bp-94h]
unsigned __int8 v175; // [sp+0h] [bp-94h]
bool v176; // [sp+0h] [bp-94h]
bool v177; // [sp+4h] [bp-90h]
unsigned __int8 v178; // [sp+28h] [bp-6Ch]
unsigned __int8 v179; // [sp+2Ch] [bp-68h]
unsigned __int8 v180; // [sp+30h] [bp-64h]
float v181; // [sp+34h] [bp-60h]
float v182; // [sp+3Ch] [bp-58h]
unsigned __int8 v183; // [sp+40h] [bp-54h]
cocos2d::CCSpriteFrameCache *v184; // [sp+44h] [bp-50h]
cocos2d::CCSpriteFrameCache *v185; // [sp+44h] [bp-50h]
cocos2d::CCSpriteFrameCache *v186; // [sp+44h] [bp-50h]
cocos2d::CCSpriteFrameCache *v187; // [sp+44h] [bp-50h]
char v188; // [sp+4Ch] [bp-48h] BYREF
char v189; // [sp+4Dh] [bp-47h]
char v190; // [sp+4Eh] [bp-46h]
float v191[2]; // [sp+50h] [bp-44h] BYREF
int v192[2]; // [sp+58h] [bp-3Ch] BYREF
cocos2d::CCSprite *v193; // [sp+60h] [bp-34h]
int v194[3]; // [sp+64h] [bp-30h] BYREF
int v195[3]; // [sp+70h] [bp-24h] BYREF
float v196; // [sp+7Ch] [bp-18h] BYREF
int v197; // [sp+80h] [bp-14h]
int v198; // [sp+84h] [bp-10h]
int v199; // [sp+88h] [bp-Ch]
v2 = (GameObject *)this;
if ( a2 )
{
v5 = (*(int (__fastcall **)(int))(*(_DWORD *)this + 448))(this);
if ( (float)v5 > 0.0 )
{
this = (int)&dword_0 + 1;
}
else
{
this = *((_DWORD *)v2 + 189);
if ( this )
this = (*(int (__fastcall **)(int))(*(_DWORD *)this + 448))(this) != 0;
}
v6 = *((_DWORD *)v2 + 223);
if ( v6 == 143 )
{
v7 = (const cocos2d::CCPoint *)(*(int (__fastcall **)(GameObject *))(*(_DWORD *)v2 + 96))(v2);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v196, v7);
return GJBaseGameLayer::spawnParticle(
a2,
(cocos2d::CCParticleSystemQuad *)"glassDestroy01.plist",
0,
2,
(int)&v196);
}
else if ( v6 == 1614 )
{
if ( !*((_BYTE *)v2 + 863) && this )
{
v8 = (cocos2d::CCNode *)cocos2d::CCSprite::createWithSpriteFrameName(
(cocos2d::CCSprite *)"smallCoin_01_001.png",
v4);
(*(void (__fastcall **)(cocos2d::CCNode *, unsigned int))(*(_DWORD *)v8 + 456))(v8, v5);
v9 = (const cocos2d::CCSize *)(*(int (__fastcall **)(cocos2d::CCNode *))(*(_DWORD *)v8 + 164))(v8);
cocos2d::CCSize::CCSize((cocos2d::CCSize *)v191, v9);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v196, v191[0] * 0.5, v191[1] * 0.5);
v11 = (cocos2d::CCNode *)cocos2d::CCSprite::createWithSpriteFrameName(
(cocos2d::CCSprite *)"smallCoin_01_color_001.png",
v10);
(*(void (__fastcall **)(cocos2d::CCNode *, cocos2d::CCNode *, int))(*(_DWORD *)v8 + 232))(v8, v11, 1);
(*(void (__fastcall **)(cocos2d::CCNode *, unsigned int))(*(_DWORD *)v11 + 456))(v11, v5);
(*(void (__fastcall **)(cocos2d::CCNode *, float *))(*(_DWORD *)v11 + 92))(v11, &v196);
v13 = *((_DWORD *)v2 + 189);
if ( v13 )
{
v14 = *(void (__fastcall **)(cocos2d::CCNode *, int))(*(_DWORD *)v11 + 480);
v15 = (*(int (__fastcall **)(int))(*(_DWORD *)v13 + 472))(v13);
v14(v11, v15);
}
v16 = (cocos2d::CCNode *)cocos2d::CCSprite::createWithSpriteFrameName(
(cocos2d::CCSprite *)"smallCoin_01_highlight_001.png",
v12);
(*(void (__fastcall **)(cocos2d::CCNode *, cocos2d::CCNode *, int))(*(_DWORD *)v8 + 232))(v8, v16, 2);
(*(void (__fastcall **)(cocos2d::CCNode *, float *))(*(_DWORD *)v16 + 92))(v16, &v196);
(*(void (__fastcall **)(cocos2d::CCNode *, unsigned int))(*(_DWORD *)v16 + 456))(v16, v5);
v17 = (*(int (__fastcall **)(GameObject *, int))(*(_DWORD *)v2 + 240))(v2, 2);
if ( v17 )
{
v18 = *(void (__fastcall **)(cocos2d::CCNode *, int))(*(_DWORD *)v16 + 480);
v19 = (*(int (__fastcall **)(int))(*(_DWORD *)v17 + 472))(v17);
v18(v16, v19);
}
v20 = *(void (__fastcall **)(cocos2d::CCNode *, int))(*(_DWORD *)v8 + 64);
v21 = (*(int (__fastcall **)(GameObject *))(*(_DWORD *)v2 + 68))(v2);
v20(v8, v21);
v22 = *(void (__fastcall **)(cocos2d::CCNode *, int))(*(_DWORD *)v8 + 72);
v23 = (*(int (__fastcall **)(GameObject *))(*(_DWORD *)v2 + 76))(v2);
v22(v8, v23);
v24 = *((_DWORD *)v2 + 49);
if ( v24 )
{
v25 = *(void (__fastcall **)(int, cocos2d::CCNode *, int))(*(_DWORD *)v24 + 232);
ObjectZOrder = GameObject::getObjectZOrder(v2);
v25(v24, v8, ObjectZOrder);
}
v27 = *(void (__fastcall **)(cocos2d::CCNode *, int))(*(_DWORD *)v8 + 92);
v28 = (*(int (__fastcall **)(GameObject *))(*(_DWORD *)v2 + 96))(v2);
v27(v8, v28);
v29 = *(void (__fastcall **)(cocos2d::CCNode *, int))(*(_DWORD *)v8 + 480);
v30 = (*(int (__fastcall **)(GameObject *))(*(_DWORD *)v2 + 472))(v2);
v29(v8, v30);
v31 = (unsigned __int8 *)(*(int (__fastcall **)(cocos2d::CCNode *))(*(_DWORD *)v8 + 472))(v8);
LODWORD(v181) = *v31;
v180 = v31[1];
v183 = v31[2];
v32 = (unsigned __int8 *)(*(int (__fastcall **)(cocos2d::CCNode *))(*(_DWORD *)v11 + 472))(v11);
v33 = *(void (__fastcall **)(cocos2d::CCNode *, char *))(*(_DWORD *)v8 + 480);
v179 = v32[1];
v34 = v32[2];
LODWORD(v182) = *v32;
v188 = -1;
v178 = v34;
v189 = -1;
v190 = -56;
v33(v8, &v188);
v35 = *(void (__fastcall **)(cocos2d::CCNode *, char *))(*(_DWORD *)v11 + 480);
v188 = -1;
v189 = -1;
v36 = v8;
v190 = -56;
v37 = 0;
v35(v11, &v188);
(*(void (__fastcall **)(cocos2d::CCNode *, _DWORD))(*(_DWORD *)v16 + 456))(v16, 0);
v38 = (cocos2d::CCAction *)cocos2d::CCTintTo::create((cocos2d::CCTintTo *)0x3E99999A, v181, v180, v183, v174);
cocos2d::CCNode::runAction(v8, v38);
v39 = (cocos2d::CCAction *)cocos2d::CCTintTo::create((cocos2d::CCTintTo *)0x3E99999A, v182, v179, v178, v175);
cocos2d::CCNode::runAction(v11, v39);
v41 = (cocos2d::CCAction *)cocos2d::CCFadeTo::create((cocos2d::CCFadeTo *)0x3E99999A, *(float *)&v5, v40);
v42 = (const char *)&unk_B6B226;
v43 = (cocos2d::CCArray *)cocos2d::CCNode::runAction(v16, v41);
while ( 1 )
{
v44 = (cocos2d::CCSpriteFrameCache *)cocos2d::CCArray::create(v43);
v184 = (cocos2d::CCSpriteFrameCache *)cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(v44);
v45 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(
(cocos2d::CCString *)"smallCoin_01_%s001.png",
v42);
CString = (const char *)cocos2d::CCString::getCString(v45);
v47 = (cocos2d::CCObject *)cocos2d::CCSpriteFrameCache::spriteFrameByName(v184, CString);
v48 = (cocos2d::CCSpriteFrameCache *)cocos2d::CCArray::addObject(v44, v47);
v185 = (cocos2d::CCSpriteFrameCache *)cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(v48);
v49 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(
(cocos2d::CCString *)"smallCoin_02_%s001.png",
v42);
v50 = (const char *)cocos2d::CCString::getCString(v49);
v51 = (cocos2d::CCObject *)cocos2d::CCSpriteFrameCache::spriteFrameByName(v185, v50);
v52 = (cocos2d::CCSpriteFrameCache *)cocos2d::CCArray::addObject(v44, v51);
v186 = (cocos2d::CCSpriteFrameCache *)cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(v52);
v53 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(
(cocos2d::CCString *)"smallCoin_03_%s001.png",
v42);
v54 = (const char *)cocos2d::CCString::getCString(v53);
v55 = (cocos2d::CCObject *)cocos2d::CCSpriteFrameCache::spriteFrameByName(v186, v54);
v56 = (cocos2d::CCSpriteFrameCache *)cocos2d::CCArray::addObject(v44, v55);
v187 = (cocos2d::CCSpriteFrameCache *)cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(v56);
v57 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(
(cocos2d::CCString *)"smallCoin_04_%s001.png",
v42);
v58 = (const char *)cocos2d::CCString::getCString(v57);
v59 = (cocos2d::CCObject *)cocos2d::CCSpriteFrameCache::spriteFrameByName(v187, v58);
cocos2d::CCArray::addObject(v44, v59);
v61 = (cocos2d::CCAnimate *)cocos2d::CCAnimation::createWithSpriteFrames(
v44,
(cocos2d::CCArray *)0x3D4CCCCD,
v60);
v63 = (cocos2d::CCRepeatForever *)cocos2d::CCAnimate::create(v61, v62);
v65 = (cocos2d::CCAction *)cocos2d::CCRepeatForever::create(v63, v64);
if ( v37 )
*((_BYTE *)v63 + 100) = 1;
else
*((_BYTE *)v63 + 101) = 1;
v43 = (cocos2d::CCArray *)cocos2d::CCNode::runAction(v36, v65);
if ( v37 )
{
v67 = (cocos2d::CCSequence *)cocos2d::CCDelayTime::create((cocos2d::CCDelayTime *)0x3E99999A, v66);
v69 = (cocos2d::CCFiniteTimeAction *)cocos2d::CCFadeTo::create((cocos2d::CCFadeTo *)0x3E99999A, 0.0, v68);
v70 = (cocos2d::CCAction *)cocos2d::CCSequence::create(v67, v69, 0);
v43 = (cocos2d::CCArray *)cocos2d::CCNode::runAction(v36, v70);
}
if ( ++v37 == 3 )
break;
if ( v37 == 1 )
{
v36 = v11;
v42 = "color_";
}
else
{
v36 = v16;
v42 = "highlight_";
}
}
return GameObject::playPickupAnimation(v2, v8, 0.6, 0.8, 0.0, 0.0);
}
}
else
{
v71 = *((_DWORD *)v2 + 196);
if ( v71 == 22 || v71 == 31 )
{
v72 = v71 == 31;
hasUniqueCoin = GJBaseGameLayer::hasUniqueCoin(a2, v2);
v74 = (const cocos2d::CCPoint *)(*(int (__fastcall **)(GameObject *))(*(_DWORD *)v2 + 96))(v2);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v196, v74);
v75 = GJBaseGameLayer::spawnParticle(
a2,
(cocos2d::CCParticleSystemQuad *)"coinPickupEffect.plist",
0,
2,
(int)&v196);
v76 = v75;
if ( v72 && v75 )
{
v77 = *(void (__fastcall **)(int, float *))(*(_DWORD *)v75 + 680);
v78 = *(_DWORD *)((*(int (__fastcall **)(int))(*(_DWORD *)v75 + 676))(v75) + 12);
v196 = 1.0;
v197 = 1065353216;
v199 = v78;
v198 = 1065353216;
v77(v76, &v196);
v79 = *(void (__fastcall **)(int, float *))(*(_DWORD *)v76 + 696);
v80 = *(_DWORD *)((*(int (__fastcall **)(int))(*(_DWORD *)v76 + 692))(v76) + 12);
v196 = 0.5;
v197 = 1056964608;
v198 = 1056964608;
v199 = v80;
v79(v76, &v196);
}
v81 = CCCircleWave::create((CCCircleWave *)0x41C80000, 5.0, (cocos2d::CCActionTween *)0x3E99999A, 0.0, 0, v177);
v82 = v81;
if ( v72 )
{
v83 = -56;
v84 = -56;
}
else
{
v83 = 0;
v84 = -1;
}
*((_BYTE *)v81 + 281) = -56;
v85 = *(_DWORD *)v81;
*((_BYTE *)v81 + 282) = v83;
*((_BYTE *)v81 + 280) = v84;
v86 = *(void (__fastcall **)(CCCircleWave *, int))(v85 + 92);
v87 = (*(int (__fastcall **)(GameObject *))(*(_DWORD *)v2 + 96))(v2);
v86(v82, v87);
(*(void (__fastcall **)(_DWORD, CCCircleWave *, _DWORD))(**((_DWORD **)a2 + 609) + 232))(
*((_DWORD *)a2 + 609),
v82,
0);
v88 = CCCircleWave::create(
(CCCircleWave *)0x40A00000,
1114636288,
(cocos2d::CCActionTween *)0x3E99999A,
0.0,
v176);
*((_BYTE *)v88 + 280) = -1;
v89 = v88;
*((_BYTE *)v88 + 281) = -1;
*((_BYTE *)v88 + 282) = -v72;
v90 = *(void (__fastcall **)(CCCircleWave *, int))(*(_DWORD *)v88 + 92);
v91 = (*(int (__fastcall **)(GameObject *))(*(_DWORD *)v2 + 96))(v2);
v90(v89, v91);
(*(void (__fastcall **)(_DWORD, CCCircleWave *, _DWORD))(**((_DWORD **)a2 + 609) + 232))(
*((_DWORD *)a2 + 609),
v89,
0);
*((_DWORD *)v89 + 73) = 1;
*((_DWORD *)v89 + 74) = 4;
if ( *((_DWORD *)v2 + 196) == 31 )
{
if ( hasUniqueCoin )
v93 = "secretCoin_2_b";
else
v93 = "secretCoin_2";
v94 = "secretCoin_2_01_001.png";
}
else
{
if ( hasUniqueCoin )
v93 = "secretCoin_b";
else
v93 = "secretCoin";
v94 = "secretCoin_01_001.png";
}
v95 = (cocos2d::CCNode *)cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)v94, v92);
v96 = *(void (__fastcall **)(cocos2d::CCNode *, int))(*(_DWORD *)v95 + 80);
v97 = (*(int (__fastcall **)(GameObject *))(*(_DWORD *)v2 + 68))(v2);
v96(v95, v97);
v98 = *((_DWORD *)v2 + 49);
if ( v98 )
{
v99 = *(void (__fastcall **)(int, cocos2d::CCNode *, int))(*(_DWORD *)v98 + 232);
v100 = GameObject::getObjectZOrder(v2);
v99(v98, v95, v100);
}
v101 = *(int (__fastcall **)(cocos2d::CCNode *, int))(*(_DWORD *)v95 + 92);
v102 = (*(int (__fastcall **)(GameObject *))(*(_DWORD *)v2 + 96))(v2);
v103 = (cocos2d::CCArray *)v101(v95, v102);
if ( v72 )
{
v104 = *(int (__fastcall **)(cocos2d::CCNode *, int))(*(_DWORD *)v95 + 480);
v105 = (*(int (__fastcall **)(GameObject *))(*(_DWORD *)v2 + 472))(v2);
v103 = (cocos2d::CCArray *)v104(v95, v105);
}
v106 = (cocos2d::CCSpriteFrameCache *)cocos2d::CCArray::create(v103);
v107 = (cocos2d::CCSpriteFrameCache *)cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(v106);
v108 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"%s_01_001.png", v93);
v109 = (const char *)cocos2d::CCString::getCString(v108);
v110 = (cocos2d::CCObject *)cocos2d::CCSpriteFrameCache::spriteFrameByName(v107, v109);
v111 = (cocos2d::CCSpriteFrameCache *)cocos2d::CCArray::addObject(v106, v110);
v112 = (cocos2d::CCSpriteFrameCache *)cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(v111);
v113 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"%s_01_002.png", v93);
v114 = (const char *)cocos2d::CCString::getCString(v113);
v115 = (cocos2d::CCObject *)cocos2d::CCSpriteFrameCache::spriteFrameByName(v112, v114);
v116 = (cocos2d::CCSpriteFrameCache *)cocos2d::CCArray::addObject(v106, v115);
v117 = (cocos2d::CCSpriteFrameCache *)cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(v116);
v118 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"%s_01_003.png", v93);
v119 = (const char *)cocos2d::CCString::getCString(v118);
v120 = (cocos2d::CCObject *)cocos2d::CCSpriteFrameCache::spriteFrameByName(v117, v119);
v121 = (cocos2d::CCSpriteFrameCache *)cocos2d::CCArray::addObject(v106, v120);
v122 = (cocos2d::CCSpriteFrameCache *)cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(v121);
v123 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"%s_01_004.png", v93);
v124 = (const char *)cocos2d::CCString::getCString(v123);
v125 = (cocos2d::CCObject *)cocos2d::CCSpriteFrameCache::spriteFrameByName(v122, v124);
cocos2d::CCArray::addObject(v106, v125);
v127 = (cocos2d::CCAnimate *)cocos2d::CCAnimation::createWithSpriteFrames(
v106,
(cocos2d::CCArray *)0x3D4CCCCD,
v126);
v129 = (cocos2d::CCRepeatForever *)cocos2d::CCAnimate::create(v127, v128);
v131 = (cocos2d::CCAction *)cocos2d::CCRepeatForever::create(v129, v130);
cocos2d::CCNode::runAction(v95, v131);
return GameObject::playPickupAnimation(v2, v95, 1.0, 1.0, 0.0, 0.0);
}
else if ( v71 == 30 )
{
v132 = *((unsigned __int8 *)v2 + 863);
if ( !*((_BYTE *)v2 + 863) )
{
if ( this )
{
v133 = (ObjectToolbox *)ObjectToolbox::sharedState((ObjectToolbox *)this);
v134 = ObjectToolbox::intKeyToFrame(v133, *((_DWORD *)v2 + 223));
v192[0] = v132;
v192[1] = v132;
v193 = (cocos2d::CCSprite *)v132;
v135 = v134;
v136 = strlen(v134);
std::string::__init(v192, v135, v136);
std::string::basic_string(v195, (int)v192);
GameObject::getColorFrame(v194, (int)v2, (int)v195);
std::string::~string((int)v195);
if ( (v192[0] & 1) != 0 )
v138 = v193;
else
v138 = (cocos2d::CCSprite *)((char *)v192 + 1);
v139 = (cocos2d::CCSprite *)cocos2d::CCSprite::createWithSpriteFrameName(v138, v137);
(*(void (__fastcall **)(cocos2d::CCSprite *, unsigned int))(*(_DWORD *)v139 + 456))(v139, v5);
v140 = (*(int (__fastcall **)(GameObject *, int))(*(_DWORD *)v2 + 240))(v2, 1);
v141 = v140;
if ( v140 )
{
v145 = *(void (__fastcall **)(cocos2d::CCSprite *, _DWORD))(*(_DWORD *)v139 + 64);
v146 = COERCE_FLOAT((*(int (__fastcall **)(int))(*(_DWORD *)v140 + 68))(v140));
v147 = COERCE_FLOAT((*(int (__fastcall **)(GameObject *))(*(_DWORD *)v2 + 68))(v2));
v145(v139, v146 * v147);
v148 = *(void (__fastcall **)(cocos2d::CCSprite *, _DWORD))(*(_DWORD *)v139 + 72);
v149 = COERCE_FLOAT((*(int (__fastcall **)(int))(*(_DWORD *)v141 + 76))(v141));
v150 = COERCE_FLOAT((*(int (__fastcall **)(GameObject *))(*(_DWORD *)v2 + 76))(v2));
v148(v139, v149 * v150);
}
ObjectZLayer = GameObject::getObjectZLayer(v2);
v143 = *((_BYTE *)v2 + 752);
ParentMode = GameObject::getParentMode(v2);
v151 = GameObject::parentForZLayer(v2, ObjectZLayer, v143, ParentMode);
v152 = *(void (__fastcall **)(int, cocos2d::CCSprite *, int))(*(_DWORD *)v151 + 232);
v153 = GameObject::getObjectZOrder(v2);
v152(v151, v139, v153);
v154 = *(void (__fastcall **)(cocos2d::CCSprite *, int))(*(_DWORD *)v139 + 92);
v155 = (*(int (__fastcall **)(GameObject *))(*(_DWORD *)v2 + 96))(v2);
v154(v139, v155);
v156 = *(void (__fastcall **)(cocos2d::CCSprite *, int))(*(_DWORD *)v139 + 480);
v157 = (*(int (__fastcall **)(GameObject *))(*(_DWORD *)v2 + 472))(v2);
v156(v139, v157);
if ( *((_DWORD *)v2 + 189) )
{
if ( (v194[0] & 1) != 0 )
v159 = (cocos2d::CCSprite *)v194[2];
else
v159 = (cocos2d::CCSprite *)((char *)v194 + 1);
v160 = (cocos2d::CCNode *)cocos2d::CCSprite::createWithSpriteFrameName(v159, v158);
if ( *((_BYTE *)v2 + 917) )
v161 = 1;
else
v161 = -1;
(*(void (__fastcall **)(cocos2d::CCSprite *, cocos2d::CCNode *, int))(*(_DWORD *)v139 + 232))(
v139,
v160,
v161);
v162 = *(void (__fastcall **)(cocos2d::CCNode *, float *))(*(_DWORD *)v160 + 92);
v163 = *(float *)(*(int (__fastcall **)(cocos2d::CCSprite *))(*(_DWORD *)v139 + 164))(v139);
v164 = (*(int (__fastcall **)(cocos2d::CCSprite *))(*(_DWORD *)v139 + 164))(v139);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v196, v163 * 0.5, *(float *)(v164 + 4) * 0.5);
v162(v160, &v196);
v165 = *(void (__fastcall **)(cocos2d::CCNode *, int))(*(_DWORD *)v160 + 480);
v166 = (*(int (__fastcall **)(_DWORD))(**((_DWORD **)v2 + 189) + 472))(*((_DWORD *)v2 + 189));
v165(v160, v166);
v167 = *(void (__fastcall **)(cocos2d::CCNode *, int))(*(_DWORD *)v160 + 456);
v168 = (*(int (__fastcall **)(_DWORD))(**((_DWORD **)v2 + 189) + 448))(*((_DWORD *)v2 + 189));
v167(v160, v168);
v170 = (cocos2d::CCSequence *)cocos2d::CCDelayTime::create((cocos2d::CCDelayTime *)0x3EE66666, v169);
v172 = (cocos2d::CCFiniteTimeAction *)cocos2d::CCFadeTo::create(
(cocos2d::CCFadeTo *)0x3E19999A,
0.0,
v171);
v173 = (cocos2d::CCAction *)cocos2d::CCSequence::create(v170, v172, 0);
cocos2d::CCNode::runAction(v160, v173);
}
GJBaseGameLayer::generatePickupAnimRandVal(a2, v2, v191, &v196);
GameObject::playPickupAnimation(
v2,
v139,
20.0,
30.0,
65.0,
115.0,
10.0,
(cocos2d::CCBezierTo *)0x3F19999A,
(cocos2d::CCDelayTime *)0x3EE66666,
(cocos2d::CCFadeTo *)0x3E19999A,
1,
v191[0],
v196);
std::string::~string((int)v194);
return std::string::~string((int)v192);
}
}
}
}
}
return this;
}