//
// cocos2d::ccDrawFilledCircle from 0xad8714 to 0xad8888 (372 bytes)
//
// 2 xrefs:
// > CCCircleWave::draw @ 0x5a6164
// > ??> @ 0x53b08
//
// 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)
{
float v8; // s11
float *v9; // x21
float x; // s13
unsigned int v11; // w20
float y; // s12
unsigned int v13; // w19
float v14; // s9
float v15; // s0
unsigned int v16; // w0
unsigned int v17; // w22
cocos2d::CCGLProgram *v18; // x0
if ( !byte_12451A0 )
sub_AD7B20();
v8 = 6.2832 / (float)a4;
v9 = (float *)calloc(8LL * (a4 + 2), 1u);
if ( v9 )
{
x = a1->x;
v11 = 1;
y = a1->y;
v13 = 0;
do
{
v14 = cosf(a3 + (float)((float)v13 * v8));
v15 = sinf(a3 + (float)((float)v13 * v8));
v16 = 2 * v13++;
v9[v16] = x + (float)(v14 * a2);
v9[v11] = y + (float)(v15 * a2);
v11 += 2;
}
while ( a4 >= v13 );
v17 = a4 + 1;
v18 = (cocos2d::CCGLProgram *)qword_1245198;
v9[2 * v17] = x;
v9[2 * v17 + 1] = y;
cocos2d::CCGLProgram::use(v18);
cocos2d::CCGLProgram::setUniformsForBuiltins((cocos2d::CCGLProgram *)qword_1245198);
cocos2d::CCGLProgram::setUniformLocationWith4fv(
(cocos2d::CCGLProgram *)qword_1245198,
dword_1230CC8,
(float *)&dword_1230CD0,
1u);
cocos2d::ccGLEnableVertexAttribs((unsigned int)&dword_0 + 1);
glVertexAttribPointer();
glDrawArrays();
free(v9);
++g_uNumberOfDraws;
}
}