//
// ExplodeItemNode::update from 0x69e12c to 0x69e386 (602 bytes)
//
// 0 xrefs:
//
// 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:56:20 +0000
//
int __fastcall ExplodeItemNode::update(ExplodeItemNode *this, float a2)
{
float v4; // s16
float v5; // s17
unsigned int v6; // r7
float v7; // s18
float v8; // s18
bool v9; // cf
cocos2d::CCArray *v10; // r0
int v11; // r4
const cocos2d::CCPoint *v12; // r0
float v13; // s15
float v14; // s15
float v15; // s14
float v16; // s14
float v17; // s13
float v18; // s15
float v19; // s15
float v20; // s14
float v21; // s15
void (__fastcall *v22)(int, _DWORD); // r8
float v23; // r0
float v24; // s15
float v25; // s14
int v26; // r2
int v27; // r8
void (__fastcall *v28)(int, int); // r9
int v29; // r0
cocos2d::CCParticleSystem *v30; // r0
int result; // r0
_BYTE v32[8]; // [sp+Ch] [bp-1Ch] BYREF
_BYTE v33[4]; // [sp+14h] [bp-14h] BYREF
float v34; // [sp+18h] [bp-10h]
_BYTE v35[8]; // [sp+1Ch] [bp-Ch] BYREF
v4 = a2 * 54.0;
if ( *((_BYTE *)this + 280) )
v5 = 0.0;
else
v5 = v4 * 0.5;
v6 = 0;
v7 = *((float *)this + 69);
v8 = v7 - *(float *)((*(int (__fastcall **)(ExplodeItemNode *))(*(_DWORD *)this + 96))(this) + 4);
while ( 1 )
{
v9 = v6 >= cocos2d::CCArray::count(*((cocos2d::CCArray **)this + 67));
v10 = *((cocos2d::CCArray **)this + 67);
if ( v9 )
break;
v11 = cocos2d::CCArray::objectAtIndex(v10, v6);
v12 = (const cocos2d::CCPoint *)(*(int (__fastcall **)(int))(*(_DWORD *)v11 + 96))(v11);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v32, v12);
v13 = *(float *)(v11 + 516) - a2;
*(float *)(v11 + 516) = v13;
if ( v13 <= 0.0 )
{
v30 = *(cocos2d::CCParticleSystem **)(v11 + 528);
if ( v30 )
{
cocos2d::CCParticleSystem::stopSystem(v30);
(*(void (__fastcall **)(_DWORD))(**(_DWORD **)(v11 + 528) + 268))(*(_DWORD *)(v11 + 528));
*(_DWORD *)(v11 + 528) = 0;
}
cocos2d::CCArray::removeObjectAtIndex(*((cocos2d::CCArray **)this + 67), v6, 1);
(*(void (__fastcall **)(int))(*(_DWORD *)v11 + 268))(v11);
}
else
{
v14 = *(float *)(v11 + 512) - v5;
v15 = (float)((float)((float)(1.0 - v4) * 0.02) + 0.98) * *(float *)(v11 + 508);
*(float *)(v11 + 512) = v14;
*(float *)(v11 + 508) = v15;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v35, v15 * v4, v14 * v4);
cocos2d::CCPoint::operator+(v33, v32, v35);
v16 = *(float *)(v11 + 344);
v17 = *(float *)(v11 + 348);
if ( v16 > v17 )
v18 = v17 * 0.5;
else
v18 = v16 * 0.5;
v19 = v8 + v18;
if ( v34 < v19 )
{
v20 = *(float *)(v11 + 512);
if ( v20 < 0.0 )
{
v34 = v19;
v21 = v20 * -0.8;
if ( (float)(v20 * -0.8) < 1.5 )
v21 = 1.5;
*(float *)(v11 + 512) = v21;
}
}
(*(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v11 + 92))(v11, v33);
v22 = *(void (__fastcall **)(int, _DWORD))(*(_DWORD *)v11 + 180);
v23 = COERCE_FLOAT((*(int (__fastcall **)(int))(*(_DWORD *)v11 + 184))(v11));
v22(v11, v23 + (float)(v4 * *(float *)(v11 + 524)));
v24 = *(float *)(v11 + 516);
v25 = *(float *)(v11 + 520);
if ( v24 < v25 )
{
(*(void (__fastcall **)(int, _DWORD))(*(_DWORD *)v11 + 456))(
v11,
(unsigned __int8)(unsigned int)(float)((float)(v24 / v25) * 255.0));
v26 = *(_DWORD *)(v11 + 528);
if ( v26 )
*(_BYTE *)(v26 + 742) = (unsigned int)(float)((float)(*(float *)(v11 + 516) / *(float *)(v11 + 520)) * 255.0);
}
v27 = *(_DWORD *)(v11 + 528);
if ( v27 )
{
v28 = *(void (__fastcall **)(int, int))(*(_DWORD *)v27 + 92);
v29 = (*(int (__fastcall **)(int))(*(_DWORD *)v11 + 96))(v11);
v28(v27, v29);
}
++v6;
}
}
result = cocos2d::CCArray::count(v10);
if ( !result )
{
cocos2d::CCNode::unscheduleUpdate(this);
return (*(int (__fastcall **)(ExplodeItemNode *))(*(_DWORD *)this + 268))(this);
}
return result;
}