{"type": "func", "start": 6443096432, "end": 6443096530, "name": "sub_18009D970", "pseudocode": "// \n// sub_18009D970 from 0x18009d970 to 0x18009d9d2 (98 bytes)\n// \n// 2 xrefs:\n// > cocos2d::CCArray::fastRemoveObjectAtIndexChild @ 0x180006ed4\n// > <???> @ 0x1801b7458\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_18009D970(__int64 a1, unsigned int a2)\n{\n  __int64 v3; // rdi\n  __int64 v4; // rsi\n  cocos2d::CCObject *v5; // rcx\n  __int64 v6; // rcx\n  __int64 result; // rax\n\n  v3 = 8LL * (unsigned int)--*(_DWORD *)a1;\n  *(_DWORD *)(*(_QWORD *)(*(_QWORD *)(a1 + 16) + v3) + 36LL) = a2;\n  v4 = 8LL * a2;\n  v5 = *(cocos2d::CCObject **)(v4 + *(_QWORD *)(a1 + 16));\n  if ( v5 )\n    cocos2d::CCObject::release(v5);\n  v6 = *(_QWORD *)(a1 + 16);\n  result = *(_QWORD *)(v6 + v3);\n  *(_QWORD *)(v6 + v4) = result;\n  return result;\n}", "assembly": "; \n; sub_18009D970 from 0x18009d970 to 0x18009d9d2 (98 bytes)\n; \n; 2 xrefs:\n; > cocos2d::CCArray::fastRemoveObjectAtIndexChild @ 0x180006ed4\n; > <???> @ 0x1801b7458\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, 0x18009d970\nmov     [rsp+arg_8], rsi                                               ; +0x5, 0x18009d975\npush    rdi                                                            ; +0xa, 0x18009d97a\nsub     rsp, 20h                                                       ; +0xb, 0x18009d97b\ndec     dword ptr [rcx]                                                ; +0xf, 0x18009d97f\nmov     rbx, rcx                                                       ; +0x11, 0x18009d981\nmov     eax, [rcx]                                                     ; +0x14, 0x18009d984\nlea     rdi, ds:0[rax*8]                                               ; +0x16, 0x18009d986\nmov     rax, [rcx+10h]                                                 ; +0x1e, 0x18009d98e\nmov     r8, [rax+rdi]                                                  ; +0x22, 0x18009d992\nmov     eax, edx                                                       ; +0x26, 0x18009d996\nmov     [r8+24h], edx                                                  ; +0x28, 0x18009d998\nlea     rsi, ds:0[rax*8]                                               ; +0x2c, 0x18009d99c\nmov     rax, [rcx+10h]                                                 ; +0x34, 0x18009d9a4\nmov     rcx, [rsi+rax]; this                                           ; +0x38, 0x18009d9a8\ntest    rcx, rcx                                                       ; +0x3c, 0x18009d9ac\njz      short loc_18009D9B6                                            ; +0x3f, 0x18009d9af\ncall    ?release@CCObject@cocos2d@@QEAAXXZ; cocos2d::CCObject::release(void) ; +0x41, 0x18009d9b1\nmov     rcx, [rbx+10h]                                                 ; +0x46, 0x18009d9b6\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x4a, 0x18009d9ba\nmov     rax, [rcx+rdi]                                                 ; +0x4f, 0x18009d9bf\nmov     [rcx+rsi], rax                                                 ; +0x53, 0x18009d9c3\nmov     rsi, [rsp+28h+arg_8]                                           ; +0x57, 0x18009d9c7\nadd     rsp, 20h                                                       ; +0x5c, 0x18009d9cc\npop     rdi                                                            ; +0x60, 0x18009d9d0\nretn                                                                   ; +0x61, 0x18009d9d1", "xrefs": ["cocos2d::CCArray::fastRemoveObjectAtIndexChild @ 0x180006ed4", "<???> @ 0x1801b7458"], "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"}