{"type": "func", "start": 6442523168, "end": 6442523716, "name": "cocos2d::ccDrawQuadBezier", "pseudocode": "// \n// cocos2d::ccDrawQuadBezier from 0x180011a20 to 0x180011c44 (548 bytes)\n// \n// 4 xrefs:\n// > <???> @ 0x18013b598\n// > <???> @ 0x18013b5dc\n// > <???> @ 0x18014cf68\n// > <???> @ 0x1801b8398\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::ccDrawQuadBezier(\n        cocos2d *this,\n        const struct cocos2d::CCPoint *a2,\n        const struct cocos2d::CCPoint *a3,\n        const struct cocos2d::CCPoint *a4)\n{\n  unsigned int v7; // esi\n  GLsizei v8; // r13d\n  __int64 v9; // rax\n  _DWORD *v10; // rdi\n  float v11; // xmm7_4\n  __int64 v12; // rbx\n  __int64 v13; // rbp\n  float v14; // xmm0_4\n  float *v15; // rsi\n  float v16; // xmm8_4\n  float v17; // xmm0_4\n  float v18; // xmm3_4\n  float v19; // xmm2_4\n  float v20; // xmm4_4\n  float v21; // xmm6_4\n  float v22; // xmm0_4\n  cocos2d::CCGLProgram *v23; // rcx\n  unsigned int v24; // edx\n\n  v7 = (unsigned int)a4;\n  cocos2d::ccDrawInit(this);\n  v8 = v7 + 1;\n  v9 = sub_1800E4C6C(saturated_mul(v7 + 1, 8u));\n  v10 = (_DWORD *)v9;\n  v11 = 0.0;\n  v12 = v7;\n  if ( v7 )\n  {\n    v13 = v7;\n    v14 = (float)(int)v7;\n    v15 = (float *)v9;\n    v16 = 1.0 / v14;\n    do\n    {\n      v17 = powf(1.0 - v11, 2.0);\n      v18 = v11 * v11;\n      v19 = v17 * *(float *)this;\n      v20 = v17;\n      v21 = (float)((float)(1.0 - v11) + (float)(1.0 - v11)) * v11;\n      v22 = (float)(v11 * v11) * *(float *)a3;\n      v11 = v11 + v16;\n      *v15 = (float)(v19 + (float)(v21 * *(float *)a2)) + v22;\n      v15[1] = (float)((float)(v21 * *((float *)a2 + 1)) + (float)(v20 * *((float *)this + 1)))\n             + (float)(v18 * *((float *)a3 + 1));\n      v15 += 2;\n      --v13;\n    }\n    while ( v13 );\n  }\n  v23 = qword_1801B2358;\n  v10[2 * v12] = *(_DWORD *)a3;\n  v10[2 * v12 + 1] = *((_DWORD *)a3 + 1);\n  cocos2d::CCGLProgram::use(v23);\n  cocos2d::CCGLProgram::setUniformsForBuiltins(qword_1801B2358);\n  cocos2d::CCGLProgram::setUniformLocationWith4fv(qword_1801B2358, dword_1801ACB58, &flt_1801ACB60, 1u);\n  cocos2d::ccGLEnableVertexAttribs((cocos2d *)1, v24);\n  _glewVertexAttribPointer(0, 2, 5126, 0, 0, v10);\n  glDrawArrays(3u, 0, v8);\n  if ( v10 )\n    j_j_free_0(v10);\n  ++g_uNumberOfDraws;\n}", "assembly": "; \n; cocos2d::ccDrawQuadBezier from 0x180011a20 to 0x180011c44 (548 bytes)\n; \n; 4 xrefs:\n; > <???> @ 0x18013b598\n; > <???> @ 0x18013b5dc\n; > <???> @ 0x18014cf68\n; > <???> @ 0x1801b8398\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     rax, rsp                                                       ; +0x0, 0x180011a20\npush    rdi                                                            ; +0x3, 0x180011a23\nsub     rsp, 0A0h                                                      ; +0x4, 0x180011a24\nmov     [rax+8], rbx                                                   ; +0xb, 0x180011a2b\nmov     [rax+18h], rsi                                                 ; +0xf, 0x180011a2f\nmov     [rax-10h], r12                                                 ; +0x13, 0x180011a33\nmov     r12, rcx                                                       ; +0x17, 0x180011a37\nmov     [rax-18h], r13                                                 ; +0x1a, 0x180011a3a\nmov     [rax-20h], r14                                                 ; +0x1e, 0x180011a3e\nmov     r14, r8                                                        ; +0x22, 0x180011a42\nmov     [rax-28h], r15                                                 ; +0x25, 0x180011a45\nmov     r15, rdx                                                       ; +0x29, 0x180011a49\nmovaps  xmmword ptr [rax-48h], xmm7                                    ; +0x2c, 0x180011a4c\nmov     esi, r9d                                                       ; +0x30, 0x180011a50\ncall    ?ccDrawInit@cocos2d@@YAXXZ_0; cocos2d::ccDrawInit(void)        ; +0x33, 0x180011a53\nmov     rcx, 0FFFFFFFFFFFFFFFFh                                        ; +0x38, 0x180011a58\nlea     r13d, [rsi+1]                                                  ; +0x3f, 0x180011a5f\nmov     r10d, r13d                                                     ; +0x43, 0x180011a63\nmov     eax, 8                                                         ; +0x46, 0x180011a66\nmul     r10                                                            ; +0x4b, 0x180011a6b\ncmovb   rax, rcx                                                       ; +0x4e, 0x180011a6e\nmov     rcx, rax; Size                                                 ; +0x52, 0x180011a72\ncall    sub_1800E4C6C                                                  ; +0x55, 0x180011a75\nmov     rdi, rax                                                       ; +0x5a, 0x180011a7a\nxorps   xmm7, xmm7                                                     ; +0x5d, 0x180011a7d\nmov     ebx, esi                                                       ; +0x60, 0x180011a80\ntest    esi, esi                                                       ; +0x62, 0x180011a82\njz      loc_180011B6A                                                  ; +0x64, 0x180011a84\nmov     [rsp+0A8h+arg_8], rbp                                          ; +0x6a, 0x180011a8a\nxorps   xmm0, xmm0                                                     ; +0x72, 0x180011a92\nmovaps  [rsp+0A8h+var_38], xmm6                                        ; +0x75, 0x180011a95\nmov     ebp, ebx                                                       ; +0x7a, 0x180011a9a\nmovaps  [rsp+0A8h+var_58], xmm8                                        ; +0x7c, 0x180011a9c\ncvtsi2ss xmm0, rsi                                                     ; +0x82, 0x180011aa2\nmov     rsi, rax                                                       ; +0x87, 0x180011aa7\nmovaps  [rsp+0A8h+var_68], xmm9                                        ; +0x8a, 0x180011aaa\nmovss   xmm9, cs:flt_1800EC208                                         ; +0x90, 0x180011ab0\nmovaps  xmm8, xmm9                                                     ; +0x99, 0x180011ab9\nmovaps  [rsp+0A8h+var_78], xmm10                                       ; +0x9d, 0x180011abd\nmovss   xmm10, cs:X                                                    ; +0xa3, 0x180011ac3\ndivss   xmm8, xmm0                                                     ; +0xac, 0x180011acc\nmovaps  xmm6, xmm9                                                     ; +0xb1, 0x180011ad1\nmovaps  xmm1, xmm10; Y                                                 ; +0xb5, 0x180011ad5\nsubss   xmm6, xmm7                                                     ; +0xb9, 0x180011ad9\nmovaps  xmm0, xmm6; X                                                  ; +0xbd, 0x180011add\ncall    powf                                                           ; +0xc0, 0x180011ae0\naddss   xmm6, xmm6                                                     ; +0xc5, 0x180011ae5\nmovaps  xmm3, xmm7                                                     ; +0xc9, 0x180011ae9\nmovaps  xmm2, xmm0                                                     ; +0xcc, 0x180011aec\nmulss   xmm3, xmm7                                                     ; +0xcf, 0x180011aef\nmulss   xmm2, dword ptr [r12]                                          ; +0xd3, 0x180011af3\nmovaps  xmm4, xmm0                                                     ; +0xd9, 0x180011af9\nmulss   xmm6, xmm7                                                     ; +0xdc, 0x180011afc\nmovaps  xmm0, xmm3                                                     ; +0xe0, 0x180011b00\nmulss   xmm0, dword ptr [r14]                                          ; +0xe3, 0x180011b03\naddss   xmm7, xmm8                                                     ; +0xe8, 0x180011b08\nmovaps  xmm1, xmm6                                                     ; +0xed, 0x180011b0d\nmulss   xmm1, dword ptr [r15]                                          ; +0xf0, 0x180011b10\naddss   xmm2, xmm1                                                     ; +0xf5, 0x180011b15\naddss   xmm2, xmm0                                                     ; +0xf9, 0x180011b19\nmovss   dword ptr [rsi], xmm2                                          ; +0xfd, 0x180011b1d\nmulss   xmm6, dword ptr [r15+4]                                        ; +0x101, 0x180011b21\nmulss   xmm4, dword ptr [r12+4]                                        ; +0x107, 0x180011b27\nmulss   xmm3, dword ptr [r14+4]                                        ; +0x10e, 0x180011b2e\naddss   xmm6, xmm4                                                     ; +0x114, 0x180011b34\naddss   xmm6, xmm3                                                     ; +0x118, 0x180011b38\nmovss   dword ptr [rsi+4], xmm6                                        ; +0x11c, 0x180011b3c\nadd     rsi, 8                                                         ; +0x121, 0x180011b41\nsub     rbp, 1                                                         ; +0x125, 0x180011b45\njnz     short loc_180011AD1                                            ; +0x129, 0x180011b49\nmovaps  xmm10, [rsp+0A8h+var_78]                                       ; +0x12b, 0x180011b4b\nmovaps  xmm9, [rsp+0A8h+var_68]                                        ; +0x131, 0x180011b51\nmovaps  xmm8, [rsp+0A8h+var_58]                                        ; +0x137, 0x180011b57\nmovaps  xmm6, [rsp+0A8h+var_38]                                        ; +0x13d, 0x180011b5d\nmov     rbp, [rsp+0A8h+arg_8]                                          ; +0x142, 0x180011b62\nmov     eax, [r14]                                                     ; +0x14a, 0x180011b6a\nmov     rcx, cs:qword_1801B2358; this                                  ; +0x14d, 0x180011b6d\nmov     [rdi+rbx*8], eax                                               ; +0x154, 0x180011b74\nmov     eax, [r14+4]                                                   ; +0x157, 0x180011b77\nmov     [rdi+rbx*8+4], eax                                             ; +0x15b, 0x180011b7b\ncall    ?use@CCGLProgram@cocos2d@@QEAAXXZ; cocos2d::CCGLProgram::use(void) ; +0x15f, 0x180011b7f\nmov     rcx, cs:qword_1801B2358; this                                  ; +0x164, 0x180011b84\ncall    ?setUniformsForBuiltins@CCGLProgram@cocos2d@@QEAAXXZ; cocos2d::CCGLProgram::setUniformsForBuiltins(void) ; +0x16b, 0x180011b8b\nmov     edx, cs:dword_1801ACB58; int                                   ; +0x170, 0x180011b90\nlea     r8, flt_1801ACB60; float *                                     ; +0x176, 0x180011b96\nmov     rcx, cs:qword_1801B2358; this                                  ; +0x17d, 0x180011b9d\nmov     r9d, 1; unsigned int                                           ; +0x184, 0x180011ba4\ncall    ?setUniformLocationWith4fv@CCGLProgram@cocos2d@@QEAAXHPEAMI@Z; cocos2d::CCGLProgram::setUniformLocationWith4fv(int,float *,uint) ; +0x18a, 0x180011baa\nmov     ecx, 1; this                                                   ; +0x18f, 0x180011baf\ncall    ?ccGLEnableVertexAttribs@cocos2d@@YAXI@Z; cocos2d::ccGLEnableVertexAttribs(uint) ; +0x194, 0x180011bb4\nmov     rax, cs:__glewVertexAttribPointer                              ; +0x199, 0x180011bb9\nxor     r9d, r9d                                                       ; +0x1a0, 0x180011bc0\nmov     [rsp+0A8h+var_80], rdi                                         ; +0x1a3, 0x180011bc3\nmov     edx, 2                                                         ; +0x1a8, 0x180011bc8\nxor     ecx, ecx                                                       ; +0x1ad, 0x180011bcd\nmov     [rsp+0A8h+var_88], 0                                           ; +0x1af, 0x180011bcf\nmov     r8d, 1406h                                                     ; +0x1b7, 0x180011bd7\nmov     r10, [rax]                                                     ; +0x1bd, 0x180011bdd\ncall    r10                                                            ; +0x1c0, 0x180011be0\nmov     r8d, r13d; count                                               ; +0x1c3, 0x180011be3\nxor     edx, edx; first                                                ; +0x1c6, 0x180011be6\nmov     ecx, 3; mode                                                   ; +0x1c8, 0x180011be8\ncall    cs:glDrawArrays                                                ; +0x1cd, 0x180011bed\nmovaps  xmm7, [rsp+0A8h+var_48]                                        ; +0x1d3, 0x180011bf3\nmov     r15, [rsp+0A8h+var_28]                                         ; +0x1d8, 0x180011bf8\nmov     r14, [rsp+0A8h+var_20]                                         ; +0x1e0, 0x180011c00\nmov     r13, [rsp+0A8h+var_18]                                         ; +0x1e8, 0x180011c08\nmov     r12, [rsp+0A8h+var_10]                                         ; +0x1f0, 0x180011c10\nmov     rsi, [rsp+0A8h+arg_10]                                         ; +0x1f8, 0x180011c18\nmov     rbx, [rsp+0A8h+arg_0]                                          ; +0x200, 0x180011c20\ntest    rdi, rdi                                                       ; +0x208, 0x180011c28\njz      short loc_180011C35                                            ; +0x20b, 0x180011c2b\nmov     rcx, rdi; Block                                                ; +0x20d, 0x180011c2d\ncall    j_j_free_0                                                     ; +0x210, 0x180011c30\ninc     cs:?g_uNumberOfDraws@@3IA; uint g_uNumberOfDraws               ; +0x215, 0x180011c35\nadd     rsp, 0A0h                                                      ; +0x21b, 0x180011c3b\npop     rdi                                                            ; +0x222, 0x180011c42\nretn                                                                   ; +0x223, 0x180011c43", "xrefs": ["<???> @ 0x18013b598", "<???> @ 0x18013b5dc", "<???> @ 0x18014cf68", "<???> @ 0x1801b8398"], "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"}