//
// CCCircleWave::draw from 0x100178b30 to 0x100178c6c (316 bytes)
//
// 2 xrefs:
// > ??> @ 0x1008c3328
// > ??> @ 0x1008c3a58
//
// 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; // xmm0_4
bool v3; // cl
int v4; // r8d
GLubyte r; // di
float m_radius; // xmm0_4
unsigned int v7; // esi
cocos2d::CCPoint *p_m_position; // rdi
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 || v2 < 255.0;
v4 = (int)v2;
if ( !v3 )
LOBYTE(v4) = -1;
r = a1->m_color.r;
if ( v2 <= 0.0 )
LOBYTE(v4) = v3 - 1;
cocos2d::ccDrawColor4B(r, a1->m_color.g, a1->m_color.b, v4);
m_radius = a1->m_radius;
v7 = 10;
if ( m_radius >= 10.0 )
{
v7 = 15;
if ( m_radius >= 20.0 )
{
v7 = 20;
if ( m_radius >= 40.0 )
{
v7 = 50;
if ( m_radius < 200.0 )
v7 = 30;
}
}
}
p_m_position = &a1->m_position;
if ( a1->m_circleMode )
{
cocos2d::ccDrawCircle_1(p_m_position, m_radius, 0.0, v7, 0);
if ( !a1->m_blendAdditive )
return;
goto LABEL_16;
}
cocos2d::ccDrawFilledCircle(p_m_position, m_radius, 0.0, v7);
if ( a1->m_blendAdditive )
LABEL_16:
cocos2d::ccGLBlendFunc(1u, 0x303u);
}