//
// MapPackCell::playCompleteEffect from 0x427c00 to 0x427d5e (350 bytes)
//
// 1 xrefs:
// > MapPackCell::onClaimReward @ 0x427dd2
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:48:05 +0000
//
unsigned int __fastcall MapPackCell::playCompleteEffect(MapPackCell *this)
{
int v2; // r0
const cocos2d::CCPoint *v3; // r0
bool v4; // r2
int v5; // r5
FMODAudioEngine *v6; // r0
int v7; // r0
FMODAudioEngine *v8; // r6
unsigned int v9; // r5
CCCircleWave *v10; // r0
CCCircleWave *v11; // r6
int v12; // r3
cocos2d::CCNode *v13; // r0
cocos2d::CCNode *v14; // r6
float v15; // r2
cocos2d::CCSequence *v16; // r8
float v17; // r2
cocos2d::CCEaseBounceOut *v18; // r0
cocos2d::CCActionInterval *v19; // r1
cocos2d::CCFiniteTimeAction *v20; // r0
cocos2d::CCAction *v21; // r0
unsigned int v22; // r6
unsigned int result; // r0
int *v24; // r0
int v25; // r3
void (__fastcall *v26)(int *, _BYTE *); // r3
bool v27; // [sp+0h] [bp-24h]
_BYTE v28[4]; // [sp+4h] [bp-20h] BYREF
_BYTE v29[8]; // [sp+8h] [bp-1Ch] BYREF
int v30[3]; // [sp+10h] [bp-14h] BYREF
v2 = (*(int (__fastcall **)(_DWORD))(**((_DWORD **)this + 107) + 256))(*((_DWORD *)this + 107));
v3 = (const cocos2d::CCPoint *)(*(int (__fastcall **)(int))(*(_DWORD *)v2 + 96))(v2);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v29, v3);
v5 = cocos2d::CCParticleSystemQuad::create((cocos2d::CCParticleSystemQuad *)"starEffect.plist", nullptr, v4);
(*(void (__fastcall **)(int, int))(*(_DWORD *)v5 + 792))(v5, 1);
(*(void (__fastcall **)(_DWORD, int, int))(**((_DWORD **)this + 103) + 232))(*((_DWORD *)this + 103), v5, 9);
v6 = (FMODAudioEngine *)(*(int (__fastcall **)(int, _BYTE *))(*(_DWORD *)v5 + 92))(v5, v29);
v7 = FMODAudioEngine::sharedEngine(v6);
memset(v30, 0, sizeof(v30));
v8 = (FMODAudioEngine *)v7;
std::string::__init(v30, "highscoreGet02.ogg", 0x12u);
FMODAudioEngine::playEffect(v8, (int)v30);
v9 = 0;
std::string::~string((int)v30);
v10 = CCCircleWave::create((CCCircleWave *)0x41200000, 1119092736, (cocos2d::CCActionTween *)0x3ECCCCCD, 0.0, v27);
*((_BYTE *)v10 + 280) = -1;
v11 = v10;
*((_BYTE *)v10 + 281) = -1;
v12 = *(_DWORD *)v10;
*((_BYTE *)v10 + 282) = 0;
(*(void (__fastcall **)(CCCircleWave *, _BYTE *))(v12 + 92))(v10, v29);
(*(void (__fastcall **)(_DWORD, CCCircleWave *, int))(**((_DWORD **)this + 103) + 232))(
*((_DWORD *)this + 103),
v11,
9);
while ( v9 < cocos2d::CCArray::count(*((cocos2d::CCArray **)this + 109)) )
{
v13 = (cocos2d::CCNode *)cocos2d::CCArray::objectAtIndex(*((cocos2d::CCArray **)this + 109), v9++);
v14 = v13;
v16 = (cocos2d::CCSequence *)cocos2d::CCScaleTo::create((cocos2d::CCScaleTo *)0x3DCCCCCD, 1.8, v15);
v18 = (cocos2d::CCEaseBounceOut *)cocos2d::CCScaleTo::create((cocos2d::CCScaleTo *)0x3E99999A, 1.0, v17);
v20 = (cocos2d::CCFiniteTimeAction *)cocos2d::CCEaseBounceOut::create(v18, v19);
v21 = (cocos2d::CCAction *)cocos2d::CCSequence::create(v16, v20, 0);
cocos2d::CCNode::runAction(v14, v21);
}
v22 = 0;
while ( 1 )
{
result = cocos2d::CCArray::count(*((cocos2d::CCArray **)this + 108));
if ( v22 >= result )
break;
v24 = (int *)cocos2d::CCArray::objectAtIndex(*((cocos2d::CCArray **)this + 108), v22++);
v25 = *v24;
v28[0] = -1;
v28[1] = -1;
v26 = *(void (__fastcall **)(int *, _BYTE *))(v25 + 536);
v28[2] = 50;
v26(v24, v28);
}
return result;
}