//
// MapPackCell::playCompleteEffect from 0x73b2d8 to 0x73b540 (616 bytes)
//
// 2 xrefs:
// > MapPackCell::onClaimReward @ 0x73b5dc
// > ??> @ 0x7a110
//
// 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:52:41 +0000
//
__int64 __fastcall MapPackCell::playCompleteEffect(MapPackCell *this)
{
__int64 v2; // x0
const cocos2d::CCPoint *v3; // x0
bool v4; // w2
__int64 v5; // x21
FMODAudioEngine *v6; // x0
__int64 v7; // x21
unsigned int v8; // w20
__int64 v9; // x0
__int64 v10; // x3
__int64 v11; // x21
unsigned int v12; // w1
cocos2d::CCScaleTo *v13; // x21
cocos2d::CCScaleTo *v14; // x23
cocos2d::CCEaseBounceOut *v15; // x0
cocos2d::CCActionInterval *v16; // x1
cocos2d::CCFiniteTimeAction *v17; // x0
cocos2d::CCAction *v18; // x0
unsigned int v19; // w20
unsigned int v20; // w1
__int64 *v21; // x0
__int64 v22; // x2
void (__fastcall *v23)(__int64 *, _BYTE *); // x2
_BYTE v25[8]; // [xsp+60h] [xbp+60h] BYREF
_BYTE v26[8]; // [xsp+68h] [xbp+68h] BYREF
__int64 v27[2]; // [xsp+70h] [xbp+70h] BYREF
void *v28; // [xsp+80h] [xbp+80h]
v2 = (*(__int64 (__fastcall **)(_QWORD))(**((_QWORD **)this + 71) + 512LL))(*((_QWORD *)this + 71));
v3 = (const cocos2d::CCPoint *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v2 + 192LL))(v2);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v26, v3);
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 + 67) + 464LL))(*((_QWORD *)this + 67), v5, 9);
v6 = (FMODAudioEngine *)(*(__int64 (__fastcall **)(__int64, _BYTE *))(*(_QWORD *)v5 + 184LL))(v5, v26);
v7 = FMODAudioEngine::sharedEngine(v6);
v27[0] = 0;
v27[1] = 0;
v28 = nullptr;
std::string::__init(v27, "highscoreGet02.ogg", 0x12u);
FMODAudioEngine::playEffect(v7, (char *)v27);
if ( (v27[0] & 1) != 0 )
operator delete(v28);
v8 = 0;
v9 = CCCircleWave::create(nullptr, 10.0, 90.0, 0.4);
v10 = *(_QWORD *)v9;
*(_BYTE *)(v9 + 342) = 0;
*(_BYTE *)(v9 + 340) = -1;
*(_BYTE *)(v9 + 341) = -1;
v11 = v9;
(*(void (__fastcall **)(__int64, _BYTE *))(v10 + 184))(v9, v26);
(*(void (__fastcall **)(_QWORD, __int64, __int64))(**((_QWORD **)this + 67) + 464LL))(*((_QWORD *)this + 67), v11, 9);
while ( v8 < (unsigned int)cocos2d::CCArray::count(*((cocos2d::CCArray **)this + 73)) )
{
v12 = v8++;
v13 = (cocos2d::CCScaleTo *)cocos2d::CCArray::objectAtIndex(*((cocos2d::CCArray **)this + 73), v12);
v14 = (cocos2d::CCScaleTo *)cocos2d::CCScaleTo::create(v13, 0.1, 1.8);
v15 = (cocos2d::CCEaseBounceOut *)cocos2d::CCScaleTo::create(v14, 0.3, 1.0);
v17 = (cocos2d::CCFiniteTimeAction *)cocos2d::CCEaseBounceOut::create(v15, v16);
v18 = (cocos2d::CCAction *)cocos2d::CCSequence::create(v14, v17, 0);
cocos2d::CCNode::runAction(v13, v18);
}
v19 = 0;
while ( v19 < (unsigned int)cocos2d::CCArray::count(*((cocos2d::CCArray **)this + 72)) )
{
v20 = v19++;
v21 = (__int64 *)cocos2d::CCArray::objectAtIndex(*((cocos2d::CCArray **)this + 72), v20);
v22 = *v21;
v25[0] = -1;
v25[1] = -1;
v23 = *(void (__fastcall **)(__int64 *, _BYTE *))(v22 + 1072);
v25[2] = 50;
v23(v21, v25);
}
return _stack_chk_guard;
}