//
// cocos2d::CCParticleSystem::getParticleDrawCost from 0x5dba30 to 0x5dba92 (98 bytes)
//
// 1 xrefs:
// > CreateParticlePopup::update @ 0x52fd96
//
// 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
//
int cocos2d::CCParticleSystem::getParticleDrawCost(cocos2d::CCParticleSystem *a1)
{
int result; // r0
float v3; // s14
int i; // r3
float *v5; // r2
result = a1->m_bIsActive;
if ( result )
{
v3 = 0.0;
for ( i = 0; i != a1->m_uParticleCount; ++i )
{
v5 = &a1->m_pParticles->pos.x + 37 * i;
if ( v5[16] > 0.0 )
v3 = v3 + (float)((float)((float)(v5[12] * 0.5) * (float)(v5[12] * 0.5)) * 3.1416);
}
return j_lroundf();
}
return result;
}