{"type": "func", "start": 6442522064, "end": 6442522275, "name": "cocos2d::ccDrawLine", "pseudocode": "// \n// cocos2d::ccDrawLine from 0x1800115d0 to 0x1800116a3 (211 bytes)\n// \n// 6 xrefs:\n// > cocos2d::ccDrawRect @ 0x180011ca2\n// > cocos2d::ccDrawRect @ 0x180011cdb\n// > cocos2d::ccDrawRect @ 0x180011d13\n// > cocos2d::ccDrawRect @ 0x180011d4c\n// > <???> @ 0x18014cf68\n// > <???> @ 0x1801b835c\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::ccDrawLine(\n        cocos2d *this,\n        const struct cocos2d::CCPoint *a2,\n        const struct cocos2d::CCPoint *a3)\n{\n  int v5; // xmm1_4\n  int v6; // xmm0_4\n  int v7; // xmm1_4\n  unsigned int v8; // edx\n  _DWORD v9[6]; // [rsp+30h] [rbp-18h] BYREF\n\n  cocos2d::ccDrawInit(this);\n  v5 = *((_DWORD *)this + 1);\n  v9[0] = *(_DWORD *)this;\n  v6 = *(_DWORD *)a2;\n  v9[1] = v5;\n  v7 = *((_DWORD *)a2 + 1);\n  v9[2] = v6;\n  v9[3] = v7;\n  cocos2d::CCGLProgram::use(qword_1801B2358);\n  cocos2d::CCGLProgram::setUniformsForBuiltins(qword_1801B2358);\n  cocos2d::CCGLProgram::setUniformLocationWith4fv(qword_1801B2358, dword_1801ACB58, &flt_1801ACB60, 1u);\n  cocos2d::ccGLEnableVertexAttribs((cocos2d *)1, v8);\n  _glewVertexAttribPointer(0, 2, 5126, 0, 0, v9);\n  glDrawArrays(1u, 0, 2);\n  ++g_uNumberOfDraws;\n}", "assembly": "; \n; cocos2d::ccDrawLine from 0x1800115d0 to 0x1800116a3 (211 bytes)\n; \n; 6 xrefs:\n; > cocos2d::ccDrawRect @ 0x180011ca2\n; > cocos2d::ccDrawRect @ 0x180011cdb\n; > cocos2d::ccDrawRect @ 0x180011d13\n; > cocos2d::ccDrawRect @ 0x180011d4c\n; > <???> @ 0x18014cf68\n; > <???> @ 0x1801b835c\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_0], rbx                                               ; +0x0, 0x1800115d0\npush    rdi                                                            ; +0x5, 0x1800115d5\nsub     rsp, 40h                                                       ; +0x6, 0x1800115d6\nmov     rdi, rdx                                                       ; +0xa, 0x1800115da\nmov     rbx, rcx                                                       ; +0xd, 0x1800115dd\ncall    ?ccDrawInit@cocos2d@@YAXXZ_0; cocos2d::ccDrawInit(void)        ; +0x10, 0x1800115e0\nmovss   xmm0, dword ptr [rbx]                                          ; +0x15, 0x1800115e5\nmovss   xmm1, dword ptr [rbx+4]                                        ; +0x19, 0x1800115e9\nmov     rcx, cs:qword_1801B2358; this                                  ; +0x1e, 0x1800115ee\nmovss   [rsp+48h+var_18], xmm0                                         ; +0x25, 0x1800115f5\nmovss   xmm0, dword ptr [rdi]                                          ; +0x2b, 0x1800115fb\nmovss   [rsp+48h+var_14], xmm1                                         ; +0x2f, 0x1800115ff\nmovss   xmm1, dword ptr [rdi+4]                                        ; +0x35, 0x180011605\nmovss   [rsp+48h+var_10], xmm0                                         ; +0x3a, 0x18001160a\nmovss   [rsp+48h+var_C], xmm1                                          ; +0x40, 0x180011610\ncall    ?use@CCGLProgram@cocos2d@@QEAAXXZ; cocos2d::CCGLProgram::use(void) ; +0x46, 0x180011616\nmov     rcx, cs:qword_1801B2358; this                                  ; +0x4b, 0x18001161b\ncall    ?setUniformsForBuiltins@CCGLProgram@cocos2d@@QEAAXXZ; cocos2d::CCGLProgram::setUniformsForBuiltins(void) ; +0x52, 0x180011622\nmov     edx, cs:dword_1801ACB58; int                                   ; +0x57, 0x180011627\nlea     r8, flt_1801ACB60; float *                                     ; +0x5d, 0x18001162d\nmov     rcx, cs:qword_1801B2358; this                                  ; +0x64, 0x180011634\nmov     r9d, 1; unsigned int                                           ; +0x6b, 0x18001163b\ncall    ?setUniformLocationWith4fv@CCGLProgram@cocos2d@@QEAAXHPEAMI@Z; cocos2d::CCGLProgram::setUniformLocationWith4fv(int,float *,uint) ; +0x71, 0x180011641\nmov     ecx, 1; this                                                   ; +0x76, 0x180011646\ncall    ?ccGLEnableVertexAttribs@cocos2d@@YAXI@Z; cocos2d::ccGLEnableVertexAttribs(uint) ; +0x7b, 0x18001164b\nmov     rax, cs:__glewVertexAttribPointer                              ; +0x80, 0x180011650\nxor     r9d, r9d                                                       ; +0x87, 0x180011657\nmov     edx, 2                                                         ; +0x8a, 0x18001165a\nmov     r8d, 1406h                                                     ; +0x8f, 0x18001165f\nxor     ecx, ecx                                                       ; +0x95, 0x180011665\nmov     r10, [rax]                                                     ; +0x97, 0x180011667\nlea     rax, [rsp+48h+var_18]                                          ; +0x9a, 0x18001166a\nmov     [rsp+48h+var_20], rax                                          ; +0x9f, 0x18001166f\nmov     [rsp+48h+var_28], 0                                            ; +0xa4, 0x180011674\ncall    r10                                                            ; +0xac, 0x18001167c\nxor     edx, edx; first                                                ; +0xaf, 0x18001167f\nmov     r8d, 2; count                                                  ; +0xb1, 0x180011681\nmov     ecx, 1; mode                                                   ; +0xb7, 0x180011687\ncall    cs:glDrawArrays                                                ; +0xbc, 0x18001168c\ninc     cs:?g_uNumberOfDraws@@3IA; uint g_uNumberOfDraws               ; +0xc2, 0x180011692\nmov     rbx, [rsp+48h+arg_0]                                           ; +0xc8, 0x180011698\nadd     rsp, 40h                                                       ; +0xcd, 0x18001169d\npop     rdi                                                            ; +0xd1, 0x1800116a1\nretn                                                                   ; +0xd2, 0x1800116a2", "xrefs": ["cocos2d::ccDrawRect @ 0x180011ca2", "cocos2d::ccDrawRect @ 0x180011cdb", "cocos2d::ccDrawRect @ 0x180011d13", "cocos2d::ccDrawRect @ 0x180011d4c", "<???> @ 0x18014cf68", "<???> @ 0x1801b835c"], "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"}