// // cocos2d::CCDrawNode::drawCubicBezier from 0x5c588c to 0x5c5a0a (382 bytes) // // 1 xrefs: // > cocos2d::CCDrawNode::drawPreciseCubicBezier @ 0x5c5bea // // 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::drawCubicBezier( 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 v11; // r0 cocos2d::CCPoint *v12; // r0 cocos2d::CCPoint *v13; // r5 unsigned int v14; // r10 cocos2d::CCPoint *v15; // r2 const cocos2d::CCPoint *v16; // r2 float v17; // s17 cocos2d::CCPoint *v18; // r10 int v19; // r12 float v20; // s16 float v21; // s20 float v22; // s22 float v23; // r0 unsigned int i; // r6 const cocos2d::CCPoint *v25; // r7 unsigned int v26; // r1 unsigned int v27; // r3 cocos2d::CCPoint *v29; // [sp+18h] [bp-Ch] int v30; // [sp+18h] [bp-Ch] const cocos2d::CCPoint *v31; // [sp+1Ch] [bp-8h] if ( a6 + 1 > 0xFE00000 ) v11 = -1; else v11 = 8 * (a6 + 1); v12 = (cocos2d::CCPoint *)operator new[](v11, (const std::nothrow_t *)&std::nothrow); v13 = v12; if ( v12 ) { v14 = a6; v15 = v12; while ( v14 != -1 ) { v29 = v15; cocos2d::CCPoint::CCPoint(v15); --v14; v15 = v29 + 1; } v16 = v13; v17 = 0.0; v18 = v13; v19 = 0; while ( 1 ) { ++v18; if ( v19 == a6 ) break; v31 = v16; v30 = v19; v20 = (float)((float)((float)(1.0 - v17) * (float)(1.0 - v17)) * 3.0) * v17; v21 = (float)((float)((float)(1.0 - v17) * 3.0) * v17) * v17; v22 = (float)(v17 * v17) * v17; v18[-1].x = (float)((float)((float)(v20 * a3->x) + (float)(powf(1.0 - v17, 3.0) * a2->x)) + (float)(v21 * a4->x)) + (float)(v22 * a5->x); v23 = powf(1.0 - v17, 3.0); v16 = v31; v19 = v30 + 1; v18[-1].y = (float)((float)((float)(v20 * a3->y) + (float)(v23 * a2->y)) + (float)(v21 * a4->y)) + (float)(v22 * a5->y); v17 = v17 + (float)(1.0 / (float)a6); } v13[a6] = *a5; for ( i = 0; ; ++i ) { v25 = v16 + 1; if ( i == a6 ) break; v26 = i - (a6 - 1); v27 = __clz(i); cocos2d::CCDrawNode::drawSegmentEx(a1, v16, v16 + 1, a8, a7, v27 >> 5, v26 == 0); v16 = v25; } operator delete[](v13); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source