//
// EndLevelLayer::currencyEnterFinished from 0x140207830 to 0x140207941 (273 bytes)
//
// 2 xrefs:
// > EndLevelLayer::playCurrencyEffect @ 0x1402076cc
// > ??> @ 0x14091b290
//
// 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::currencyEnterFinished(__int64 a1)
{
__int64 v2; // rax
struct cocos2d::CCParticleSystemQuad *v3; // rax
__int64 v4; // rdx
struct cocos2d::CCParticleSystemQuad *v5; // rbx
__int64 v6; // rdx
__int64 v7; // rcx
__int64 v8; // r8
cocos2d::CCObject *v9; // rbx
char v11; // [rsp+40h] [rbp+8h] BYREF
char v12; // [rsp+48h] [rbp+10h] BYREF
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v12, 0.0, 8.0);
cocos2d::CCPoint::operator+(a1 + 648, &v11, v2);
v3 = cocos2d::CCParticleSystemQuad::create("starEffect.plist", 0);
LOBYTE(v4) = 1;
v5 = v3;
(*(void (__fastcall **)(struct cocos2d::CCParticleSystemQuad *, __int64))(*(_QWORD *)v3 + 1544LL))(v3, v4);
(*(void (__fastcall **)(_QWORD, struct cocos2d::CCParticleSystemQuad *, __int64))(**(_QWORD **)(a1 + 576) + 456LL))(
*(_QWORD *)(a1 + 576),
v5,
9);
(*(void (__fastcall **)(struct cocos2d::CCParticleSystemQuad *, char *))(*(_QWORD *)v5 + 184LL))(v5, &v11);
v9 = CCCircleWave::create(v7, v6, v8, 0, 1);
*((_WORD *)v9 + 170) = -1;
*((_BYTE *)v9 + 342) = 0;
(*(void (__fastcall **)(cocos2d::CCObject *, char *))(*(_QWORD *)v9 + 184LL))(v9, &v11);
(*(void (__fastcall **)(_QWORD, cocos2d::CCObject *, __int64))(**(_QWORD **)(a1 + 576) + 456LL))(
*(_QWORD *)(a1 + 576),
v9,
9);
return EndLevelLayer::playEndEffect(a1);
}