{"type": "func", "start": 6442522976, "end": 6442523160, "name": "cocos2d::ccDrawPoly", "pseudocode": "// \n// cocos2d::ccDrawPoly from 0x180011960 to 0x180011a18 (184 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x18014cf68\n// > <???> @ 0x1801b838c\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::ccDrawPoly(cocos2d *this, const struct cocos2d::CCPoint *a2, char a3)\n{\n  GLsizei v4; // esi\n  unsigned int v6; // edx\n  GLenum v7; // ecx\n\n  v4 = (int)a2;\n  cocos2d::ccDrawInit(this);\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, v6);\n  _glewVertexAttribPointer(0, 2, 5126, 0, 0, this);\n  v7 = 2;\n  if ( !a3 )\n    v7 = 3;\n  glDrawArrays(v7, 0, v4);\n  ++g_uNumberOfDraws;\n}", "assembly": "; \n; cocos2d::ccDrawPoly from 0x180011960 to 0x180011a18 (184 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x18014cf68\n; > <???> @ 0x1801b838c\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, 0x180011960\nmov     [rsp+arg_8], rsi                                               ; +0x5, 0x180011965\npush    rdi                                                            ; +0xa, 0x18001196a\nsub     rsp, 30h                                                       ; +0xb, 0x18001196b\nmovzx   edi, r8b                                                       ; +0xf, 0x18001196f\nmov     esi, edx                                                       ; +0x13, 0x180011973\nmov     rbx, rcx                                                       ; +0x15, 0x180011975\ncall    ?ccDrawInit@cocos2d@@YAXXZ_0; cocos2d::ccDrawInit(void)        ; +0x18, 0x180011978\nmov     rcx, cs:qword_1801B2358; this                                  ; +0x1d, 0x18001197d\ncall    ?use@CCGLProgram@cocos2d@@QEAAXXZ; cocos2d::CCGLProgram::use(void) ; +0x24, 0x180011984\nmov     rcx, cs:qword_1801B2358; this                                  ; +0x29, 0x180011989\ncall    ?setUniformsForBuiltins@CCGLProgram@cocos2d@@QEAAXXZ; cocos2d::CCGLProgram::setUniformsForBuiltins(void) ; +0x30, 0x180011990\nmov     edx, cs:dword_1801ACB58; int                                   ; +0x35, 0x180011995\nlea     r8, flt_1801ACB60; float *                                     ; +0x3b, 0x18001199b\nmov     rcx, cs:qword_1801B2358; this                                  ; +0x42, 0x1800119a2\nmov     r9d, 1; unsigned int                                           ; +0x49, 0x1800119a9\ncall    ?setUniformLocationWith4fv@CCGLProgram@cocos2d@@QEAAXHPEAMI@Z; cocos2d::CCGLProgram::setUniformLocationWith4fv(int,float *,uint) ; +0x4f, 0x1800119af\nmov     ecx, 1; this                                                   ; +0x54, 0x1800119b4\ncall    ?ccGLEnableVertexAttribs@cocos2d@@YAXI@Z; cocos2d::ccGLEnableVertexAttribs(uint) ; +0x59, 0x1800119b9\nmov     rax, cs:__glewVertexAttribPointer                              ; +0x5e, 0x1800119be\nxor     r9d, r9d                                                       ; +0x65, 0x1800119c5\nmov     [rsp+38h+var_10], rbx                                          ; +0x68, 0x1800119c8\nmov     edx, 2                                                         ; +0x6d, 0x1800119cd\nmov     r8d, 1406h                                                     ; +0x72, 0x1800119d2\nmov     [rsp+38h+var_18], 0                                            ; +0x78, 0x1800119d8\nxor     ecx, ecx                                                       ; +0x80, 0x1800119e0\nmov     r10, [rax]                                                     ; +0x82, 0x1800119e2\ncall    r10                                                            ; +0x85, 0x1800119e5\nxor     edx, edx; first                                                ; +0x88, 0x1800119e8\nmov     r8d, esi; count                                                ; +0x8a, 0x1800119ea\nmov     ecx, 2                                                         ; +0x8d, 0x1800119ed\ntest    dil, dil                                                       ; +0x92, 0x1800119f2\njnz     short loc_1800119FC                                            ; +0x95, 0x1800119f5\nmov     ecx, 3; mode                                                   ; +0x97, 0x1800119f7\ncall    cs:glDrawArrays                                                ; +0x9c, 0x1800119fc\ninc     cs:?g_uNumberOfDraws@@3IA; uint g_uNumberOfDraws               ; +0xa2, 0x180011a02\nmov     rbx, [rsp+38h+arg_0]                                           ; +0xa8, 0x180011a08\nmov     rsi, [rsp+38h+arg_8]                                           ; +0xad, 0x180011a0d\nadd     rsp, 30h                                                       ; +0xb2, 0x180011a12\npop     rdi                                                            ; +0xb6, 0x180011a16\nretn                                                                   ; +0xb7, 0x180011a17", "xrefs": ["<???> @ 0x18014cf68", "<???> @ 0x1801b838c"], "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"}