//
// PlayerObject::playCompleteEffect from 0x1001f7550 to 0x1001f79cc (1148 bytes)
//
// 2 xrefs:
// > PlayLayer::levelComplete @ 0x100080b7a
// > PlayLayer::levelComplete @ 0x100080b8e
//
// This function is hookable on this platform (idp: pc, 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 12:26:48 +0000
//
__int64 __fastcall PlayerObject::playCompleteEffect(
__int64 a1,
char a2,
char a3,
double a4,
__m128 a5,
double a6,
__m128 a7)
{
__int64 v9; // rdi
__int64 v10; // r14
__int64 result; // rax
__int64 v12; // r12
__int64 v13; // r15
__int64 v14; // rax
__m128 v15; // xmm0
__int64 v16; // rax
__int64 v17; // r15
__int16 v18; // ax
__int64 v19; // rax
__int64 v20; // r14
__int16 v21; // ax
__int64 v22; // rax
__int64 v23; // r14
__int16 v24; // ax
__int64 v25; // rax
__m128 v26; // [rsp+0h] [rbp-40h]
_OWORD v27[3]; // [rsp+10h] [rbp-30h] BYREF
if ( *(_BYTE *)(a1 + 2420) == 1 )
PlayerObject::fadeOutStreak2(a1, 0.2);
PlayerObject::stopDashing(a1);
PlayerObject::deactivateParticle(a1);
cocos2d::CCParticleSystem::stopSystem(*(_QWORD *)(a1 + 2168));
cocos2d::CCParticleSystem::stopSystem(*(_QWORD *)(a1 + 2176));
cocos2d::CCParticleSystem::stopSystem(*(_QWORD *)(a1 + 2184));
cocos2d::CCParticleSystem::stopSystem(*(_QWORD *)(a1 + 2200));
v9 = *(_QWORD *)(a1 + 3000);
if ( v9 )
{
cocos2d::CCNode::stopAllActions(v9);
(*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(a1 + 3000) + 344LL))(*(_QWORD *)(a1 + 3000), 0);
}
PlayerObject::toggleGhostEffect(a1, 0);
PlayerObject::disableSwingFire(a1);
if ( (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a1 + 512LL))(a1) )
{
v10 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a1 + 512LL))(a1);
if ( a3 )
goto LABEL_7;
LABEL_10:
v12 = cocos2d::CCFadeTo::create(0, 0.1);
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v12 + 72LL))(v12, 4);
result = cocos2d::CCNode::runAction(a1, v12);
if ( a2 )
return result;
goto LABEL_11;
}
v10 = *(_QWORD *)(a1 + 3024);
if ( !a3 )
goto LABEL_10;
LABEL_7:
result = (*(__int64 (__fastcall **)(__int64, _QWORD))(*(_QWORD *)a1 + 912LL))(a1, 0);
if ( !a2 )
{
LABEL_11:
v13 = cocos2d::CCParticleSystemQuad::create("explodeEffectVortex.plist", 0);
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v13 + 1568LL))(v13, 2);
(*(void (__fastcall **)(_QWORD, __int64, __int64))(**(_QWORD **)(a1 + 3024) + 464LL))(
*(_QWORD *)(a1 + 3024),
v13,
99);
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v13 + 1584LL))(v13, 1);
v14 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a1 + 192LL))(a1);
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v13 + 184LL))(v13, v14);
v15 = 0;
a5.f32[0] = (float)(unsigned __int8)*(_WORD *)(a1 + 2602) / 255.0;
a7.f32[0] = (float)HIBYTE(*(unsigned __int16 *)(a1 + 2602)) / 255.0;
v15.f32[0] = (float)*(unsigned __int8 *)(a1 + 2604) / 255.0;
v27[0] = _mm_movelh_ps(_mm_insert_ps(a5, a7, 16), _mm_blend_ps(v15, (__m128)xmmword_100A03610, 14));
(*(void (__fastcall **)(__int64, _OWORD *))(*(_QWORD *)v13 + 1360LL))(v13, v27);
v27[0] = _mm_loadh_ps((const double *)&qword_100A04898);
(*(void (__fastcall **)(__int64, _OWORD *))(*(_QWORD *)v13 + 1392LL))(v13, v27);
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v13 + 1280LL))(v13, 1);
v26 = _mm_loadh_ps((const double *)&qword_100A040E8);
v27[0] = v26;
(*(void (__fastcall **)(__int64, _OWORD *))(*(_QWORD *)v13 + 1376LL))(v13, v27);
v27[0] = v26;
(*(void (__fastcall **)(__int64, _OWORD *))(*(_QWORD *)v13 + 1408LL))(v13, v27);
(*(void (__fastcall **)(__int64))(*(_QWORD *)v13 + 1056LL))(v13);
(*(void (__fastcall **)(__int64))(*(_QWORD *)v13 + 1064LL))(v13);
v15.f32[0] = (*(float (__fastcall **)(__int64))(*(_QWORD *)v13 + 968LL))(v13);
(*(void (__fastcall **)(__int64, float))(*(_QWORD *)v13 + 976LL))(v13, v15.f32[0] * 3.0);
v16 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v13 + 952LL))(v13);
sub_1002783B0(v27, v16, 1.2);
(*(void (__fastcall **)(__int64, _OWORD *))(*(_QWORD *)v13 + 960LL))(v13, v27);
v15.f32[0] = (*(float (__fastcall **)(__int64))(*(_QWORD *)v13 + 1288LL))(v13);
(*(void (__fastcall **)(__int64, float))(*(_QWORD *)v13 + 1296LL))(v13, v15.f32[0] * 0.80000001);
v15.f32[0] = (*(float (__fastcall **)(__int64))(*(_QWORD *)v13 + 1320LL))(v13);
(*(void (__fastcall **)(__int64, float))(*(_QWORD *)v13 + 1328LL))(v13, v15.f32[0] * 0.40000001);
cocos2d::CCParticleSystem::resetSystem(v13);
v17 = CCCircleWave::create_1(0, 20.0, 80.0, 0.72000003);
v18 = *(_WORD *)(a1 + 2602);
*(_BYTE *)(v17 + 342) = *(_BYTE *)(a1 + 2604);
*(_WORD *)(v17 + 340) = v18;
v19 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a1 + 192LL))(a1);
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v17 + 184LL))(v17, v19);
(*(void (__fastcall **)(__int64, __int64, __int64))(*(_QWORD *)v10 + 464LL))(v10, v17, 99);
v20 = CCCircleWave::create_1(0, 30.0, 50.0, 0.84000003);
v21 = *(_WORD *)(a1 + 2605);
*(_BYTE *)(v20 + 342) = *(_BYTE *)(a1 + 2607);
*(_WORD *)(v20 + 340) = v21;
v22 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a1 + 192LL))(a1);
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v20 + 184LL))(v20, v22);
*(_DWORD *)(v20 + 360) = 1061997773;
(*(void (__fastcall **)(_QWORD, __int64, __int64))(**(_QWORD **)(a1 + 3024) + 464LL))(
*(_QWORD *)(a1 + 3024),
v20,
1000);
v23 = CCCircleWave::create_1(0, 30.0, 20.0, 0.96000004);
v24 = *(_WORD *)(a1 + 2602);
*(_BYTE *)(v23 + 342) = *(_BYTE *)(a1 + 2604);
*(_WORD *)(v23 + 340) = v24;
v25 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a1 + 192LL))(a1);
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v23 + 184LL))(v23, v25);
*(_DWORD *)(v23 + 360) = 1061997773;
return (*(__int64 (__fastcall **)(_QWORD, __int64, __int64))(**(_QWORD **)(a1 + 3024) + 464LL))(
*(_QWORD *)(a1 + 3024),
v23,
1000);
}
return result;
}