{"type": "func", "start": 6442524016, "end": 6442524213, "name": "cocos2d::ccDrawSolidPoly", "pseudocode": "// \n// cocos2d::ccDrawSolidPoly from 0x180011d70 to 0x180011e35 (197 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x18014cf68\n// > <???> @ 0x1801b83e0\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::ccDrawSolidPoly(cocos2d *a1, unsigned int a2, float *a3)\n{\n  unsigned __int64 v4; // rsi\n  unsigned int v6; // edx\n  void *v7; // rbx\n\n  v4 = a2;\n  cocos2d::ccDrawInit(a1);\n  cocos2d::CCGLProgram::use(qword_1801B2358);\n  cocos2d::CCGLProgram::setUniformsForBuiltins(qword_1801B2358);\n  cocos2d::CCGLProgram::setUniformLocationWith4fv(qword_1801B2358, dword_1801ACB58, a3, 1u);\n  cocos2d::ccGLEnableVertexAttribs((cocos2d *)1, v6);\n  v7 = (void *)sub_1800E4C6C(saturated_mul(v4, 8u));\n  _glewVertexAttribPointer(0, 2, 5126, 0, 0, a1);\n  glDrawArrays(6u, 0, v4);\n  if ( v7 )\n    j_j_free_0(v7);\n  ++g_uNumberOfDraws;\n}", "assembly": "; \n; cocos2d::ccDrawSolidPoly from 0x180011d70 to 0x180011e35 (197 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x18014cf68\n; > <???> @ 0x1801b83e0\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; \npush    rbx                                                            ; +0x0, 0x180011d70\npush    rsi                                                            ; +0x2, 0x180011d72\npush    rdi                                                            ; +0x3, 0x180011d73\nsub     rsp, 30h                                                       ; +0x4, 0x180011d74\nmov     rbx, r8                                                        ; +0x8, 0x180011d78\nmov     esi, edx                                                       ; +0xb, 0x180011d7b\nmov     rdi, rcx                                                       ; +0xd, 0x180011d7d\ncall    ?ccDrawInit@cocos2d@@YAXXZ_0; cocos2d::ccDrawInit(void)        ; +0x10, 0x180011d80\nmov     rcx, cs:qword_1801B2358; this                                  ; +0x15, 0x180011d85\ncall    ?use@CCGLProgram@cocos2d@@QEAAXXZ; cocos2d::CCGLProgram::use(void) ; +0x1c, 0x180011d8c\nmov     rcx, cs:qword_1801B2358; this                                  ; +0x21, 0x180011d91\ncall    ?setUniformsForBuiltins@CCGLProgram@cocos2d@@QEAAXXZ; cocos2d::CCGLProgram::setUniformsForBuiltins(void) ; +0x28, 0x180011d98\nmov     edx, cs:dword_1801ACB58; int                                   ; +0x2d, 0x180011d9d\nmov     r9d, 1; unsigned int                                           ; +0x33, 0x180011da3\nmov     rcx, cs:qword_1801B2358; this                                  ; +0x39, 0x180011da9\nmov     r8, rbx; float *                                               ; +0x40, 0x180011db0\ncall    ?setUniformLocationWith4fv@CCGLProgram@cocos2d@@QEAAXHPEAMI@Z; cocos2d::CCGLProgram::setUniformLocationWith4fv(int,float *,uint) ; +0x43, 0x180011db3\nmov     ecx, 1; this                                                   ; +0x48, 0x180011db8\ncall    ?ccGLEnableVertexAttribs@cocos2d@@YAXI@Z; cocos2d::ccGLEnableVertexAttribs(uint) ; +0x4d, 0x180011dbd\nmov     rcx, 0FFFFFFFFFFFFFFFFh                                        ; +0x52, 0x180011dc2\nmov     eax, 8                                                         ; +0x59, 0x180011dc9\nmul     rsi                                                            ; +0x5e, 0x180011dce\ncmovb   rax, rcx                                                       ; +0x61, 0x180011dd1\nmov     rcx, rax; Size                                                 ; +0x65, 0x180011dd5\ncall    sub_1800E4C6C                                                  ; +0x68, 0x180011dd8\nmov     rcx, cs:__glewVertexAttribPointer                              ; +0x6d, 0x180011ddd\nxor     r9d, r9d                                                       ; +0x74, 0x180011de4\nmov     [rsp+48h+var_20], rdi                                          ; +0x77, 0x180011de7\nmov     edx, 2                                                         ; +0x7c, 0x180011dec\nmov     r8d, 1406h                                                     ; +0x81, 0x180011df1\nmov     [rsp+48h+var_28], 0                                            ; +0x87, 0x180011df7\nmov     rbx, rax                                                       ; +0x8f, 0x180011dff\nmov     r10, [rcx]                                                     ; +0x92, 0x180011e02\nxor     ecx, ecx                                                       ; +0x95, 0x180011e05\ncall    r10                                                            ; +0x97, 0x180011e07\nmov     r8d, esi; count                                                ; +0x9a, 0x180011e0a\nxor     edx, edx; first                                                ; +0x9d, 0x180011e0d\nmov     ecx, 6; mode                                                   ; +0x9f, 0x180011e0f\ncall    cs:glDrawArrays                                                ; +0xa4, 0x180011e14\ntest    rbx, rbx                                                       ; +0xaa, 0x180011e1a\njz      short loc_180011E27                                            ; +0xad, 0x180011e1d\nmov     rcx, rbx; Block                                                ; +0xaf, 0x180011e1f\ncall    j_j_free_0                                                     ; +0xb2, 0x180011e22\ninc     cs:?g_uNumberOfDraws@@3IA; uint g_uNumberOfDraws               ; +0xb7, 0x180011e27\nadd     rsp, 30h                                                       ; +0xbd, 0x180011e2d\npop     rdi                                                            ; +0xc1, 0x180011e31\npop     rsi                                                            ; +0xc2, 0x180011e32\npop     rbx                                                            ; +0xc3, 0x180011e33\nretn                                                                   ; +0xc4, 0x180011e34", "xrefs": ["<???> @ 0x18014cf68", "<???> @ 0x1801b83e0"], "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"}