// // cocos2d::ccDrawFilledCircle from 0x7cb974 to 0x7cba74 (256 bytes) // // 2 xrefs: // > CCCircleWave::draw @ 0x3e5348 // > GJUINode::draw @ 0x3fc460 // // This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False! // // 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 12:00:31 +0000 // void __fastcall cocos2d::ccDrawFilledCircle( cocos2d *this, const cocos2d::CCPoint *a2, float a3, unsigned int a4, unsigned int a5) { size_t v8; // r4 float v10; // s16 float *v11; // r0 float *v12; // r5 float *v13; // r8 float v14; // s18 float v15; // s17 unsigned int v16; // r7 unsigned int v17; // s15 float v18; // s15 float v19; // s21 float v20; // r0 float *v21; // r4 unsigned int v22; // r1 v8 = 2 * (a4 + 2); cocos2d::ccDrawInit(this); v10 = 6.2832 / (float)a4; v11 = (float *)calloc(v8 * 4, 1u); v12 = v11; if ( v11 ) { v13 = v11 + 1; v14 = *(float *)this; v15 = *((float *)this + 1); v16 = 0; do { v17 = v16++; v18 = (float)v17; v19 = cosf(a3 + (float)(v18 * v10)); v20 = sinf(a3 + (float)(v18 * v10)); *(v13 - 1) = v14 + (float)(*(float *)&a2 * v19); *v13 = v15 + (float)(*(float *)&a2 * v20); v13 += 2; } while ( v16 <= a4 ); v21 = &v12[v8]; *(v21 - 2) = v14; *(v21 - 1) = v15; cocos2d::CCGLProgram::use((cocos2d::CCGLProgram *)dword_D2F18C); cocos2d::CCGLProgram::setUniformsForBuiltins((cocos2d::CCGLProgram *)dword_D2F18C); cocos2d::CCGLProgram::setUniformLocationWith4fv( (cocos2d::CCGLProgram *)dword_D2F18C, dword_D1FE20, (float *)&dword_D1FE28, 1u); cocos2d::ccGLEnableVertexAttribs((cocos2d *)((char *)&dword_0 + 1), v22); glVertexAttribPointer(); glDrawArrays(6u, 0, a4 + 1); free(v12); ++g_uNumberOfDraws; } }
GD Web Decomp Icon

GD Web Decomp

Raw Source