{"type": "func", "start": 6442468816, "end": 6442469038, "name": "cocos2d::CCNode::removeAllChildrenWithCleanup", "pseudocode": "// \n// cocos2d::CCNode::removeAllChildrenWithCleanup from 0x1800045d0 to 0x1800046ae (222 bytes)\n// \n// 83 xrefs:\n// > cocos2d::CCParticleBatchNode::removeAllChildrenWithCleanup @ 0x180061993\n// > cocos2d::CCSprite::removeAllChildrenWithCleanup @ 0x18008c09c\n// > cocos2d::CCSpriteBatchNode::removeAllChildrenWithCleanup @ 0x18008edd3\n// > cocos2d::CCParallaxNode::removeAllChildrenWithCleanup @ 0x1800aacdc\n// > <???> @ 0x1800e5610\n// > <???> @ 0x1800e5c70\n// > <???> @ 0x1800e5fe0\n// > <???> @ 0x1800e6940\n// > <???> @ 0x1800e6e48\n// > <???> @ 0x1800eb610\n// > <???> @ 0x1800ed120\n// > <???> @ 0x1800ed5e0\n// > <???> @ 0x1800edb18\n// > <???> @ 0x1800ee080\n// > <???> @ 0x1800ee658\n// > <???> @ 0x1800eeb18\n// > <???> @ 0x1800eeea0\n// > <???> @ 0x1800ef220\n// > <???> @ 0x1800ef5a8\n// > <???> @ 0x1800ef928\n// > <???> @ 0x1800efca8\n// > <???> @ 0x1800f0048\n// > <???> @ 0x1800f03e8\n// > <???> @ 0x1800f0788\n// > <???> @ 0x1800f0b28\n// > <???> @ 0x1800f0ec8\n// > <???> @ 0x1800f1268\n// > <???> @ 0x1800f1608\n// > <???> @ 0x1800f19a8\n// > <???> @ 0x1800f1d38\n// > <???> @ 0x1800f20c0\n// > <???> @ 0x1800f2448\n// > <???> @ 0x1800f27d0\n// > <???> @ 0x1800f2b58\n// > <???> @ 0x1800f2ee0\n// > <???> @ 0x1800f3268\n// > <???> @ 0x1800f35f0\n// > <???> @ 0x1800f3970\n// > <???> @ 0x1800f3d00\n// > <???> @ 0x1800f4098\n// > <???> @ 0x1800f4430\n// > <???> @ 0x1800f47c8\n// > <???> @ 0x1800f4b60\n// > <???> @ 0x1800f4ef8\n// > <???> @ 0x1800f52a8\n// > <???> @ 0x1800f5630\n// > <???> @ 0x1800f59c0\n// > <???> @ 0x1800f5d50\n// > <???> @ 0x1800f60e0\n// > <???> @ 0x1800f6470\n// > <???> @ 0x1800f6800\n// > <???> @ 0x1800f6b90\n// > <???> @ 0x1800f6f28\n// > <???> @ 0x1800f7490\n// > <???> @ 0x1800f78b8\n// > <???> @ 0x1800f7d00\n// > <???> @ 0x1800f8148\n// > <???> @ 0x1800f8590\n// > <???> @ 0x1800f89f0\n// > <???> @ 0x1800f8e50\n// > <???> @ 0x1800f92a0\n// > <???> @ 0x1800f9668\n// > <???> @ 0x1800f9a80\n// > <???> @ 0x1800f9e90\n// > <???> @ 0x1800fa930\n// > <???> @ 0x1800fafa0\n// > <???> @ 0x1800fb610\n// > <???> @ 0x1800fbc80\n// > <???> @ 0x1800fc2f0\n// > <???> @ 0x1800fc960\n// > <???> @ 0x1800fcfd0\n// > <???> @ 0x1800fd640\n// > <???> @ 0x1800fdcb0\n// > <???> @ 0x1800fe320\n// > <???> @ 0x1800fe990\n// > <???> @ 0x1800ff1d8\n// > <???> @ 0x1800ffc78\n// > <???> @ 0x1801057c0\n// > <???> @ 0x180106080\n// > <???> @ 0x180130d2c\n// > <???> @ 0x180130d84\n// > <???> @ 0x1801438a8\n// > <???> @ 0x1801ad4bc\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::CCNode::removeAllChildrenWithCleanup(cocos2d::CCNode *this, char a2)\n{\n  cocos2d::CCArray *m_pChildren; // rcx\n  cocos2d::CCArray *v5; // rax\n  cocos2d::ccArray *data; // rdi\n  __int64 num; // rax\n  cocos2d::CCObject **arr; // rdi\n  cocos2d::CCObject **i; // r14\n  cocos2d::CCObject *v10; // rbx\n\n  m_pChildren = this->m_pChildren;\n  if ( m_pChildren && cocos2d::CCArray::count(m_pChildren) )\n  {\n    v5 = this->m_pChildren;\n    if ( v5 )\n    {\n      data = v5->data;\n      num = data->num;\n      if ( (_DWORD)num )\n      {\n        arr = data->arr;\n        for ( i = &arr[num - 1]; arr <= i; ++arr )\n        {\n          v10 = *arr;\n          if ( !*arr )\n            break;\n          if ( this->m_bRunning )\n          {\n            ((void (__fastcall *)(cocos2d::CCObject *))v10->__vftable[9].getTag)(*arr);\n            ((void (__fastcall *)(cocos2d::CCObject *))v10->__vftable[9].canEncode)(v10);\n          }\n          if ( a2 )\n            ((void (__fastcall *)(cocos2d::CCObject *))v10->__vftable[9].setTag)(v10);\n          ((void (__fastcall *)(cocos2d::CCObject *, _QWORD))v10->__vftable[6].canEncode)(v10, 0);\n        }\n      }\n    }\n    cocos2d::CCArray::removeAllObjects(this->m_pChildren);\n  }\n}", "assembly": "; \n; cocos2d::CCNode::removeAllChildrenWithCleanup from 0x1800045d0 to 0x1800046ae (222 bytes)\n; \n; 83 xrefs:\n; > cocos2d::CCParticleBatchNode::removeAllChildrenWithCleanup @ 0x180061993\n; > cocos2d::CCSprite::removeAllChildrenWithCleanup @ 0x18008c09c\n; > cocos2d::CCSpriteBatchNode::removeAllChildrenWithCleanup @ 0x18008edd3\n; > cocos2d::CCParallaxNode::removeAllChildrenWithCleanup @ 0x1800aacdc\n; > <???> @ 0x1800e5610\n; > <???> @ 0x1800e5c70\n; > <???> @ 0x1800e5fe0\n; > <???> @ 0x1800e6940\n; > <???> @ 0x1800e6e48\n; > <???> @ 0x1800eb610\n; > <???> @ 0x1800ed120\n; > <???> @ 0x1800ed5e0\n; > <???> @ 0x1800edb18\n; > <???> @ 0x1800ee080\n; > <???> @ 0x1800ee658\n; > <???> @ 0x1800eeb18\n; > <???> @ 0x1800eeea0\n; > <???> @ 0x1800ef220\n; > <???> @ 0x1800ef5a8\n; > <???> @ 0x1800ef928\n; > <???> @ 0x1800efca8\n; > <???> @ 0x1800f0048\n; > <???> @ 0x1800f03e8\n; > <???> @ 0x1800f0788\n; > <???> @ 0x1800f0b28\n; > <???> @ 0x1800f0ec8\n; > <???> @ 0x1800f1268\n; > <???> @ 0x1800f1608\n; > <???> @ 0x1800f19a8\n; > <???> @ 0x1800f1d38\n; > <???> @ 0x1800f20c0\n; > <???> @ 0x1800f2448\n; > <???> @ 0x1800f27d0\n; > <???> @ 0x1800f2b58\n; > <???> @ 0x1800f2ee0\n; > <???> @ 0x1800f3268\n; > <???> @ 0x1800f35f0\n; > <???> @ 0x1800f3970\n; > <???> @ 0x1800f3d00\n; > <???> @ 0x1800f4098\n; > <???> @ 0x1800f4430\n; > <???> @ 0x1800f47c8\n; > <???> @ 0x1800f4b60\n; > <???> @ 0x1800f4ef8\n; > <???> @ 0x1800f52a8\n; > <???> @ 0x1800f5630\n; > <???> @ 0x1800f59c0\n; > <???> @ 0x1800f5d50\n; > <???> @ 0x1800f60e0\n; > <???> @ 0x1800f6470\n; > <???> @ 0x1800f6800\n; > <???> @ 0x1800f6b90\n; > <???> @ 0x1800f6f28\n; > <???> @ 0x1800f7490\n; > <???> @ 0x1800f78b8\n; > <???> @ 0x1800f7d00\n; > <???> @ 0x1800f8148\n; > <???> @ 0x1800f8590\n; > <???> @ 0x1800f89f0\n; > <???> @ 0x1800f8e50\n; > <???> @ 0x1800f92a0\n; > <???> @ 0x1800f9668\n; > <???> @ 0x1800f9a80\n; > <???> @ 0x1800f9e90\n; > <???> @ 0x1800fa930\n; > <???> @ 0x1800fafa0\n; > <???> @ 0x1800fb610\n; > <???> @ 0x1800fbc80\n; > <???> @ 0x1800fc2f0\n; > <???> @ 0x1800fc960\n; > <???> @ 0x1800fcfd0\n; > <???> @ 0x1800fd640\n; > <???> @ 0x1800fdcb0\n; > <???> @ 0x1800fe320\n; > <???> @ 0x1800fe990\n; > <???> @ 0x1800ff1d8\n; > <???> @ 0x1800ffc78\n; > <???> @ 0x1801057c0\n; > <???> @ 0x180106080\n; > <???> @ 0x180130d2c\n; > <???> @ 0x180130d84\n; > <???> @ 0x1801438a8\n; > <???> @ 0x1801ad4bc\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_18], rbp                                              ; +0x0, 0x1800045d0\npush    rsi                                                            ; +0x5, 0x1800045d5\nsub     rsp, 20h                                                       ; +0x6, 0x1800045d6\nmov     rsi, rcx                                                       ; +0xa, 0x1800045da\nmovzx   ebp, dl                                                        ; +0xd, 0x1800045dd\nmov     rcx, [rcx+0D0h]; this                                          ; +0x10, 0x1800045e0\ntest    rcx, rcx                                                       ; +0x17, 0x1800045e7\njz      loc_1800046A3                                                  ; +0x1a, 0x1800045ea\ncall    ?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x20, 0x1800045f0\ntest    eax, eax                                                       ; +0x25, 0x1800045f5\njz      loc_1800046A3                                                  ; +0x27, 0x1800045f7\nmov     rax, [rsi+0D0h]                                                ; +0x2d, 0x1800045fd\ntest    rax, rax                                                       ; +0x34, 0x180004604\njz      loc_180004697                                                  ; +0x37, 0x180004607\nmov     [rsp+28h+arg_8], rdi                                           ; +0x3d, 0x18000460d\nmov     rdi, [rax+38h]                                                 ; +0x42, 0x180004612\nmov     eax, [rdi]                                                     ; +0x46, 0x180004616\ntest    eax, eax                                                       ; +0x48, 0x180004618\njz      short loc_180004692                                            ; +0x4a, 0x18000461a\nmov     rdi, [rdi+10h]                                                 ; +0x4c, 0x18000461c\nmov     [rsp+28h+arg_10], r14                                          ; +0x50, 0x180004620\nlea     r14, [rax-1]                                                   ; +0x55, 0x180004625\nlea     r14, [rdi+r14*8]                                               ; +0x59, 0x180004629\ncmp     rdi, r14                                                       ; +0x5d, 0x18000462d\nja      short loc_18000468D                                            ; +0x60, 0x180004630\nmov     [rsp+28h+arg_0], rbx                                           ; +0x62, 0x180004632\nmov     rbx, [rdi]                                                     ; +0x67, 0x180004637\ntest    rbx, rbx                                                       ; +0x6a, 0x18000463a\njz      short loc_180004688                                            ; +0x6d, 0x18000463d\ncmp     byte ptr [rsi+110h], 0                                         ; +0x6f, 0x18000463f\njz      short loc_180004660                                            ; +0x76, 0x180004646\nmov     rax, [rbx]                                                     ; +0x78, 0x180004648\nmov     rcx, rbx                                                       ; +0x7b, 0x18000464b\ncall    qword ptr [rax+2C0h]                                           ; +0x7e, 0x18000464e\nmov     rax, [rbx]                                                     ; +0x84, 0x180004654\nmov     rcx, rbx                                                       ; +0x87, 0x180004657\ncall    qword ptr [rax+2B8h]                                           ; +0x8a, 0x18000465a\ntest    bpl, bpl                                                       ; +0x90, 0x180004660\njz      short loc_180004671                                            ; +0x93, 0x180004663\nmov     rax, [rbx]                                                     ; +0x95, 0x180004665\nmov     rcx, rbx                                                       ; +0x98, 0x180004668\ncall    qword ptr [rax+2C8h]                                           ; +0x9b, 0x18000466b\nmov     rax, [rbx]                                                     ; +0xa1, 0x180004671\nxor     edx, edx                                                       ; +0xa4, 0x180004674\nmov     rcx, rbx                                                       ; +0xa6, 0x180004676\ncall    qword ptr [rax+1E0h]                                           ; +0xa9, 0x180004679\nadd     rdi, 8                                                         ; +0xaf, 0x18000467f\ncmp     rdi, r14                                                       ; +0xb3, 0x180004683\njbe     short loc_180004637                                            ; +0xb6, 0x180004686\nmov     rbx, [rsp+28h+arg_0]                                           ; +0xb8, 0x180004688\nmov     r14, [rsp+28h+arg_10]                                          ; +0xbd, 0x18000468d\nmov     rdi, [rsp+28h+arg_8]                                           ; +0xc2, 0x180004692\nmov     rcx, [rsi+0D0h]; this                                          ; +0xc7, 0x180004697\ncall    ?removeAllObjects@CCArray@cocos2d@@QEAAXXZ; cocos2d::CCArray::removeAllObjects(void) ; +0xce, 0x18000469e\nmov     rbp, [rsp+28h+arg_18]                                          ; +0xd3, 0x1800046a3\nadd     rsp, 20h                                                       ; +0xd8, 0x1800046a8\npop     rsi                                                            ; +0xdc, 0x1800046ac\nretn                                                                   ; +0xdd, 0x1800046ad", "xrefs": ["cocos2d::CCParticleBatchNode::removeAllChildrenWithCleanup @ 0x180061993", "cocos2d::CCSprite::removeAllChildrenWithCleanup @ 0x18008c09c", "cocos2d::CCSpriteBatchNode::removeAllChildrenWithCleanup @ 0x18008edd3", "cocos2d::CCParallaxNode::removeAllChildrenWithCleanup @ 0x1800aacdc", "<???> @ 0x1800e5610", "<???> @ 0x1800e5c70", "<???> @ 0x1800e5fe0", "<???> @ 0x1800e6940", "<???> @ 0x1800e6e48", "<???> @ 0x1800eb610", "<???> @ 0x1800ed120", "<???> @ 0x1800ed5e0", "<???> @ 0x1800edb18", "<???> @ 0x1800ee080", "<???> @ 0x1800ee658", "<???> @ 0x1800eeb18", "<???> @ 0x1800eeea0", "<???> @ 0x1800ef220", "<???> @ 0x1800ef5a8", "<???> @ 0x1800ef928", "<???> @ 0x1800efca8", "<???> @ 0x1800f0048", "<???> @ 0x1800f03e8", "<???> @ 0x1800f0788", "<???> @ 0x1800f0b28", "<???> @ 0x1800f0ec8", "<???> @ 0x1800f1268", "<???> @ 0x1800f1608", "<???> @ 0x1800f19a8", "<???> @ 0x1800f1d38", "<???> @ 0x1800f20c0", "<???> @ 0x1800f2448", "<???> @ 0x1800f27d0", "<???> @ 0x1800f2b58", "<???> @ 0x1800f2ee0", "<???> @ 0x1800f3268", "<???> @ 0x1800f35f0", "<???> @ 0x1800f3970", "<???> @ 0x1800f3d00", "<???> @ 0x1800f4098", "<???> @ 0x1800f4430", "<???> @ 0x1800f47c8", "<???> @ 0x1800f4b60", "<???> @ 0x1800f4ef8", "<???> @ 0x1800f52a8", "<???> @ 0x1800f5630", "<???> @ 0x1800f59c0", "<???> @ 0x1800f5d50", "<???> @ 0x1800f60e0", "<???> @ 0x1800f6470", "<???> @ 0x1800f6800", "<???> @ 0x1800f6b90", "<???> @ 0x1800f6f28", "<???> @ 0x1800f7490", "<???> @ 0x1800f78b8", "<???> @ 0x1800f7d00", "<???> @ 0x1800f8148", "<???> @ 0x1800f8590", "<???> @ 0x1800f89f0", "<???> @ 0x1800f8e50", "<???> @ 0x1800f92a0", "<???> @ 0x1800f9668", "<???> @ 0x1800f9a80", "<???> @ 0x1800f9e90", "<???> @ 0x1800fa930", "<???> @ 0x1800fafa0", "<???> @ 0x1800fb610", "<???> @ 0x1800fbc80", "<???> @ 0x1800fc2f0", "<???> @ 0x1800fc960", "<???> @ 0x1800fcfd0", "<???> @ 0x1800fd640", "<???> @ 0x1800fdcb0", "<???> @ 0x1800fe320", "<???> @ 0x1800fe990", "<???> @ 0x1800ff1d8", "<???> @ 0x1800ffc78", "<???> @ 0x1801057c0", "<???> @ 0x180106080", "<???> @ 0x180130d2c", "<???> @ 0x180130d84", "<???> @ 0x1801438a8", "<???> @ 0x1801ad4bc"], "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"}