{"type": "func", "start": 6442889232, "end": 6442889498, "name": "cocos2d::CCParticleSystem::resetSystem", "pseudocode": "// \n// cocos2d::CCParticleSystem::resetSystem from 0x18006b010 to 0x18006b11a (266 bytes)\n// \n// 5 xrefs:\n// > cocos2d::CCParticleSystemQuad::setTotalParticles @ 0x18006d093\n// > <???> @ 0x1801432f8\n// > <???> @ 0x180143308\n// > <???> @ 0x18014cf68\n// > <???> @ 0x1801bdf54\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:54 +0000\n// \n\nvoid __fastcall cocos2d::CCParticleSystem::resetSystem(cocos2d::CCParticleSystem *this)\n{\n  int v1; // eax\n  unsigned int v3; // ecx\n  unsigned int v4; // eax\n  __int64 v5; // rax\n  int v6; // edi\n  cocos2d::CCParticleBatchNode *v7; // rcx\n\n  v1 = *((_DWORD *)this + 116);\n  *((_BYTE *)this + 460) = 1;\n  *((_BYTE *)this + 564) = 0;\n  *((_DWORD *)this + 90) = 0;\n  *((_DWORD *)this + 140) = 0;\n  *((_DWORD *)this + 109) = 0;\n  if ( v1 )\n  {\n    v3 = 0;\n    do\n    {\n      *(_DWORD *)(148LL * v3 + *((_QWORD *)this + 53) + 64) = 0;\n      v3 = ++*((_DWORD *)this + 109);\n      v4 = *((_DWORD *)this + 116);\n    }\n    while ( v3 < v4 );\n    for ( ; v4; *((_DWORD *)this + 116) = v4 )\n    {\n      v5 = v4 - 1;\n      *((_DWORD *)this + 109) = v5;\n      v6 = *(_DWORD *)(148 * v5 + *((_QWORD *)this + 53) + 72);\n      v7 = *((cocos2d::CCParticleBatchNode **)this + 55);\n      if ( v7 )\n      {\n        cocos2d::CCParticleBatchNode::disableParticle(v7, v6 + *((_DWORD *)this + 112));\n        *(_DWORD *)(148LL * (unsigned int)(*((_DWORD *)this + 116) - 1) + *((_QWORD *)this + 53) + 72) = v6;\n      }\n      v4 = *((_DWORD *)this + 116) - 1;\n    }\n  }\n  *((_BYTE *)this + 286) = 0;\n}", "assembly": "; \n; cocos2d::CCParticleSystem::resetSystem from 0x18006b010 to 0x18006b11a (266 bytes)\n; \n; 5 xrefs:\n; > cocos2d::CCParticleSystemQuad::setTotalParticles @ 0x18006d093\n; > <???> @ 0x1801432f8\n; > <???> @ 0x180143308\n; > <???> @ 0x18014cf68\n; > <???> @ 0x1801bdf54\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:54 +0000\n; \npush    rbx                                                            ; +0x0, 0x18006b010\nsub     rsp, 20h                                                       ; +0x2, 0x18006b012\nmov     eax, [rcx+1D0h]                                                ; +0x6, 0x18006b016\nxor     edx, edx                                                       ; +0xc, 0x18006b01c\nmov     byte ptr [rcx+1CCh], 1                                         ; +0xe, 0x18006b01e\nmov     rbx, rcx                                                       ; +0x15, 0x18006b025\nmov     byte ptr [rcx+234h], 0                                         ; +0x18, 0x18006b028\nmov     [rcx+168h], edx                                                ; +0x1f, 0x18006b02f\nmov     [rcx+230h], edx                                                ; +0x25, 0x18006b035\nmov     [rcx+1B4h], edx                                                ; +0x2b, 0x18006b03b\ntest    eax, eax                                                       ; +0x31, 0x18006b041\njz      loc_18006B0F3                                                  ; +0x33, 0x18006b043\nmov     ecx, edx                                                       ; +0x39, 0x18006b049\nnop     dword ptr [rax+rax+00h]                                        ; +0x3b, 0x18006b04b\nmov     eax, ecx                                                       ; +0x40, 0x18006b050\nimul    rcx, rax, 94h                                                  ; +0x42, 0x18006b052\nmov     rax, [rbx+1A8h]                                                ; +0x49, 0x18006b059\nmov     [rcx+rax+40h], edx                                             ; +0x50, 0x18006b060\ninc     dword ptr [rbx+1B4h]                                           ; +0x54, 0x18006b064\nmov     ecx, [rbx+1B4h]                                                ; +0x5a, 0x18006b06a\nmov     eax, [rbx+1D0h]                                                ; +0x60, 0x18006b070\ncmp     ecx, eax                                                       ; +0x66, 0x18006b076\njb      short loc_18006B050                                            ; +0x68, 0x18006b078\ntest    eax, eax                                                       ; +0x6a, 0x18006b07a\njz      short loc_18006B0F3                                            ; +0x6c, 0x18006b07c\nmov     [rsp+28h+arg_0], rdi                                           ; +0x6e, 0x18006b07e\nnop     dword ptr [rax+00h]                                            ; +0x73, 0x18006b083\nnop     word ptr [rax+rax+00000000h]                                   ; +0x77, 0x18006b087\ndec     eax                                                            ; +0x80, 0x18006b090\nimul    rcx, rax, 94h                                                  ; +0x82, 0x18006b092\nmov     [rbx+1B4h], eax                                                ; +0x89, 0x18006b099\nmov     rax, [rbx+1A8h]                                                ; +0x8f, 0x18006b09f\nmov     edi, [rcx+rax+48h]                                             ; +0x96, 0x18006b0a6\nmov     rcx, [rbx+1B8h]; this                                          ; +0x9a, 0x18006b0aa\ntest    rcx, rcx                                                       ; +0xa1, 0x18006b0b1\njz      short loc_18006B0DD                                            ; +0xa4, 0x18006b0b4\nmov     edx, [rbx+1C0h]                                                ; +0xa6, 0x18006b0b6\nadd     edx, edi; unsigned int                                         ; +0xac, 0x18006b0bc\ncall    ?disableParticle@CCParticleBatchNode@cocos2d@@QEAAXI@Z; cocos2d::CCParticleBatchNode::disableParticle(uint) ; +0xae, 0x18006b0be\nmov     eax, [rbx+1D0h]                                                ; +0xb3, 0x18006b0c3\ndec     eax                                                            ; +0xb9, 0x18006b0c9\nimul    rcx, rax, 94h                                                  ; +0xbb, 0x18006b0cb\nmov     rax, [rbx+1A8h]                                                ; +0xc2, 0x18006b0d2\nmov     [rcx+rax+48h], edi                                             ; +0xc9, 0x18006b0d9\nmov     eax, [rbx+1D0h]                                                ; +0xcd, 0x18006b0dd\nsub     eax, 1                                                         ; +0xd3, 0x18006b0e3\nmov     [rbx+1D0h], eax                                                ; +0xd6, 0x18006b0e6\njnz     short loc_18006B090                                            ; +0xdc, 0x18006b0ec\nmov     rdi, [rsp+28h+arg_0]                                           ; +0xde, 0x18006b0ee\ncmp     byte ptr [rbx+236h], 0                                         ; +0xe3, 0x18006b0f3\njz      short loc_18006B10D                                            ; +0xea, 0x18006b0fa\ntest    eax, eax                                                       ; +0xec, 0x18006b0fc\njz      short loc_18006B10D                                            ; +0xee, 0x18006b0fe\nmov     byte ptr [rbx+11Eh], 1                                         ; +0xf0, 0x18006b100\nadd     rsp, 20h                                                       ; +0xf7, 0x18006b107\npop     rbx                                                            ; +0xfb, 0x18006b10b\nretn                                                                   ; +0xfc, 0x18006b10c\nmov     byte ptr [rbx+11Eh], 0                                         ; +0xfd, 0x18006b10d\nadd     rsp, 20h                                                       ; +0x104, 0x18006b114\npop     rbx                                                            ; +0x108, 0x18006b118\nretn                                                                   ; +0x109, 0x18006b119", "xrefs": ["cocos2d::CCParticleSystemQuad::setTotalParticles @ 0x18006d093", "<???> @ 0x1801432f8", "<???> @ 0x180143308", "<???> @ 0x18014cf68", "<???> @ 0x1801bdf54"], "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"}