//
// cocos2d::CCDrawNode::drawArchLikeHalfCircle from 0x7cd088 to 0x7cd1e2 (346 bytes)
//
// 1 xrefs:
// > drawTrace @ 0x47ad90
//
// 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:32 +0000
//
void __fastcall cocos2d::CCDrawNode::drawArchLikeHalfCircle(
_BYTE *a1,
float *a2,
float *a3,
float a4,
unsigned int a5,
int a6,
int a7)
{
const cocos2d::CCPoint *v10; // r1
float v11; // s16
float *v12; // r1
float *v13; // r0
float v15[2]; // [sp+34h] [bp-8h] BYREF
float v16[2]; // [sp+3Ch] [bp+0h] BYREF
float v17[2]; // [sp+44h] [bp+8h] BYREF
float v18[2]; // [sp+4Ch] [bp+10h] BYREF
float v19[2]; // [sp+54h] [bp+18h] BYREF
float v20[2]; // [sp+5Ch] [bp+20h] BYREF
float v21[2]; // [sp+64h] [bp+28h] BYREF
float v22[2]; // [sp+6Ch] [bp+30h] BYREF
float v23[2]; // [sp+74h] [bp+38h] BYREF
cocos2d::CCPoint::CCPoint(v15);
cocos2d::CCPoint::CCPoint(v16);
cocos2d::CCPoint::operator-(v17, a3, a2);
v11 = COERCE_FLOAT(cocos2d::ccpLength((cocos2d *)v17, v10));
if ( v11 > 0.0001 )
{
cocos2d::CCPoint::operator*(v18, v17, 1.0 / v11);
cocos2d::CCPoint::CCPoint(v19, COERCE_FLOAT(LODWORD(v18[1]) ^ 0x80000000), v18[0]);
cocos2d::CCPoint::operator*(v23, v18, v11 * 0.33333);
cocos2d::CCPoint::operator+(v20, a2, v23);
cocos2d::CCPoint::operator*(v23, v18, v11 * 0.66667);
cocos2d::CCPoint::operator+(v21, a2, v23);
cocos2d::CCPoint::operator*(v22, v19, a4);
cocos2d::CCPoint::operator+(v23, v20, v22);
cocos2d::CCPoint::operator=(v15, v23);
cocos2d::CCPoint::operator*(v22, v19, a4);
cocos2d::CCPoint::operator+(v23, v21, v22);
v13 = v16;
v12 = v23;
}
else
{
v12 = cocos2d::CCPoint::operator=(v16, a2);
v13 = v15;
}
cocos2d::CCPoint::operator=(v13, v12);
cocos2d::CCDrawNode::drawCubicBezierDashed(a1, a2, v15, v16, a3, a5, a6, a7, 1u, 1);
}