//
// MapPackCell::playCompleteEffect from 0x10023b600 to 0x10023b809 (521 bytes)
//
// 1 xrefs:
// > MapPackCell::onClaimReward @ 0x10023b5f4
//
// 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 12:27:16 +0000
//
__int64 __fastcall MapPackCell::playCompleteEffect(__int64 a1)
{
__int64 v1; // rax
__int64 v2; // rax
__int64 v3; // r15
double v4; // xmm0_8
__int64 v5; // rax
__int64 v6; // r14
unsigned int v7; // r14d
__int64 v8; // r15
int v9; // r12d
__int64 v10; // rax
int v11; // eax
int v12; // ecx
int v13; // r8d
int v14; // r9d
__int64 v15; // rax
__int64 result; // rax
unsigned int v17; // r14d
__int64 v18; // rax
_BYTE v19[8]; // [rsp+8h] [rbp-48h] BYREF
void *v20[3]; // [rsp+10h] [rbp-40h] BYREF
__int16 v21; // [rsp+2Ch] [rbp-24h] BYREF
char v22; // [rsp+2Eh] [rbp-22h]
v1 = (*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 568) + 512LL))(*(_QWORD *)(a1 + 568));
v2 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v1 + 192LL))(v1);
sub_1002782D0(v19, v2);
v3 = cocos2d::CCParticleSystemQuad::create("starEffect.plist", 0);
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v3 + 1584LL))(v3, 1);
(*(void (__fastcall **)(_QWORD, __int64, __int64))(**(_QWORD **)(a1 + 536) + 464LL))(*(_QWORD *)(a1 + 536), v3, 9);
v4 = (*(double (__fastcall **)(__int64, _BYTE *))(*(_QWORD *)v3 + 184LL))(v3, v19);
v5 = FMODAudioEngine::sharedEngine(v4);
strcpy((char *)v20, "$highscoreGet02.ogg");
FMODAudioEngine::playEffect_1(v5, v20);
if ( ((__int64)v20[0] & 1) != 0 )
operator delete(v20[2]);
v6 = CCCircleWave::create_1(0, 10.0, 90.0, 0.40000001);
*(_BYTE *)(v6 + 342) = 0;
*(_WORD *)(v6 + 340) = -1;
(*(void (__fastcall **)(__int64, _BYTE *))(*(_QWORD *)v6 + 184LL))(v6, v19);
(*(void (__fastcall **)(_QWORD, __int64, __int64))(**(_QWORD **)(a1 + 536) + 464LL))(*(_QWORD *)(a1 + 536), v6, 9);
if ( (unsigned int)sub_1007FEF90(*(_QWORD *)(a1 + 584)) )
{
v7 = 0;
do
{
v8 = sub_1007FEFE0(*(_QWORD *)(a1 + 584), v7);
v9 = cocos2d::CCScaleTo::create_1(0.1, 1.8);
v10 = cocos2d::CCScaleTo::create_1(0.30000001, 1.0);
v11 = cocos2d::CCEaseBounceOut::create(v10);
v15 = sub_10039EB60(v9, v11, 0, v12, v13, v14);
cocos2d::CCNode::runAction(v8, v15);
++v7;
}
while ( v7 < (unsigned int)sub_1007FEF90(*(_QWORD *)(a1 + 584)) );
}
result = sub_1007FEF90(*(_QWORD *)(a1 + 576));
if ( (_DWORD)result )
{
v17 = 0;
do
{
v18 = sub_1007FEFE0(*(_QWORD *)(a1 + 576), v17);
v22 = 50;
v21 = -1;
(*(void (__fastcall **)(__int64, __int16 *))(*(_QWORD *)v18 + 1072LL))(v18, &v21);
++v17;
result = sub_1007FEF90(*(_QWORD *)(a1 + 576));
}
while ( v17 < (unsigned int)result );
}
return result;
}