//
// cocos2d::CCDrawNode::drawCubicBezierDashed from 0xada198 to 0xada388 (496 bytes)
//
// 2 xrefs:
// > cocos2d::CCDrawNode::drawArchLikeHalfCircle @ 0xada54c
// > ??> @ 0x518b8
//
// 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)
{
__int64 v18; // x19
__int64 v19; // x0
cocos2d::CCPoint *v20; // x22
cocos2d::CCPoint *v21; // x23
__int64 v22; // x19
cocos2d::CCPoint *v23; // x0
float v24; // s2
float *p_y; // x0
float v26; // s0
float v27; // s4
float v28; // s3
float v29; // s0
float v30; // s1
float v31; // s3
float v32; // s0
float v33; // s1
unsigned int v34; // w25
const cocos2d::CCPoint *v35; // x1
unsigned int v36; // w19
bool v37; // cc
const cocos2d::CCPoint *v38; // x26
if ( a6 )
{
v18 = a6 + 1;
v19 = operator new[](8 * v18, (const std::nothrow_t *)&std::nothrow);
v20 = (cocos2d::CCPoint *)v19;
if ( v19 )
{
if ( v18 )
{
v21 = (cocos2d::CCPoint *)v19;
v22 = v18 - 1;
do
{
v23 = v21;
--v22;
++v21;
cocos2d::CCPoint::CCPoint(v23);
}
while ( v22 != -1 );
}
v24 = 0.0;
p_y = &v20->y;
do
{
v26 = 1.0 - v24;
v27 = v24 * (float)(v24 * v24);
v28 = (float)(v26 * v26) * 3.0;
v29 = v26 * (float)(v26 * v26);
v30 = (float)(v24 * v24) * (float)((float)(1.0 - v24) * 3.0);
v31 = v24 * v28;
v24 = v24 + (float)(1.0 / (float)a6);
*(p_y - 1) = (float)((float)((float)(v31 * a3->x) + (float)(v29 * a2->x)) + (float)(v30 * a4->x))
+ (float)(v27 * a5->x);
v32 = (float)(v31 * a3->y) + (float)(v29 * a2->y);
v33 = (float)(v32 + (float)(v30 * a4->y)) + (float)(v27 * a5->y);
*p_y = v33;
p_y += 2;
}
while ( p_y != &v20[a6].y );
v34 = 1;
cocos2d::CCPoint::operator=(&v20[a6], v32, v33, (float *)a5);
v35 = v20;
v36 = a9 + a10;
if ( !(a9 + a10) )
v36 = 1;
do
{
while ( 1 )
{
v38 = v35 + 1;
if ( a9 > (v34 - 1) % v36 )
break;
v37 = a6 > v34;
++v35;
++v34;
if ( !v37 )
goto LABEL_15;
}
cocos2d::CCDrawNode::drawSegmentEx(a1, v35, v35 + 1, a8, a7, 1, 1);
v37 = a6 > v34;
v35 = v38;
++v34;
}
while ( v37 );
LABEL_15:
operator delete[](v20);
}
}
}