//
// CCCircleWave::draw from 0x2fbcdc to 0x2fbdda (254 bytes)
//
// 0 xrefs:
//
// 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 CCCircleWave::draw(CCCircleWave *a1)
{
float v2; // s15
unsigned __int8 v3; // r3
float m_radius; // s15
unsigned int v5; // r3
cocos2d::CCPoint *p_m_position; // r0
if ( a1->m_blendAdditive )
cocos2d::ccGLBlendFunc((unsigned int)&stru_2FC.st_value + 2, 1u);
if ( a1->m_circleMode )
glLineWidth((float)a1->m_lineWidth);
v2 = a1->m_opacity * a1->m_opacityMod;
if ( v2 <= 0.0 )
{
v3 = 0;
}
else if ( v2 < 255.0 )
{
v3 = (unsigned int)v2;
}
else
{
v3 = -1;
}
cocos2d::ccDrawColor4B(a1->m_color.r, a1->m_color.g, a1->m_color.b, v3);
m_radius = a1->m_radius;
if ( m_radius < 10.0 )
{
v5 = 10;
}
else if ( m_radius < 20.0 )
{
v5 = 15;
}
else if ( m_radius < 40.0 )
{
v5 = 20;
}
else if ( m_radius >= 200.0 )
{
v5 = 50;
}
else
{
v5 = 30;
}
p_m_position = &a1->m_position;
if ( a1->m_circleMode )
cocos2d::ccDrawCircle(p_m_position, a1->m_radius, 0.0, v5, 0);
else
cocos2d::ccDrawFilledCircle(p_m_position, a1->m_radius, 0.0, v5);
if ( a1->m_blendAdditive )
cocos2d::ccGLBlendFunc((unsigned int)&dword_0 + 1, 0x303u);
}