//
// EndLevelLayer::coinEnterFinished from 0x8fb3f4 to 0x8fb654 (608 bytes)
//
// 2 xrefs:
// > EndLevelLayer::coinEnterFinishedO @ 0x8fb6b0
// > ??> @ 0xef2a8
//
// 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::coinEnterFinished(__int64 a1, __int64 a2)
{
bool v3; // w2
__int64 v4; // x19
float v5; // s8
float v6; // s9
void (__fastcall *v7)(__int64, float *); // x24
int v8; // w2
void (__fastcall *v9)(__int64, float *); // x2
FMODAudioEngine *v10; // x0
__int64 v11; // x19
__int64 v12; // x19
char v13; // w2
char v14; // w0
__int64 v15; // x3
__int64 v18; // [xsp+78h] [xbp+78h] BYREF
float v19; // [xsp+80h] [xbp+80h] BYREF
float v20; // [xsp+84h] [xbp+84h]
float v21; // [xsp+88h] [xbp+88h]
int v22; // [xsp+8Ch] [xbp+8Ch]
__int64 v23[2]; // [xsp+90h] [xbp+90h] BYREF
void *v24; // [xsp+A0h] [xbp+A0h]
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v19, 0.0, 0.0);
cocos2d::CCPoint::operator+(&v18, a2);
v4 = cocos2d::CCParticleSystemQuad::create((cocos2d::CCParticleSystemQuad *)"starEffect.plist", nullptr, v3);
if ( *(_BYTE *)(a1 + 616) )
{
if ( *(_BYTE *)(a1 + 617) )
{
v5 = 1.0;
v6 = 1.0;
}
else
{
v5 = 0.29412;
v6 = 0.68627;
}
v7 = *(void (__fastcall **)(__int64, float *))(*(_QWORD *)v4 + 1360LL);
v8 = *(_DWORD *)((*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v4 + 1352LL))(v4) + 12);
v19 = 1.0;
v20 = v6;
v22 = v8;
v21 = v5;
v7(v4, &v19);
v9 = *(void (__fastcall **)(__int64, float *))(*(_QWORD *)v4 + 1392LL);
v19 = 1.0;
v20 = v6;
v21 = v5;
v22 = 0;
v9(v4, &v19);
}
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v4 + 1584LL))(v4, 1);
(*(void (__fastcall **)(_QWORD, __int64, __int64))(**(_QWORD **)(a1 + 576) + 464LL))(*(_QWORD *)(a1 + 576), v4, 9);
v10 = (FMODAudioEngine *)(*(__int64 (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v4 + 184LL))(v4, &v18);
v11 = FMODAudioEngine::sharedEngine(v10);
v23[0] = 0;
v23[1] = 0;
v24 = nullptr;
std::string::__init(v23, "highscoreGet02.ogg", 0x12u);
FMODAudioEngine::playEffect(v11, (char *)v23);
if ( (v23[0] & 1) != 0 )
operator delete(v24);
v12 = CCCircleWave::create(nullptr, 10.0, 90.0, 0.4);
if ( *(_BYTE *)(a1 + 616) )
{
if ( *(_BYTE *)(a1 + 617) )
{
v13 = -1;
v14 = -1;
}
else
{
v13 = 75;
v14 = -81;
}
}
else
{
v13 = 0;
v14 = -1;
}
v15 = *(_QWORD *)v12;
*(_BYTE *)(v12 + 341) = v14;
*(_BYTE *)(v12 + 340) = -1;
*(_BYTE *)(v12 + 342) = v13;
(*(void (__fastcall **)(__int64, __int64 *))(v15 + 184))(v12, &v18);
(*(void (__fastcall **)(_QWORD, __int64, __int64))(**(_QWORD **)(a1 + 576) + 464LL))(*(_QWORD *)(a1 + 576), v12, 9);
return _stack_chk_guard;
}