//
// CCCircleWave::draw from 0x3e5278 to 0x3e5376 (254 bytes)
//
// 0 xrefs:
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 11:47:04 +0000
//
int __fastcall CCCircleWave::draw(CCCircleWave *this, bool a2, unsigned int a3)
{
float v4; // s15
unsigned __int8 v5; // r3
float v6; // s15
int v7; // r3
cocos2d *v8; // r0
int result; // r0
unsigned int v10; // r2
unsigned __int8 v11; // [sp+0h] [bp-10h]
unsigned int v12; // [sp+0h] [bp-10h]
v11 = (unsigned __int8)this;
if ( *((_BYTE *)this + 304) )
cocos2d::ccGLBlendFunc((cocos2d *)((char *)&stru_2FC.st_value + 2), 1u, a3);
if ( *((_DWORD *)this + 73) )
glLineWidth((float)*((int *)this + 74));
v4 = *((float *)this + 69) * *((float *)this + 75);
if ( v4 <= 0.0 )
{
v5 = 0;
}
else if ( v4 < 255.0 )
{
v5 = (unsigned int)v4;
}
else
{
v5 = -1;
}
cocos2d::ccDrawColor4B(
(cocos2d *)*((unsigned __int8 *)this + 280),
*((_BYTE *)this + 281),
*((_BYTE *)this + 282),
v5,
v11);
v6 = *((float *)this + 68);
if ( v6 < 10.0 )
{
v7 = 10;
}
else if ( v6 < 20.0 )
{
v7 = 15;
}
else if ( v6 < 40.0 )
{
v7 = 20;
}
else if ( v6 >= 200.0 )
{
v7 = 50;
}
else
{
v7 = 30;
}
v8 = (CCCircleWave *)((char *)this + 284);
if ( *((_DWORD *)this + 73) )
result = cocos2d::ccDrawCircle(v8, *((const cocos2d::CCPoint **)this + 68), 0.0, *(float *)&v7, 0, a2);
else
result = cocos2d::ccDrawFilledCircle(v8, *((const cocos2d::CCPoint **)this + 68), 0.0, *(float *)&v7, v12);
if ( *((_BYTE *)this + 304) )
return cocos2d::ccGLBlendFunc((cocos2d *)((char *)&dword_0 + 1), 0x303u, v10);
return result;
}