//
// ParticleGameObject::particleWasActivated from 0x140642400 to 0x1406424b6 (182 bytes)
//
// 4 xrefs:
// > ??> @ 0x14081f1b0
// > ??> @ 0x1408e8360
// > ??> @ 0x1408e8370
// > ??> @ 0x1409310a0
//
// This function is hookable on this platform (idp: pc, 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 11:35:35 +0000
//
void __fastcall ParticleGameObject::particleWasActivated(__int64 a1)
{
cocos2d::CCParticleSystem *v2; // rcx
__int64 v3; // rdi
if ( *(_BYTE *)(a1 + 1808) )
{
v2 = *(cocos2d::CCParticleSystem **)(a1 + 776);
if ( v2 )
{
if ( cocos2d::CCParticleSystem::getTimeElapsed(v2) <= 0.0 )
{
if ( (float)((*(float (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 776) + 960LL))(*(_QWORD *)(a1 + 776)) / 10.0) <= 0.2 )
(*(void (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 776) + 960LL))(*(_QWORD *)(a1 + 776));
v3 = 10;
do
{
(*(void (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 776) + 32LL))(*(_QWORD *)(a1 + 776));
--v3;
}
while ( v3 );
}
}
}
}