{"type": "func", "start": 6442521648, "end": 6442521850, "name": "cocos2d::ccDrawLine", "pseudocode": "// \n// cocos2d::ccDrawLine from 0x180011430 to 0x1800114fa (202 bytes)\n// \n// 6 xrefs:\n// > cocos2d::ccDrawRect @ 0x180011b14\n// > cocos2d::ccDrawRect @ 0x180011b48\n// > cocos2d::ccDrawRect @ 0x180011b7c\n// > cocos2d::ccDrawRect @ 0x180011bb0\n// > <???> @ 0x1801438a8\n// > <???> @ 0x1801ae2a8\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::ccDrawLine(\n        cocos2d *this,\n        const struct cocos2d::CCPoint *a2,\n        const struct cocos2d::CCPoint *a3)\n{\n  unsigned int v3; // edx\n\n  cocos2d::ccDrawInit(this);\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::ccGLEnableVertexAttribs((cocos2d *)1, v3);\n  _glewVertexAttribPointer(0, 2, 5126);\n  glDrawArrays(1u, 0, 2);\n  ++g_uNumberOfDraws;\n}", "assembly": "; \n; cocos2d::ccDrawLine from 0x180011430 to 0x1800114fa (202 bytes)\n; \n; 6 xrefs:\n; > cocos2d::ccDrawRect @ 0x180011b14\n; > cocos2d::ccDrawRect @ 0x180011b48\n; > cocos2d::ccDrawRect @ 0x180011b7c\n; > cocos2d::ccDrawRect @ 0x180011bb0\n; > <???> @ 0x1801438a8\n; > <???> @ 0x1801ae2a8\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, 0x180011430\npush    rdi                                                            ; +0x5, 0x180011435\nsub     rsp, 40h                                                       ; +0x6, 0x180011436\nmov     rdi, rdx                                                       ; +0xa, 0x18001143a\nmov     rbx, rcx                                                       ; +0xd, 0x18001143d\ncall    ?ccDrawInit@cocos2d@@YAXXZ_0; cocos2d::ccDrawInit(void)        ; +0x10, 0x180011440\nmovss   xmm0, dword ptr [rbx]                                          ; +0x15, 0x180011445\nmovss   xmm1, dword ptr [rbx+4]                                        ; +0x19, 0x180011449\nmov     rcx, cs:qword_1801A8338; this                                  ; +0x1e, 0x18001144e\nmovss   [rsp+48h+var_18], xmm0                                         ; +0x25, 0x180011455\nmovss   xmm0, dword ptr [rdi]                                          ; +0x2b, 0x18001145b\nmovss   [rsp+48h+var_14], xmm1                                         ; +0x2f, 0x18001145f\nmovss   xmm1, dword ptr [rdi+4]                                        ; +0x35, 0x180011465\nmovss   [rsp+48h+var_10], xmm0                                         ; +0x3a, 0x18001146a\nmovss   [rsp+48h+var_C], xmm1                                          ; +0x40, 0x180011470\ncall    ?use@CCGLProgram@cocos2d@@QEAAXXZ; cocos2d::CCGLProgram::use(void) ; +0x46, 0x180011476\nmov     rcx, cs:qword_1801A8338; this                                  ; +0x4b, 0x18001147b\ncall    ?setUniformsForBuiltins@CCGLProgram@cocos2d@@QEAAXXZ; cocos2d::CCGLProgram::setUniformsForBuiltins(void) ; +0x52, 0x180011482\nmov     edx, cs:dword_1801A2B58; int                                   ; +0x57, 0x180011487\nlea     r8, flt_1801A2B60; float *                                     ; +0x5d, 0x18001148d\nmov     rcx, cs:qword_1801A8338; this                                  ; +0x64, 0x180011494\nmov     r9d, 1; unsigned int                                           ; +0x6b, 0x18001149b\ncall    ?setUniformLocationWith4fv@CCGLProgram@cocos2d@@QEAAXHPEAMI@Z; cocos2d::CCGLProgram::setUniformLocationWith4fv(int,float *,uint) ; +0x71, 0x1800114a1\nmov     ecx, 1; this                                                   ; +0x76, 0x1800114a6\ncall    ?ccGLEnableVertexAttribs@cocos2d@@YAXI@Z; cocos2d::ccGLEnableVertexAttribs(uint) ; +0x7b, 0x1800114ab\nlea     rax, [rsp+48h+var_18]                                          ; +0x80, 0x1800114b0\nxor     r9d, r9d                                                       ; +0x85, 0x1800114b5\nmov     [rsp+48h+var_20], rax                                          ; +0x88, 0x1800114b8\nmov     r8d, 1406h                                                     ; +0x8d, 0x1800114bd\nmov     rax, cs:__glewVertexAttribPointer                              ; +0x93, 0x1800114c3\nxor     ecx, ecx                                                       ; +0x9a, 0x1800114ca\nmov     [rsp+48h+var_28], 0                                            ; +0x9c, 0x1800114cc\nlea     edx, [r9+2]                                                    ; +0xa4, 0x1800114d4\ncall    qword ptr [rax]                                                ; +0xa8, 0x1800114d8\nxor     edx, edx; first                                                ; +0xaa, 0x1800114da\nlea     r8d, [rdx+2]; count                                            ; +0xac, 0x1800114dc\nlea     ecx, [rdx+1]; mode                                             ; +0xb0, 0x1800114e0\ncall    cs:glDrawArrays                                                ; +0xb3, 0x1800114e3\ninc     cs:?g_uNumberOfDraws@@3IA; uint g_uNumberOfDraws               ; +0xb9, 0x1800114e9\nmov     rbx, [rsp+48h+arg_0]                                           ; +0xbf, 0x1800114ef\nadd     rsp, 40h                                                       ; +0xc4, 0x1800114f4\npop     rdi                                                            ; +0xc8, 0x1800114f8\nretn                                                                   ; +0xc9, 0x1800114f9", "xrefs": ["cocos2d::ccDrawRect @ 0x180011b14", "cocos2d::ccDrawRect @ 0x180011b48", "cocos2d::ccDrawRect @ 0x180011b7c", "cocos2d::ccDrawRect @ 0x180011bb0", "<???> @ 0x1801438a8", "<???> @ 0x1801ae2a8"], "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"}