//
// cocos2d::CCDrawNode::drawCubicBezierDashed from 0x5c5c08 to 0x5c5d6c (356 bytes)
//
// 1 xrefs:
// > cocos2d::CCDrawNode::drawArchLikeHalfCircle @ 0x5c5eb2
//
// 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::drawCubicBezierDashed(
cocos2d::CCDrawNode *a1,
const cocos2d::CCPoint *a2,
const cocos2d::CCPoint *a3,
const cocos2d::CCPoint *a4,
const cocos2d::CCPoint *a5,
unsigned int a6,
const cocos2d::ccColor4F *a7,
float a8,
unsigned int a9,
unsigned int a10)
{
unsigned int v13; // r0
cocos2d::CCPoint *v14; // r0
int v15; // r2
bool v16; // r3
cocos2d::CCPoint *v17; // r5
unsigned int v18; // r10
cocos2d::CCPoint *v19; // r12
const cocos2d::CCPoint *v20; // r10
cocos2d::CCPoint *v21; // r1
float v22; // s12
int v23; // r0
float v24; // s14
float v25; // s7
float v26; // s15
float v27; // s14
float v28; // s11
unsigned int v29; // r7
unsigned int v30; // r6
cocos2d::CCPoint *v32; // [sp+24h] [bp-8h]
if ( a6 )
{
v13 = a6 + 1 > 0xFE00000 ? -1 : 8 * (a6 + 1);
v14 = (cocos2d::CCPoint *)operator new[](v13, (const std::nothrow_t *)&std::nothrow);
v17 = v14;
if ( v14 )
{
v18 = a6;
v19 = v14;
while ( v18 != -1 )
{
v32 = v19;
cocos2d::CCPoint::CCPoint(v19);
--v18;
v19 = v32 + 1;
}
v20 = v17;
v21 = v17;
v22 = 0.0;
v23 = 0;
while ( 1 )
{
++v21;
if ( v23 == a6 )
break;
++v23;
v24 = 1.0 - v22;
v25 = v24 * (float)(v24 * v24);
v26 = (float)((float)(v24 * v24) * 3.0) * v22;
v27 = (float)((float)(1.0 - v22) * 3.0) * (float)(v22 * v22);
v28 = (float)(v22 * v22) * v22;
v21[-1].x = (float)((float)((float)(v26 * a3->x) + (float)(v25 * a2->x)) + (float)(v27 * a4->x))
+ (float)(v28 * a5->x);
v22 = v22 + (float)(1.0 / (float)a6);
v21[-1].y = (float)((float)((float)(v26 * a3->y) + (float)(v25 * a2->y)) + (float)(v27 * a4->y))
+ (float)(v28 * a5->y);
}
cocos2d::CCPoint::operator=(&v17[a6], &a5->x, v15, v16);
v29 = 0;
v30 = a9 + a10;
if ( !(a9 + a10) )
v30 = 1;
do
{
if ( v29 % v30 < a9 )
cocos2d::CCDrawNode::drawSegmentEx(a1, v20, v20 + 1, a8, a7, 1, 1);
++v29;
++v20;
}
while ( v29 != a6 );
operator delete[](v17);
}
}
}