{"type": "func", "start": 6442895216, "end": 6442895647, "name": "cocos2d::CCParticleSystemQuad::draw", "pseudocode": "// \n// cocos2d::CCParticleSystemQuad::draw from 0x18006c770 to 0x18006c91f (431 bytes)\n// \n// 14 xrefs:\n// > <???> @ 0x180100f10\n// > <???> @ 0x180101590\n// > <???> @ 0x180101c10\n// > <???> @ 0x180102290\n// > <???> @ 0x180102910\n// > <???> @ 0x180102f90\n// > <???> @ 0x180103610\n// > <???> @ 0x180103c90\n// > <???> @ 0x180104310\n// > <???> @ 0x180104990\n// > <???> @ 0x180105010\n// > <???> @ 0x180106368\n// > <???> @ 0x18014cf68\n// > <???> @ 0x1801be014\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:55 +0000\n// \n\nvoid __fastcall cocos2d::CCParticleSystemQuad::draw(cocos2d::CCParticleSystemQuad *this, float a2)\n{\n  cocos2d::CCGLProgram *v3; // rax\n  cocos2d::CCGLProgram *v4; // rax\n  unsigned int v5; // eax\n  unsigned int v6; // edx\n  unsigned int v7; // r8d\n  unsigned int v8; // edx\n  __int64 v9; // r9\n\n  if ( *((_QWORD *)this + 84) && *((_DWORD *)this + 116) )\n  {\n    if ( *((_BYTE *)this + 838) )\n    {\n      cocos2d::CCNode::updateTweenActionInt((cocos2d::CCNode *)*((unsigned int *)this + 62), a2);\n      (*(void (__fastcall **)(cocos2d::CCParticleSystemQuad *))(*(_QWORD *)this + 648LL))(this);\n      v3 = (cocos2d::CCGLProgram *)(*(__int64 (__fastcall **)(cocos2d::CCParticleSystemQuad *))(*(_QWORD *)this + 648LL))(this);\n      cocos2d::CCGLProgram::use(v3);\n      v4 = (cocos2d::CCGLProgram *)(*(__int64 (__fastcall **)(cocos2d::CCParticleSystemQuad *))(*(_QWORD *)this + 648LL))(this);\n      cocos2d::CCGLProgram::setUniformsForBuiltins(v4);\n      v5 = (*(__int64 (__fastcall **)(_QWORD))(**((_QWORD **)this + 84) + 96LL))(*((_QWORD *)this + 84));\n      cocos2d::ccGLBindTexture2D((cocos2d *)v5, v6);\n      cocos2d::ccGLBlendFunc(*((_DWORD *)this + 170), *((_DWORD *)this + 171), v7);\n      cocos2d::ccGLEnableVertexAttribs((cocos2d *)7, v8);\n      _glewBindBuffer(34962, *((unsigned int *)this + 202));\n      _glewVertexAttribPointer(0, 3, 5126, 0, 24, 0);\n      LOBYTE(v9) = 1;\n      _glewVertexAttribPointer(1, 4, 5121, v9, 24, 12);\n      _glewVertexAttribPointer(2, 2, 5126, 0, 24, 16);\n      _glewBindBuffer(34963, *((unsigned int *)this + 203));\n      glDrawElements(4u, 6 * *((_DWORD *)this + 109), 0x1403u, nullptr);\n      _glewBindBuffer(34962, 0);\n      _glewBindBuffer(34963, 0);\n      ++g_uNumberOfDraws;\n    }\n  }\n}", "assembly": "; \n; cocos2d::CCParticleSystemQuad::draw from 0x18006c770 to 0x18006c91f (431 bytes)\n; \n; 14 xrefs:\n; > <???> @ 0x180100f10\n; > <???> @ 0x180101590\n; > <???> @ 0x180101c10\n; > <???> @ 0x180102290\n; > <???> @ 0x180102910\n; > <???> @ 0x180102f90\n; > <???> @ 0x180103610\n; > <???> @ 0x180103c90\n; > <???> @ 0x180104310\n; > <???> @ 0x180104990\n; > <???> @ 0x180105010\n; > <???> @ 0x180106368\n; > <???> @ 0x18014cf68\n; > <???> @ 0x1801be014\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:55 +0000\n; \npush    rbx                                                            ; +0x0, 0x18006c770\nsub     rsp, 30h                                                       ; +0x2, 0x18006c772\ncmp     qword ptr [rcx+2A0h], 0                                        ; +0x6, 0x18006c776\nmov     rbx, rcx                                                       ; +0xe, 0x18006c77e\njz      loc_18006C919                                                  ; +0x11, 0x18006c781\ncmp     dword ptr [rcx+1D0h], 0                                        ; +0x17, 0x18006c787\njz      loc_18006C919                                                  ; +0x1e, 0x18006c78e\ncmp     byte ptr [rcx+346h], 0                                         ; +0x24, 0x18006c794\njz      loc_18006C919                                                  ; +0x2b, 0x18006c79b\nmov     ecx, [rcx+0F8h]; this                                          ; +0x31, 0x18006c7a1\ncall    ?updateTweenActionInt@CCNode@cocos2d@@UEAAXMH@Z; cocos2d::CCNode::updateTweenActionInt(float,int) ; +0x37, 0x18006c7a7\nmov     rax, [rbx]                                                     ; +0x3c, 0x18006c7ac\nmov     rcx, rbx                                                       ; +0x3f, 0x18006c7af\ncall    qword ptr [rax+288h]                                           ; +0x42, 0x18006c7b2\nmov     rax, [rbx]                                                     ; +0x48, 0x18006c7b8\nmov     rcx, rbx                                                       ; +0x4b, 0x18006c7bb\ncall    qword ptr [rax+288h]                                           ; +0x4e, 0x18006c7be\nmov     rcx, rax; this                                                 ; +0x54, 0x18006c7c4\ncall    ?use@CCGLProgram@cocos2d@@QEAAXXZ; cocos2d::CCGLProgram::use(void) ; +0x57, 0x18006c7c7\nmov     rax, [rbx]                                                     ; +0x5c, 0x18006c7cc\nmov     rcx, rbx                                                       ; +0x5f, 0x18006c7cf\ncall    qword ptr [rax+288h]                                           ; +0x62, 0x18006c7d2\nmov     rcx, rax; this                                                 ; +0x68, 0x18006c7d8\ncall    ?setUniformsForBuiltins@CCGLProgram@cocos2d@@QEAAXXZ; cocos2d::CCGLProgram::setUniformsForBuiltins(void) ; +0x6b, 0x18006c7db\nmov     rcx, [rbx+2A0h]                                                ; +0x70, 0x18006c7e0\nmov     rax, [rcx]                                                     ; +0x77, 0x18006c7e7\ncall    qword ptr [rax+60h]                                            ; +0x7a, 0x18006c7ea\nmov     ecx, eax; this                                                 ; +0x7d, 0x18006c7ed\ncall    ?ccGLBindTexture2D@cocos2d@@YAXI@Z; cocos2d::ccGLBindTexture2D(uint) ; +0x7f, 0x18006c7ef\nmov     edx, [rbx+2ACh]; dfactor                                       ; +0x84, 0x18006c7f4\nmov     ecx, [rbx+2A8h]; sfactor                                       ; +0x8a, 0x18006c7fa\ncall    ?ccGLBlendFunc@cocos2d@@YAXII@Z; cocos2d::ccGLBlendFunc(uint,uint) ; +0x90, 0x18006c800\nmov     ecx, 7; this                                                   ; +0x95, 0x18006c805\ncall    ?ccGLEnableVertexAttribs@cocos2d@@YAXI@Z; cocos2d::ccGLEnableVertexAttribs(uint) ; +0x9a, 0x18006c80a\nmov     rax, cs:__glewBindBuffer                                       ; +0x9f, 0x18006c80f\nmov     ecx, 8892h                                                     ; +0xa6, 0x18006c816\nmov     edx, [rbx+328h]                                                ; +0xab, 0x18006c81b\nmov     r8, [rax]                                                      ; +0xb1, 0x18006c821\ncall    r8                                                             ; +0xb4, 0x18006c824\nmov     rax, cs:__glewVertexAttribPointer                              ; +0xb7, 0x18006c827\nxor     r9d, r9d                                                       ; +0xbe, 0x18006c82e\nmov     [rsp+38h+var_10], 0                                            ; +0xc1, 0x18006c831\nmov     edx, 3                                                         ; +0xca, 0x18006c83a\nxor     ecx, ecx                                                       ; +0xcf, 0x18006c83f\nmov     [rsp+38h+var_18], 18h                                          ; +0xd1, 0x18006c841\nmov     r8d, 1406h                                                     ; +0xd9, 0x18006c849\nmov     r10, [rax]                                                     ; +0xdf, 0x18006c84f\ncall    r10                                                            ; +0xe2, 0x18006c852\nmov     rax, cs:__glewVertexAttribPointer                              ; +0xe5, 0x18006c855\nmov     r9b, 1                                                         ; +0xec, 0x18006c85c\nmov     [rsp+38h+var_10], 0Ch                                          ; +0xef, 0x18006c85f\nmov     edx, 4                                                         ; +0xf8, 0x18006c868\nmov     ecx, 1                                                         ; +0xfd, 0x18006c86d\nmov     [rsp+38h+var_18], 18h                                          ; +0x102, 0x18006c872\nmov     r8d, 1401h                                                     ; +0x10a, 0x18006c87a\nmov     r10, [rax]                                                     ; +0x110, 0x18006c880\ncall    r10                                                            ; +0x113, 0x18006c883\nmov     rax, cs:__glewVertexAttribPointer                              ; +0x116, 0x18006c886\nmov     edx, 2                                                         ; +0x11d, 0x18006c88d\nmov     [rsp+38h+var_10], 10h                                          ; +0x122, 0x18006c892\nxor     r9d, r9d                                                       ; +0x12b, 0x18006c89b\nmov     ecx, edx                                                       ; +0x12e, 0x18006c89e\nmov     [rsp+38h+var_18], 18h                                          ; +0x130, 0x18006c8a0\nmov     r8d, 1406h                                                     ; +0x138, 0x18006c8a8\nmov     r10, [rax]                                                     ; +0x13e, 0x18006c8ae\ncall    r10                                                            ; +0x141, 0x18006c8b1\nmov     rax, cs:__glewBindBuffer                                       ; +0x144, 0x18006c8b4\nmov     ecx, 8893h                                                     ; +0x14b, 0x18006c8bb\nmov     edx, [rbx+32Ch]                                                ; +0x150, 0x18006c8c0\nmov     r8, [rax]                                                      ; +0x156, 0x18006c8c6\ncall    r8                                                             ; +0x159, 0x18006c8c9\nmov     eax, [rbx+1B4h]                                                ; +0x15c, 0x18006c8cc\nxor     r9d, r9d; indices                                              ; +0x162, 0x18006c8d2\nmov     ecx, 4; mode                                                   ; +0x165, 0x18006c8d5\nmov     r8d, 1403h; type                                               ; +0x16a, 0x18006c8da\nlea     edx, [rax+rax*2]                                               ; +0x170, 0x18006c8e0\nadd     edx, edx; count                                                ; +0x173, 0x18006c8e3\ncall    cs:glDrawElements                                              ; +0x175, 0x18006c8e5\nmov     rax, cs:__glewBindBuffer                                       ; +0x17b, 0x18006c8eb\nxor     edx, edx                                                       ; +0x182, 0x18006c8f2\nmov     ecx, 8892h                                                     ; +0x184, 0x18006c8f4\nmov     r8, [rax]                                                      ; +0x189, 0x18006c8f9\ncall    r8                                                             ; +0x18c, 0x18006c8fc\nmov     rax, cs:__glewBindBuffer                                       ; +0x18f, 0x18006c8ff\nxor     edx, edx                                                       ; +0x196, 0x18006c906\nmov     ecx, 8893h                                                     ; +0x198, 0x18006c908\nmov     r8, [rax]                                                      ; +0x19d, 0x18006c90d\ncall    r8                                                             ; +0x1a0, 0x18006c910\ninc     cs:?g_uNumberOfDraws@@3IA; uint g_uNumberOfDraws               ; +0x1a3, 0x18006c913\nadd     rsp, 30h                                                       ; +0x1a9, 0x18006c919\npop     rbx                                                            ; +0x1ad, 0x18006c91d\nretn                                                                   ; +0x1ae, 0x18006c91e", "xrefs": ["<???> @ 0x180100f10", "<???> @ 0x180101590", "<???> @ 0x180101c10", "<???> @ 0x180102290", "<???> @ 0x180102910", "<???> @ 0x180102f90", "<???> @ 0x180103610", "<???> @ 0x180103c90", "<???> @ 0x180104310", "<???> @ 0x180104990", "<???> @ 0x180105010", "<???> @ 0x180106368", "<???> @ 0x18014cf68", "<???> @ 0x1801be014"], "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"}