//
// EndLevelLayer::starEnterFinished from 0x1004bc220 to 0x1004bc34e (302 bytes)
//
// 1 xrefs:
// > EndLevelLayer::playStarEffect @ 0x1004bb781
//
// 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:31:03 +0000
//
__int64 __fastcall EndLevelLayer::starEnterFinished(__int64 a1)
{
__int64 result; // rax
int v2; // r13d
__int64 v3; // r15
__int64 v4; // r15
int v5; // ecx
double v6; // [rsp-40h] [rbp-40h] BYREF
unsigned __int64 v7[7]; // [rsp-38h] [rbp-38h] BYREF
result = *(_QWORD *)(a1 + 608);
if ( result )
{
v2 = *(_DWORD *)(*(_QWORD *)(result + 1936) + 900LL);
sub_100278250((float *)v7, 0.0, 8.0);
sub_100278350(&v6, (unsigned __int64 *)(a1 + 640), v7);
v3 = cocos2d::CCParticleSystemQuad::create("starEffect.plist", 0);
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v3 + 1584LL))(v3, 1);
(*(void (__fastcall **)(_QWORD, __int64, __int64))(**(_QWORD **)(a1 + 576) + 464LL))(*(_QWORD *)(a1 + 576), v3, 9);
(*(void (__fastcall **)(__int64, double *))(*(_QWORD *)v3 + 184LL))(v3, &v6);
v4 = CCCircleWave::create_1(0, 10.0, 90.0, 0.40000001);
v5 = 0xFFFF;
if ( v2 == 5 )
v5 = -256;
*(_WORD *)(v4 + 340) = v5;
*(_BYTE *)(v4 + 342) = BYTE2(v5);
(*(void (__fastcall **)(__int64, double *))(*(_QWORD *)v4 + 184LL))(v4, &v6);
(*(void (__fastcall **)(_QWORD, __int64, __int64))(**(_QWORD **)(a1 + 576) + 464LL))(*(_QWORD *)(a1 + 576), v4, 9);
return EndLevelLayer::playEndEffect(a1);
}
return result;
}