//
// ParticleGameObject::particleWasActivated from 0x8700bc to 0x870178 (188 bytes)
//
// 2 xrefs:
// > ??> @ 0x41bf0
// > ??> @ 0x14479b8
//
// 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:55:45 +0000
//
__int64 __fastcall ParticleGameObject::particleWasActivated(__int64 this)
{
__int64 v1; // x20
float v2; // s0
float v3; // s8
int v4; // w19
if ( *(_BYTE *)(this + 1776) )
{
if ( *(_QWORD *)(this + 776) )
{
v1 = this;
this = cocos2d::CCParticleSystem::getTimeElapsed(*(cocos2d::CCParticleSystem **)(this + 776));
if ( v2 <= 0.0 )
{
v3 = 0.2;
if ( (float)((*(float (__fastcall **)(_QWORD))(**(_QWORD **)(v1 + 776) + 968LL))(*(_QWORD *)(v1 + 776)) / 10.0) < 0.2 )
v3 = (*(float (__fastcall **)(_QWORD))(**(_QWORD **)(v1 + 776) + 968LL))(*(_QWORD *)(v1 + 776)) / 10.0;
v4 = 10;
do
{
this = (*(__int64 (__fastcall **)(_QWORD, float))(**(_QWORD **)(v1 + 776) + 40LL))(*(_QWORD *)(v1 + 776), v3);
--v4;
}
while ( v4 );
}
}
}
return this;
}