//
// GameObject::updateParticleOpacity from 0x10025bc04 to 0x10025bc8c (136 bytes)
//
// 46 xrefs:
// > ??> @ 0x1007c4220
// > ??> @ 0x1007cfef0
// > ??> @ 0x1007d06d8
// > ??> @ 0x1007d0ee8
// > ??> @ 0x1007f5758
// > ??> @ 0x1007f5f90
// > ??> @ 0x1007f6788
// > ??> @ 0x1007f6f80
// > ??> @ 0x1007f7778
// > ??> @ 0x1007f7f70
// > ??> @ 0x1007f8768
// > ??> @ 0x1007f8f60
// > ??> @ 0x1007f9f58
// > ??> @ 0x1007fa7c0
// > ??> @ 0x1007fafd0
// > ??> @ 0x1007fb7e0
// > ??> @ 0x1007fbff0
// > ??> @ 0x1007fc800
// > ??> @ 0x1007fd010
// > ??> @ 0x1007fd820
// > ??> @ 0x1007fe030
// > ??> @ 0x1007fe840
// > ??> @ 0x1007ff050
// > ??> @ 0x1007ff878
// > ??> @ 0x1008000d0
// > ??> @ 0x1008008f8
// > ??> @ 0x100801120
// > ??> @ 0x100801948
// > ??> @ 0x100802170
// > ??> @ 0x100802980
// > ??> @ 0x100803190
// > ??> @ 0x1008039a0
// > ??> @ 0x1008041b0
// > ??> @ 0x1008049c0
// > ??> @ 0x1008051d0
// > ??> @ 0x1008059e0
// > ??> @ 0x1008061f0
// > ??> @ 0x100806a00
// > ??> @ 0x100807210
// > ??> @ 0x100807a20
// > ??> @ 0x100808230
// > ??> @ 0x100808a40
// > ??> @ 0x100809250
// > ??> @ 0x100809a60
// > ??> @ 0x10080a270
// > ??> @ 0x100816590
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
void __fastcall GameObject::updateParticleOpacity(GameObject *a1, unsigned __int8 a2)
{
cocos2d::CCParticleSystemQuad *m_particle; // x0
m_particle = a1->m_particle;
if ( a2 <= 0x32u && m_particle )
{
if ( ((unsigned int (__fastcall *)(cocos2d::CCParticleSystemQuad *))m_particle->isActive)(m_particle) )
cocos2d::CCParticleSystem::stopSystem(a1->m_particle);
}
else if ( m_particle
&& ((unsigned int (__fastcall *)(GameObject *))a1->isVisible)(a1)
&& (((__int64 (__fastcall *)(cocos2d::CCParticleSystemQuad *))a1->m_particle->isActive)(a1->m_particle) & 1) == 0 )
{
cocos2d::CCParticleSystem::resumeSystem(a1->m_particle);
}
}