//
// cocos2d::ccDrawCircle from 0x7cb6d0 to 0x7cb802 (306 bytes)
//
// 2 xrefs:
// > GJRotationControl::draw @ 0x6eb3ee
// > cocos2d::ccDrawCircle @ 0x7cb828
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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 12:00:31 +0000
//
void __fastcall cocos2d::ccDrawCircle(
cocos2d *this,
const cocos2d::CCPoint *a2,
float a3,
unsigned int a4,
char a5,
float a6,
float a7,
float a8)
{
int v12; // r7
float v13; // s17
float *v14; // r0
float *v15; // r5
float *v16; // r9
float v17; // s19
float v18; // s18
unsigned int v19; // r8
unsigned int v20; // s15
float v21; // s15
float v22; // s16
float v23; // r0
float *v24; // r4
unsigned int v25; // r1
if ( flt_D1FE34 > 0.0 )
{
cocos2d::ccDrawInit(this);
if ( a5 )
v12 = 2;
else
v12 = 1;
v13 = 6.2832 / (float)a4;
v14 = (float *)calloc(8 * (a4 + 2), 1u);
v15 = v14;
if ( v14 )
{
v16 = v14 + 1;
v17 = *(float *)this;
v18 = *((float *)this + 1);
v19 = 0;
do
{
v20 = v19++;
v21 = (float)v20;
v22 = cosf(a3 + (float)(v21 * v13));
v23 = sinf(a3 + (float)(v21 * v13));
*(v16 - 1) = v17 + (float)((float)(*(float *)&a2 * v22) * a6);
*v16 = v18 + (float)((float)(*(float *)&a2 * v23) * a7);
v16 += 2;
}
while ( v19 <= a4 );
v24 = &v15[2 * a4 + 4];
*(v24 - 2) = v17;
*(v24 - 1) = v18;
cocos2d::CCGLProgram::use((cocos2d::CCGLProgram *)dword_D2F18C);
cocos2d::CCGLProgram::setUniformsForBuiltins((cocos2d::CCGLProgram *)dword_D2F18C);
cocos2d::CCGLProgram::setUniformLocationWith4fv(
(cocos2d::CCGLProgram *)dword_D2F18C,
dword_D1FE20,
(float *)&dword_D1FE28,
1u);
cocos2d::ccGLEnableVertexAttribs((cocos2d *)((char *)&dword_0 + 1), v25);
glVertexAttribPointer();
glDrawArrays(3u, 0, a4 + v12);
free(v15);
++g_uNumberOfDraws;
}
}
}