//
// EndLevelLayer::diamondEnterFinished from 0x1002f8a8c to 0x1002f8b80 (244 bytes)
//
// 1 xrefs:
// > EndLevelLayer::playDiamondEffect @ 0x1002f8280
//
// 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::diamondEnterFinished(EndLevelLayer *a1)
{
__n128 v1; // q0
__n128 v2; // q1
cocos2d::CCParticleSystemQuad *v4; // x20
CCCircleWave *v5; // x20
float32x2_t v6; // [xsp+0h] [xbp-20h] BYREF
float32x2_t v7; // [xsp+8h] [xbp-18h] BYREF
v1.n128_u32[0] = 0;
v2.n128_u32[0] = 8.0;
sub_100022980(v1, v2, &v6);
sub_1000229DC((float32x2_t *)&a1->m_diamondsPosition, &v6, &v7);
v4 = cocos2d::CCParticleSystemQuad::create("starEffect.plist", 0);
((void (__fastcall *)(cocos2d::CCParticleSystemQuad *, __int64))v4->setAutoRemoveOnFinish)(v4, 1);
((void (__fastcall *)(cocos2d::CCLayer *, cocos2d::CCParticleSystemQuad *, __int64))a1->m_mainLayer->addChild_0)(
a1->m_mainLayer,
v4,
9);
((void (__fastcall *)(cocos2d::CCParticleSystemQuad *, float32x2_t *))v4->setPosition)(v4, &v7);
v5 = CCCircleWave::create_1(10.0, 90.0, 0.4, 0);
v5->m_color.b = -1;
*(_WORD *)&v5->m_color.r = -1;
((void (__fastcall *)(CCCircleWave *, float32x2_t *))v5->setPosition)(v5, &v7);
((void (__fastcall *)(cocos2d::CCLayer *, CCCircleWave *, __int64))a1->m_mainLayer->addChild_0)(
a1->m_mainLayer,
v5,
9);
EndLevelLayer::playEndEffect(a1);
}