//
// PlayerObject::playCompleteEffect from 0xb53684 to 0xb53b40 (1212 bytes)
//
// 3 xrefs:
// > PlayLayer::levelComplete @ 0x703788
// > PlayLayer::levelComplete @ 0x703798
// > ??> @ 0x95638
//
// 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:02:00 +0000
//
__int64 __fastcall PlayerObject::playCompleteEffect(cocos2d::CCNode **this, unsigned __int8 a2, unsigned __int8 a3)
{
int v3; // w22
int v4; // w20
cocos2d::CCNode *v6; // x0
unsigned __int8 v7; // w1
__int64 v8; // x23
cocos2d::CCAction *v9; // x22
bool v10; // w2
cocos2d::CCParticleSystem *v11; // x20
void (__fastcall *v12)(cocos2d::CCParticleSystem *, __int64); // x24
__int64 v13; // x0
int v14; // w3
float v15; // s0
void (__fastcall *v16)(cocos2d::CCParticleSystem *, float *); // x2
float v17; // s2
void (__fastcall *v18)(cocos2d::CCParticleSystem *, float *); // x2
void (__fastcall *v19)(cocos2d::CCParticleSystem *, float *); // x2
void (__fastcall *v20)(cocos2d::CCParticleSystem *, float *); // x2
void (__fastcall *v21)(cocos2d::CCParticleSystem *); // x24
void (__fastcall *v22)(cocos2d::CCParticleSystem *, float); // x24
float v23; // s0
void (__fastcall *v24)(cocos2d::CCParticleSystem *, float *, long double); // x24
__int64 v25; // x0
long double v26; // q0
void (__fastcall *v27)(cocos2d::CCParticleSystem *, float); // x22
float v28; // s0
void (__fastcall *v29)(cocos2d::CCParticleSystem *, float); // x22
float v30; // s0
_BYTE *v31; // x20
char v32; // w3
char v33; // w2
void (__fastcall *v34)(_BYTE *, __int64); // x22
__int64 v35; // x0
__int64 v36; // x20
char v37; // w3
char v38; // w2
void (__fastcall *v39)(__int64, __int64); // x22
__int64 v40; // x0
__int64 v41; // x20
char v42; // w3
char v43; // w2
void (__fastcall *v44)(__int64, __int64); // x22
__int64 v45; // x0
float v47; // [xsp+58h] [xbp+58h] BYREF
float v48; // [xsp+5Ch] [xbp+5Ch]
float v49; // [xsp+60h] [xbp+60h]
float v50; // [xsp+64h] [xbp+64h]
v3 = a3;
v4 = a2;
if ( *((_BYTE *)this + 2420) )
PlayerObject::fadeOutStreak2(this, 0.2);
PlayerObject::stopDashing((PlayerObject *)this);
PlayerObject::deactivateParticle(this);
cocos2d::CCParticleSystem::stopSystem(*(this + 271));
cocos2d::CCParticleSystem::stopSystem(*(this + 272));
cocos2d::CCParticleSystem::stopSystem(*(this + 273));
cocos2d::CCParticleSystem::stopSystem(*(this + 275));
v6 = *(this + 375);
if ( v6 )
{
cocos2d::CCNode::stopAllActions(v6);
(*(void (__fastcall **)(_QWORD, _QWORD))(*(_QWORD *)*(this + 375) + 344LL))(*(this + 375), 0);
}
PlayerObject::toggleGhostEffect((__int64)this, 0);
PlayerObject::disableSwingFire((PlayerObject *)this);
if ( (*((__int64 (__fastcall **)(cocos2d::CCNode **))*this + 64))(this) )
v8 = (*((__int64 (__fastcall **)(cocos2d::CCNode **))*this + 64))(this);
else
v8 = (__int64)*(this + 378);
if ( v3 )
{
(*((void (__fastcall **)(cocos2d::CCNode **, _QWORD))*this + 114))(this, 0);
}
else
{
v9 = (cocos2d::CCAction *)cocos2d::CCFadeTo::create(nullptr, 0.1, v7);
(*(void (__fastcall **)(cocos2d::CCAction *, __int64))(*(_QWORD *)v9 + 72LL))(v9, 4);
cocos2d::CCNode::runAction((cocos2d::CCNode *)this, v9);
}
if ( !v4 )
{
v11 = (cocos2d::CCParticleSystem *)cocos2d::CCParticleSystemQuad::create(
(cocos2d::CCParticleSystemQuad *)"explodeEffectVortex.plist",
nullptr,
v10);
(*(void (__fastcall **)(cocos2d::CCParticleSystem *, __int64))(*(_QWORD *)v11 + 1568LL))(v11, 2);
(*(void (__fastcall **)(_QWORD, cocos2d::CCParticleSystem *, __int64))(*(_QWORD *)*(this + 378) + 464LL))(
*(this + 378),
v11,
99);
(*(void (__fastcall **)(cocos2d::CCParticleSystem *, __int64))(*(_QWORD *)v11 + 1584LL))(v11, 1);
v12 = *(void (__fastcall **)(cocos2d::CCParticleSystem *, __int64))(*(_QWORD *)v11 + 184LL);
v13 = (*((__int64 (__fastcall **)(cocos2d::CCNode **))*this + 24))(this);
v12(v11, v13);
v14 = *((unsigned __int8 *)this + 2604);
v15 = (float)*((unsigned __int8 *)this + 2602);
v16 = *(void (__fastcall **)(cocos2d::CCParticleSystem *, float *))(*(_QWORD *)v11 + 1360LL);
v17 = (float)*((unsigned __int8 *)this + 2603) / 255.0;
v50 = 1.0;
v48 = v17;
v49 = (float)v14 / 255.0;
v47 = v15 / 255.0;
v16(v11, &v47);
v18 = *(void (__fastcall **)(cocos2d::CCParticleSystem *, float *))(*(_QWORD *)v11 + 1392LL);
v49 = 1.0;
v50 = 1.0;
v47 = 0.0;
v48 = 0.0;
v18(v11, &v47);
(*(void (__fastcall **)(cocos2d::CCParticleSystem *, __int64))(*(_QWORD *)v11 + 1280LL))(v11, 1);
v19 = *(void (__fastcall **)(cocos2d::CCParticleSystem *, float *))(*(_QWORD *)v11 + 1376LL);
v50 = 1.0;
v47 = 0.0;
v48 = 0.0;
v49 = 0.0;
v19(v11, &v47);
v20 = *(void (__fastcall **)(cocos2d::CCParticleSystem *, float *))(*(_QWORD *)v11 + 1408LL);
v50 = 1.0;
v47 = 0.0;
v48 = 0.0;
v49 = 0.0;
v20(v11, &v47);
v21 = *(void (__fastcall **)(cocos2d::CCParticleSystem *))(*(_QWORD *)v11 + 1064LL);
(*(void (__fastcall **)(cocos2d::CCParticleSystem *))(*(_QWORD *)v11 + 1056LL))(v11);
v21(v11);
v22 = *(void (__fastcall **)(cocos2d::CCParticleSystem *, float))(*(_QWORD *)v11 + 976LL);
v23 = (*(float (__fastcall **)(cocos2d::CCParticleSystem *))(*(_QWORD *)v11 + 968LL))(v11);
v22(v11, v23 * 3.0);
v24 = *(void (__fastcall **)(cocos2d::CCParticleSystem *, float *, long double))(*(_QWORD *)v11 + 960LL);
v25 = (*(__int64 (__fastcall **)(cocos2d::CCParticleSystem *))(*(_QWORD *)v11 + 952LL))(v11);
*(__n128 *)&v26 = cocos2d::CCPoint::operator*(v25, 1.2);
v24(v11, &v47, v26);
v27 = *(void (__fastcall **)(cocos2d::CCParticleSystem *, float))(*(_QWORD *)v11 + 1296LL);
v28 = (*(float (__fastcall **)(cocos2d::CCParticleSystem *))(*(_QWORD *)v11 + 1288LL))(v11);
v27(v11, v28 * 0.8);
v29 = *(void (__fastcall **)(cocos2d::CCParticleSystem *, float))(*(_QWORD *)v11 + 1328LL);
v30 = (*(float (__fastcall **)(cocos2d::CCParticleSystem *))(*(_QWORD *)v11 + 1320LL))(v11);
v29(v11, v30 * 0.4);
cocos2d::CCParticleSystem::resetSystem(v11);
v31 = (_BYTE *)CCCircleWave::create(nullptr, 20.0, 80.0, 0.72);
v32 = *((_BYTE *)this + 2604);
v33 = *((_BYTE *)this + 2602);
v31[341] = *((_BYTE *)this + 2603);
v31[342] = v32;
v31[340] = v33;
v34 = *(void (__fastcall **)(_BYTE *, __int64))(*(_QWORD *)v31 + 184LL);
v35 = (*((__int64 (__fastcall **)(cocos2d::CCNode **))*this + 24))(this);
v34(v31, v35);
(*(void (__fastcall **)(__int64, _BYTE *, __int64))(*(_QWORD *)v8 + 464LL))(v8, v31, 99);
v36 = CCCircleWave::create(nullptr, 30.0, 50.0, 0.84);
v37 = *((_BYTE *)this + 2607);
v38 = *((_BYTE *)this + 2605);
*(_BYTE *)(v36 + 341) = *((_BYTE *)this + 2606);
*(_BYTE *)(v36 + 342) = v37;
*(_BYTE *)(v36 + 340) = v38;
v39 = *(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v36 + 184LL);
v40 = (*((__int64 (__fastcall **)(cocos2d::CCNode **))*this + 24))(this);
v39(v36, v40);
*(_DWORD *)(v36 + 360) = 1061997773;
(*(void (__fastcall **)(_QWORD, __int64, __int64))(*(_QWORD *)*(this + 378) + 464LL))(*(this + 378), v36, 1000);
v41 = CCCircleWave::create(nullptr, 30.0, 20.0, 0.96);
v42 = *((_BYTE *)this + 2604);
v43 = *((_BYTE *)this + 2602);
*(_BYTE *)(v41 + 341) = *((_BYTE *)this + 2603);
*(_BYTE *)(v41 + 342) = v42;
*(_BYTE *)(v41 + 340) = v43;
v44 = *(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v41 + 184LL);
v45 = (*((__int64 (__fastcall **)(cocos2d::CCNode **))*this + 24))(this);
v44(v41, v45);
*(_DWORD *)(v41 + 360) = 1061997773;
(*(void (__fastcall **)(_QWORD, __int64, __int64))(*(_QWORD *)*(this + 378) + 464LL))(*(this + 378), v41, 1000);
}
return _stack_chk_guard;
}