{"type": "func", "start": 6443113328, "end": 6443113430, "name": "sub_1800A1B70", "pseudocode": "// \n// sub_1800A1B70 from 0x1800a1b70 to 0x1800a1bd6 (102 bytes)\n// \n// 7 xrefs:\n// > cocos2d::CCArray::removeLastObject @ 0x18000734c\n// > cocos2d::CCArray::removeObjectAtIndex @ 0x180007374\n// > cocos2d::CCArray::replaceObjectAtIndex @ 0x1800073d5\n// > cocos2d::CCActionManager::removeActionAtIndex @ 0x180038c00\n// > cocos2d::CCParallaxNode::removeChild @ 0x1800ae551\n// > cocos2d::CCScheduler::unscheduleSelector @ 0x1800c62c5\n// > <???> @ 0x1801c1794\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:13 +0000\n// \n\nunsigned __int64 __fastcall sub_1800A1B70(__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_1800A1B70 from 0x1800a1b70 to 0x1800a1bd6 (102 bytes)\n; \n; 7 xrefs:\n; > cocos2d::CCArray::removeLastObject @ 0x18000734c\n; > cocos2d::CCArray::removeObjectAtIndex @ 0x180007374\n; > cocos2d::CCArray::replaceObjectAtIndex @ 0x1800073d5\n; > cocos2d::CCActionManager::removeActionAtIndex @ 0x180038c00\n; > cocos2d::CCParallaxNode::removeChild @ 0x1800ae551\n; > cocos2d::CCScheduler::unscheduleSelector @ 0x1800c62c5\n; > <???> @ 0x1801c1794\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:13 +0000\n; \nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x1800a1b70\nmov     [rsp+arg_8], rsi                                               ; +0x5, 0x1800a1b75\npush    rdi                                                            ; +0xa, 0x1800a1b7a\nsub     rsp, 20h                                                       ; +0xb, 0x1800a1b7b\nmov     esi, edx                                                       ; +0xf, 0x1800a1b7f\nmov     rbx, rcx                                                       ; +0x11, 0x1800a1b81\nlea     rdi, ds:0[rsi*8]                                               ; +0x14, 0x1800a1b84\ntest    r8b, r8b                                                       ; +0x1c, 0x1800a1b8c\njz      short loc_1800A1BA3                                            ; +0x1f, 0x1800a1b8f\nmov     rax, [rcx+10h]                                                 ; +0x21, 0x1800a1b91\nmov     rcx, [rdi+rax]; this                                           ; +0x25, 0x1800a1b95\ntest    rcx, rcx                                                       ; +0x29, 0x1800a1b99\njz      short loc_1800A1BA3                                            ; +0x2c, 0x1800a1b9c\ncall    ?release@CCObject@cocos2d@@QEAAXXZ; cocos2d::CCObject::release(void) ; +0x2e, 0x1800a1b9e\ndec     dword ptr [rbx]                                                ; +0x33, 0x1800a1ba3\nmov     eax, [rbx]                                                     ; +0x35, 0x1800a1ba5\nsub     eax, esi                                                       ; +0x37, 0x1800a1ba7\njz      short loc_1800A1BC6                                            ; +0x39, 0x1800a1ba9\nmov     r9, [rbx+10h]                                                  ; +0x3b, 0x1800a1bab\nmov     r8d, eax                                                       ; +0x3f, 0x1800a1baf\nlea     eax, [rsi+1]                                                   ; +0x42, 0x1800a1bb2\nshl     r8, 3; Size                                                    ; +0x45, 0x1800a1bb5\nlea     rdx, [r9+rax*8]; Src                                           ; +0x49, 0x1800a1bb9\nlea     rcx, [r9+rdi]; void *                                          ; +0x4d, 0x1800a1bbd\ncall    memmove                                                        ; +0x51, 0x1800a1bc1\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x56, 0x1800a1bc6\nmov     rsi, [rsp+28h+arg_8]                                           ; +0x5b, 0x1800a1bcb\nadd     rsp, 20h                                                       ; +0x60, 0x1800a1bd0\npop     rdi                                                            ; +0x64, 0x1800a1bd4\nretn                                                                   ; +0x65, 0x1800a1bd5", "xrefs": ["cocos2d::CCArray::removeLastObject @ 0x18000734c", "cocos2d::CCArray::removeObjectAtIndex @ 0x180007374", "cocos2d::CCArray::replaceObjectAtIndex @ 0x1800073d5", "cocos2d::CCActionManager::removeActionAtIndex @ 0x180038c00", "cocos2d::CCParallaxNode::removeChild @ 0x1800ae551", "cocos2d::CCScheduler::unscheduleSelector @ 0x1800c62c5", "<???> @ 0x1801c1794"], "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"}