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