//
// CCCircleWave::draw from 0x140046ae0 to 0x140046c0c (300 bytes)
//
// 2 xrefs:
// > ??> @ 0x140707f60
// > ??> @ 0x14090f9b0
//
// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!
//
// 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:25:31 +0000
//
void __fastcall CCCircleWave::draw(__int64 a1, __int64 a2, unsigned int a3, float a4)
{
const struct cocos2d::CCPoint *v5; // rdx
cocos2d *v6; // rcx
unsigned int v7; // r8d
if ( *(_BYTE *)(a1 + 364) )
cocos2d::ccGLBlendFunc((cocos2d *)0x302, 1u, a3);
if ( *(_DWORD *)(a1 + 352) )
glLineWidth((float)*(int *)(a1 + 356));
cocos2d::ccDrawColor4B(
(cocos2d *)*(unsigned __int8 *)(a1 + 340),
*(_BYTE *)(a1 + 341),
*(_BYTE *)(a1 + 342),
(int)fminf(255.0, fmaxf(0.0, *(float *)(a1 + 360) * *(float *)(a1 + 336))));
v6 = (cocos2d *)(a1 + 344);
if ( *(_DWORD *)(a1 + 352) )
cocos2d::ccDrawCircle(v6, v5, 0.0, a4, 0);
else
cocos2d::ccDrawFilledCircle(v6, v5, 0.0, a4);
if ( *(_BYTE *)(a1 + 364) )
cocos2d::ccGLBlendFunc((cocos2d *)1, 0x303u, v7);
}