{"type": "func", "start": 6443083600, "end": 6443084122, "name": "cocos2d::CCComponentContainer::removeAll", "pseudocode": "// \n// cocos2d::CCComponentContainer::removeAll from 0x18009a750 to 0x18009a95a (522 bytes)\n// \n// 5 xrefs:\n// > <???> @ 0x18010ac38\n// > <???> @ 0x1801479ec\n// > <???> @ 0x1801479fc\n// > <???> @ 0x18014cf68\n// > <???> @ 0x1801c0be8\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:22:11 +0000\n// \n\nvoid __fastcall cocos2d::CCComponentContainer::removeAll(cocos2d::CCComponentContainer *this, float a2)\n{\n  __int64 v2; // rbx\n  __int64 v4; // rbx\n  __int64 i; // rsi\n  __int64 v6; // r8\n  __int64 v7; // r10\n  __int64 v8; // rdx\n  __int64 v9; // r10\n  __int64 v10; // rdx\n  __int64 v11; // r8\n  __int64 v12; // r9\n  __int64 v13; // r10\n  _QWORD *v14; // rcx\n  __int64 v15; // rdx\n  __int64 v16; // rdx\n  __int64 v17; // rax\n\n  v2 = *((_QWORD *)this + 1);\n  if ( v2 )\n  {\n    v4 = *(_QWORD *)(v2 + 56);\n    if ( v4 )\n    {\n      for ( i = *(_QWORD *)(v4 + 288); ; i = *(_QWORD *)(i + 288) )\n      {\n        v6 = *(_QWORD *)(v4 + 280);\n        if ( v6 || *(_QWORD *)(v4 + 288) )\n        {\n          v7 = *(_QWORD *)(*(_QWORD *)(*((_QWORD *)this + 1) + 56LL) + 272LL);\n          v8 = *(_QWORD *)(v7 + 32);\n          if ( v4 == *(_QWORD *)(v7 + 24) - v8 )\n            *(_QWORD *)(v7 + 24) = v6 + v8;\n          v9 = *(_QWORD *)(v4 + 280);\n          v10 = *((_QWORD *)this + 1);\n          if ( v9 )\n            *(_QWORD *)(*(_QWORD *)(*(_QWORD *)(*(_QWORD *)(v10 + 56) + 272LL) + 32LL) + v9 + 16) = *(_QWORD *)(v4 + 288);\n          else\n            *(_QWORD *)(v10 + 56) = *(_QWORD *)(v4 + 288);\n          v11 = *(_QWORD *)(v4 + 288);\n          if ( v11 )\n            *(_QWORD *)(*(_QWORD *)(*(_QWORD *)(*(_QWORD *)(*((_QWORD *)this + 1) + 56LL) + 272LL) + 32LL) + v11 + 8) = *(_QWORD *)(v4 + 280);\n          v12 = *(_QWORD *)(*(_QWORD *)(*((_QWORD *)this + 1) + 56LL) + 272LL);\n          v13 = *(_DWORD *)(v4 + 324) & (unsigned int)(*(_DWORD *)(v12 + 8) - 1);\n          --*(_DWORD *)(16 * v13 + *(_QWORD *)v12 + 8);\n          v14 = *(_QWORD **)(*(_QWORD *)(*((_QWORD *)this + 1) + 56LL) + 272LL);\n          if ( *(_QWORD *)(16 * v13 + *v14) == v4 + 272 )\n            *(_QWORD *)(*v14 + 16 * v13) = *(_QWORD *)(v4 + 304);\n          v15 = *(_QWORD *)(v4 + 296);\n          if ( v15 )\n            *(_QWORD *)(v15 + 32) = *(_QWORD *)(v4 + 304);\n          v16 = *(_QWORD *)(v4 + 304);\n          if ( v16 )\n            *(_QWORD *)(v16 + 24) = *(_QWORD *)(v4 + 296);\n          v17 = *(_QWORD *)(*(_QWORD *)(*((_QWORD *)this + 1) + 56LL) + 272LL);\n          --*(_DWORD *)(v17 + 16);\n        }\n        else\n        {\n          free(**(void ***)(*(_QWORD *)(*((_QWORD *)this + 1) + 56LL) + 272LL));\n          free(*(void **)(*(_QWORD *)(*((_QWORD *)this + 1) + 56LL) + 272LL));\n          *(_QWORD *)(*((_QWORD *)this + 1) + 56LL) = 0;\n        }\n        (*(void (__fastcall **)(_QWORD))(**(_QWORD **)(v4 + 264) + 88LL))(*(_QWORD *)(v4 + 264));\n        cocos2d::CCComponent::setOwner(*(cocos2d::CCComponent **)(v4 + 264), nullptr);\n        cocos2d::CCObject::release(*(cocos2d::CCObject **)(v4 + 264));\n        cocos2d::CCNode::updateTweenActionInt((cocos2d::CCNode *)v4, a2);\n        j_j_free_0((void *)v4);\n        v4 = i;\n        if ( !i )\n          break;\n      }\n    }\n    cocos2d::CCNode::unscheduleUpdate(*((cocos2d::CCScheduler ***)this + 2));\n  }\n}", "assembly": "; \n; cocos2d::CCComponentContainer::removeAll from 0x18009a750 to 0x18009a95a (522 bytes)\n; \n; 5 xrefs:\n; > <???> @ 0x18010ac38\n; > <???> @ 0x1801479ec\n; > <???> @ 0x1801479fc\n; > <???> @ 0x18014cf68\n; > <???> @ 0x1801c0be8\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:22:11 +0000\n; \nmov     [rsp+arg_10], rbx                                              ; +0x0, 0x18009a750\npush    rdi                                                            ; +0x5, 0x18009a755\nsub     rsp, 20h                                                       ; +0x6, 0x18009a756\nmov     rbx, [rcx+8]                                                   ; +0xa, 0x18009a75a\nmov     rdi, rcx                                                       ; +0xe, 0x18009a75e\ntest    rbx, rbx                                                       ; +0x11, 0x18009a761\njz      loc_18009A94F                                                  ; +0x14, 0x18009a764\nmov     rbx, [rbx+38h]                                                 ; +0x1a, 0x18009a76a\ntest    rbx, rbx                                                       ; +0x1e, 0x18009a76e\njz      loc_18009A946                                                  ; +0x21, 0x18009a771\nmov     [rsp+28h+arg_0], rbp                                           ; +0x27, 0x18009a777\nxor     ebp, ebp                                                       ; +0x2c, 0x18009a77c\nmov     [rsp+28h+arg_8], rsi                                           ; +0x2e, 0x18009a77e\nmov     rsi, [rbx+120h]                                                ; +0x33, 0x18009a783\nnop     word ptr [rax+rax+00h]                                         ; +0x3a, 0x18009a78a\nmov     r8, [rbx+118h]                                                 ; +0x40, 0x18009a790\ntest    r8, r8                                                         ; +0x47, 0x18009a797\njnz     short loc_18009A7DF                                            ; +0x4a, 0x18009a79a\ncmp     [rbx+120h], rbp                                                ; +0x4c, 0x18009a79c\njnz     short loc_18009A7DF                                            ; +0x53, 0x18009a7a3\nmov     rax, [rdi+8]                                                   ; +0x55, 0x18009a7a5\nmov     rcx, [rax+38h]                                                 ; +0x59, 0x18009a7a9\nmov     rcx, [rcx+110h]                                                ; +0x5d, 0x18009a7ad\nmov     rcx, [rcx]; Block                                              ; +0x64, 0x18009a7b4\ncall    cs:__imp_free                                                  ; +0x67, 0x18009a7b7\nmov     rax, [rdi+8]                                                   ; +0x6d, 0x18009a7bd\nmov     rcx, [rax+38h]                                                 ; +0x71, 0x18009a7c1\nmov     rcx, [rcx+110h]; Block                                         ; +0x75, 0x18009a7c5\ncall    cs:__imp_free                                                  ; +0x7c, 0x18009a7cc\nmov     rax, [rdi+8]                                                   ; +0x82, 0x18009a7d2\nmov     [rax+38h], rbp                                                 ; +0x86, 0x18009a7d6\njmp     loc_18009A8EC                                                  ; +0x8a, 0x18009a7da\nmov     rcx, [rdi+8]                                                   ; +0x8f, 0x18009a7df\nlea     rax, [rbx+110h]                                                ; +0x93, 0x18009a7e3\nmov     rdx, [rcx+38h]                                                 ; +0x9a, 0x18009a7ea\nmov     r10, [rdx+110h]                                                ; +0x9e, 0x18009a7ee\nmov     rdx, [r10+20h]                                                 ; +0xa5, 0x18009a7f5\nmov     rcx, [r10+18h]                                                 ; +0xa9, 0x18009a7f9\nsub     rcx, rdx                                                       ; +0xad, 0x18009a7fd\ncmp     rbx, rcx                                                       ; +0xb0, 0x18009a800\njnz     short loc_18009A80D                                            ; +0xb3, 0x18009a803\nlea     rcx, [r8+rdx]                                                  ; +0xb5, 0x18009a805\nmov     [r10+18h], rcx                                                 ; +0xb9, 0x18009a809\nmov     r10, [rbx+118h]                                                ; +0xbd, 0x18009a80d\nmov     rdx, [rdi+8]                                                   ; +0xc4, 0x18009a814\ntest    r10, r10                                                       ; +0xc8, 0x18009a818\njz      short loc_18009A83A                                            ; +0xcb, 0x18009a81b\nmov     rcx, [rdx+38h]                                                 ; +0xcd, 0x18009a81d\nmov     rdx, [rcx+110h]                                                ; +0xd1, 0x18009a821\nmov     rcx, [rbx+120h]                                                ; +0xd8, 0x18009a828\nmov     r8, [rdx+20h]                                                  ; +0xdf, 0x18009a82f\nmov     [r8+r10+10h], rcx                                              ; +0xe3, 0x18009a833\njmp     short loc_18009A845                                            ; +0xe8, 0x18009a838\nmov     rcx, [rbx+120h]                                                ; +0xea, 0x18009a83a\nmov     [rdx+38h], rcx                                                 ; +0xf1, 0x18009a841\nmov     r8, [rax+10h]                                                  ; +0xf5, 0x18009a845\ntest    r8, r8                                                         ; +0xf9, 0x18009a849\njz      short loc_18009A86A                                            ; +0xfc, 0x18009a84c\nmov     rcx, [rdi+8]                                                   ; +0xfe, 0x18009a84e\nmov     rdx, [rcx+38h]                                                 ; +0x102, 0x18009a852\nmov     rcx, [rdx+110h]                                                ; +0x106, 0x18009a856\nmov     rdx, [rcx+20h]                                                 ; +0x10d, 0x18009a85d\nmov     rcx, [rax+8]                                                   ; +0x111, 0x18009a861\nmov     [rdx+r8+8], rcx                                                ; +0x115, 0x18009a865\nmov     rcx, [rdi+8]                                                   ; +0x11a, 0x18009a86a\nmov     rdx, [rcx+38h]                                                 ; +0x11e, 0x18009a86e\nmov     ecx, [rax+34h]                                                 ; +0x122, 0x18009a872\nmov     r9, [rdx+110h]                                                 ; +0x125, 0x18009a875\nmov     r10d, [r9+8]                                                   ; +0x12c, 0x18009a87c\ndec     r10d                                                           ; +0x130, 0x18009a880\nand     r10, rcx                                                       ; +0x133, 0x18009a883\nmov     rcx, [r9]                                                      ; +0x136, 0x18009a886\nmov     r8, r10                                                        ; +0x139, 0x18009a889\nshl     r8, 4                                                          ; +0x13c, 0x18009a88c\ndec     dword ptr [r8+rcx+8]                                           ; +0x140, 0x18009a890\nmov     rcx, [rdi+8]                                                   ; +0x145, 0x18009a895\nmov     rdx, [rcx+38h]                                                 ; +0x149, 0x18009a899\nmov     rcx, [rdx+110h]                                                ; +0x14d, 0x18009a89d\nmov     rdx, [rcx]                                                     ; +0x154, 0x18009a8a4\ncmp     [r8+rdx], rax                                                  ; +0x157, 0x18009a8a7\njnz     short loc_18009A8B8                                            ; +0x15b, 0x18009a8ab\nmov     rcx, [rax+20h]                                                 ; +0x15d, 0x18009a8ad\nadd     r10, r10                                                       ; +0x161, 0x18009a8b1\nmov     [rdx+r10*8], rcx                                               ; +0x164, 0x18009a8b4\nmov     rdx, [rax+18h]                                                 ; +0x168, 0x18009a8b8\ntest    rdx, rdx                                                       ; +0x16c, 0x18009a8bc\njz      short loc_18009A8C9                                            ; +0x16f, 0x18009a8bf\nmov     rcx, [rax+20h]                                                 ; +0x171, 0x18009a8c1\nmov     [rdx+20h], rcx                                                 ; +0x175, 0x18009a8c5\nmov     rdx, [rax+20h]                                                 ; +0x179, 0x18009a8c9\ntest    rdx, rdx                                                       ; +0x17d, 0x18009a8cd\njz      short loc_18009A8DA                                            ; +0x180, 0x18009a8d0\nmov     rcx, [rax+18h]                                                 ; +0x182, 0x18009a8d2\nmov     [rdx+18h], rcx                                                 ; +0x186, 0x18009a8d6\nmov     rax, [rdi+8]                                                   ; +0x18a, 0x18009a8da\nmov     rcx, [rax+38h]                                                 ; +0x18e, 0x18009a8de\nmov     rax, [rcx+110h]                                                ; +0x192, 0x18009a8e2\ndec     dword ptr [rax+10h]                                            ; +0x199, 0x18009a8e9\nmov     rcx, [rbx+108h]                                                ; +0x19c, 0x18009a8ec\nmov     rax, [rcx]                                                     ; +0x1a3, 0x18009a8f3\ncall    qword ptr [rax+58h]                                            ; +0x1a6, 0x18009a8f6\nmov     rcx, [rbx+108h]; this                                          ; +0x1a9, 0x18009a8f9\nxor     edx, edx; struct cocos2d::CCNode *                             ; +0x1b0, 0x18009a900\ncall    ?setOwner@CCComponent@cocos2d@@QEAAXPEAVCCNode@2@@Z; cocos2d::CCComponent::setOwner(cocos2d::CCNode *) ; +0x1b2, 0x18009a902\nmov     rcx, [rbx+108h]; this                                          ; +0x1b7, 0x18009a907\ncall    ?release@CCObject@cocos2d@@QEAAXXZ; cocos2d::CCObject::release(void) ; +0x1be, 0x18009a90e\nmov     rcx, rbx; this                                                 ; +0x1c3, 0x18009a913\ncall    ?updateTweenActionInt@CCNode@cocos2d@@UEAAXMH@Z; cocos2d::CCNode::updateTweenActionInt(float,int) ; +0x1c6, 0x18009a916\nmov     edx, 148h                                                      ; +0x1cb, 0x18009a91b\nmov     rcx, rbx; Block                                                ; +0x1d0, 0x18009a920\ncall    j_j_free_0                                                     ; +0x1d3, 0x18009a923\nmov     rbx, rsi                                                       ; +0x1d8, 0x18009a928\ntest    rsi, rsi                                                       ; +0x1db, 0x18009a92b\njz      short loc_18009A93C                                            ; +0x1de, 0x18009a92e\nmov     rsi, [rsi+120h]                                                ; +0x1e0, 0x18009a930\njmp     loc_18009A790                                                  ; +0x1e7, 0x18009a937\nmov     rbp, [rsp+28h+arg_0]                                           ; +0x1ec, 0x18009a93c\nmov     rsi, [rsp+28h+arg_8]                                           ; +0x1f1, 0x18009a941\nmov     rcx, [rdi+10h]; this                                           ; +0x1f6, 0x18009a946\ncall    ?unscheduleUpdate@CCNode@cocos2d@@QEAAXXZ; cocos2d::CCNode::unscheduleUpdate(void) ; +0x1fa, 0x18009a94a\nmov     rbx, [rsp+28h+arg_10]                                          ; +0x1ff, 0x18009a94f\nadd     rsp, 20h                                                       ; +0x204, 0x18009a954\npop     rdi                                                            ; +0x208, 0x18009a958\nretn                                                                   ; +0x209, 0x18009a959", "xrefs": ["<???> @ 0x18010ac38", "<???> @ 0x1801479ec", "<???> @ 0x1801479fc", "<???> @ 0x18014cf68", "<???> @ 0x1801c0be8"], "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"}