// // LevelPage::playCoinEffect from 0x51305c to 0x513374 (792 bytes) // // 1 xrefs: // > LevelPage::ccTouchBegan @ 0x51343e // // 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:51:33 +0000 // int __fastcall LevelPage::playCoinEffect(LevelPage *this) { bool v2; // r2 int v3; // r5 void (__fastcall *v4)(int, int); // r6 int v5; // r0 CCCircleWave *v6; // r0 CCCircleWave *v7; // r6 void (__fastcall *v8)(CCCircleWave *, int); // r8 int v9; // r0 CCCircleWave *v10; // r6 void (__fastcall *v11)(CCCircleWave *, int); // r7 int v12; // r0 const char *v13; // r1 cocos2d::CCNode *v14; // r6 int (__fastcall *v15)(cocos2d::CCNode *, int); // r7 int v16; // r0 cocos2d::CCArray *v17; // r0 cocos2d::CCSpriteFrameCache *v18; // r8 cocos2d::CCSpriteFrameCache *v19; // r10 cocos2d::CCString *v20; // r0 const char *CString; // r0 cocos2d::CCObject *v22; // r0 cocos2d::CCSpriteFrameCache *v23; // r0 cocos2d::CCSpriteFrameCache *v24; // r10 cocos2d::CCString *v25; // r0 const char *v26; // r0 cocos2d::CCObject *v27; // r0 cocos2d::CCSpriteFrameCache *v28; // r0 cocos2d::CCSpriteFrameCache *v29; // r10 cocos2d::CCString *v30; // r0 const char *v31; // r0 cocos2d::CCObject *v32; // r0 cocos2d::CCSpriteFrameCache *v33; // r0 cocos2d::CCSpriteFrameCache *v34; // r10 cocos2d::CCString *v35; // r0 const char *v36; // r0 cocos2d::CCObject *v37; // r0 float v38; // r2 cocos2d::CCAnimate *v39; // r0 cocos2d::CCAnimation *v40; // r1 cocos2d::CCRepeatForever *v41; // r0 cocos2d::CCActionInterval *v42; // r1 cocos2d::CCAction *v43; // r0 const cocos2d::CCPoint *v44; // r0 float v45; // s17 float v46; // s15 const cocos2d::_ccBezierConfig *v47; // r2 cocos2d::CCSequence *v48; // r7 cocos2d::CCFiniteTimeAction *v49; // r0 cocos2d::CCAction *v50; // r0 float v51; // r1 cocos2d::CCSequence *v52; // r4 float v53; // r1 cocos2d::CCFiniteTimeAction *v54; // r0 cocos2d::CCAction *v55; // r0 bool v57; // [sp+0h] [bp-40h] bool v58; // [sp+4h] [bp-3Ch] float v59; // [sp+Ch] [bp-34h] BYREF float v60; // [sp+10h] [bp-30h] float v61[2]; // [sp+14h] [bp-2Ch] BYREF _DWORD v62[2]; // [sp+1Ch] [bp-24h] BYREF _BYTE v63[8]; // [sp+24h] [bp-1Ch] BYREF _BYTE v64[8]; // [sp+2Ch] [bp-14h] BYREF _BYTE v65[8]; // [sp+34h] [bp-Ch] BYREF (*(void (__fastcall **)(_DWORD, _DWORD))(**((_DWORD **)this + 99) + 172))(*((_DWORD *)this + 99), 0); v3 = cocos2d::CCParticleSystemQuad::create((cocos2d::CCParticleSystemQuad *)"coinPickupEffect.plist", nullptr, v2); (*(void (__fastcall **)(int, int))(*(_DWORD *)v3 + 792))(v3, 1); (*(void (__fastcall **)(LevelPage *, int, int))(*(_DWORD *)this + 232))(this, v3, 1); v4 = *(void (__fastcall **)(int, int))(*(_DWORD *)v3 + 92); v5 = (*(int (__fastcall **)(_DWORD))(**((_DWORD **)this + 99) + 96))(*((_DWORD *)this + 99)); v4(v3, v5); v6 = CCCircleWave::create((CCCircleWave *)0x41C80000, 5.0, (cocos2d::CCActionTween *)0x3E99999A, 0.0, 0, v58); *((_BYTE *)v6 + 280) = -1; v7 = v6; *((_BYTE *)v6 + 281) = -56; *((_BYTE *)v6 + 282) = 0; v8 = *(void (__fastcall **)(CCCircleWave *, int))(*(_DWORD *)v6 + 92); v9 = (*(int (__fastcall **)(_DWORD))(**((_DWORD **)this + 99) + 96))(*((_DWORD *)this + 99)); v8(v7, v9); (*(void (__fastcall **)(LevelPage *, CCCircleWave *, _DWORD))(*(_DWORD *)this + 232))(this, v7, 0); v10 = CCCircleWave::create((CCCircleWave *)0x40A00000, 1114636288, (cocos2d::CCActionTween *)0x3E99999A, 0.0, v57); *((_BYTE *)v10 + 280) = -1; *((_BYTE *)v10 + 281) = -1; *((_BYTE *)v10 + 282) = 0; v11 = *(void (__fastcall **)(CCCircleWave *, int))(*(_DWORD *)v10 + 92); v12 = (*(int (__fastcall **)(_DWORD))(**((_DWORD **)this + 99) + 96))(*((_DWORD *)this + 99)); v11(v10, v12); (*(void (__fastcall **)(LevelPage *, CCCircleWave *, _DWORD))(*(_DWORD *)this + 232))(this, v10, 0); *((_DWORD *)v10 + 73) = 1; *((_DWORD *)v10 + 74) = 4; v14 = (cocos2d::CCNode *)cocos2d::CCSprite::createWithSpriteFrameName( (cocos2d::CCSprite *)"secretCoin_01_001.png", v13); (*(void (__fastcall **)(LevelPage *, cocos2d::CCNode *, int))(*(_DWORD *)this + 232))(this, v14, 2); v15 = *(int (__fastcall **)(cocos2d::CCNode *, int))(*(_DWORD *)v14 + 92); v16 = (*(int (__fastcall **)(_DWORD))(**((_DWORD **)this + 99) + 96))(*((_DWORD *)this + 99)); v17 = (cocos2d::CCArray *)v15(v14, v16); v18 = (cocos2d::CCSpriteFrameCache *)cocos2d::CCArray::create(v17); v19 = (cocos2d::CCSpriteFrameCache *)cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(v18); v20 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"%s_01_001.png", "secretCoin"); CString = (const char *)cocos2d::CCString::getCString(v20); v22 = (cocos2d::CCObject *)cocos2d::CCSpriteFrameCache::spriteFrameByName(v19, CString); v23 = (cocos2d::CCSpriteFrameCache *)cocos2d::CCArray::addObject(v18, v22); v24 = (cocos2d::CCSpriteFrameCache *)cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(v23); v25 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"%s_01_002.png", "secretCoin"); v26 = (const char *)cocos2d::CCString::getCString(v25); v27 = (cocos2d::CCObject *)cocos2d::CCSpriteFrameCache::spriteFrameByName(v24, v26); v28 = (cocos2d::CCSpriteFrameCache *)cocos2d::CCArray::addObject(v18, v27); v29 = (cocos2d::CCSpriteFrameCache *)cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(v28); v30 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"%s_01_003.png", "secretCoin"); v31 = (const char *)cocos2d::CCString::getCString(v30); v32 = (cocos2d::CCObject *)cocos2d::CCSpriteFrameCache::spriteFrameByName(v29, v31); v33 = (cocos2d::CCSpriteFrameCache *)cocos2d::CCArray::addObject(v18, v32); v34 = (cocos2d::CCSpriteFrameCache *)cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(v33); v35 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"%s_01_004.png", "secretCoin"); v36 = (const char *)cocos2d::CCString::getCString(v35); v37 = (cocos2d::CCObject *)cocos2d::CCSpriteFrameCache::spriteFrameByName(v34, v36); cocos2d::CCArray::addObject(v18, v37); v39 = (cocos2d::CCAnimate *)cocos2d::CCAnimation::createWithSpriteFrames(v18, (cocos2d::CCArray *)0x3D4CCCCD, v38); v41 = (cocos2d::CCRepeatForever *)cocos2d::CCAnimate::create(v39, v40); v43 = (cocos2d::CCAction *)cocos2d::CCRepeatForever::create(v41, v42); cocos2d::CCNode::runAction(v14, v43); v44 = (const cocos2d::CCPoint *)(*(int (__fastcall **)(_DWORD))(**((_DWORD **)this + 99) + 96))(*((_DWORD *)this + 99)); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v59, v44); v45 = *(float *)(*(int (__fastcall **)(_DWORD))(**((_DWORD **)this + 99) + 96))(*((_DWORD *)this + 99)); v46 = vcvts_n_f32_s32(rand(), 0x1Fu); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)v61, v45 + (float)((float)((float)(v46 + v46) - 1.0) * 50.0), v60 - 60.0); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v63); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v64); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v65); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v62, v59, v60 + 90.0); cocos2d::CCPoint::operator=(v64, v62); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v62, v61[0], v60 + 180.0); cocos2d::CCPoint::operator=(v65, v62); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v62, v61[0], v61[1] - 20.0); cocos2d::CCPoint::operator=(v63, v62); v48 = (cocos2d::CCSequence *)cocos2d::CCBezierTo::create((cocos2d::CCBezierTo *)0x3F400000, COERCE_FLOAT(v63), v47); v62[0] = 268; v62[1] = 1; v49 = (cocos2d::CCFiniteTimeAction *)cocos2d::CCCallFunc::create(v14, 268, 1); v50 = (cocos2d::CCAction *)cocos2d::CCSequence::create(v48, v49, 0); cocos2d::CCNode::runAction(v14, v50); v52 = (cocos2d::CCSequence *)cocos2d::CCDelayTime::create((cocos2d::CCDelayTime *)0x3F000000, v51); v54 = (cocos2d::CCFiniteTimeAction *)cocos2d::CCFadeOut::create((cocos2d::CCFadeOut *)0x3E99999A, v53); v55 = (cocos2d::CCAction *)cocos2d::CCSequence::create(v52, v54, 0); return cocos2d::CCNode::runAction(v14, v55); }
GD Web Decomp Icon

GD Web Decomp

Raw Source