{"type": "func", "start": 6443097424, "end": 6443097473, "name": "sub_18009DD50", "pseudocode": "// \n// sub_18009DD50 from 0x18009dd50 to 0x18009dd81 (49 bytes)\n// \n// 6 xrefs:\n// > cocos2d::CCArray::removeAllObjects @ 0x1800071e4\n// > cocos2d::CCActionManager::removeAllActions @ 0x1800387fa\n// > cocos2d::CCActionManager::removeAllActionsFromTarget @ 0x18003897e\n// > cocos2d::CCParallaxNode::removeAllChildrenWithCleanup @ 0x1800aacc7\n// > cocos2d::CCScheduler::unscheduleAllForTarget @ 0x1800c26a4\n// > <???> @ 0x1801b74a0\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\n__int64 __fastcall sub_18009DD50(unsigned int *a1)\n{\n  __int64 result; // rax\n  __int64 v3; // rcx\n  unsigned int v4; // eax\n\n  sub_18009E0E0(a1);\n  for ( result = *a1; (_DWORD)result; result = *a1 )\n  {\n    v3 = *((_QWORD *)a1 + 2);\n    v4 = result - 1;\n    *a1 = v4;\n    cocos2d::CCObject::release(*(cocos2d::CCObject **)(v3 + 8LL * v4));\n  }\n  return result;\n}", "assembly": "; \n; sub_18009DD50 from 0x18009dd50 to 0x18009dd81 (49 bytes)\n; \n; 6 xrefs:\n; > cocos2d::CCArray::removeAllObjects @ 0x1800071e4\n; > cocos2d::CCActionManager::removeAllActions @ 0x1800387fa\n; > cocos2d::CCActionManager::removeAllActionsFromTarget @ 0x18003897e\n; > cocos2d::CCParallaxNode::removeAllChildrenWithCleanup @ 0x1800aacc7\n; > cocos2d::CCScheduler::unscheduleAllForTarget @ 0x1800c26a4\n; > <???> @ 0x1801b74a0\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, 0x18009dd50\nsub     rsp, 20h                                                       ; +0x2, 0x18009dd52\nmov     rbx, rcx                                                       ; +0x6, 0x18009dd56\ncall    sub_18009E0E0                                                  ; +0x9, 0x18009dd59\nmov     eax, [rbx]                                                     ; +0xe, 0x18009dd5e\ntest    eax, eax                                                       ; +0x10, 0x18009dd60\njz      short loc_18009DD7B                                            ; +0x12, 0x18009dd62\nmov     rcx, [rbx+10h]                                                 ; +0x14, 0x18009dd64\ndec     eax                                                            ; +0x18, 0x18009dd68\nmov     [rbx], eax                                                     ; +0x1a, 0x18009dd6a\nmov     rcx, [rcx+rax*8]; this                                         ; +0x1c, 0x18009dd6c\ncall    ?release@CCObject@cocos2d@@QEAAXXZ; cocos2d::CCObject::release(void) ; +0x20, 0x18009dd70\nmov     eax, [rbx]                                                     ; +0x25, 0x18009dd75\ntest    eax, eax                                                       ; +0x27, 0x18009dd77\njnz     short loc_18009DD64                                            ; +0x29, 0x18009dd79\nadd     rsp, 20h                                                       ; +0x2b, 0x18009dd7b\npop     rbx                                                            ; +0x2f, 0x18009dd7f\nretn                                                                   ; +0x30, 0x18009dd80", "xrefs": ["cocos2d::CCArray::removeAllObjects @ 0x1800071e4", "cocos2d::CCActionManager::removeAllActions @ 0x1800387fa", "cocos2d::CCActionManager::removeAllActionsFromTarget @ 0x18003897e", "cocos2d::CCParallaxNode::removeAllChildrenWithCleanup @ 0x1800aacc7", "cocos2d::CCScheduler::unscheduleAllForTarget @ 0x1800c26a4", "<???> @ 0x1801b74a0"], "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"}