//
// ParticleGameObject::particleWasActivated from 0x4e69c4 to 0x4e6a3e (122 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:51:05 +0000
//
float __fastcall ParticleGameObject::particleWasActivated(float this)
{
float v1; // r4
float v2; // s16
int v3; // r5
v1 = this;
if ( *(_BYTE *)(LODWORD(this) + 1568) )
{
this = *(float *)(LODWORD(this) + 660);
if ( this != 0.0 )
{
this = COERCE_FLOAT(cocos2d::CCParticleSystem::getTimeElapsed((cocos2d::CCParticleSystem *)LODWORD(this)));
if ( this <= 0.0 )
{
v2 = 0.2;
if ( (float)((*(float (__fastcall **)(_DWORD))(**(_DWORD **)(LODWORD(v1) + 660) + 484))(*(_DWORD *)(LODWORD(v1) + 660))
/ 10.0) < 0.2 )
v2 = (*(float (__fastcall **)(_DWORD))(**(_DWORD **)(LODWORD(v1) + 660) + 484))(*(_DWORD *)(LODWORD(v1) + 660))
/ 10.0;
v3 = 10;
do
{
this = COERCE_FLOAT(
(*(int (__fastcall **)(_DWORD, float))(**(_DWORD **)(LODWORD(v1) + 660) + 20))(
*(_DWORD *)(LODWORD(v1) + 660),
COERCE_FLOAT(LODWORD(v2))));
--v3;
}
while ( v3 );
}
}
}
return this;
}