{"type": "func", "start": 6442522736, "end": 6442522972, "name": "cocos2d::ccDrawPoints", "pseudocode": "// \n// cocos2d::ccDrawPoints from 0x180011870 to 0x18001195c (236 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x18014cf68\n// > <???> @ 0x1801b8380\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::ccDrawPoints(cocos2d *this, const struct cocos2d::CCPoint *a2)\n{\n  unsigned __int64 v2; // rdi\n  unsigned int v4; // edx\n  void *v5; // rsi\n\n  v2 = (unsigned int)a2;\n  cocos2d::ccDrawInit(this);\n  cocos2d::ccGLEnableVertexAttribs((cocos2d *)1, v4);\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::CCGLProgram::setUniformLocationWith1f(qword_1801B2358, dword_1801ACB5C, flt_1801ACB70);\n  v5 = (void *)sub_1800E4C6C(saturated_mul(v2, 8u));\n  _glewVertexAttribPointer(0, 2, 5126, 0, 0, this);\n  glDrawArrays(0, 0, v2);\n  if ( v5 )\n    j_j_free_0(v5);\n  ++g_uNumberOfDraws;\n}", "assembly": "; \n; cocos2d::ccDrawPoints from 0x180011870 to 0x18001195c (236 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x18014cf68\n; > <???> @ 0x1801b8380\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, 0x180011870\nmov     [rsp+arg_8], rsi                                               ; +0x5, 0x180011875\npush    rdi                                                            ; +0xa, 0x18001187a\nsub     rsp, 30h                                                       ; +0xb, 0x18001187b\nmov     edi, edx                                                       ; +0xf, 0x18001187f\nmov     rbx, rcx                                                       ; +0x11, 0x180011881\ncall    ?ccDrawInit@cocos2d@@YAXXZ_0; cocos2d::ccDrawInit(void)        ; +0x14, 0x180011884\nmov     ecx, 1; this                                                   ; +0x19, 0x180011889\ncall    ?ccGLEnableVertexAttribs@cocos2d@@YAXI@Z; cocos2d::ccGLEnableVertexAttribs(uint) ; +0x1e, 0x18001188e\nmov     rcx, cs:qword_1801B2358; this                                  ; +0x23, 0x180011893\ncall    ?use@CCGLProgram@cocos2d@@QEAAXXZ; cocos2d::CCGLProgram::use(void) ; +0x2a, 0x18001189a\nmov     rcx, cs:qword_1801B2358; this                                  ; +0x2f, 0x18001189f\ncall    ?setUniformsForBuiltins@CCGLProgram@cocos2d@@QEAAXXZ; cocos2d::CCGLProgram::setUniformsForBuiltins(void) ; +0x36, 0x1800118a6\nmov     edx, cs:dword_1801ACB58; int                                   ; +0x3b, 0x1800118ab\nlea     r8, flt_1801ACB60; float *                                     ; +0x41, 0x1800118b1\nmov     rcx, cs:qword_1801B2358; this                                  ; +0x48, 0x1800118b8\nmov     r9d, 1; unsigned int                                           ; +0x4f, 0x1800118bf\ncall    ?setUniformLocationWith4fv@CCGLProgram@cocos2d@@QEAAXHPEAMI@Z; cocos2d::CCGLProgram::setUniformLocationWith4fv(int,float *,uint) ; +0x55, 0x1800118c5\nmovss   xmm2, cs:flt_1801ACB70; float                                  ; +0x5a, 0x1800118ca\nmov     edx, cs:dword_1801ACB5C; int                                   ; +0x62, 0x1800118d2\nmov     rcx, cs:qword_1801B2358; this                                  ; +0x68, 0x1800118d8\ncall    ?setUniformLocationWith1f@CCGLProgram@cocos2d@@QEAAXHM@Z; cocos2d::CCGLProgram::setUniformLocationWith1f(int,float) ; +0x6f, 0x1800118df\nmov     rcx, 0FFFFFFFFFFFFFFFFh                                        ; +0x74, 0x1800118e4\nmov     eax, 8                                                         ; +0x7b, 0x1800118eb\nmul     rdi                                                            ; +0x80, 0x1800118f0\ncmovb   rax, rcx                                                       ; +0x83, 0x1800118f3\nmov     rcx, rax; Size                                                 ; +0x87, 0x1800118f7\ncall    sub_1800E4C6C                                                  ; +0x8a, 0x1800118fa\nmov     rcx, cs:__glewVertexAttribPointer                              ; +0x8f, 0x1800118ff\nxor     r9d, r9d                                                       ; +0x96, 0x180011906\nmov     [rsp+38h+var_10], rbx                                          ; +0x99, 0x180011909\nmov     edx, 2                                                         ; +0x9e, 0x18001190e\nmov     r8d, 1406h                                                     ; +0xa3, 0x180011913\nmov     [rsp+38h+var_18], 0                                            ; +0xa9, 0x180011919\nmov     rsi, rax                                                       ; +0xb1, 0x180011921\nmov     r10, [rcx]                                                     ; +0xb4, 0x180011924\nxor     ecx, ecx                                                       ; +0xb7, 0x180011927\ncall    r10                                                            ; +0xb9, 0x180011929\nmov     r8d, edi; count                                                ; +0xbc, 0x18001192c\nxor     edx, edx; first                                                ; +0xbf, 0x18001192f\nxor     ecx, ecx; mode                                                 ; +0xc1, 0x180011931\ncall    cs:glDrawArrays                                                ; +0xc3, 0x180011933\ntest    rsi, rsi                                                       ; +0xc9, 0x180011939\njz      short loc_180011946                                            ; +0xcc, 0x18001193c\nmov     rcx, rsi; Block                                                ; +0xce, 0x18001193e\ncall    j_j_free_0                                                     ; +0xd1, 0x180011941\ninc     cs:?g_uNumberOfDraws@@3IA; uint g_uNumberOfDraws               ; +0xd6, 0x180011946\nmov     rbx, [rsp+38h+arg_0]                                           ; +0xdc, 0x18001194c\nmov     rsi, [rsp+38h+arg_8]                                           ; +0xe1, 0x180011951\nadd     rsp, 30h                                                       ; +0xe6, 0x180011956\npop     rdi                                                            ; +0xea, 0x18001195a\nretn                                                                   ; +0xeb, 0x18001195b", "xrefs": ["<???> @ 0x18014cf68", "<???> @ 0x1801b8380"], "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"}