//
// cocos2d::CCDrawNode::drawArchLikeHalfCircle from 0x5c5d74 to 0x5c5ece (346 bytes)
//
// 1 xrefs:
// > drawTrace @ 0x377fea
//
// 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::CCDrawNode::drawArchLikeHalfCircle(
cocos2d::CCDrawNode *a1,
const cocos2d::CCPoint *a2,
const cocos2d::CCPoint *a3,
float a4,
unsigned int a5,
const cocos2d::_ccColor4F *a6,
float a7)
{
int v10; // r2
bool v11; // r3
float v12; // s16
int v13; // r2
bool v14; // r3
cocos2d::CCPoint *v15; // r0
cocos2d::CCPoint *v16; // r1
cocos2d::CCPoint *v17; // r0
int v18; // r2
bool v19; // r3
cocos2d::CCPoint v21; // [sp+34h] [bp-8h] BYREF
cocos2d::CCPoint v22; // [sp+3Ch] [bp+0h] BYREF
cocos2d::CCPoint v23; // [sp+44h] [bp+8h] BYREF
cocos2d::CCPoint v24; // [sp+4Ch] [bp+10h] BYREF
cocos2d::CCPoint v25; // [sp+54h] [bp+18h] BYREF
cocos2d::CCPoint v26; // [sp+5Ch] [bp+20h] BYREF
cocos2d::CCPoint v27; // [sp+64h] [bp+28h] BYREF
cocos2d::CCPoint v28; // [sp+6Ch] [bp+30h] BYREF
cocos2d::CCPoint v29; // [sp+74h] [bp+38h] BYREF
cocos2d::CCPoint::CCPoint(&v21);
cocos2d::CCPoint::CCPoint(&v22);
cocos2d::CCPoint::operator-(&v23, &a3->x, &a2->x);
v12 = cocos2d::ccpLength(&v23);
if ( v12 > 0.0001 )
{
cocos2d::CCPoint::operator*(&v24, &v23.x, 1.0 / v12);
cocos2d::CCPoint::CCPoint(&v25, COERCE_FLOAT(LODWORD(v24.y) ^ 0x80000000), v24.x);
cocos2d::CCPoint::operator*(&v29, &v24.x, v12 * 0.33333);
cocos2d::CCPoint::operator+(&v26, &a2->x, &v29.x);
cocos2d::CCPoint::operator*(&v29, &v24.x, v12 * 0.66667);
cocos2d::CCPoint::operator+(&v27, &a2->x, &v29.x);
cocos2d::CCPoint::operator*(&v28, &v25.x, a4);
cocos2d::CCPoint::operator+(&v29, &v26.x, &v28.x);
cocos2d::CCPoint::operator=(&v21, &v29.x, v18, v19);
cocos2d::CCPoint::operator*(&v28, &v25.x, a4);
cocos2d::CCPoint::operator+(&v29, &v27.x, &v28.x);
v17 = &v22;
v16 = &v29;
}
else
{
cocos2d::CCPoint::operator=(&v22, &a2->x, v10, v11);
v16 = v15;
v17 = &v21;
}
cocos2d::CCPoint::operator=(v17, &v16->x, v13, v14);
cocos2d::CCDrawNode::drawCubicBezierDashed(a1, a2, &v21, &v22, a3, a5, a6, a7, 1u, 1u);
}