{"type": "func", "start": 6442866208, "end": 6442866397, "name": "cocos2d::CCParticleSystem::~CCParticleSystem", "pseudocode": "// \n// cocos2d::CCParticleSystem::~CCParticleSystem from 0x180065620 to 0x1800656dd (189 bytes)\n// \n// 7 xrefs:\n// > sub_180065850 @ 0x1800658ae\n// > cocos2d::CCParticleSystemQuad::~CCParticleSystemQuad @ 0x18006a2c2\n// > sub_1800E26B0 @ 0x1800e26b7\n// > sub_180065850 @ 0x18006586c\n// > <???> @ 0x18013a027\n// > <???> @ 0x1801438a8\n// > <???> @ 0x1801b3b58\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::~CCParticleSystem(cocos2d::CCParticleSystem *this)\n{\n  cocos2d::tCCParticle *m_pParticles; // rcx\n  cocos2d::CCTexture2D *m_pTexture; // rcx\n  std::size_t m_capacity; // rdx\n  char *m_bigStorage; // rcx\n\n  this->cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable = (cocos2d::CCParticleSystem_vtbl *)&cocos2d::CCParticleSystem::`vftable'{for `cocos2d::CCNode'};\n  this->cocos2d::CCTextureProtocol::cocos2d::CCBlendProtocol::__vftable = (cocos2d::CCTextureProtocol_vtbl *)&cocos2d::CCParticleSystem::`vftable'{for `cocos2d::CCTextureProtocol'};\n  m_pParticles = this->m_pParticles;\n  if ( m_pParticles )\n  {\n    free(m_pParticles);\n    this->m_pParticles = nullptr;\n  }\n  m_pTexture = this->m_pTexture;\n  if ( m_pTexture )\n    cocos2d::CCObject::release(m_pTexture);\n  m_capacity = this->m_sPlistFile.m_data.m_capacity;\n  if ( m_capacity > 0xF )\n  {\n    m_bigStorage = this->m_sPlistFile.m_data.m_bigStorage;\n    if ( m_capacity + 1 >= 0x1000 )\n    {\n      if ( (unsigned __int64)&m_bigStorage[-*((_QWORD *)m_bigStorage - 1) - 8] > 0x1F )\n        invalid_parameter_noinfo_noreturn();\n      m_bigStorage = *((char **)m_bigStorage - 1);\n    }\n    j_j_free_0(m_bigStorage);\n  }\n  this->m_sPlistFile.m_data.m_size = 0;\n  this->m_sPlistFile.m_data.m_capacity = 15;\n  this->m_sPlistFile.m_data.m_smallStorage._Elems[0] = 0;\n  cocos2d::CCNode::~CCNode(this);\n}", "assembly": "; \n; cocos2d::CCParticleSystem::~CCParticleSystem from 0x180065620 to 0x1800656dd (189 bytes)\n; \n; 7 xrefs:\n; > sub_180065850 @ 0x1800658ae\n; > cocos2d::CCParticleSystemQuad::~CCParticleSystemQuad @ 0x18006a2c2\n; > sub_1800E26B0 @ 0x1800e26b7\n; > sub_180065850 @ 0x18006586c\n; > <???> @ 0x18013a027\n; > <???> @ 0x1801438a8\n; > <???> @ 0x1801b3b58\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, 0x180065620\nsub     rsp, 20h                                                       ; +0x2, 0x180065622\nmov     rbx, rcx                                                       ; +0x6, 0x180065626\nlea     rax, ??_7CCParticleSystem@cocos2d@@6BCCNode@1@@; const cocos2d::CCParticleSystem::`vftable'{for `cocos2d::CCNode'} ; +0x9, 0x180065629\nmov     [rcx], rax                                                     ; +0x10, 0x180065630\nlea     rax, ??_7CCParticleSystem@cocos2d@@6BCCTextureProtocol@1@@; const cocos2d::CCParticleSystem::`vftable'{for `cocos2d::CCTextureProtocol'} ; +0x13, 0x180065633\nmov     [rcx+140h], rax                                                ; +0x1a, 0x18006563a\nmov     rcx, [rcx+1A8h]; Block                                         ; +0x21, 0x180065641\ntest    rcx, rcx                                                       ; +0x28, 0x180065648\njz      short loc_18006565E                                            ; +0x2b, 0x18006564b\ncall    cs:__imp_free                                                  ; +0x2d, 0x18006564d\nmov     qword ptr [rbx+1A8h], 0                                        ; +0x33, 0x180065653\nmov     rcx, [rbx+2A0h]; this                                          ; +0x3e, 0x18006565e\ntest    rcx, rcx                                                       ; +0x45, 0x180065665\njz      short loc_18006566F                                            ; +0x48, 0x180065668\ncall    ?release@CCObject@cocos2d@@QEAAXXZ; cocos2d::CCObject::release(void) ; +0x4a, 0x18006566a\nmov     rdx, [rbx+160h]                                                ; +0x4f, 0x18006566f\ncmp     rdx, 0Fh                                                       ; +0x56, 0x180065676\njbe     short loc_1800656AC                                            ; +0x5a, 0x18006567a\ninc     rdx                                                            ; +0x5c, 0x18006567c\nmov     rcx, [rbx+148h]                                                ; +0x5f, 0x18006567f\ncmp     rdx, 1000h                                                     ; +0x66, 0x180065686\njb      short loc_1800656A7                                            ; +0x6d, 0x18006568d\nadd     rdx, 27h ; '''                                                 ; +0x6f, 0x18006568f\nmov     r8, [rcx-8]                                                    ; +0x73, 0x180065693\nsub     rcx, r8                                                        ; +0x77, 0x180065697\nlea     rax, [rcx-8]                                                   ; +0x7a, 0x18006569a\ncmp     rax, 1Fh                                                       ; +0x7e, 0x18006569e\nja      short loc_1800656D6                                            ; +0x82, 0x1800656a2\nmov     rcx, r8; Block                                                 ; +0x84, 0x1800656a4\ncall    j_j_free_0                                                     ; +0x87, 0x1800656a7\nmov     qword ptr [rbx+158h], 0                                        ; +0x8c, 0x1800656ac\nmov     qword ptr [rbx+160h], 0Fh                                      ; +0x97, 0x1800656b7\nmov     byte ptr [rbx+148h], 0                                         ; +0xa2, 0x1800656c2\nmov     rcx, rbx; this                                                 ; +0xa9, 0x1800656c9\nadd     rsp, 20h                                                       ; +0xac, 0x1800656cc\npop     rbx                                                            ; +0xb0, 0x1800656d0\njmp     ??1CCNode@cocos2d@@UEAA@XZ; cocos2d::CCNode::~CCNode(void)     ; +0xb1, 0x1800656d1\ncall    cs:_invalid_parameter_noinfo_noreturn                          ; +0xb6, 0x1800656d6\ndb 0CCh                                                                ; +0xbc, 0x1800656dc", "xrefs": ["sub_180065850 @ 0x1800658ae", "cocos2d::CCParticleSystemQuad::~CCParticleSystemQuad @ 0x18006a2c2", "sub_1800E26B0 @ 0x1800e26b7", "sub_180065850 @ 0x18006586c", "<???> @ 0x18013a027", "<???> @ 0x1801438a8", "<???> @ 0x1801b3b58"], "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"}