{"type": "func", "start": 6442523600, "end": 6442523791, "name": "cocos2d::ccDrawSolidPoly", "pseudocode": "// \n// cocos2d::ccDrawSolidPoly from 0x180011bd0 to 0x180011c8f (191 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x1801438a8\n// > <???> @ 0x1801ae32c\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::ccDrawSolidPoly(struct cocos2d::CCPoint *a1, unsigned int a2, struct cocos2d::_ccColor4F *a3)\n{\n  unsigned __int64 v4; // rsi\n  unsigned int v5; // edx\n  void *v6; // rbx\n\n  v4 = a2;\n  cocos2d::ccDrawInit((cocos2d *)a1);\n  cocos2d::CCGLProgram::use((cocos2d::CCGLProgram *)qword_1801A8338);\n  cocos2d::CCGLProgram::setUniformsForBuiltins((cocos2d::CCGLProgram *)qword_1801A8338);\n  cocos2d::CCGLProgram::setUniformLocationWith4fv((cocos2d::CCGLProgram *)qword_1801A8338, dword_1801A2B58, &a3->r, 1u);\n  cocos2d::ccGLEnableVertexAttribs((cocos2d *)1, v5);\n  v6 = operator new(saturated_mul(v4, 8u));\n  _glewVertexAttribPointer(0, 2, 5126);\n  glDrawArrays(6u, 0, v4);\n  if ( v6 )\n    j_j_free_0(v6);\n  ++g_uNumberOfDraws;\n}", "assembly": "; \n; cocos2d::ccDrawSolidPoly from 0x180011bd0 to 0x180011c8f (191 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x1801438a8\n; > <???> @ 0x1801ae32c\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\npush    rbx                                                            ; +0x0, 0x180011bd0\npush    rsi                                                            ; +0x2, 0x180011bd2\npush    rdi                                                            ; +0x3, 0x180011bd3\nsub     rsp, 30h                                                       ; +0x4, 0x180011bd4\nmov     rbx, r8                                                        ; +0x8, 0x180011bd8\nmov     esi, edx                                                       ; +0xb, 0x180011bdb\nmov     rdi, rcx                                                       ; +0xd, 0x180011bdd\ncall    ?ccDrawInit@cocos2d@@YAXXZ_0; cocos2d::ccDrawInit(void)        ; +0x10, 0x180011be0\nmov     rcx, cs:qword_1801A8338; this                                  ; +0x15, 0x180011be5\ncall    ?use@CCGLProgram@cocos2d@@QEAAXXZ; cocos2d::CCGLProgram::use(void) ; +0x1c, 0x180011bec\nmov     rcx, cs:qword_1801A8338; this                                  ; +0x21, 0x180011bf1\ncall    ?setUniformsForBuiltins@CCGLProgram@cocos2d@@QEAAXXZ; cocos2d::CCGLProgram::setUniformsForBuiltins(void) ; +0x28, 0x180011bf8\nmov     edx, cs:dword_1801A2B58; int                                   ; +0x2d, 0x180011bfd\nmov     r9d, 1; unsigned int                                           ; +0x33, 0x180011c03\nmov     rcx, cs:qword_1801A8338; this                                  ; +0x39, 0x180011c09\nmov     r8, rbx; float *                                               ; +0x40, 0x180011c10\ncall    ?setUniformLocationWith4fv@CCGLProgram@cocos2d@@QEAAXHPEAMI@Z; cocos2d::CCGLProgram::setUniformLocationWith4fv(int,float *,uint) ; +0x43, 0x180011c13\nmov     ecx, 1; this                                                   ; +0x48, 0x180011c18\ncall    ?ccGLEnableVertexAttribs@cocos2d@@YAXI@Z; cocos2d::ccGLEnableVertexAttribs(uint) ; +0x4d, 0x180011c1d\nmov     rcx, 0FFFFFFFFFFFFFFFFh                                        ; +0x52, 0x180011c22\nmov     eax, 8                                                         ; +0x59, 0x180011c29\nmul     rsi                                                            ; +0x5e, 0x180011c2e\ncmovo   rax, rcx                                                       ; +0x61, 0x180011c31\nmov     rcx, rax; Size                                                 ; +0x65, 0x180011c35\ncall    j_??2@YAPEAX_K@Z; operator new(unsigned __int64)               ; +0x68, 0x180011c38\nmov     r10, cs:__glewVertexAttribPointer                              ; +0x6d, 0x180011c3d\nxor     r9d, r9d                                                       ; +0x74, 0x180011c44\nmov     [rsp+48h+var_20], rdi                                          ; +0x77, 0x180011c47\nxor     ecx, ecx                                                       ; +0x7c, 0x180011c4c\nmov     r8d, 1406h                                                     ; +0x7e, 0x180011c4e\nmov     [rsp+48h+var_28], 0                                            ; +0x84, 0x180011c54\nmov     rbx, rax                                                       ; +0x8c, 0x180011c5c\nlea     edx, [r9+2]                                                    ; +0x8f, 0x180011c5f\ncall    qword ptr [r10]                                                ; +0x93, 0x180011c63\nxor     edx, edx; first                                                ; +0x96, 0x180011c66\nmov     r8d, esi; count                                                ; +0x98, 0x180011c68\nlea     ecx, [rdx+6]; mode                                             ; +0x9b, 0x180011c6b\ncall    cs:glDrawArrays                                                ; +0x9e, 0x180011c6e\ntest    rbx, rbx                                                       ; +0xa4, 0x180011c74\njz      short loc_180011C81                                            ; +0xa7, 0x180011c77\nmov     rcx, rbx; Block                                                ; +0xa9, 0x180011c79\ncall    j_j_free_0                                                     ; +0xac, 0x180011c7c\ninc     cs:?g_uNumberOfDraws@@3IA; uint g_uNumberOfDraws               ; +0xb1, 0x180011c81\nadd     rsp, 30h                                                       ; +0xb7, 0x180011c87\npop     rdi                                                            ; +0xbb, 0x180011c8b\npop     rsi                                                            ; +0xbc, 0x180011c8c\npop     rbx                                                            ; +0xbd, 0x180011c8d\nretn                                                                   ; +0xbe, 0x180011c8e", "xrefs": ["<???> @ 0x1801438a8", "<???> @ 0x1801ae32c"], "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"}