//
// ExplodeItemNode::update from 0xb53308 to 0xb53608 (768 bytes)
//
// 2 xrefs:
// > ??> @ 0x8b3a8
// > ??> @ 0x14c1798
//
// 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 13:02:00 +0000
//
__int64 __fastcall ExplodeItemNode::update(ExplodeItemNode *this, float a2)
{
float v4; // s8
float v5; // s11
float v6; // s10
unsigned int v7; // w20
float v8; // s10
bool v9; // cf
cocos2d::CCArray *v10; // x0
__int64 v11; // x19
const cocos2d::CCPoint *v12; // x0
float v13; // s0
float v14; // s3
float v15; // s0
float v16; // s2
float v17; // s0
float v18; // s1
float v19; // s0
float v20; // s0
float v21; // s1
void (__fastcall *v22)(__int64, float); // x22
float v23; // s0
float v24; // s0
float v25; // s1
__int64 v26; // x22
__int64 v27; // x0
__int64 (__fastcall *v28)(__int64); // x1
void (__fastcall *v29)(__int64, __int64); // x19
__int64 v30; // x0
cocos2d::CCParticleSystem *v32; // x0
__int64 v33; // x1
float v34; // s1
_BYTE v35[8]; // [xsp+90h] [xbp+90h] BYREF
__int64 v36; // [xsp+98h] [xbp+98h] BYREF
_BYTE v37[8]; // [xsp+A0h] [xbp+A0h] BYREF
v4 = a2 * 54.0;
v5 = 0.0;
if ( !*((_BYTE *)this + 344) )
v5 = v4 * 0.5;
v6 = *((float *)this + 85);
v7 = 0;
v8 = v6 - *(float *)((*(__int64 (__fastcall **)(ExplodeItemNode *))(*(_QWORD *)this + 192LL))(this) + 4);
LABEL_4:
v9 = v7 >= (unsigned int)cocos2d::CCArray::count(*((cocos2d::CCArray **)this + 41));
v10 = *((cocos2d::CCArray **)this + 41);
if ( !v9 )
{
while ( 1 )
{
v11 = cocos2d::CCArray::objectAtIndex(v10, v7);
v12 = (const cocos2d::CCPoint *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v11 + 192LL))(v11);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v35, v12);
v13 = *(float *)(v11 + 604) - a2;
*(float *)(v11 + 604) = v13;
if ( v13 <= 0.0 )
{
v32 = *(cocos2d::CCParticleSystem **)(v11 + 616);
if ( v32 )
{
cocos2d::CCParticleSystem::stopSystem(v32);
(*(void (__fastcall **)(_QWORD))(**(_QWORD **)(v11 + 616) + 536LL))(*(_QWORD *)(v11 + 616));
*(_QWORD *)(v11 + 616) = 0;
}
cocos2d::CCArray::removeObjectAtIndex(*((cocos2d::CCArray **)this + 41), v7, 1);
(*(void (__fastcall **)(__int64))(*(_QWORD *)v11 + 536LL))(v11);
goto LABEL_4;
}
v14 = *(float *)(v11 + 596);
v15 = *(float *)(v11 + 600) - v5;
*(float *)(v11 + 600) = v15;
v16 = (float)((float)((float)(1.0 - v4) * 0.02) + 0.98) * v14;
*(float *)(v11 + 596) = v16;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v37, v4 * v16, v4 * v15);
cocos2d::CCPoint::operator+(&v36, v35);
v17 = *(float *)(v11 + 432);
v18 = *(float *)(v11 + 436);
if ( v17 <= v18 )
v19 = v17 * 0.5;
else
v19 = v18 * 0.5;
v20 = v19 + v8;
if ( v20 > *((float *)&v36 + 1) )
{
v21 = *(float *)(v11 + 600);
if ( v21 < 0.0 )
{
*((float *)&v36 + 1) = v20;
v34 = v21 * -0.8;
if ( v34 >= 1.5 )
*(float *)(v11 + 600) = v34;
else
*(float *)(v11 + 600) = 1.5;
}
}
(*(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v11 + 184LL))(v11, &v36);
v22 = *(void (__fastcall **)(__int64, float))(*(_QWORD *)v11 + 360LL);
v23 = (*(float (__fastcall **)(__int64))(*(_QWORD *)v11 + 368LL))(v11);
v22(v11, v23 + (float)(*(float *)(v11 + 612) * v4));
v24 = *(float *)(v11 + 604);
v25 = *(float *)(v11 + 608);
if ( v24 >= v25 )
goto LABEL_11;
(*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v11 + 912LL))(
v11,
(unsigned int)(float)((float)(v24 / v25) * 255.0));
v33 = *(_QWORD *)(v11 + 616);
if ( v33 )
break;
LABEL_13:
v9 = ++v7 >= (unsigned int)cocos2d::CCArray::count(*((cocos2d::CCArray **)this + 41));
v10 = *((cocos2d::CCArray **)this + 41);
if ( v9 )
goto LABEL_15;
}
*(_BYTE *)(v33 + 834) = (unsigned int)(float)((float)(*(float *)(v11 + 604) / *(float *)(v11 + 608)) * 255.0);
LABEL_11:
v26 = *(_QWORD *)(v11 + 616);
if ( v26 )
{
v27 = v11;
v28 = *(__int64 (__fastcall **)(__int64))(*(_QWORD *)v11 + 192LL);
v29 = *(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v26 + 184LL);
v30 = v28(v27);
v29(v26, v30);
}
goto LABEL_13;
}
LABEL_15:
if ( !(unsigned int)cocos2d::CCArray::count(v10) )
{
cocos2d::CCNode::unscheduleUpdate(this);
(*(void (__fastcall **)(ExplodeItemNode *))(*(_QWORD *)this + 536LL))(this);
}
return _stack_chk_guard;
}