// // cocos2d::ccDrawFilledCircle from 0x1002e9ad8 to 0x1002e9c34 (348 bytes) // // 2 xrefs: // > GJUINode::draw @ 0x100053aa4 // > CCCircleWave::draw @ 0x1001faa98 // // 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 11:02:52 +0000 // void __fastcall cocos2d::ccDrawFilledCircle(float *a1, unsigned int a2, float a3, float a4) { unsigned int v8; // w22 float *v9; // x0 float *v10; // x19 __int64 v11; // x23 float v12; // s12 float v13; // s10 float v14; // s11 GLsizei v15; // w20 __int64 v16; // x21 __float2 v17; // 0:kr00_8.8 cocos2d::ccDrawInit(); v8 = 1; v9 = (float *)calloc(8LL * (a2 + 2), 1u); if ( v9 ) { v10 = v9; v11 = 0; v12 = 6.2832 / (float)a2; v14 = *a1; v13 = a1[1]; v15 = a2 + 1; if ( a2 + 1 > 1 ) v16 = a2 + 1; else v16 = 1; do { v17 = __sincosf_stret((float)(v12 * (float)(unsigned int)v11) + a4); v10[v8 - 1] = v14 + (float)(a3 * v17.__cosval); v10[v8] = v13 + (float)(a3 * v17.__sinval); ++v11; v8 += 2; } while ( v16 != v11 ); v10[2 * v15] = v14; v10[(2 * v15) | 1] = v13; cocos2d::CCGLProgram::use(qword_1009F6230); cocos2d::CCGLProgram::setUniformsForBuiltins(qword_1009F6230); cocos2d::CCGLProgram::setUniformLocationWith4fv(qword_1009F6230, dword_1009D41F0, flt_1009D4200, 1); cocos2d::ccGLEnableVertexAttribs(1); glVertexAttribPointer(0, 2, 0x1406u, 0, 0, v10); glDrawArrays(6u, 0, v15); free(v10); ++dword_100A0F904; } }
GD Web Decomp Icon

GD Web Decomp

Raw Source