{"type": "func", "start": 6443068944, "end": 6443069458, "name": "cocos2d::CCComponentContainer::removeAll", "pseudocode": "// \n// cocos2d::CCComponentContainer::removeAll from 0x180096e10 to 0x180097012 (514 bytes)\n// \n// 5 xrefs:\n// > <???> @ 0x1801045b8\n// > <???> @ 0x18013e760\n// > <???> @ 0x18013e770\n// > <???> @ 0x1801438a8\n// > <???> @ 0x1801b6948\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::CCComponentContainer::removeAll(cocos2d::CCComponentContainer *this, float a2)\n{\n  cocos2d::CCDictionary *m_pComponents; // rbx\n  cocos2d::CCDictElement *m_pElements; // rbx\n  cocos2d::CCDictElement *i; // rsi\n  char *prev; // r9\n  cocos2d::CCDictionary *v7; // r8\n  UT_hash_table *tbl; // r10\n  std::ptrdiff_t hho; // r11\n  char *v10; // r10\n  cocos2d::CCDictElement *next; // r9\n  char *v12; // r8\n  UT_hash_table *v13; // r9\n  __int64 v14; // r10\n  UT_hash_table *v15; // rcx\n  UT_hash_handle *hh_prev; // rdx\n  UT_hash_handle *hh_next; // rdx\n  UT_hash_table *v18; // rax\n\n  m_pComponents = this->m_pComponents;\n  if ( m_pComponents )\n  {\n    m_pElements = m_pComponents->m_pElements;\n    if ( m_pElements )\n    {\n      for ( i = (cocos2d::CCDictElement *)m_pElements->hh.next; ; i = (cocos2d::CCDictElement *)i->hh.next )\n      {\n        prev = (char *)m_pElements->hh.prev;\n        if ( prev || m_pElements->hh.next )\n        {\n          v7 = this->m_pComponents;\n          tbl = v7->m_pElements->hh.tbl;\n          hho = tbl->hho;\n          if ( m_pElements == (cocos2d::CCDictElement *)((char *)tbl->tail - hho) )\n          {\n            tbl->tail = (UT_hash_handle *)&prev[hho];\n            v7 = this->m_pComponents;\n          }\n          v10 = (char *)m_pElements->hh.prev;\n          next = (cocos2d::CCDictElement *)m_pElements->hh.next;\n          if ( v10 )\n            *(_QWORD *)&v10[v7->m_pElements->hh.tbl->hho + 16] = next;\n          else\n            v7->m_pElements = next;\n          v12 = (char *)m_pElements->hh.next;\n          if ( v12 )\n            *(_QWORD *)&v12[this->m_pComponents->m_pElements->hh.tbl->hho + 8] = m_pElements->hh.prev;\n          v13 = this->m_pComponents->m_pElements->hh.tbl;\n          v14 = m_pElements->hh.hashv & (v13->num_buckets - 1);\n          --v13->buckets[v14].count;\n          v15 = this->m_pComponents->m_pElements->hh.tbl;\n          if ( v15->buckets[v14].hh_head == &m_pElements->hh )\n            v15->buckets[v14].hh_head = m_pElements->hh.hh_next;\n          hh_prev = m_pElements->hh.hh_prev;\n          if ( hh_prev )\n            hh_prev->hh_next = m_pElements->hh.hh_next;\n          hh_next = m_pElements->hh.hh_next;\n          if ( hh_next )\n            hh_next->hh_prev = m_pElements->hh.hh_prev;\n          v18 = this->m_pComponents->m_pElements->hh.tbl;\n          --v18->num_items;\n        }\n        else\n        {\n          free(this->m_pComponents->m_pElements->hh.tbl->buckets);\n          free(this->m_pComponents->m_pElements->hh.tbl);\n          this->m_pComponents->m_pElements = nullptr;\n        }\n        ((void (__fastcall *)(cocos2d::CCObject *))m_pElements->m_pObject->__vftable[1].isEqual)(m_pElements->m_pObject);\n        cocos2d::CCComponent::setOwner((cocos2d::CCComponent *)m_pElements->m_pObject, nullptr);\n        cocos2d::CCObject::release(m_pElements->m_pObject);\n        cocos2d::CCNode::updateTweenActionInt((cocos2d::CCNode *)m_pElements, a2);\n        j_j_free_0(m_pElements);\n        m_pElements = i;\n        if ( !i )\n          break;\n      }\n    }\n    cocos2d::CCNode::unscheduleUpdate(this->m_pOwner);\n  }\n}", "assembly": "; \n; cocos2d::CCComponentContainer::removeAll from 0x180096e10 to 0x180097012 (514 bytes)\n; \n; 5 xrefs:\n; > <???> @ 0x1801045b8\n; > <???> @ 0x18013e760\n; > <???> @ 0x18013e770\n; > <???> @ 0x1801438a8\n; > <???> @ 0x1801b6948\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\nmov     [rsp+arg_10], rbx                                              ; +0x0, 0x180096e10\npush    rdi                                                            ; +0x5, 0x180096e15\nsub     rsp, 20h                                                       ; +0x6, 0x180096e16\nmov     rbx, [rcx+8]                                                   ; +0xa, 0x180096e1a\nmov     rdi, rcx                                                       ; +0xe, 0x180096e1e\ntest    rbx, rbx                                                       ; +0x11, 0x180096e21\njz      loc_180097007                                                  ; +0x14, 0x180096e24\nmov     rbx, [rbx+38h]                                                 ; +0x1a, 0x180096e2a\ntest    rbx, rbx                                                       ; +0x1e, 0x180096e2e\njz      loc_180096FFE                                                  ; +0x21, 0x180096e31\nmov     [rsp+28h+arg_0], rbp                                           ; +0x27, 0x180096e37\nxor     ebp, ebp                                                       ; +0x2c, 0x180096e3c\nmov     [rsp+28h+arg_8], rsi                                           ; +0x2e, 0x180096e3e\nmov     rsi, [rbx+120h]                                                ; +0x33, 0x180096e43\nnop     word ptr [rax+rax+00h]                                         ; +0x3a, 0x180096e4a\nmov     r9, [rbx+118h]                                                 ; +0x40, 0x180096e50\ntest    r9, r9                                                         ; +0x47, 0x180096e57\njnz     short loc_180096E9F                                            ; +0x4a, 0x180096e5a\ncmp     [rbx+120h], rbp                                                ; +0x4c, 0x180096e5c\njnz     short loc_180096E9F                                            ; +0x53, 0x180096e63\nmov     rax, [rdi+8]                                                   ; +0x55, 0x180096e65\nmov     rcx, [rax+38h]                                                 ; +0x59, 0x180096e69\nmov     rcx, [rcx+110h]                                                ; +0x5d, 0x180096e6d\nmov     rcx, [rcx]; Block                                              ; +0x64, 0x180096e74\ncall    cs:__imp_free                                                  ; +0x67, 0x180096e77\nmov     rax, [rdi+8]                                                   ; +0x6d, 0x180096e7d\nmov     rcx, [rax+38h]                                                 ; +0x71, 0x180096e81\nmov     rcx, [rcx+110h]; Block                                         ; +0x75, 0x180096e85\ncall    cs:__imp_free                                                  ; +0x7c, 0x180096e8c\nmov     rax, [rdi+8]                                                   ; +0x82, 0x180096e92\nmov     [rax+38h], rbp                                                 ; +0x86, 0x180096e96\njmp     loc_180096FA4                                                  ; +0x8a, 0x180096e9a\nmov     r8, [rdi+8]                                                    ; +0x8f, 0x180096e9f\nlea     rax, [rbx+110h]                                                ; +0x93, 0x180096ea3\nmov     rcx, [r8+38h]                                                  ; +0x9a, 0x180096eaa\nmov     r10, [rcx+110h]                                                ; +0x9e, 0x180096eae\nmov     r11, [r10+20h]                                                 ; +0xa5, 0x180096eb5\nmov     rcx, [r10+18h]                                                 ; +0xa9, 0x180096eb9\nsub     rcx, r11                                                       ; +0xad, 0x180096ebd\ncmp     rbx, rcx                                                       ; +0xb0, 0x180096ec0\njnz     short loc_180096ED1                                            ; +0xb3, 0x180096ec3\nlea     rcx, [r11+r9]                                                  ; +0xb5, 0x180096ec5\nmov     [r10+18h], rcx                                                 ; +0xb9, 0x180096ec9\nmov     r8, [rdi+8]                                                    ; +0xbd, 0x180096ecd\nmov     r10, [rbx+118h]                                                ; +0xc1, 0x180096ed1\nmov     r9, [rbx+120h]                                                 ; +0xc8, 0x180096ed8\ntest    r10, r10                                                       ; +0xcf, 0x180096edf\njz      short loc_180096EFA                                            ; +0xd2, 0x180096ee2\nmov     rcx, [r8+38h]                                                  ; +0xd4, 0x180096ee4\nmov     rdx, [rcx+110h]                                                ; +0xd8, 0x180096ee8\nmov     rcx, [rdx+20h]                                                 ; +0xdf, 0x180096eef\nmov     [rcx+r10+10h], r9                                              ; +0xe3, 0x180096ef3\njmp     short loc_180096EFE                                            ; +0xe8, 0x180096ef8\nmov     [r8+38h], r9                                                   ; +0xea, 0x180096efa\nmov     r8, [rax+10h]                                                  ; +0xee, 0x180096efe\ntest    r8, r8                                                         ; +0xf2, 0x180096f02\njz      short loc_180096F23                                            ; +0xf5, 0x180096f05\nmov     rcx, [rdi+8]                                                   ; +0xf7, 0x180096f07\nmov     rdx, [rcx+38h]                                                 ; +0xfb, 0x180096f0b\nmov     rcx, [rdx+110h]                                                ; +0xff, 0x180096f0f\nmov     rdx, [rcx+20h]                                                 ; +0x106, 0x180096f16\nmov     rcx, [rax+8]                                                   ; +0x10a, 0x180096f1a\nmov     [rdx+r8+8], rcx                                                ; +0x10e, 0x180096f1e\nmov     rcx, [rdi+8]                                                   ; +0x113, 0x180096f23\nmov     rdx, [rcx+38h]                                                 ; +0x117, 0x180096f27\nmov     ecx, [rax+34h]                                                 ; +0x11b, 0x180096f2b\nmov     r9, [rdx+110h]                                                 ; +0x11e, 0x180096f2e\nmov     r10d, [r9+8]                                                   ; +0x125, 0x180096f35\ndec     r10d                                                           ; +0x129, 0x180096f39\nand     r10, rcx                                                       ; +0x12c, 0x180096f3c\nmov     rcx, [r9]                                                      ; +0x12f, 0x180096f3f\nmov     r8, r10                                                        ; +0x132, 0x180096f42\nadd     r8, r8                                                         ; +0x135, 0x180096f45\ndec     dword ptr [rcx+r8*8+8]                                         ; +0x138, 0x180096f48\nmov     rcx, [rdi+8]                                                   ; +0x13d, 0x180096f4d\nmov     rdx, [rcx+38h]                                                 ; +0x141, 0x180096f51\nmov     rcx, [rdx+110h]                                                ; +0x145, 0x180096f55\nmov     rdx, [rcx]                                                     ; +0x14c, 0x180096f5c\ncmp     [rdx+r8*8], rax                                                ; +0x14f, 0x180096f5f\njnz     short loc_180096F70                                            ; +0x153, 0x180096f63\nmov     rcx, [rax+20h]                                                 ; +0x155, 0x180096f65\nadd     r10, r10                                                       ; +0x159, 0x180096f69\nmov     [rdx+r10*8], rcx                                               ; +0x15c, 0x180096f6c\nmov     rdx, [rax+18h]                                                 ; +0x160, 0x180096f70\ntest    rdx, rdx                                                       ; +0x164, 0x180096f74\njz      short loc_180096F81                                            ; +0x167, 0x180096f77\nmov     rcx, [rax+20h]                                                 ; +0x169, 0x180096f79\nmov     [rdx+20h], rcx                                                 ; +0x16d, 0x180096f7d\nmov     rdx, [rax+20h]                                                 ; +0x171, 0x180096f81\ntest    rdx, rdx                                                       ; +0x175, 0x180096f85\njz      short loc_180096F92                                            ; +0x178, 0x180096f88\nmov     rcx, [rax+18h]                                                 ; +0x17a, 0x180096f8a\nmov     [rdx+18h], rcx                                                 ; +0x17e, 0x180096f8e\nmov     rax, [rdi+8]                                                   ; +0x182, 0x180096f92\nmov     rcx, [rax+38h]                                                 ; +0x186, 0x180096f96\nmov     rax, [rcx+110h]                                                ; +0x18a, 0x180096f9a\ndec     dword ptr [rax+10h]                                            ; +0x191, 0x180096fa1\nmov     rcx, [rbx+108h]                                                ; +0x194, 0x180096fa4\nmov     rax, [rcx]                                                     ; +0x19b, 0x180096fab\ncall    qword ptr [rax+58h]                                            ; +0x19e, 0x180096fae\nmov     rcx, [rbx+108h]; this                                          ; +0x1a1, 0x180096fb1\nxor     edx, edx; struct cocos2d::CCNode *                             ; +0x1a8, 0x180096fb8\ncall    ?setOwner@CCComponent@cocos2d@@QEAAXPEAVCCNode@2@@Z; cocos2d::CCComponent::setOwner(cocos2d::CCNode *) ; +0x1aa, 0x180096fba\nmov     rcx, [rbx+108h]; this                                          ; +0x1af, 0x180096fbf\ncall    ?release@CCObject@cocos2d@@QEAAXXZ; cocos2d::CCObject::release(void) ; +0x1b6, 0x180096fc6\nmov     rcx, rbx; this                                                 ; +0x1bb, 0x180096fcb\ncall    ?updateTweenActionInt@CCNode@cocos2d@@UEAAXMH@Z; cocos2d::CCNode::updateTweenActionInt(float,int) ; +0x1be, 0x180096fce\nmov     edx, 148h                                                      ; +0x1c3, 0x180096fd3\nmov     rcx, rbx; Block                                                ; +0x1c8, 0x180096fd8\ncall    j_j_free_0                                                     ; +0x1cb, 0x180096fdb\nmov     rbx, rsi                                                       ; +0x1d0, 0x180096fe0\ntest    rsi, rsi                                                       ; +0x1d3, 0x180096fe3\njz      short loc_180096FF4                                            ; +0x1d6, 0x180096fe6\nmov     rsi, [rsi+120h]                                                ; +0x1d8, 0x180096fe8\njmp     loc_180096E50                                                  ; +0x1df, 0x180096fef\nmov     rbp, [rsp+28h+arg_0]                                           ; +0x1e4, 0x180096ff4\nmov     rsi, [rsp+28h+arg_8]                                           ; +0x1e9, 0x180096ff9\nmov     rcx, [rdi+10h]; this                                           ; +0x1ee, 0x180096ffe\ncall    ?unscheduleUpdate@CCNode@cocos2d@@QEAAXXZ; cocos2d::CCNode::unscheduleUpdate(void) ; +0x1f2, 0x180097002\nmov     rbx, [rsp+28h+arg_10]                                          ; +0x1f7, 0x180097007\nadd     rsp, 20h                                                       ; +0x1fc, 0x18009700c\npop     rdi                                                            ; +0x200, 0x180097010\nretn                                                                   ; +0x201, 0x180097011", "xrefs": ["<???> @ 0x1801045b8", "<???> @ 0x18013e760", "<???> @ 0x18013e770", "<???> @ 0x1801438a8", "<???> @ 0x1801b6948"], "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"}