//
// EndLevelLayer::starEnterFinished from 0x8fb90c to 0x8fba60 (340 bytes)
//
// 3 xrefs:
// > ??> @ 0x9f700
// > EndLevelLayer::playStarEffect @ 0x8f9eb0
// > ??> @ 0x15446b8
//
// This function is hookable on this platform (idp: arm, 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:57:03 +0000
//
__int64 __fastcall EndLevelLayer::starEnterFinished(EndLevelLayer *this)
{
__int64 v2; // x0
int v3; // w23
bool v4; // w2
__int64 v5; // x21
__int64 v6; // x0
__int64 v7; // x2
char v8; // w3
char v9; // w1
__int64 v10; // x21
__int64 v12; // [xsp+58h] [xbp+58h] BYREF
_BYTE v13[8]; // [xsp+60h] [xbp+60h] BYREF
v2 = *((_QWORD *)this + 76);
if ( v2 )
{
v3 = *(_DWORD *)(*(_QWORD *)(v2 + 1936) + 900LL);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v13, 0.0, 8.0);
cocos2d::CCPoint::operator+(&v12, (char *)this + 640);
v5 = cocos2d::CCParticleSystemQuad::create((cocos2d::CCParticleSystemQuad *)"starEffect.plist", nullptr, v4);
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v5 + 1584LL))(v5, 1);
(*(void (__fastcall **)(_QWORD, __int64, __int64))(**((_QWORD **)this + 72) + 464LL))(*((_QWORD *)this + 72), v5, 9);
(*(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v5 + 184LL))(v5, &v12);
v6 = CCCircleWave::create(nullptr, 10.0, 90.0, 0.4);
v7 = *(_QWORD *)v6;
if ( v3 == 5 )
v8 = -1;
else
v8 = 0;
if ( v3 == 5 )
v9 = 0;
else
v9 = -1;
*(_BYTE *)(v6 + 342) = v8;
*(_BYTE *)(v6 + 340) = v9;
*(_BYTE *)(v6 + 341) = -1;
v10 = v6;
(*(void (**)(void))(v7 + 184))();
(*(void (__fastcall **)(_QWORD, __int64, __int64))(**((_QWORD **)this + 72) + 464LL))(
*((_QWORD *)this + 72),
v10,
9);
EndLevelLayer::playEndEffect(this);
}
return _stack_chk_guard;
}