// // cocos2d::CCDrawNode::drawCubicBezier from 0xd4c8dc to 0xd4cafc (544 bytes) // // 2 xrefs: // > cocos2d::CCDrawNode::drawPreciseCubicBezier @ 0xd4cdb4 // > @ 0xb7418 // // This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True! // // 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 13:07:38 +0000 // void __fastcall cocos2d::CCDrawNode::drawCubicBezier( cocos2d::CCDrawNode *a1, float *a2, float *a3, float *a4, float *a5, unsigned int a6, float *a7, float a8) { __int64 v10; // x28 __int64 v17; // x0 cocos2d::CCPoint *v18; // x25 __int64 v19; // x24 cocos2d::CCPoint *v20; // x0 float v21; // s8 float *v22; // x28 float v23; // s13 float v24; // s9 float v25; // s14 float v26; // s0 float v27; // s3 float v28; // w2 int v29; // w19 float *v30; // x1 cocos2d::CCPoint *v31; // x20 cocos2d::CCPoint *v32; // x1 unsigned __int8 v33; // w4 unsigned __int8 v34; // w5 int v35; // w0 cocos2d::CCPoint *v36; // [xsp+A0h] [xbp+A0h] v10 = a6 + 1; v17 = operator new[](8 * v10, (const std::nothrow_t *)&std::nothrow); v36 = (cocos2d::CCPoint *)v17; if ( v17 ) { v18 = (cocos2d::CCPoint *)v17; v19 = v10 - 1; if ( v10 ) { do { v20 = v18; --v19; v18 = (cocos2d::CCPoint *)((char *)v18 + 8); cocos2d::CCPoint::CCPoint(v20); } while ( v19 != -1 ); } if ( a6 ) { v21 = 0.0; v22 = (float *)((char *)v36 + 4); 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; *(v22 - 1) = (float)((float)((float)(v23 * *a3) + (float)(powf(1.0 - v21, 3.0) * *a2)) + (float)(v24 * *a4)) + (float)(v25 * *a5); v26 = powf(1.0 - v21, 3.0); v27 = a5[1]; v21 = v21 + (float)(1.0 / (float)a6); *v22 = (float)((float)((float)(v23 * a3[1]) + (float)(v26 * a2[1])) + (float)(v24 * a4[1])) + (float)(v25 * v27); v22 += 2; } while ( v22 != (float *)((char *)v36 + 8 * a6 + 4) ); v28 = *a5; v29 = 0; v30 = (float *)((char *)v36 + 8 * a6); v31 = v36; *v30 = v28; v30[1] = v27; do { v32 = v31; v33 = v29 == 0; v31 = (cocos2d::CCPoint *)((char *)v31 + 8); v34 = v29++ == a6 - 1; cocos2d::CCDrawNode::drawSegmentEx(a1, v32, v31, a7, v33, v34, a8); } while ( v29 != a6 ); } else { v35 = *((_DWORD *)a5 + 1); *(float *)v36 = *a5; *((_DWORD *)v36 + 1) = v35; } operator delete[](v36); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source