{"type": "func", "start": 6442462592, "end": 6442462744, "name": "cocos2d::CCNode::cleanup", "pseudocode": "// \n// cocos2d::CCNode::cleanup from 0x180002d80 to 0x180002e18 (152 bytes)\n// \n// 54 xrefs:\n// > cocos2d::CCTransitionScene::cleanup @ 0x180052cb9\n// > <???> @ 0x1800e56a8\n// > <???> @ 0x1800e5d08\n// > <???> @ 0x1800e6078\n// > <???> @ 0x1800e69d8\n// > <???> @ 0x1800e6ee0\n// > <???> @ 0x1800eb6a8\n// > <???> @ 0x1800ebb48\n// > <???> @ 0x1800ec020\n// > <???> @ 0x1800ec548\n// > <???> @ 0x1800ecba0\n// > <???> @ 0x1800ed1b8\n// > <???> @ 0x1800ed678\n// > <???> @ 0x1800edbb0\n// > <???> @ 0x1800ee118\n// > <???> @ 0x1800ee6f0\n// > <???> @ 0x1800eebb0\n// > <???> @ 0x1800f6fc0\n// > <???> @ 0x1800f7528\n// > <???> @ 0x1800f7950\n// > <???> @ 0x1800f7d98\n// > <???> @ 0x1800f81e0\n// > <???> @ 0x1800f8628\n// > <???> @ 0x1800f8a88\n// > <???> @ 0x1800f8ee8\n// > <???> @ 0x1800f9338\n// > <???> @ 0x1800f9700\n// > <???> @ 0x1800f9b18\n// > <???> @ 0x1800f9f28\n// > <???> @ 0x1800fa358\n// > <???> @ 0x1800fa9c8\n// > <???> @ 0x1800fb038\n// > <???> @ 0x1800fb6a8\n// > <???> @ 0x1800fbd18\n// > <???> @ 0x1800fc388\n// > <???> @ 0x1800fc9f8\n// > <???> @ 0x1800fd068\n// > <???> @ 0x1800fd6d8\n// > <???> @ 0x1800fdd48\n// > <???> @ 0x1800fe3b8\n// > <???> @ 0x1800fea28\n// > <???> @ 0x1800ff270\n// > <???> @ 0x1800ffd10\n// > <???> @ 0x180103a58\n// > <???> @ 0x180103f48\n// > <???> @ 0x180105480\n// > <???> @ 0x180105858\n// > <???> @ 0x180105cb0\n// > <???> @ 0x180106118\n// > <???> @ 0x180106a50\n// > <???> @ 0x180130f64\n// > <???> @ 0x180130f74\n// > <???> @ 0x1801438a8\n// > <???> @ 0x1801ad204\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::cleanup(cocos2d::CCNode *this)\n{\n  struct cocos2d::CCScriptEngineManager *v2; // rax\n  cocos2d::CCArray *m_pChildren; // rax\n  cocos2d::ccArray *data; // rbx\n  __int64 num; // rax\n  cocos2d::CCObject **arr; // rbx\n  cocos2d::CCObject **i; // rdi\n\n  cocos2d::CCActionManager::removeAllActionsFromTarget(this->m_pActionManager, this);\n  cocos2d::CCScheduler::unscheduleAllForTarget(this->m_pScheduler, this);\n  if ( this->m_eScriptType )\n  {\n    v2 = cocos2d::CCScriptEngineManager::sharedManager();\n    (*(void (__fastcall **)(_QWORD, cocos2d::CCNode *, __int64))(**(_QWORD **)v2 + 64LL))(*(_QWORD *)v2, this, 4);\n  }\n  m_pChildren = this->m_pChildren;\n  if ( m_pChildren )\n  {\n    data = m_pChildren->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        if ( !*arr )\n          break;\n        ((void (__fastcall *)(cocos2d::CCObject *))(*arr)->__vftable[9].setTag)(*arr);\n      }\n    }\n  }\n}", "assembly": "; \n; cocos2d::CCNode::cleanup from 0x180002d80 to 0x180002e18 (152 bytes)\n; \n; 54 xrefs:\n; > cocos2d::CCTransitionScene::cleanup @ 0x180052cb9\n; > <???> @ 0x1800e56a8\n; > <???> @ 0x1800e5d08\n; > <???> @ 0x1800e6078\n; > <???> @ 0x1800e69d8\n; > <???> @ 0x1800e6ee0\n; > <???> @ 0x1800eb6a8\n; > <???> @ 0x1800ebb48\n; > <???> @ 0x1800ec020\n; > <???> @ 0x1800ec548\n; > <???> @ 0x1800ecba0\n; > <???> @ 0x1800ed1b8\n; > <???> @ 0x1800ed678\n; > <???> @ 0x1800edbb0\n; > <???> @ 0x1800ee118\n; > <???> @ 0x1800ee6f0\n; > <???> @ 0x1800eebb0\n; > <???> @ 0x1800f6fc0\n; > <???> @ 0x1800f7528\n; > <???> @ 0x1800f7950\n; > <???> @ 0x1800f7d98\n; > <???> @ 0x1800f81e0\n; > <???> @ 0x1800f8628\n; > <???> @ 0x1800f8a88\n; > <???> @ 0x1800f8ee8\n; > <???> @ 0x1800f9338\n; > <???> @ 0x1800f9700\n; > <???> @ 0x1800f9b18\n; > <???> @ 0x1800f9f28\n; > <???> @ 0x1800fa358\n; > <???> @ 0x1800fa9c8\n; > <???> @ 0x1800fb038\n; > <???> @ 0x1800fb6a8\n; > <???> @ 0x1800fbd18\n; > <???> @ 0x1800fc388\n; > <???> @ 0x1800fc9f8\n; > <???> @ 0x1800fd068\n; > <???> @ 0x1800fd6d8\n; > <???> @ 0x1800fdd48\n; > <???> @ 0x1800fe3b8\n; > <???> @ 0x1800fea28\n; > <???> @ 0x1800ff270\n; > <???> @ 0x1800ffd10\n; > <???> @ 0x180103a58\n; > <???> @ 0x180103f48\n; > <???> @ 0x180105480\n; > <???> @ 0x180105858\n; > <???> @ 0x180105cb0\n; > <???> @ 0x180106118\n; > <???> @ 0x180106a50\n; > <???> @ 0x180130f64\n; > <???> @ 0x180130f74\n; > <???> @ 0x1801438a8\n; > <???> @ 0x1801ad204\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, 0x180002d80\nsub     rsp, 20h                                                       ; +0x2, 0x180002d82\nmov     rbx, rcx                                                       ; +0x6, 0x180002d86\nmov     rdx, rcx; struct cocos2d::CCObject *                           ; +0x9, 0x180002d89\nmov     rcx, [rcx+108h]; this                                          ; +0xc, 0x180002d8c\ncall    ?removeAllActionsFromTarget@CCActionManager@cocos2d@@QEAAXPEAVCCObject@2@@Z; cocos2d::CCActionManager::removeAllActionsFromTarget(cocos2d::CCObject *) ; +0x13, 0x180002d93\nmov     rcx, [rbx+100h]; this                                          ; +0x18, 0x180002d98\nmov     rdx, rbx; struct cocos2d::CCObject *                           ; +0x1f, 0x180002d9f\ncall    ?unscheduleAllForTarget@CCScheduler@cocos2d@@QEAAXPEAVCCObject@2@@Z; cocos2d::CCScheduler::unscheduleAllForTarget(cocos2d::CCObject *) ; +0x22, 0x180002da2\ncmp     dword ptr [rbx+12Ch], 0                                        ; +0x27, 0x180002da7\njz      short loc_180002DC7                                            ; +0x2e, 0x180002dae\ncall    ?sharedManager@CCScriptEngineManager@cocos2d@@SAPEAV12@XZ; cocos2d::CCScriptEngineManager::sharedManager(void) ; +0x30, 0x180002db0\nmov     r8d, 4                                                         ; +0x35, 0x180002db5\nmov     rdx, rbx                                                       ; +0x3b, 0x180002dbb\nmov     rcx, [rax]                                                     ; +0x3e, 0x180002dbe\nmov     rax, [rcx]                                                     ; +0x41, 0x180002dc1\ncall    qword ptr [rax+40h]                                            ; +0x44, 0x180002dc4\nmov     rax, [rbx+0D0h]                                                ; +0x47, 0x180002dc7\ntest    rax, rax                                                       ; +0x4e, 0x180002dce\njz      short loc_180002E12                                            ; +0x51, 0x180002dd1\nmov     rbx, [rax+38h]                                                 ; +0x53, 0x180002dd3\nmov     eax, [rbx]                                                     ; +0x57, 0x180002dd7\ntest    eax, eax                                                       ; +0x59, 0x180002dd9\njz      short loc_180002E12                                            ; +0x5b, 0x180002ddb\nmov     rbx, [rbx+10h]                                                 ; +0x5d, 0x180002ddd\nmov     [rsp+28h+arg_0], rdi                                           ; +0x61, 0x180002de1\nlea     rdi, [rax-1]                                                   ; +0x66, 0x180002de6\nlea     rdi, [rbx+rdi*8]                                               ; +0x6a, 0x180002dea\ncmp     rbx, rdi                                                       ; +0x6e, 0x180002dee\nja      short loc_180002E0D                                            ; +0x71, 0x180002df1\nmov     rcx, [rbx]                                                     ; +0x73, 0x180002df3\ntest    rcx, rcx                                                       ; +0x76, 0x180002df6\njz      short loc_180002E0D                                            ; +0x79, 0x180002df9\nmov     rax, [rcx]                                                     ; +0x7b, 0x180002dfb\ncall    qword ptr [rax+2C8h]                                           ; +0x7e, 0x180002dfe\nadd     rbx, 8                                                         ; +0x84, 0x180002e04\ncmp     rbx, rdi                                                       ; +0x88, 0x180002e08\njbe     short loc_180002DF3                                            ; +0x8b, 0x180002e0b\nmov     rdi, [rsp+28h+arg_0]                                           ; +0x8d, 0x180002e0d\nadd     rsp, 20h                                                       ; +0x92, 0x180002e12\npop     rbx                                                            ; +0x96, 0x180002e16\nretn                                                                   ; +0x97, 0x180002e17", "xrefs": ["cocos2d::CCTransitionScene::cleanup @ 0x180052cb9", "<???> @ 0x1800e56a8", "<???> @ 0x1800e5d08", "<???> @ 0x1800e6078", "<???> @ 0x1800e69d8", "<???> @ 0x1800e6ee0", "<???> @ 0x1800eb6a8", "<???> @ 0x1800ebb48", "<???> @ 0x1800ec020", "<???> @ 0x1800ec548", "<???> @ 0x1800ecba0", "<???> @ 0x1800ed1b8", "<???> @ 0x1800ed678", "<???> @ 0x1800edbb0", "<???> @ 0x1800ee118", "<???> @ 0x1800ee6f0", "<???> @ 0x1800eebb0", "<???> @ 0x1800f6fc0", "<???> @ 0x1800f7528", "<???> @ 0x1800f7950", "<???> @ 0x1800f7d98", "<???> @ 0x1800f81e0", "<???> @ 0x1800f8628", "<???> @ 0x1800f8a88", "<???> @ 0x1800f8ee8", "<???> @ 0x1800f9338", "<???> @ 0x1800f9700", "<???> @ 0x1800f9b18", "<???> @ 0x1800f9f28", "<???> @ 0x1800fa358", "<???> @ 0x1800fa9c8", "<???> @ 0x1800fb038", "<???> @ 0x1800fb6a8", "<???> @ 0x1800fbd18", "<???> @ 0x1800fc388", "<???> @ 0x1800fc9f8", "<???> @ 0x1800fd068", "<???> @ 0x1800fd6d8", "<???> @ 0x1800fdd48", "<???> @ 0x1800fe3b8", "<???> @ 0x1800fea28", "<???> @ 0x1800ff270", "<???> @ 0x1800ffd10", "<???> @ 0x180103a58", "<???> @ 0x180103f48", "<???> @ 0x180105480", "<???> @ 0x180105858", "<???> @ 0x180105cb0", "<???> @ 0x180106118", "<???> @ 0x180106a50", "<???> @ 0x180130f64", "<???> @ 0x180130f74", "<???> @ 0x1801438a8", "<???> @ 0x1801ad204"], "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"}