//
// PlayerObject::playCompleteEffect from 0x69e3e4 to 0x69e710 (812 bytes)
//
// 2 xrefs:
// > PlayLayer::levelComplete @ 0x407ba6
// > PlayLayer::levelComplete @ 0x407bb2
//
// 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:56:21 +0000
//
int __fastcall PlayerObject::playCompleteEffect(cocos2d::CCNode **this, int a2, int a3)
{
cocos2d::CCNode *v6; // r0
unsigned __int8 v7; // r2
int v8; // r10
cocos2d::CCAction *v9; // r5
int result; // r0
bool v11; // r2
cocos2d::CCParticleSystem *v12; // r5
void (__fastcall *v13)(cocos2d::CCParticleSystem *, int); // r6
int v14; // r0
void (__fastcall *v15)(cocos2d::CCParticleSystem *, float *); // r9
void (__fastcall *v16)(cocos2d::CCParticleSystem *, float *); // r11
void (__fastcall *v17)(cocos2d::CCParticleSystem *, float *); // r11
void (__fastcall *v18)(cocos2d::CCParticleSystem *, float *); // r11
void (__fastcall *v19)(cocos2d::CCParticleSystem *, int); // r9
int v20; // r0
void (__fastcall *v21)(cocos2d::CCParticleSystem *, _DWORD); // r9
float v22; // r0
void (__fastcall *v23)(cocos2d::CCParticleSystem *, float *); // r9
int v24; // r0
void (__fastcall *v25)(cocos2d::CCParticleSystem *, _DWORD); // r6
float v26; // r0
void (__fastcall *v27)(cocos2d::CCParticleSystem *, _DWORD); // r6
float v28; // r0
CCCircleWave *v29; // r0
char v30; // r2
char v31; // r1
CCCircleWave *v32; // r5
int v33; // r3
void (__fastcall *v34)(CCCircleWave *, int); // r6
int v35; // r0
CCCircleWave *v36; // r0
char v37; // r2
char v38; // r1
CCCircleWave *v39; // r5
int v40; // r3
void (__fastcall *v41)(CCCircleWave *, int); // r6
int v42; // r0
CCCircleWave *v43; // r0
char v44; // r2
char v45; // r1
CCCircleWave *v46; // r5
int v47; // r3
void (__fastcall *v48)(CCCircleWave *, int); // r6
int v49; // r0
bool v50; // [sp+0h] [bp-1Ch]
bool v51; // [sp+0h] [bp-1Ch]
bool v52; // [sp+0h] [bp-1Ch]
float v53[4]; // [sp+4h] [bp-18h] BYREF
if ( *((_BYTE *)this + 1956) )
PlayerObject::fadeOutStreak2(this, (cocos2d::CCFadeOut *)0x3E4CCCCD);
PlayerObject::stopDashing((char *)this);
PlayerObject::deactivateParticle((int)this);
cocos2d::CCParticleSystem::stopSystem(*(this + 437));
cocos2d::CCParticleSystem::stopSystem(*(this + 438));
cocos2d::CCParticleSystem::stopSystem(*(this + 439));
cocos2d::CCParticleSystem::stopSystem(*(this + 441));
v6 = *(this + 608);
if ( v6 )
{
cocos2d::CCNode::stopAllActions(v6);
(*(void (__fastcall **)(_DWORD, _DWORD))(*(_DWORD *)*(this + 608) + 172))(*(this + 608), 0);
}
PlayerObject::toggleGhostEffect((GhostTrailEffect *)this, 0);
PlayerObject::disableSwingFire((PlayerObject *)this);
if ( (*((int (__fastcall **)(cocos2d::CCNode **))*this + 64))(this) )
v8 = (*((int (__fastcall **)(cocos2d::CCNode **))*this + 64))(this);
else
v8 = (int)*(this + 611);
if ( a3 )
{
result = (*((int (__fastcall **)(cocos2d::CCNode **, _DWORD))*this + 114))(this, 0);
}
else
{
v9 = (cocos2d::CCAction *)cocos2d::CCFadeTo::create((cocos2d::CCFadeTo *)0x3DCCCCCD, 0.0, v7);
(*(void (__fastcall **)(cocos2d::CCAction *, int))(*(_DWORD *)v9 + 36))(v9, 4);
result = cocos2d::CCNode::runAction((cocos2d::CCNode *)this, v9);
}
if ( !a2 )
{
v12 = (cocos2d::CCParticleSystem *)cocos2d::CCParticleSystemQuad::create(
(cocos2d::CCParticleSystemQuad *)"explodeEffectVortex.plist",
nullptr,
v11);
(*(void (__fastcall **)(cocos2d::CCParticleSystem *, int))(*(_DWORD *)v12 + 784))(v12, 2);
(*(void (__fastcall **)(_DWORD, cocos2d::CCParticleSystem *, int))(*(_DWORD *)*(this + 611) + 232))(
*(this + 611),
v12,
99);
(*(void (__fastcall **)(cocos2d::CCParticleSystem *, int))(*(_DWORD *)v12 + 792))(v12, 1);
v13 = *(void (__fastcall **)(cocos2d::CCParticleSystem *, int))(*(_DWORD *)v12 + 92);
v14 = (*((int (__fastcall **)(cocos2d::CCNode **))*this + 24))(this);
v13(v12, v14);
v15 = *(void (__fastcall **)(cocos2d::CCParticleSystem *, float *))(*(_DWORD *)v12 + 680);
sub_69E08C(v53, *((unsigned __int16 *)this + 1053) | (*((unsigned __int8 *)this + 2108) << 16));
v15(v12, v53);
v16 = *(void (__fastcall **)(cocos2d::CCParticleSystem *, float *))(*(_DWORD *)v12 + 696);
memset(v53, 0, sizeof(v53));
v53[3] = 1.0;
v53[2] = 1.0;
v16(v12, v53);
(*(void (__fastcall **)(cocos2d::CCParticleSystem *, int))(*(_DWORD *)v12 + 640))(v12, 1);
v17 = *(void (__fastcall **)(cocos2d::CCParticleSystem *, float *))(*(_DWORD *)v12 + 688);
memset(v53, 0, sizeof(v53));
v53[3] = 1.0;
v17(v12, v53);
v18 = *(void (__fastcall **)(cocos2d::CCParticleSystem *, float *))(*(_DWORD *)v12 + 704);
memset(v53, 0, sizeof(v53));
v53[3] = 1.0;
v18(v12, v53);
v19 = *(void (__fastcall **)(cocos2d::CCParticleSystem *, int))(*(_DWORD *)v12 + 532);
v20 = (*(int (__fastcall **)(cocos2d::CCParticleSystem *))(*(_DWORD *)v12 + 528))(v12);
v19(v12, v20);
v21 = *(void (__fastcall **)(cocos2d::CCParticleSystem *, _DWORD))(*(_DWORD *)v12 + 488);
v22 = COERCE_FLOAT((*(int (__fastcall **)(cocos2d::CCParticleSystem *))(*(_DWORD *)v12 + 484))(v12));
v21(v12, v22 * 3.0);
v23 = *(void (__fastcall **)(cocos2d::CCParticleSystem *, float *))(*(_DWORD *)v12 + 480);
v24 = (*(int (__fastcall **)(cocos2d::CCParticleSystem *))(*(_DWORD *)v12 + 476))(v12);
cocos2d::CCPoint::operator*(v53, v24, 1067030938);
v23(v12, v53);
v25 = *(void (__fastcall **)(cocos2d::CCParticleSystem *, _DWORD))(*(_DWORD *)v12 + 648);
v26 = COERCE_FLOAT((*(int (__fastcall **)(cocos2d::CCParticleSystem *))(*(_DWORD *)v12 + 644))(v12));
v25(v12, v26 * 0.8);
v27 = *(void (__fastcall **)(cocos2d::CCParticleSystem *, _DWORD))(*(_DWORD *)v12 + 664);
v28 = COERCE_FLOAT((*(int (__fastcall **)(cocos2d::CCParticleSystem *))(*(_DWORD *)v12 + 660))(v12));
v27(v12, v28 * 0.4);
cocos2d::CCParticleSystem::resetSystem(v12);
v29 = CCCircleWave::create((CCCircleWave *)0x41A00000, 1117782016, (cocos2d::CCActionTween *)0x3F3851EC, 0.0, v50);
v30 = *((_BYTE *)this + 2107);
v31 = *((_BYTE *)this + 2106);
*((_BYTE *)v29 + 282) = *((_BYTE *)this + 2108);
v32 = v29;
v33 = *(_DWORD *)v29;
*((_BYTE *)v29 + 281) = v30;
*((_BYTE *)v29 + 280) = v31;
v34 = *(void (__fastcall **)(CCCircleWave *, int))(v33 + 92);
v35 = (*((int (__fastcall **)(cocos2d::CCNode **))*this + 24))(this);
v34(v32, v35);
(*(void (__fastcall **)(int, CCCircleWave *, int))(*(_DWORD *)v8 + 232))(v8, v32, 99);
v36 = CCCircleWave::create((CCCircleWave *)0x41F00000, 1112014848, (cocos2d::CCActionTween *)0x3F570A3E, 0.0, v51);
v37 = *((_BYTE *)this + 2110);
v38 = *((_BYTE *)this + 2109);
*((_BYTE *)v36 + 282) = *((_BYTE *)this + 2111);
v39 = v36;
v40 = *(_DWORD *)v36;
*((_BYTE *)v36 + 281) = v37;
*((_BYTE *)v36 + 280) = v38;
v41 = *(void (__fastcall **)(CCCircleWave *, int))(v40 + 92);
v42 = (*((int (__fastcall **)(cocos2d::CCNode **))*this + 24))(this);
v41(v39, v42);
*((_DWORD *)v39 + 75) = 1061997773;
(*(void (__fastcall **)(_DWORD, CCCircleWave *, int))(*(_DWORD *)*(this + 611) + 232))(*(this + 611), v39, 1000);
v43 = CCCircleWave::create((CCCircleWave *)0x41F00000, 1101004800, (cocos2d::CCActionTween *)0x3F75C290, 0.0, v52);
v44 = *((_BYTE *)this + 2107);
v45 = *((_BYTE *)this + 2106);
*((_BYTE *)v43 + 282) = *((_BYTE *)this + 2108);
v46 = v43;
v47 = *(_DWORD *)v43;
*((_BYTE *)v43 + 281) = v44;
*((_BYTE *)v43 + 280) = v45;
v48 = *(void (__fastcall **)(CCCircleWave *, int))(v47 + 92);
v49 = (*((int (__fastcall **)(cocos2d::CCNode **))*this + 24))(this);
v48(v46, v49);
*((_DWORD *)v46 + 75) = 1061997773;
return (*(int (__fastcall **)(_DWORD, CCCircleWave *, int))(*(_DWORD *)*(this + 611) + 232))(
*(this + 611),
v46,
1000);
}
return result;
}