//
// cocos2d::ccDrawFilledCircle from 0x10024c894 to 0x10024c9f0 (348 bytes)
//
// 1 xrefs:
// > CCCircleWave::draw @ 0x10016c5a4
//
// 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 cocos2d::ccDrawFilledCircle(const cocos2d::CCPoint *a1, float a2, float a3, unsigned int a4)
{
unsigned int v8; // w22
float *v9; // x0
float *v10; // x19
__int64 v11; // x23
float v12; // s12
float y; // s10
float x; // s11
GLsizei v15; // w20
__int64 v16; // x21
__float2 v17; // 0:kr00_8.8
cocos2d::ccDrawInit();
v8 = 1;
v9 = (float *)calloc(8LL * (a4 + 2), 1u);
if ( v9 )
{
v10 = v9;
v11 = 0;
v12 = 6.2832 / (float)a4;
x = a1->x;
y = a1->y;
v15 = a4 + 1;
if ( a4 + 1 > 1 )
v16 = a4 + 1;
else
v16 = 1;
do
{
v17 = __sincosf_stret((float)(v12 * (float)(unsigned int)v11) + a3);
v10[v8 - 1] = x + (float)(a2 * v17.__cosval);
v10[v8] = y + (float)(a2 * v17.__sinval);
++v11;
v8 += 2;
}
while ( v16 != v11 );
v10[2 * v15] = x;
v10[(2 * v15) | 1] = y;
cocos2d::CCGLProgram::use((cocos2d::CCGLProgram *)qword_10086D370);
cocos2d::CCGLProgram::setUniformsForBuiltins((cocos2d::CCGLProgram *)qword_10086D370);
cocos2d::CCGLProgram::setUniformLocationWith4fv(
(cocos2d::CCGLProgram *)qword_10086D370,
dword_10084C140,
flt_10084C150,
1u);
cocos2d::ccGLEnableVertexAttribs(1u);
glVertexAttribPointer(0, 2, 0x1406u, 0, 0, v10);
glDrawArrays(6u, 0, v15);
free(v10);
++dword_100885D50;
}
}