//
// CCCircleWave::draw from 0x140042e40 to 0x140042f70 (304 bytes)
//
// 3 xrefs:
// > ??> @ 0x14052d3b0
// > ??> @ 0x1406c4494
// > ??> @ 0x1406c44a0
//
// 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; // xmm2_4
float v3; // xmm1_4
const struct cocos2d::CCPoint *v4; // rdx
float m_radius; // xmm1_4
char v6; // r9
cocos2d::CCPoint *p_m_position; // rcx
if ( a1->m_blendAdditive )
cocos2d::ccGLBlendFunc((cocos2d *)0x302, 1u);
if ( a1->m_circleMode )
glLineWidth((float)a1->m_lineWidth);
v2 = 255.0;
v3 = fmaxf(0.0, a1->m_opacityMod * a1->m_opacity);
if ( v3 <= 255.0 )
v2 = v3;
cocos2d::ccDrawColor4B((cocos2d *)a1->m_color.r, a1->m_color.g, a1->m_color.b, (int)v2);
m_radius = a1->m_radius;
if ( m_radius >= 10.0 )
{
if ( m_radius >= 20.0 )
{
if ( m_radius >= 40.0 )
{
v6 = 50;
if ( m_radius < 200.0 )
v6 = 30;
}
else
{
v6 = 20;
}
}
else
{
v6 = 15;
}
}
else
{
v6 = 10;
}
p_m_position = &a1->m_position;
if ( a1->m_circleMode )
cocos2d::ccDrawCircle((cocos2d *)p_m_position, v4, 0.0, v6);
else
cocos2d::ccDrawFilledCircle((cocos2d *)p_m_position, v4, 0.0);
if ( a1->m_blendAdditive )
cocos2d::ccGLBlendFunc((cocos2d *)1, 0x303u);
}