//
// EndLevelLayer::starEnterFinished from 0x140206de0 to 0x140206f22 (322 bytes)
//
// 4 xrefs:
// > EndLevelLayer::playStarEffect @ 0x140206cab
// > ??> @ 0x1408a4430
// > ??> @ 0x1408a4464
// > ??> @ 0x14091b1dc
//
// 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 11:28:15 +0000
//
__int64 __fastcall EndLevelLayer::starEnterFinished(__int64 a1)
{
__int64 result; // rax
int v3; // edi
__int64 v4; // rax
struct cocos2d::CCParticleSystemQuad *v5; // rax
__int64 v6; // rdx
struct cocos2d::CCParticleSystemQuad *v7; // rbx
__int64 v8; // rdx
__int64 v9; // rcx
__int64 v10; // r8
cocos2d::CCObject *v11; // rax
cocos2d::CCObject *v12; // rbx
char v13; // cl
__int64 v14; // rax
__int16 v15; // [rsp+40h] [rbp+8h] BYREF
char v16; // [rsp+48h] [rbp+10h] BYREF
result = *(_QWORD *)(a1 + 608);
if ( result )
{
v3 = *(_DWORD *)(*(_QWORD *)(result + 2168) + 972LL);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v15, 0.0, 8.0);
cocos2d::CCPoint::operator+(a1 + 640, &v16, v4);
v5 = cocos2d::CCParticleSystemQuad::create("starEffect.plist", 0);
LOBYTE(v6) = 1;
v7 = v5;
(*(void (__fastcall **)(struct cocos2d::CCParticleSystemQuad *, __int64))(*(_QWORD *)v5 + 1544LL))(v5, v6);
(*(void (__fastcall **)(_QWORD, struct cocos2d::CCParticleSystemQuad *, __int64))(**(_QWORD **)(a1 + 576) + 456LL))(
*(_QWORD *)(a1 + 576),
v7,
9);
(*(void (__fastcall **)(struct cocos2d::CCParticleSystemQuad *, char *))(*(_QWORD *)v7 + 184LL))(v7, &v16);
v11 = CCCircleWave::create(v9, v8, v10, 0, 1);
v12 = v11;
if ( v3 == 5 )
{
v15 = -256;
v13 = -1;
}
else
{
v15 = -1;
v13 = 0;
}
*((_WORD *)v11 + 170) = v15;
v14 = *(_QWORD *)v11;
*((_BYTE *)v12 + 342) = v13;
(*(void (__fastcall **)(cocos2d::CCObject *, char *))(v14 + 184))(v12, &v16);
(*(void (__fastcall **)(_QWORD, cocos2d::CCObject *, __int64))(**(_QWORD **)(a1 + 576) + 456LL))(
*(_QWORD *)(a1 + 576),
v12,
9);
return EndLevelLayer::playEndEffect(a1);
}
return result;
}