//
// EndLevelLayer::starEnterFinished from 0x1002f8444 to 0x1002f855c (280 bytes)
//
// 1 xrefs:
// > EndLevelLayer::playStarEffect @ 0x1002f7ac4
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
void __fastcall EndLevelLayer::starEnterFinished(EndLevelLayer *a1)
{
__n128 v1; // q0
__n128 v2; // q1
PlayLayer *m_playLayer; // x8
int m_levelLength; // w21
cocos2d::CCParticleSystemQuad *v6; // x20
CCCircleWave *v7; // x0
CCCircleWave *v8; // x20
int v9; // w8
float32x2_t v10; // [xsp+0h] [xbp-30h] BYREF
float32x2_t v11; // [xsp+8h] [xbp-28h] BYREF
m_playLayer = a1->m_playLayer;
if ( m_playLayer )
{
m_levelLength = m_playLayer->m_level->GJBaseGameLayer::m_levelLength;
v1.n128_u32[0] = 0;
v2.n128_u32[0] = 8.0;
sub_100022980(v1, v2, &v10);
sub_1000229DC((float32x2_t *)&a1->m_starsPosition, &v10, &v11);
v6 = cocos2d::CCParticleSystemQuad::create("starEffect.plist", 0);
((void (__fastcall *)(cocos2d::CCParticleSystemQuad *, __int64))v6->setAutoRemoveOnFinish)(v6, 1);
((void (__fastcall *)(cocos2d::CCLayer *, cocos2d::CCParticleSystemQuad *, __int64))a1->m_mainLayer->addChild_0)(
a1->m_mainLayer,
v6,
9);
((void (__fastcall *)(cocos2d::CCParticleSystemQuad *, float32x2_t *))v6->setPosition)(v6, &v11);
v7 = CCCircleWave::create_1(10.0, 90.0, 0.4, 0);
v8 = v7;
if ( m_levelLength == 5 )
v9 = -256;
else
v9 = 0xFFFF;
v7->m_color.b = BYTE2(v9);
*(_WORD *)&v7->m_color.r = v9;
((void (__fastcall *)(CCCircleWave *, float32x2_t *))v7->setPosition)(v7, &v11);
((void (__fastcall *)(cocos2d::CCLayer *, CCCircleWave *, __int64))a1->m_mainLayer->addChild_0)(
a1->m_mainLayer,
v8,
9);
EndLevelLayer::playEndEffect(a1);
}
}