{"type": "func", "start": 6443082224, "end": 6443082749, "name": "cocos2d::CCComponentContainer::remove", "pseudocode": "// \n// cocos2d::CCComponentContainer::remove from 0x18009a1f0 to 0x18009a3fd (525 bytes)\n// \n// 3 xrefs:\n// > <???> @ 0x18010ac28\n// > <???> @ 0x18014cf68\n// > <???> @ 0x1801c0bac\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\nchar __fastcall cocos2d::CCComponentContainer::remove(\n        cocos2d::CCComponentContainer *this,\n        struct cocos2d::CCComponent *a2)\n{\n  float v2; // xmm1_4\n  __int64 v3; // rbx\n  __int64 v6; // rbx\n  __int64 v7; // rax\n  __int64 v8; // rdx\n  __int64 v9; // rcx\n  __int64 v10; // r10\n  __int64 v11; // rcx\n  __int64 v12; // rdx\n  __int64 v13; // rdx\n  __int64 v14; // r10\n  _QWORD *v15; // rax\n  __int64 v16; // rcx\n  __int64 v17; // rcx\n  __int64 v18; // rax\n\n  v3 = *((_QWORD *)this + 1);\n  if ( !v3 )\n    return 0;\n  v6 = *(_QWORD *)(v3 + 56);\n  if ( v6 )\n  {\n    v7 = *(_QWORD *)(v6 + 288);\n    while ( *(struct cocos2d::CCComponent **)(v6 + 264) != a2 )\n    {\n      v6 = v7;\n      if ( !v7 )\n        return 1;\n      v7 = *(_QWORD *)(v7 + 288);\n    }\n    (*(void (__fastcall **)(struct cocos2d::CCComponent *))(*(_QWORD *)a2 + 88LL))(a2);\n    cocos2d::CCComponent::setOwner(a2, nullptr);\n    if ( *(_OWORD *)(v6 + 280) == 0 )\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    else\n    {\n      v8 = *(_QWORD *)(*(_QWORD *)(*((_QWORD *)this + 1) + 56LL) + 272LL);\n      v9 = *(_QWORD *)(v8 + 32);\n      if ( v6 == *(_QWORD *)(v8 + 24) - v9 )\n        *(_QWORD *)(v8 + 24) = *(_QWORD *)(v6 + 280) + v9;\n      v10 = *(_QWORD *)(v6 + 280);\n      v11 = *((_QWORD *)this + 1);\n      if ( v10 )\n        *(_QWORD *)(*(_QWORD *)(*(_QWORD *)(*(_QWORD *)(v11 + 56) + 272LL) + 32LL) + v10 + 16) = *(_QWORD *)(v6 + 288);\n      else\n        *(_QWORD *)(v11 + 56) = *(_QWORD *)(v6 + 288);\n      v12 = *(_QWORD *)(v6 + 288);\n      if ( v12 )\n        *(_QWORD *)(*(_QWORD *)(*(_QWORD *)(*(_QWORD *)(*((_QWORD *)this + 1) + 56LL) + 272LL) + 32LL) + v12 + 8) = *(_QWORD *)(v6 + 280);\n      v13 = *(_QWORD *)(*(_QWORD *)(*((_QWORD *)this + 1) + 56LL) + 272LL);\n      v14 = *(_DWORD *)(v6 + 324) & (unsigned int)(*(_DWORD *)(v13 + 8) - 1);\n      --*(_DWORD *)(16 * v14 + *(_QWORD *)v13 + 8);\n      v15 = *(_QWORD **)(*(_QWORD *)(*((_QWORD *)this + 1) + 56LL) + 272LL);\n      if ( *(_QWORD *)(16 * v14 + *v15) == v6 + 272 )\n        *(_QWORD *)(*v15 + 16 * v14) = *(_QWORD *)(v6 + 304);\n      v16 = *(_QWORD *)(v6 + 296);\n      if ( v16 )\n        *(_QWORD *)(v16 + 32) = *(_QWORD *)(v6 + 304);\n      v17 = *(_QWORD *)(v6 + 304);\n      if ( v17 )\n        *(_QWORD *)(v17 + 24) = *(_QWORD *)(v6 + 296);\n      v18 = *(_QWORD *)(*(_QWORD *)(*((_QWORD *)this + 1) + 56LL) + 272LL);\n      --*(_DWORD *)(v18 + 16);\n    }\n    cocos2d::CCObject::release(*(cocos2d::CCObject **)(v6 + 264));\n    cocos2d::CCNode::updateTweenActionInt((cocos2d::CCNode *)v6, v2);\n    j_j_free_0((void *)v6);\n  }\n  return 1;\n}", "assembly": "; \n; cocos2d::CCComponentContainer::remove from 0x18009a1f0 to 0x18009a3fd (525 bytes)\n; \n; 3 xrefs:\n; > <???> @ 0x18010ac28\n; > <???> @ 0x18014cf68\n; > <???> @ 0x1801c0bac\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_0], rbx                                               ; +0x0, 0x18009a1f0\nmov     [rsp+arg_8], rsi                                               ; +0x5, 0x18009a1f5\npush    rdi                                                            ; +0xa, 0x18009a1fa\nsub     rsp, 20h                                                       ; +0xb, 0x18009a1fb\nmov     rbx, [rcx+8]                                                   ; +0xf, 0x18009a1ff\nmov     rsi, rdx                                                       ; +0x13, 0x18009a203\nmov     rdi, rcx                                                       ; +0x16, 0x18009a206\ntest    rbx, rbx                                                       ; +0x19, 0x18009a209\njz      loc_18009A3EB                                                  ; +0x1c, 0x18009a20c\nmov     rbx, [rbx+38h]                                                 ; +0x22, 0x18009a212\ntest    rbx, rbx                                                       ; +0x26, 0x18009a216\njz      loc_18009A3D9                                                  ; +0x29, 0x18009a219\nmov     rax, [rbx+120h]                                                ; +0x2f, 0x18009a21f\ncmp     [rbx+108h], rsi                                                ; +0x36, 0x18009a226\njz      short loc_18009A244                                            ; +0x3d, 0x18009a22d\nmov     rbx, rax                                                       ; +0x3f, 0x18009a22f\ntest    rax, rax                                                       ; +0x42, 0x18009a232\njz      loc_18009A3D9                                                  ; +0x45, 0x18009a235\nmov     rax, [rax+120h]                                                ; +0x4b, 0x18009a23b\njmp     short loc_18009A226                                            ; +0x52, 0x18009a242\nmov     rax, [rdx]                                                     ; +0x54, 0x18009a244\nmov     rcx, rsi                                                       ; +0x57, 0x18009a247\ncall    qword ptr [rax+58h]                                            ; +0x5a, 0x18009a24a\nxor     edx, edx; struct cocos2d::CCNode *                             ; +0x5d, 0x18009a24d\nmov     rcx, rsi; this                                                 ; +0x5f, 0x18009a24f\ncall    ?setOwner@CCComponent@cocos2d@@QEAAXPEAVCCNode@2@@Z; cocos2d::CCComponent::setOwner(cocos2d::CCNode *) ; +0x62, 0x18009a252\nmov     r10, [rbx+118h]                                                ; +0x67, 0x18009a257\ntest    r10, r10                                                       ; +0x6e, 0x18009a25e\njnz     short loc_18009A2AA                                            ; +0x71, 0x18009a261\ncmp     [rbx+120h], r10                                                ; +0x73, 0x18009a263\njnz     short loc_18009A2AA                                            ; +0x7a, 0x18009a26a\nmov     rax, [rdi+8]                                                   ; +0x7c, 0x18009a26c\nmov     rcx, [rax+38h]                                                 ; +0x80, 0x18009a270\nmov     rcx, [rcx+110h]                                                ; +0x84, 0x18009a274\nmov     rcx, [rcx]; Block                                              ; +0x8b, 0x18009a27b\ncall    cs:__imp_free                                                  ; +0x8e, 0x18009a27e\nmov     rax, [rdi+8]                                                   ; +0x94, 0x18009a284\nmov     rcx, [rax+38h]                                                 ; +0x98, 0x18009a288\nmov     rcx, [rcx+110h]; Block                                         ; +0x9c, 0x18009a28c\ncall    cs:__imp_free                                                  ; +0xa3, 0x18009a293\nmov     rax, [rdi+8]                                                   ; +0xa9, 0x18009a299\nmov     qword ptr [rax+38h], 0                                         ; +0xad, 0x18009a29d\njmp     loc_18009A3B8                                                  ; +0xb5, 0x18009a2a5\nmov     rax, [rdi+8]                                                   ; +0xba, 0x18009a2aa\nlea     r9, [rbx+110h]                                                 ; +0xbe, 0x18009a2ae\nmov     rcx, [rax+38h]                                                 ; +0xc5, 0x18009a2b5\nmov     rdx, [rcx+110h]                                                ; +0xc9, 0x18009a2b9\nmov     rcx, [rdx+20h]                                                 ; +0xd0, 0x18009a2c0\nmov     rax, [rdx+18h]                                                 ; +0xd4, 0x18009a2c4\nsub     rax, rcx                                                       ; +0xd8, 0x18009a2c8\ncmp     rbx, rax                                                       ; +0xdb, 0x18009a2cb\njnz     short loc_18009A2D8                                            ; +0xde, 0x18009a2ce\nlea     rax, [r10+rcx]                                                 ; +0xe0, 0x18009a2d0\nmov     [rdx+18h], rax                                                 ; +0xe4, 0x18009a2d4\nmov     r10, [rbx+118h]                                                ; +0xe8, 0x18009a2d8\nmov     rcx, [rdi+8]                                                   ; +0xef, 0x18009a2df\ntest    r10, r10                                                       ; +0xf3, 0x18009a2e3\njz      short loc_18009A305                                            ; +0xf6, 0x18009a2e6\nmov     rax, [rcx+38h]                                                 ; +0xf8, 0x18009a2e8\nmov     rcx, [rax+110h]                                                ; +0xfc, 0x18009a2ec\nmov     rax, [rbx+120h]                                                ; +0x103, 0x18009a2f3\nmov     rdx, [rcx+20h]                                                 ; +0x10a, 0x18009a2fa\nmov     [rdx+r10+10h], rax                                             ; +0x10e, 0x18009a2fe\njmp     short loc_18009A310                                            ; +0x113, 0x18009a303\nmov     rax, [rbx+120h]                                                ; +0x115, 0x18009a305\nmov     [rcx+38h], rax                                                 ; +0x11c, 0x18009a30c\nmov     rdx, [r9+10h]                                                  ; +0x120, 0x18009a310\ntest    rdx, rdx                                                       ; +0x124, 0x18009a314\njz      short loc_18009A335                                            ; +0x127, 0x18009a317\nmov     rax, [rdi+8]                                                   ; +0x129, 0x18009a319\nmov     rcx, [rax+38h]                                                 ; +0x12d, 0x18009a31d\nmov     rax, [rcx+110h]                                                ; +0x131, 0x18009a321\nmov     rcx, [rax+20h]                                                 ; +0x138, 0x18009a328\nmov     rax, [r9+8]                                                    ; +0x13c, 0x18009a32c\nmov     [rcx+rdx+8], rax                                               ; +0x140, 0x18009a330\nmov     rax, [rdi+8]                                                   ; +0x145, 0x18009a335\nmov     rcx, [rax+38h]                                                 ; +0x149, 0x18009a339\nmov     eax, [r9+34h]                                                  ; +0x14d, 0x18009a33d\nmov     rdx, [rcx+110h]                                                ; +0x151, 0x18009a341\nmov     r10d, [rdx+8]                                                  ; +0x158, 0x18009a348\ndec     r10d                                                           ; +0x15c, 0x18009a34c\nand     r10, rax                                                       ; +0x15f, 0x18009a34f\nmov     rax, [rdx]                                                     ; +0x162, 0x18009a352\nmov     r8, r10                                                        ; +0x165, 0x18009a355\nshl     r8, 4                                                          ; +0x168, 0x18009a358\ndec     dword ptr [r8+rax+8]                                           ; +0x16c, 0x18009a35c\nmov     rax, [rdi+8]                                                   ; +0x171, 0x18009a361\nmov     rcx, [rax+38h]                                                 ; +0x175, 0x18009a365\nmov     rax, [rcx+110h]                                                ; +0x179, 0x18009a369\nmov     rcx, [rax]                                                     ; +0x180, 0x18009a370\ncmp     [r8+rcx], r9                                                   ; +0x183, 0x18009a373\njnz     short loc_18009A384                                            ; +0x187, 0x18009a377\nmov     rax, [r9+20h]                                                  ; +0x189, 0x18009a379\nadd     r10, r10                                                       ; +0x18d, 0x18009a37d\nmov     [rcx+r10*8], rax                                               ; +0x190, 0x18009a380\nmov     rcx, [r9+18h]                                                  ; +0x194, 0x18009a384\ntest    rcx, rcx                                                       ; +0x198, 0x18009a388\njz      short loc_18009A395                                            ; +0x19b, 0x18009a38b\nmov     rax, [r9+20h]                                                  ; +0x19d, 0x18009a38d\nmov     [rcx+20h], rax                                                 ; +0x1a1, 0x18009a391\nmov     rcx, [r9+20h]                                                  ; +0x1a5, 0x18009a395\ntest    rcx, rcx                                                       ; +0x1a9, 0x18009a399\njz      short loc_18009A3A6                                            ; +0x1ac, 0x18009a39c\nmov     rax, [r9+18h]                                                  ; +0x1ae, 0x18009a39e\nmov     [rcx+18h], rax                                                 ; +0x1b2, 0x18009a3a2\nmov     rax, [rdi+8]                                                   ; +0x1b6, 0x18009a3a6\nmov     rdx, [rax+38h]                                                 ; +0x1ba, 0x18009a3aa\nmov     rax, [rdx+110h]                                                ; +0x1be, 0x18009a3ae\ndec     dword ptr [rax+10h]                                            ; +0x1c5, 0x18009a3b5\nmov     rcx, [rbx+108h]; this                                          ; +0x1c8, 0x18009a3b8\ncall    ?release@CCObject@cocos2d@@QEAAXXZ; cocos2d::CCObject::release(void) ; +0x1cf, 0x18009a3bf\nmov     rcx, rbx; this                                                 ; +0x1d4, 0x18009a3c4\ncall    ?updateTweenActionInt@CCNode@cocos2d@@UEAAXMH@Z; cocos2d::CCNode::updateTweenActionInt(float,int) ; +0x1d7, 0x18009a3c7\nmov     edx, 148h                                                      ; +0x1dc, 0x18009a3cc\nmov     rcx, rbx; Block                                                ; +0x1e1, 0x18009a3d1\ncall    j_j_free_0                                                     ; +0x1e4, 0x18009a3d4\nmov     al, 1                                                          ; +0x1e9, 0x18009a3d9\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x1eb, 0x18009a3db\nmov     rsi, [rsp+28h+arg_8]                                           ; +0x1f0, 0x18009a3e0\nadd     rsp, 20h                                                       ; +0x1f5, 0x18009a3e5\npop     rdi                                                            ; +0x1f9, 0x18009a3e9\nretn                                                                   ; +0x1fa, 0x18009a3ea\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x1fb, 0x18009a3eb\nxor     al, al                                                         ; +0x200, 0x18009a3f0\nmov     rsi, [rsp+28h+arg_8]                                           ; +0x202, 0x18009a3f2\nadd     rsp, 20h                                                       ; +0x207, 0x18009a3f7\npop     rdi                                                            ; +0x20b, 0x18009a3fb\nretn                                                                   ; +0x20c, 0x18009a3fc", "xrefs": ["<???> @ 0x18010ac28", "<???> @ 0x18014cf68", "<???> @ 0x1801c0bac"], "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"}