{"type": "func", "start": 6442521856, "end": 6442522089, "name": "cocos2d::ccDrawLines", "pseudocode": "// \n// cocos2d::ccDrawLines from 0x180011500 to 0x1800115e9 (233 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x1801438a8\n// > <???> @ 0x1801ae2b4\n// \n// This function is hookable on this platform!\n// \n// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings\n// \n\nvoid __fastcall cocos2d::ccDrawLines(cocos2d *this, const struct cocos2d::CCPoint *a2)\n{\n  unsigned __int64 v2; // rdi\n  unsigned int v3; // edx\n  void *v4; // rsi\n\n  v2 = (unsigned int)a2;\n  cocos2d::ccDrawInit(this);\n  cocos2d::ccGLEnableVertexAttribs((cocos2d *)1, v3);\n  cocos2d::CCGLProgram::use((cocos2d::CCGLProgram *)qword_1801A8338);\n  cocos2d::CCGLProgram::setUniformsForBuiltins((cocos2d::CCGLProgram *)qword_1801A8338);\n  cocos2d::CCGLProgram::setUniformLocationWith4fv(\n    (cocos2d::CCGLProgram *)qword_1801A8338,\n    dword_1801A2B58,\n    &flt_1801A2B60,\n    1u);\n  cocos2d::CCGLProgram::setUniformLocationWith1f(\n    (cocos2d::CCGLProgram *)qword_1801A8338,\n    dword_1801A2B5C,\n    flt_1801A2B70);\n  v4 = operator new(saturated_mul(v2, 8u));\n  _glewVertexAttribPointer(0, 2, 5126);\n  glDrawArrays(1u, 0, v2);\n  if ( v4 )\n    j_j_free_0(v4);\n  ++g_uNumberOfDraws;\n}", "assembly": "; \n; cocos2d::ccDrawLines from 0x180011500 to 0x1800115e9 (233 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x1801438a8\n; > <???> @ 0x1801ae2b4\n; \n; This function is hookable on this platform!\n; \n; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA\n; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings\n; \n\nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x180011500\nmov     [rsp+arg_8], rsi                                               ; +0x5, 0x180011505\npush    rdi                                                            ; +0xa, 0x18001150a\nsub     rsp, 30h                                                       ; +0xb, 0x18001150b\nmov     edi, edx                                                       ; +0xf, 0x18001150f\nmov     rbx, rcx                                                       ; +0x11, 0x180011511\ncall    ?ccDrawInit@cocos2d@@YAXXZ_0; cocos2d::ccDrawInit(void)        ; +0x14, 0x180011514\nmov     ecx, 1; this                                                   ; +0x19, 0x180011519\ncall    ?ccGLEnableVertexAttribs@cocos2d@@YAXI@Z; cocos2d::ccGLEnableVertexAttribs(uint) ; +0x1e, 0x18001151e\nmov     rcx, cs:qword_1801A8338; this                                  ; +0x23, 0x180011523\ncall    ?use@CCGLProgram@cocos2d@@QEAAXXZ; cocos2d::CCGLProgram::use(void) ; +0x2a, 0x18001152a\nmov     rcx, cs:qword_1801A8338; this                                  ; +0x2f, 0x18001152f\ncall    ?setUniformsForBuiltins@CCGLProgram@cocos2d@@QEAAXXZ; cocos2d::CCGLProgram::setUniformsForBuiltins(void) ; +0x36, 0x180011536\nmov     edx, cs:dword_1801A2B58; int                                   ; +0x3b, 0x18001153b\nlea     r8, flt_1801A2B60; float *                                     ; +0x41, 0x180011541\nmov     rcx, cs:qword_1801A8338; this                                  ; +0x48, 0x180011548\nmov     r9d, 1; unsigned int                                           ; +0x4f, 0x18001154f\ncall    ?setUniformLocationWith4fv@CCGLProgram@cocos2d@@QEAAXHPEAMI@Z; cocos2d::CCGLProgram::setUniformLocationWith4fv(int,float *,uint) ; +0x55, 0x180011555\nmovss   xmm2, cs:flt_1801A2B70; float                                  ; +0x5a, 0x18001155a\nmov     edx, cs:dword_1801A2B5C; int                                   ; +0x62, 0x180011562\nmov     rcx, cs:qword_1801A8338; this                                  ; +0x68, 0x180011568\ncall    ?setUniformLocationWith1f@CCGLProgram@cocos2d@@QEAAXHM@Z; cocos2d::CCGLProgram::setUniformLocationWith1f(int,float) ; +0x6f, 0x18001156f\nmov     eax, 8                                                         ; +0x74, 0x180011574\nmul     rdi                                                            ; +0x79, 0x180011579\nmov     rdx, 0FFFFFFFFFFFFFFFFh                                        ; +0x7c, 0x18001157c\ncmovo   rax, rdx                                                       ; +0x83, 0x180011583\nmov     rcx, rax; Size                                                 ; +0x87, 0x180011587\ncall    j_??2@YAPEAX_K@Z; operator new(unsigned __int64)               ; +0x8a, 0x18001158a\nmov     r10, cs:__glewVertexAttribPointer                              ; +0x8f, 0x18001158f\nxor     r9d, r9d                                                       ; +0x96, 0x180011596\nmov     [rsp+38h+var_10], rbx                                          ; +0x99, 0x180011599\nxor     ecx, ecx                                                       ; +0x9e, 0x18001159e\nmov     r8d, 1406h                                                     ; +0xa0, 0x1800115a0\nmov     [rsp+38h+var_18], 0                                            ; +0xa6, 0x1800115a6\nmov     rsi, rax                                                       ; +0xae, 0x1800115ae\nlea     edx, [r9+2]                                                    ; +0xb1, 0x1800115b1\ncall    qword ptr [r10]                                                ; +0xb5, 0x1800115b5\nxor     edx, edx; first                                                ; +0xb8, 0x1800115b8\nmov     r8d, edi; count                                                ; +0xba, 0x1800115ba\nlea     ecx, [rdx+1]; mode                                             ; +0xbd, 0x1800115bd\ncall    cs:glDrawArrays                                                ; +0xc0, 0x1800115c0\ntest    rsi, rsi                                                       ; +0xc6, 0x1800115c6\njz      short loc_1800115D3                                            ; +0xc9, 0x1800115c9\nmov     rcx, rsi; Block                                                ; +0xcb, 0x1800115cb\ncall    j_j_free_0                                                     ; +0xce, 0x1800115ce\ninc     cs:?g_uNumberOfDraws@@3IA; uint g_uNumberOfDraws               ; +0xd3, 0x1800115d3\nmov     rbx, [rsp+38h+arg_0]                                           ; +0xd9, 0x1800115d9\nmov     rsi, [rsp+38h+arg_8]                                           ; +0xde, 0x1800115de\nadd     rsp, 30h                                                       ; +0xe3, 0x1800115e3\npop     rdi                                                            ; +0xe7, 0x1800115e7\nretn                                                                   ; +0xe8, 0x1800115e8", "xrefs": ["<???> @ 0x1801438a8", "<???> @ 0x1801ae2b4"], "is_objc": false, "is_arm32": false, "is_arm64": false, "bida_info": "8.0.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings"}