// // cocos2d::ccDrawCardinalSpline from 0x180010780 to 0x1800109f9 (633 bytes) // // 5 xrefs: // > cocos2d::ccDrawCatmullRom @ 0x180010a0b // > @ 0x180132778 // > @ 0x1801327b4 // > @ 0x1801438a8 // > @ 0x1801ae17c // // 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 __fastcall cocos2d::ccDrawCardinalSpline(cocos2d *this, struct cocos2d::CCPointArray *a2, float a3) { int v3; // r8d float v4; // xmm1_4 float v6; // xmm10_4 int v7; // ebx unsigned int v8; // r15d _DWORD *v9; // r14 int v10; // esi float v11; // xmm7_4 _DWORD *v12; // rbp float v13; // xmm6_4 float v14; // xmm6_4 int v15; // xmm1_4 unsigned int v16; // edx struct cocos2d::CCPoint v17; // [rsp+40h] [rbp-88h] BYREF struct cocos2d::CCPoint v18; // [rsp+48h] [rbp-80h] BYREF struct cocos2d::CCPoint v19; // [rsp+50h] [rbp-78h] BYREF struct cocos2d::CCPoint v20; // [rsp+58h] [rbp-70h] BYREF int v21; // [rsp+E8h] [rbp+20h] BYREF int v22; // [rsp+ECh] [rbp+24h] v6 = v4; v7 = v3; cocos2d::ccDrawInit(this); v8 = v7 + 1; v9 = operator new(saturated_mul((unsigned int)(v7 + 1), 8u)); v10 = 0; v11 = 1.0 / (float)(int)cocos2d::CCPointArray::count((cocos2d::CCPointArray *)this); if ( v7 != -1 ) { v12 = v9; do { v13 = (float)v10 / (float)v7; if ( v13 == 1.0 ) { v14 = 1.0; cocos2d::CCPointArray::count((cocos2d::CCPointArray *)this); } else { v14 = (float)(v13 - (float)((float)(int)(float)(v13 / v11) * v11)) / v11; } cocos2d::CCPointArray::getControlPointAtIndex((cocos2d::CCPointArray *)this, (unsigned int)&v20); cocos2d::CCPointArray::getControlPointAtIndex((cocos2d::CCPointArray *)this, (unsigned int)&v19); cocos2d::CCPointArray::getControlPointAtIndex((cocos2d::CCPointArray *)this, (unsigned int)&v18); cocos2d::CCPointArray::getControlPointAtIndex((cocos2d::CCPointArray *)this, (unsigned int)&v17); cocos2d::ccCardinalSplineAt((cocos2d *)&v21, &v20, &v19, &v18, &v17, v6, v14); ++v10; v15 = v22; *v12 = v21; v12[1] = v15; v12 += 2; } while ( v10 < v8 ); } cocos2d::CCGLProgram::use((cocos2d::CCGLProgram *)qword_1801A8338); cocos2d::CCGLProgram::setUniformsForBuiltins((cocos2d::CCGLProgram *)qword_1801A8338); cocos2d::CCGLProgram::setUniformLocationWith4fv( (cocos2d::CCGLProgram *)qword_1801A8338, dword_1801A2B58, &flt_1801A2B60, 1u); cocos2d::ccGLEnableVertexAttribs((cocos2d *)1, v16); _glewVertexAttribPointer(0, 2, 5126); glDrawArrays(3u, 0, v8); if ( v9 ) j_j_free_0(v9); ++g_uNumberOfDraws; }
GD Web Decomp Icon

GD Web Decomp

Raw Source