//
// cocos2d::ccDrawFilledCircle from 0x5c4664 to 0x5c4764 (256 bytes)
//
// 1 xrefs:
// > CCCircleWave::draw @ 0x2fbdac
//
// 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 cocos2d::ccDrawFilledCircle(const cocos2d::CCPoint *a1, float a2, float a3, unsigned int a4)
{
size_t v7; // r4
float v9; // s16
float *v10; // r0
float *v11; // r5
float *v12; // r8
float x; // s18
float y; // s17
unsigned int v15; // r7
unsigned int v16; // s15
float v17; // s15
float v18; // s21
float v19; // r0
float *v20; // r4
v7 = 2 * (a4 + 2);
cocos2d::ccDrawInit((cocos2d *)a1);
v9 = 6.2832 / (float)a4;
v10 = (float *)calloc(v7 * 4, 1u);
v11 = v10;
if ( v10 )
{
v12 = v10 + 1;
x = a1->x;
y = a1->y;
v15 = 0;
do
{
v16 = v15++;
v17 = (float)v16;
v18 = cosf(a3 + (float)(v17 * v9));
v19 = sinf(a3 + (float)(v17 * v9));
*(v12 - 1) = x + (float)(a2 * v18);
*v12 = y + (float)(a2 * v19);
v12 += 2;
}
while ( v15 <= a4 );
v20 = &v11[v7];
*(v20 - 2) = x;
*(v20 - 1) = y;
cocos2d::CCGLProgram::use((cocos2d::CCGLProgram *)dword_AC8A40);
cocos2d::CCGLProgram::setUniformsForBuiltins((cocos2d::CCGLProgram *)dword_AC8A40);
cocos2d::CCGLProgram::setUniformLocationWith4fv(
(cocos2d::CCGLProgram *)dword_AC8A40,
dword_ABAC20,
(float *)&dword_ABAC28,
1u);
cocos2d::ccGLEnableVertexAttribs((unsigned int)&dword_0 + 1);
glVertexAttribPointer();
glDrawArrays(6u, 0, a4 + 1);
free(v11);
++g_uNumberOfDraws;
}
}