// // cocos2d::ccDrawCircle from 0xd4b000 to 0xd4b1b0 (432 bytes) // // 3 xrefs: // > GJRotationControl::draw @ 0xbce20c // > cocos2d::ccDrawCircle @ 0xd4b1bc // > @ 0x77ba8 // // 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::ccDrawCircle(int *this, const cocos2d::CCPoint *a2, float a3, float a4, float a5, float a6) { float *v6; // x19 unsigned int v7; // w20 float v12; // s14 int *v13; // x25 float v14; // s11 unsigned int v15; // w24 float v16; // s15 unsigned int v17; // w19 float v18; // s8 float v19; // s0 unsigned int v20; // w0 cocos2d::CCGLProgram *v21; // x0 unsigned int v22; // w1 unsigned int v23; // w1 if ( *(float *)&dword_154A09C > 0.0 ) { v6 = (float *)this; v7 = (unsigned int)a2; if ( !byte_1560140 ) sub_D4A780(nullptr); v12 = 6.2832 / (float)v7; this = (int *)calloc(8LL * (v7 + 2), 1u); v13 = this; if ( this ) { v14 = *v6; v15 = 1; v16 = v6[1]; v17 = 0; do { v18 = cosf(a4 + (float)((float)v17 * v12)); v19 = sinf(a4 + (float)((float)v17 * v12)); v20 = 2 * v17++; *(float *)&v13[v20] = v14 + (float)((float)(v18 * a3) * a5); *(float *)&v13[v15] = v16 + (float)((float)(v19 * a3) * a6); v15 += 2; } while ( v7 >= v17 ); v21 = (cocos2d::CCGLProgram *)qword_1560138; v22 = 2 * (v7 + 1); *(float *)&v13[v22] = v14; *(float *)&v13[v22 + 1] = v16; cocos2d::CCGLProgram::use(v21); 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), v23); glVertexAttribPointer(); glDrawArrays(); free(v13); ++g_uNumberOfDraws; return &g_uNumberOfDraws; } } return this; }
GD Web Decomp Icon

GD Web Decomp

Raw Source