// // cocos2d::ccDrawFilledCircle from 0xd4b374 to 0xd4b4e8 (372 bytes) // // 3 xrefs: // > CCCircleWave::draw @ 0x6c6908 // > GJUINode::draw @ 0x6ee4f8 // > @ 0x74158 // // 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:37 +0000 // int *__fastcall cocos2d::ccDrawFilledCircle(cocos2d *this, const cocos2d::CCPoint *a2, float a3, float a4) { unsigned int v5; // w22 float v8; // s11 int *result; // x0 int *v10; // x21 float v11; // s13 unsigned int v12; // w20 float v13; // s12 unsigned int v14; // w19 float v15; // s9 float v16; // s0 unsigned int v17; // w0 unsigned int v18; // w22 cocos2d::CCGLProgram *v19; // x0 unsigned int v20; // w1 v5 = (unsigned int)a2; if ( !byte_1560140 ) sub_D4A780(nullptr); v8 = 6.2832 / (float)v5; result = (int *)calloc(8LL * (v5 + 2), 1u); v10 = result; if ( result ) { v11 = *(float *)this; v12 = 1; v13 = *((float *)this + 1); v14 = 0; do { v15 = cosf(a4 + (float)((float)v14 * v8)); v16 = sinf(a4 + (float)((float)v14 * v8)); v17 = 2 * v14++; *(float *)&v10[v17] = v11 + (float)(v15 * a3); *(float *)&v10[v12] = v13 + (float)(v16 * a3); v12 += 2; } while ( v5 >= v14 ); v18 = v5 + 1; v19 = (cocos2d::CCGLProgram *)qword_1560138; *(float *)&v10[2 * v18] = v11; *(float *)&v10[2 * v18 + 1] = v13; cocos2d::CCGLProgram::use(v19); cocos2d::CCGLProgram::setUniformsForBuiltins((cocos2d::CCGLProgram *)qword_1560138); cocos2d::CCGLProgram::setUniformLocationWith4fv( (cocos2d::CCGLProgram *)qword_1560138, dword_154A088, (float *)&dword_154A090, 1u); cocos2d::ccGLEnableVertexAttribs((cocos2d *)((char *)&dword_0 + 1), v20); glVertexAttribPointer(); glDrawArrays(); free(v10); ++g_uNumberOfDraws; return &g_uNumberOfDraws; } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source