//
// cocos2d::ccDrawFilledCircle from 0x1800113c0 to 0x180011585 (453 bytes)
//
// 4 xrefs:
// > ??> @ 0x18013b550
// > ??> @ 0x18013b560
// > ??> @ 0x18014cf68
// > ??> @ 0x1801b832c
//
// 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:21:22 +0000
//
void __fastcall cocos2d::ccDrawFilledCircle(cocos2d *this, const struct cocos2d::CCPoint *a2, float a3, float a4)
{
int v4; // r9d
float v5; // xmm1_4
int v7; // r14d
float *v8; // rsi
int v9; // edi
float v10; // xmm9_4
float v11; // xmm10_4
__int64 v12; // rbx
float v13; // xmm6_4
cocos2d::CCGLProgram *v14; // rcx
unsigned int v15; // edx
v7 = v4;
cocos2d::ccDrawInit(this);
v8 = (float *)calloc(8LL * (unsigned int)(v7 + 2), 1u);
if ( v8 )
{
v9 = 0;
v10 = *(float *)this;
v11 = *((float *)this + 1);
do
{
v12 = (unsigned int)(2 * v9);
v13 = (float)((float)v9 * (float)(6.2831855 / (float)v7)) + a3;
v8[v12] = (float)(cosf(v13) * v5) + v10;
++v9;
v8[(unsigned int)(v12 + 1)] = (float)(sinf(v13) * v5) + v11;
}
while ( v9 <= (unsigned int)v7 );
v14 = qword_1801B2358;
v8[2 * v7 + 2] = v10;
v8[2 * v7 + 3] = v11;
cocos2d::CCGLProgram::use(v14);
cocos2d::CCGLProgram::setUniformsForBuiltins(qword_1801B2358);
cocos2d::CCGLProgram::setUniformLocationWith4fv(qword_1801B2358, dword_1801ACB58, &flt_1801ACB60, 1u);
cocos2d::ccGLEnableVertexAttribs((cocos2d *)1, v15);
_glewVertexAttribPointer(0, 2, 5126, 0, 0, v8);
glDrawArrays(6u, 0, v7 + 1);
free(v8);
++g_uNumberOfDraws;
}
}