//
// CCCircleWave::draw from 0x10016c49c to 0x10016c5d4 (312 bytes)
//
// 1 xrefs:
// > ??> @ 0x10079f530
//
// 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 CCCircleWave::draw(CCCircleWave *a1)
{
float v2; // s0
int v3; // w8
_BOOL4 v4; // w9
int v5; // w8
float m_radius; // s0
unsigned int v7; // w1
int v8; // w10
int v9; // w9
if ( a1->m_blendAdditive )
cocos2d::ccGLBlendFunc(0x302u, 1u);
if ( a1->m_circleMode )
glLineWidth((float)a1->m_lineWidth);
v2 = a1->m_opacity * a1->m_opacityMod;
v3 = v2 > 0.0;
v4 = v2 >= 255.0;
if ( v2 < 255.0 )
v3 = 0;
if ( v2 <= 0.0 )
v4 = 1;
v5 = v3 << 31 >> 31;
if ( !v4 )
LOBYTE(v5) = (int)v2;
cocos2d::ccDrawColor4B(a1->m_color.r, a1->m_color.g, a1->m_color.b, v5);
m_radius = a1->m_radius;
if ( m_radius >= 10.0 )
{
if ( m_radius >= 200.0 )
v8 = 50;
else
v8 = 30;
if ( m_radius >= 40.0 )
v9 = v8;
else
v9 = 20;
if ( m_radius >= 20.0 )
v7 = v9;
else
v7 = 15;
}
else
{
v7 = 10;
}
if ( a1->m_circleMode )
cocos2d::ccDrawCircle_1(&a1->m_position, m_radius, 0.0, v7, 0);
else
cocos2d::ccDrawFilledCircle(&a1->m_position, m_radius, 0.0, v7);
if ( a1->m_blendAdditive )
cocos2d::ccGLBlendFunc(1u, 0x303u);
}