// // cocos2d::CCDrawNode::drawCubicBezier from 0xad9c7c to 0xad9ea0 (548 bytes) // // 2 xrefs: // > cocos2d::CCDrawNode::drawPreciseCubicBezier @ 0xada158 // > @ 0x8a348 // // 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) { __int64 v10; // x28 __int64 v17; // x0 cocos2d::CCPoint *v18; // x25 __int64 v19; // x24 cocos2d::CCPoint *v20; // x0 float v21; // s8 float *p_y; // x28 float v23; // s13 float v24; // s9 float v25; // s14 float v26; // s0 float x; // w3 float y; // w2 float *v29; // x1 const cocos2d::CCPoint *v30; // x20 int v31; // w19 const cocos2d::CCPoint *v32; // x1 bool v33; // w4 bool v34; // w5 float v35; // w0 cocos2d::CCPoint *p; // [xsp+A0h] [xbp+A0h] v10 = a6 + 1; v17 = operator new[](8 * v10, (const std::nothrow_t *)&std::nothrow); p = (cocos2d::CCPoint *)v17; if ( v17 ) { v18 = (cocos2d::CCPoint *)v17; v19 = v10 - 1; if ( v10 ) { do { v20 = v18; --v19; ++v18; cocos2d::CCPoint::CCPoint(v20); } while ( v19 != -1 ); } if ( a6 ) { v21 = 0.0; p_y = &p->y; do { v23 = (float)((float)((float)(1.0 - v21) * (float)(1.0 - v21)) * 3.0) * v21; v24 = (float)((float)((float)(1.0 - v21) * 3.0) * v21) * v21; v25 = (float)(v21 * v21) * v21; *(p_y - 1) = (float)((float)((float)(v23 * a3->x) + (float)(powf(1.0 - v21, 3.0) * a2->x)) + (float)(v24 * a4->x)) + (float)(v25 * a5->x); v26 = powf(1.0 - v21, 3.0); v21 = v21 + (float)(1.0 / (float)a6); *p_y = (float)((float)((float)(v23 * a3->y) + (float)(v26 * a2->y)) + (float)(v24 * a4->y)) + (float)(v25 * a5->y); p_y += 2; } while ( p_y != &p[a6].y ); x = a5->x; y = a5->y; v29 = (float *)&p[a6]; v30 = p; v31 = 0; *v29 = x; v29[1] = y; do { v32 = v30; v33 = v31 == 0; ++v30; v34 = v31++ == a6 - 1; cocos2d::CCDrawNode::drawSegmentEx(a1, v32, v30, a8, a7, v33, v34); } while ( v31 != a6 ); } else { v35 = a5->y; p->x = a5->x; p->y = v35; } operator delete[](p); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source