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