{"type": "func", "start": 6443097824, "end": 6443097926, "name": "sub_18009DEE0", "pseudocode": "// \n// sub_18009DEE0 from 0x18009dee0 to 0x18009df46 (102 bytes)\n// \n// 7 xrefs:\n// > cocos2d::CCArray::removeLastObject @ 0x1800071fc\n// > cocos2d::CCArray::removeObjectAtIndex @ 0x180007224\n// > cocos2d::CCArray::replaceObjectAtIndex @ 0x180007285\n// > cocos2d::CCActionManager::removeActionAtIndex @ 0x1800384e0\n// > cocos2d::CCParallaxNode::removeChild @ 0x1800aad51\n// > cocos2d::CCScheduler::unscheduleSelector @ 0x1800c29c8\n// > <???> @ 0x1801b74f4\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\nunsigned __int64 __fastcall sub_18009DEE0(__int64 a1, unsigned int a2, char a3)\n{\n  __int64 v5; // rdi\n  cocos2d::CCObject *v6; // rcx\n  unsigned __int64 result; // rax\n\n  v5 = 8LL * a2;\n  if ( a3 )\n  {\n    v6 = *(cocos2d::CCObject **)(v5 + *(_QWORD *)(a1 + 16));\n    if ( v6 )\n      cocos2d::CCObject::release(v6);\n  }\n  result = --*(_DWORD *)a1 - a2;\n  if ( *(_DWORD *)a1 != a2 )\n    return (unsigned __int64)memmove(\n                               (void *)(*(_QWORD *)(a1 + 16) + v5),\n                               (const void *)(*(_QWORD *)(a1 + 16) + 8LL * (a2 + 1)),\n                               8LL * (unsigned int)result);\n  return result;\n}", "assembly": "; \n; sub_18009DEE0 from 0x18009dee0 to 0x18009df46 (102 bytes)\n; \n; 7 xrefs:\n; > cocos2d::CCArray::removeLastObject @ 0x1800071fc\n; > cocos2d::CCArray::removeObjectAtIndex @ 0x180007224\n; > cocos2d::CCArray::replaceObjectAtIndex @ 0x180007285\n; > cocos2d::CCActionManager::removeActionAtIndex @ 0x1800384e0\n; > cocos2d::CCParallaxNode::removeChild @ 0x1800aad51\n; > cocos2d::CCScheduler::unscheduleSelector @ 0x1800c29c8\n; > <???> @ 0x1801b74f4\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_0], rbx                                               ; +0x0, 0x18009dee0\nmov     [rsp+arg_8], rsi                                               ; +0x5, 0x18009dee5\npush    rdi                                                            ; +0xa, 0x18009deea\nsub     rsp, 20h                                                       ; +0xb, 0x18009deeb\nmov     esi, edx                                                       ; +0xf, 0x18009deef\nmov     rbx, rcx                                                       ; +0x11, 0x18009def1\nlea     rdi, ds:0[rsi*8]                                               ; +0x14, 0x18009def4\ntest    r8b, r8b                                                       ; +0x1c, 0x18009defc\njz      short loc_18009DF13                                            ; +0x1f, 0x18009deff\nmov     rax, [rcx+10h]                                                 ; +0x21, 0x18009df01\nmov     rcx, [rdi+rax]; this                                           ; +0x25, 0x18009df05\ntest    rcx, rcx                                                       ; +0x29, 0x18009df09\njz      short loc_18009DF13                                            ; +0x2c, 0x18009df0c\ncall    ?release@CCObject@cocos2d@@QEAAXXZ; cocos2d::CCObject::release(void) ; +0x2e, 0x18009df0e\ndec     dword ptr [rbx]                                                ; +0x33, 0x18009df13\nmov     eax, [rbx]                                                     ; +0x35, 0x18009df15\nsub     eax, esi                                                       ; +0x37, 0x18009df17\njz      short loc_18009DF36                                            ; +0x39, 0x18009df19\nmov     r9, [rbx+10h]                                                  ; +0x3b, 0x18009df1b\nmov     r8d, eax                                                       ; +0x3f, 0x18009df1f\nlea     eax, [rsi+1]                                                   ; +0x42, 0x18009df22\nshl     r8, 3; Size                                                    ; +0x45, 0x18009df25\nlea     rdx, [r9+rax*8]; Src                                           ; +0x49, 0x18009df29\nlea     rcx, [r9+rdi]; void *                                          ; +0x4d, 0x18009df2d\ncall    memmove                                                        ; +0x51, 0x18009df31\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x56, 0x18009df36\nmov     rsi, [rsp+28h+arg_8]                                           ; +0x5b, 0x18009df3b\nadd     rsp, 20h                                                       ; +0x60, 0x18009df40\npop     rdi                                                            ; +0x64, 0x18009df44\nretn                                                                   ; +0x65, 0x18009df45", "xrefs": ["cocos2d::CCArray::removeLastObject @ 0x1800071fc", "cocos2d::CCArray::removeObjectAtIndex @ 0x180007224", "cocos2d::CCArray::replaceObjectAtIndex @ 0x180007285", "cocos2d::CCActionManager::removeActionAtIndex @ 0x1800384e0", "cocos2d::CCParallaxNode::removeChild @ 0x1800aad51", "cocos2d::CCScheduler::unscheduleSelector @ 0x1800c29c8", "<???> @ 0x1801b74f4"], "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"}