{"type": "func", "start": 6442521536, "end": 6442521989, "name": "cocos2d::ccDrawFilledCircle", "pseudocode": "// \n// cocos2d::ccDrawFilledCircle from 0x1800113c0 to 0x180011585 (453 bytes)\n// \n// 4 xrefs:\n// > <???> @ 0x18013b550\n// > <???> @ 0x18013b560\n// > <???> @ 0x18014cf68\n// > <???> @ 0x1801b832c\n// \n// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 11:21:22 +0000\n// \n\nvoid __fastcall cocos2d::ccDrawFilledCircle(cocos2d *this, const struct cocos2d::CCPoint *a2, float a3, float a4)\n{\n  int v4; // r9d\n  float v5; // xmm1_4\n  int v7; // r14d\n  float *v8; // rsi\n  int v9; // edi\n  float v10; // xmm9_4\n  float v11; // xmm10_4\n  __int64 v12; // rbx\n  float v13; // xmm6_4\n  cocos2d::CCGLProgram *v14; // rcx\n  unsigned int v15; // edx\n\n  v7 = v4;\n  cocos2d::ccDrawInit(this);\n  v8 = (float *)calloc(8LL * (unsigned int)(v7 + 2), 1u);\n  if ( v8 )\n  {\n    v9 = 0;\n    v10 = *(float *)this;\n    v11 = *((float *)this + 1);\n    do\n    {\n      v12 = (unsigned int)(2 * v9);\n      v13 = (float)((float)v9 * (float)(6.2831855 / (float)v7)) + a3;\n      v8[v12] = (float)(cosf(v13) * v5) + v10;\n      ++v9;\n      v8[(unsigned int)(v12 + 1)] = (float)(sinf(v13) * v5) + v11;\n    }\n    while ( v9 <= (unsigned int)v7 );\n    v14 = qword_1801B2358;\n    v8[2 * v7 + 2] = v10;\n    v8[2 * v7 + 3] = v11;\n    cocos2d::CCGLProgram::use(v14);\n    cocos2d::CCGLProgram::setUniformsForBuiltins(qword_1801B2358);\n    cocos2d::CCGLProgram::setUniformLocationWith4fv(qword_1801B2358, dword_1801ACB58, &flt_1801ACB60, 1u);\n    cocos2d::ccGLEnableVertexAttribs((cocos2d *)1, v15);\n    _glewVertexAttribPointer(0, 2, 5126, 0, 0, v8);\n    glDrawArrays(6u, 0, v7 + 1);\n    free(v8);\n    ++g_uNumberOfDraws;\n  }\n}", "assembly": "; \n; cocos2d::ccDrawFilledCircle from 0x1800113c0 to 0x180011585 (453 bytes)\n; \n; 4 xrefs:\n; > <???> @ 0x18013b550\n; > <???> @ 0x18013b560\n; > <???> @ 0x18014cf68\n; > <???> @ 0x1801b832c\n; \n; This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 11:21:22 +0000\n; \nmov     [rsp+arg_8], rbx                                               ; +0x0, 0x1800113c0\nmov     [rsp+arg_10], rsi                                              ; +0x5, 0x1800113c5\npush    r14                                                            ; +0xa, 0x1800113ca\nsub     rsp, 90h                                                       ; +0xc, 0x1800113cc\nmovaps  [rsp+98h+var_28], xmm7                                         ; +0x13, 0x1800113d3\nmov     rbx, rcx                                                       ; +0x18, 0x1800113d8\nmovaps  [rsp+98h+var_38], xmm8                                         ; +0x1b, 0x1800113db\nmovaps  xmm8, xmm1                                                     ; +0x21, 0x1800113e1\nmovaps  [rsp+98h+var_68], xmm11                                        ; +0x25, 0x1800113e5\nmovaps  xmm11, xmm2                                                    ; +0x2b, 0x1800113eb\nmov     r14d, r9d                                                      ; +0x2f, 0x1800113ef\ncall    ?ccDrawInit@cocos2d@@YAXXZ_0; cocos2d::ccDrawInit(void)        ; +0x32, 0x1800113f2\nmovss   xmm7, cs:dword_1800EC74C                                       ; +0x37, 0x1800113f7\nlea     ecx, [r14+2]                                                   ; +0x3f, 0x1800113ff\nxorps   xmm0, xmm0                                                     ; +0x43, 0x180011403\nshl     rcx, 3; Count                                                  ; +0x46, 0x180011406\ncvtsi2ss xmm0, r14                                                     ; +0x4a, 0x18001140a\nmov     edx, 1; Size                                                   ; +0x4f, 0x18001140f\ndivss   xmm7, xmm0                                                     ; +0x54, 0x180011414\ncall    cs:calloc                                                      ; +0x58, 0x180011418\nmov     rsi, rax                                                       ; +0x5e, 0x18001141e\ntest    rax, rax                                                       ; +0x61, 0x180011421\njz      loc_180011560                                                  ; +0x64, 0x180011424\nmov     [rsp+98h+arg_0], rdi                                           ; +0x6a, 0x18001142a\nxor     edi, edi                                                       ; +0x72, 0x180011432\nmovaps  [rsp+98h+var_18], xmm6                                         ; +0x74, 0x180011434\nmovaps  [rsp+98h+var_48], xmm9                                         ; +0x7c, 0x18001143c\nmovss   xmm9, dword ptr [rbx]                                          ; +0x82, 0x180011442\nmovaps  [rsp+98h+var_58], xmm10                                        ; +0x87, 0x180011447\nmovss   xmm10, dword ptr [rbx+4]                                       ; +0x8d, 0x18001144d\nxorps   xmm6, xmm6                                                     ; +0x93, 0x180011453\nmov     ecx, edi                                                       ; +0x96, 0x180011456\nlea     ebx, [rdi+rdi]                                                 ; +0x98, 0x180011458\ncvtsi2ss xmm6, rcx                                                     ; +0x9b, 0x18001145b\nmulss   xmm6, xmm7                                                     ; +0xa0, 0x180011460\naddss   xmm6, xmm11                                                    ; +0xa4, 0x180011464\nmovaps  xmm0, xmm6; X                                                  ; +0xa9, 0x180011469\ncall    cosf                                                           ; +0xac, 0x18001146c\nmulss   xmm0, xmm8                                                     ; +0xb1, 0x180011471\naddss   xmm0, xmm9                                                     ; +0xb6, 0x180011476\nmovss   dword ptr [rsi+rbx*4], xmm0                                    ; +0xbb, 0x18001147b\nmovaps  xmm0, xmm6; X                                                  ; +0xc0, 0x180011480\ncall    sinf                                                           ; +0xc3, 0x180011483\nmulss   xmm0, xmm8                                                     ; +0xc8, 0x180011488\nlea     eax, [rbx+1]                                                   ; +0xcd, 0x18001148d\ninc     edi                                                            ; +0xd0, 0x180011490\naddss   xmm0, xmm10                                                    ; +0xd2, 0x180011492\nmovss   dword ptr [rsi+rax*4], xmm0                                    ; +0xd7, 0x180011497\ncmp     edi, r14d                                                      ; +0xdc, 0x18001149c\njbe     short loc_180011453                                            ; +0xdf, 0x18001149f\nmov     rcx, cs:qword_1801B2358; this                                  ; +0xe1, 0x1800114a1\nlea     r8d, [r14+r14]                                                 ; +0xe8, 0x1800114a8\nmovaps  xmm6, [rsp+98h+var_18]                                         ; +0xec, 0x1800114ac\nlea     eax, [r8+2]                                                    ; +0xf4, 0x1800114b4\nmov     rdi, [rsp+98h+arg_0]                                           ; +0xf8, 0x1800114b8\nmovss   dword ptr [rsi+rax*4], xmm9                                    ; +0x100, 0x1800114c0\nlea     eax, [r8+3]                                                    ; +0x106, 0x1800114c6\nmovss   dword ptr [rsi+rax*4], xmm10                                   ; +0x10a, 0x1800114ca\ncall    ?use@CCGLProgram@cocos2d@@QEAAXXZ; cocos2d::CCGLProgram::use(void) ; +0x110, 0x1800114d0\nmov     rcx, cs:qword_1801B2358; this                                  ; +0x115, 0x1800114d5\ncall    ?setUniformsForBuiltins@CCGLProgram@cocos2d@@QEAAXXZ; cocos2d::CCGLProgram::setUniformsForBuiltins(void) ; +0x11c, 0x1800114dc\nmov     edx, cs:dword_1801ACB58; int                                   ; +0x121, 0x1800114e1\nlea     r8, flt_1801ACB60; float *                                     ; +0x127, 0x1800114e7\nmov     rcx, cs:qword_1801B2358; this                                  ; +0x12e, 0x1800114ee\nmov     r9d, 1; unsigned int                                           ; +0x135, 0x1800114f5\ncall    ?setUniformLocationWith4fv@CCGLProgram@cocos2d@@QEAAXHPEAMI@Z; cocos2d::CCGLProgram::setUniformLocationWith4fv(int,float *,uint) ; +0x13b, 0x1800114fb\nmov     ecx, 1; this                                                   ; +0x140, 0x180011500\ncall    ?ccGLEnableVertexAttribs@cocos2d@@YAXI@Z; cocos2d::ccGLEnableVertexAttribs(uint) ; +0x145, 0x180011505\nmov     rax, cs:__glewVertexAttribPointer                              ; +0x14a, 0x18001150a\nxor     r9d, r9d                                                       ; +0x151, 0x180011511\nmov     [rsp+98h+var_70], rsi                                          ; +0x154, 0x180011514\nmov     edx, 2                                                         ; +0x159, 0x180011519\nxor     ecx, ecx                                                       ; +0x15e, 0x18001151e\nmov     [rsp+98h+var_78], 0                                            ; +0x160, 0x180011520\nmov     r8d, 1406h                                                     ; +0x168, 0x180011528\nmov     r10, [rax]                                                     ; +0x16e, 0x18001152e\ncall    r10                                                            ; +0x171, 0x180011531\nlea     r8d, [r14+1]; count                                            ; +0x174, 0x180011534\nxor     edx, edx; first                                                ; +0x178, 0x180011538\nmov     ecx, 6; mode                                                   ; +0x17a, 0x18001153a\ncall    cs:glDrawArrays                                                ; +0x17f, 0x18001153f\nmov     rcx, rsi; Block                                                ; +0x185, 0x180011545\ncall    cs:__imp_free                                                  ; +0x188, 0x180011548\ninc     cs:?g_uNumberOfDraws@@3IA; uint g_uNumberOfDraws               ; +0x18e, 0x18001154e\nmovaps  xmm10, [rsp+98h+var_58]                                        ; +0x194, 0x180011554\nmovaps  xmm9, [rsp+98h+var_48]                                         ; +0x19a, 0x18001155a\nmovaps  xmm7, [rsp+98h+var_28]                                         ; +0x1a0, 0x180011560\nlea     r11, [rsp+98h+var_8]                                           ; +0x1a5, 0x180011565\nmov     rbx, [r11+18h]                                                 ; +0x1ad, 0x18001156d\nmov     rsi, [r11+20h]                                                 ; +0x1b1, 0x180011571\nmovaps  xmm8, xmmword ptr [r11-30h]                                    ; +0x1b5, 0x180011575\nmovaps  xmm11, xmmword ptr [r11-60h]                                   ; +0x1ba, 0x18001157a\nmov     rsp, r11                                                       ; +0x1bf, 0x18001157f\npop     r14                                                            ; +0x1c2, 0x180011582\nretn                                                                   ; +0x1c4, 0x180011584", "xrefs": ["<???> @ 0x18013b550", "<???> @ 0x18013b560", "<???> @ 0x18014cf68", "<???> @ 0x1801b832c"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "pc", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}