//
// cocos2d::CCDrawNode::drawCircle from 0x100043048 to 0x1000431c8 (384 bytes)
//
// 4 xrefs:
// > GJBaseGameLayer::updateDebugDraw @ 0x1001e4bec
// > LevelEditorLayer::updateDebugDraw @ 0x100368b7c
// > LevelEditorLayer::updateDebugDraw @ 0x100368d0c
// > LevelEditorLayer::updateDebugDraw @ 0x100368e9c
//
// 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
//
bool __fastcall cocos2d::CCDrawNode::drawCircle(
cocos2d::CCDrawNode *a1,
const cocos2d::CCPoint *a2,
float a3,
const cocos2d::ccColor4F *a4,
float a5,
const cocos2d::ccColor4F *a6,
unsigned int a7)
{
float y; // s0
float32x2_t *v16; // x0
float32x2_t *v17; // x24
__int64 v18; // x25
__int64 v19; // x27
float32x2_t *v20; // x25
float v21; // s0
float x; // s11
__n128 v23; // q1
__n128 v24; // q0
double v25; // [xsp+8h] [xbp-78h] BYREF
__float2 v26; // 0:kr00_8.8
if ( a1->m_bUseArea )
{
if ( (float)(a2->x + a3) < a1->m_fMinAreaX )
return 0;
if ( (float)(a2->x - a3) > a1->m_fMaxAreaX )
return 0;
y = a2->y;
if ( (float)(y + a3) < a1->m_fMinAreaY || (float)(y - a3) > a1->m_fMaxAreaY )
return 0;
}
v16 = (float32x2_t *)operator new[](8LL * a7);
v17 = v16;
if ( a7 )
{
v18 = 8LL * a7;
do
{
v16 = (float32x2_t *)(sub_1000229B0(v16) + 1);
v18 -= 8;
}
while ( v18 );
v19 = 0;
v20 = v17;
do
{
v21 = 6.28318531 / (double)a7 * (double)(unsigned int)v19;
x = a2->x;
v26 = __sincosf_stret(v21);
v23.n128_f32[0] = a2->y + (float)(a3 * v26.__sinval);
v24.n128_f32[0] = x + (float)(a3 * v26.__cosval);
sub_100022980(v24, v23, &v25);
sub_1000229D0(v20, &v25);
++v19;
++v20;
}
while ( a7 != v19 );
}
cocos2d::CCDrawNode::drawPolygon(a1, v17, a7, (float32x2_t *)a4, (float32x2_t *)a6, 0, a5);
operator delete[](v17);
return 1;
}