{"type": "func", "start": 6442880656, "end": 6442880922, "name": "cocos2d::CCParticleSystem::resetSystem", "pseudocode": "// \n// cocos2d::CCParticleSystem::resetSystem from 0x180068e90 to 0x180068f9a (266 bytes)\n// \n// 5 xrefs:\n// > cocos2d::CCParticleSystemQuad::setTotalParticles @ 0x18006aec3\n// > <???> @ 0x180139f5c\n// > <???> @ 0x180139f6c\n// > <???> @ 0x1801438a8\n// > <???> @ 0x1801b3c0c\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::CCParticleSystem::resetSystem(cocos2d::CCParticleSystem *this)\n{\n  unsigned int m_uParticleCount; // eax\n  unsigned int v3; // ecx\n  unsigned int v4; // eax\n  __int64 v5; // rax\n  int v6; // edi\n  cocos2d::CCParticleBatchNode *m_pBatchNode; // rcx\n\n  m_uParticleCount = this->m_uParticleCount;\n  this->m_bIsActive = 1;\n  this->m_bWasRemoved = 0;\n  this->m_fElapsed = 0.0;\n  this->m_uParticleIdx = 0;\n  if ( m_uParticleCount )\n  {\n    v3 = 0;\n    do\n    {\n      *((_DWORD *)&this->m_pParticles->timeToLive + 37 * v3) = 0;\n      v3 = this->m_uParticleIdx + 1;\n      this->m_uParticleIdx = v3;\n      v4 = this->m_uParticleCount;\n    }\n    while ( v3 < v4 );\n    for ( ; v4; this->m_uParticleCount = v4 )\n    {\n      v5 = v4 - 1;\n      this->m_uParticleIdx = v5;\n      v6 = *((_DWORD *)&this->m_pParticles->modeA.dir.x + 37 * v5);\n      m_pBatchNode = this->m_pBatchNode;\n      if ( m_pBatchNode )\n      {\n        cocos2d::CCParticleBatchNode::disableParticle(m_pBatchNode, v6 + this->m_uAtlasIndex);\n        *((_DWORD *)&this->m_pParticles->modeA.dir.x + 37 * (this->m_uParticleCount - 1)) = v6;\n      }\n      v4 = this->m_uParticleCount - 1;\n    }\n  }\n  this->m_bVisible = 0;\n}", "assembly": "; \n; cocos2d::CCParticleSystem::resetSystem from 0x180068e90 to 0x180068f9a (266 bytes)\n; \n; 5 xrefs:\n; > cocos2d::CCParticleSystemQuad::setTotalParticles @ 0x18006aec3\n; > <???> @ 0x180139f5c\n; > <???> @ 0x180139f6c\n; > <???> @ 0x1801438a8\n; > <???> @ 0x1801b3c0c\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, 0x180068e90\nsub     rsp, 20h                                                       ; +0x2, 0x180068e92\nmov     eax, [rcx+1D0h]                                                ; +0x6, 0x180068e96\nxor     edx, edx                                                       ; +0xc, 0x180068e9c\nmov     byte ptr [rcx+1CCh], 1                                         ; +0xe, 0x180068e9e\nmov     rbx, rcx                                                       ; +0x15, 0x180068ea5\nmov     byte ptr [rcx+22Fh], 0                                         ; +0x18, 0x180068ea8\nmov     [rcx+168h], edx                                                ; +0x1f, 0x180068eaf\nmov     [rcx+1B4h], edx                                                ; +0x25, 0x180068eb5\ntest    eax, eax                                                       ; +0x2b, 0x180068ebb\njz      loc_180068F73                                                  ; +0x2d, 0x180068ebd\nmov     ecx, edx                                                       ; +0x33, 0x180068ec3\nnop     word ptr [rax+rax+00000000h]                                   ; +0x35, 0x180068ec5\nmov     eax, ecx                                                       ; +0x40, 0x180068ed0\nimul    rcx, rax, 94h                                                  ; +0x42, 0x180068ed2\nmov     rax, [rbx+1A8h]                                                ; +0x49, 0x180068ed9\nmov     [rcx+rax+40h], edx                                             ; +0x50, 0x180068ee0\nmov     ecx, [rbx+1B4h]                                                ; +0x54, 0x180068ee4\ninc     ecx                                                            ; +0x5a, 0x180068eea\nmov     [rbx+1B4h], ecx                                                ; +0x5c, 0x180068eec\nmov     eax, [rbx+1D0h]                                                ; +0x62, 0x180068ef2\ncmp     ecx, eax                                                       ; +0x68, 0x180068ef8\njb      short loc_180068ED0                                            ; +0x6a, 0x180068efa\ntest    eax, eax                                                       ; +0x6c, 0x180068efc\njz      short loc_180068F73                                            ; +0x6e, 0x180068efe\nmov     [rsp+28h+arg_0], rdi                                           ; +0x70, 0x180068f00\nnop     word ptr [rax+rax+00000000h]                                   ; +0x75, 0x180068f05\ndec     eax                                                            ; +0x80, 0x180068f10\nimul    rcx, rax, 94h                                                  ; +0x82, 0x180068f12\nmov     [rbx+1B4h], eax                                                ; +0x89, 0x180068f19\nmov     rax, [rbx+1A8h]                                                ; +0x8f, 0x180068f1f\nmov     edi, [rcx+rax+48h]                                             ; +0x96, 0x180068f26\nmov     rcx, [rbx+1B8h]; this                                          ; +0x9a, 0x180068f2a\ntest    rcx, rcx                                                       ; +0xa1, 0x180068f31\njz      short loc_180068F5D                                            ; +0xa4, 0x180068f34\nmov     edx, [rbx+1C0h]                                                ; +0xa6, 0x180068f36\nadd     edx, edi; unsigned int                                         ; +0xac, 0x180068f3c\ncall    ?disableParticle@CCParticleBatchNode@cocos2d@@QEAAXI@Z; cocos2d::CCParticleBatchNode::disableParticle(uint) ; +0xae, 0x180068f3e\nmov     eax, [rbx+1D0h]                                                ; +0xb3, 0x180068f43\ndec     eax                                                            ; +0xb9, 0x180068f49\nimul    rcx, rax, 94h                                                  ; +0xbb, 0x180068f4b\nmov     rax, [rbx+1A8h]                                                ; +0xc2, 0x180068f52\nmov     [rcx+rax+48h], edi                                             ; +0xc9, 0x180068f59\nmov     eax, [rbx+1D0h]                                                ; +0xcd, 0x180068f5d\nsub     eax, 1                                                         ; +0xd3, 0x180068f63\nmov     [rbx+1D0h], eax                                                ; +0xd6, 0x180068f66\njnz     short loc_180068F10                                            ; +0xdc, 0x180068f6c\nmov     rdi, [rsp+28h+arg_0]                                           ; +0xde, 0x180068f6e\ncmp     byte ptr [rbx+231h], 0                                         ; +0xe3, 0x180068f73\njz      short loc_180068F8D                                            ; +0xea, 0x180068f7a\ntest    eax, eax                                                       ; +0xec, 0x180068f7c\njz      short loc_180068F8D                                            ; +0xee, 0x180068f7e\nmov     byte ptr [rbx+11Eh], 1                                         ; +0xf0, 0x180068f80\nadd     rsp, 20h                                                       ; +0xf7, 0x180068f87\npop     rbx                                                            ; +0xfb, 0x180068f8b\nretn                                                                   ; +0xfc, 0x180068f8c\nmov     byte ptr [rbx+11Eh], 0                                         ; +0xfd, 0x180068f8d\nadd     rsp, 20h                                                       ; +0x104, 0x180068f94\npop     rbx                                                            ; +0x108, 0x180068f98\nretn                                                                   ; +0x109, 0x180068f99", "xrefs": ["cocos2d::CCParticleSystemQuad::setTotalParticles @ 0x18006aec3", "<???> @ 0x180139f5c", "<???> @ 0x180139f6c", "<???> @ 0x1801438a8", "<???> @ 0x1801b3c0c"], "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"}