// // cocos2d::ccDrawCircleSegment from 0xd4b1c0 to 0xd4b374 (436 bytes) // // 4 xrefs: // > ParticlePreviewLayer::draw @ 0xafcc3c // > ParticlePreviewLayer::draw @ 0xafccb8 // > ParticlePreviewLayer::draw @ 0xafce30 // > @ 0xe9c20 // // 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::ccDrawCircleSegment( int *this, const cocos2d::CCPoint *a2, float a3, float a4, float a5, float a6, float a7) { float *v7; // x19 unsigned int v8; // w20 float v14; // w26 int *v15; // x25 float v16; // s11 unsigned int v17; // w24 float v18; // s15 unsigned int v19; // w19 float v20; // s8 float v21; // s0 unsigned int v22; // w0 cocos2d::CCGLProgram *v23; // x0 unsigned int v24; // w1 unsigned int v25; // w1 if ( *(float *)&dword_154A09C > 0.0 ) { v7 = (float *)this; v8 = (unsigned int)a2; if ( !byte_1560140 ) sub_D4A780(nullptr); v14 = a5 / (float)v8; this = (int *)calloc(8LL * (v8 + 2), 1u); v15 = this; if ( this ) { v16 = *v7; v17 = 1; v18 = v7[1]; v19 = 0; do { v20 = cosf(a4 + (float)((float)v19 * v14)); v21 = sinf(a4 + (float)((float)v19 * v14)); v22 = 2 * v19++; *(float *)&v15[v22] = v16 + (float)((float)(v20 * a3) * a6); *(float *)&v15[v17] = v18 + (float)((float)(v21 * a3) * a7); v17 += 2; } while ( v8 >= v19 ); v23 = (cocos2d::CCGLProgram *)qword_1560138; v24 = 2 * (v8 + 1); *(float *)&v15[v24] = v16; *(float *)&v15[v24 + 1] = v18; cocos2d::CCGLProgram::use(v23); 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), v25); glVertexAttribPointer(); glDrawArrays(); free(v15); ++g_uNumberOfDraws; return &g_uNumberOfDraws; } } return this; }
GD Web Decomp Icon

GD Web Decomp

Raw Source