{"type": "func", "start": 6443096352, "end": 6443096420, "name": "sub_18009D920", "pseudocode": "// \n// sub_18009D920 from 0x18009d920 to 0x18009d964 (68 bytes)\n// \n// 2 xrefs:\n// > cocos2d::CCArray::fastRemoveObjectAtIndex @ 0x180006ec4\n// > <???> @ 0x1801b744c\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_18009D920(unsigned int *a1, unsigned int a2)\n{\n  __int64 v3; // rdi\n  cocos2d::CCObject *v4; // rcx\n  __int64 v5; // rcx\n  __int64 result; // rax\n\n  v3 = 8LL * a2;\n  v4 = *(cocos2d::CCObject **)(v3 + *((_QWORD *)a1 + 2));\n  if ( v4 )\n    cocos2d::CCObject::release(v4);\n  --*a1;\n  v5 = *((_QWORD *)a1 + 2);\n  result = *(_QWORD *)(v5 + 8LL * *a1);\n  *(_QWORD *)(v5 + v3) = result;\n  return result;\n}", "assembly": "; \n; sub_18009D920 from 0x18009d920 to 0x18009d964 (68 bytes)\n; \n; 2 xrefs:\n; > cocos2d::CCArray::fastRemoveObjectAtIndex @ 0x180006ec4\n; > <???> @ 0x1801b744c\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, 0x18009d920\npush    rdi                                                            ; +0x5, 0x18009d925\nsub     rsp, 20h                                                       ; +0x6, 0x18009d926\nmov     eax, edx                                                       ; +0xa, 0x18009d92a\nmov     rbx, rcx                                                       ; +0xc, 0x18009d92c\nlea     rdi, ds:0[rax*8]                                               ; +0xf, 0x18009d92f\nmov     rax, [rcx+10h]                                                 ; +0x17, 0x18009d937\nmov     rcx, [rdi+rax]; this                                           ; +0x1b, 0x18009d93b\ntest    rcx, rcx                                                       ; +0x1f, 0x18009d93f\njz      short loc_18009D949                                            ; +0x22, 0x18009d942\ncall    ?release@CCObject@cocos2d@@QEAAXXZ; cocos2d::CCObject::release(void) ; +0x24, 0x18009d944\ndec     dword ptr [rbx]                                                ; +0x29, 0x18009d949\nmov     eax, [rbx]                                                     ; +0x2b, 0x18009d94b\nmov     rcx, [rbx+10h]                                                 ; +0x2d, 0x18009d94d\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x31, 0x18009d951\nmov     rax, [rcx+rax*8]                                               ; +0x36, 0x18009d956\nmov     [rcx+rdi], rax                                                 ; +0x3a, 0x18009d95a\nadd     rsp, 20h                                                       ; +0x3e, 0x18009d95e\npop     rdi                                                            ; +0x42, 0x18009d962\nretn                                                                   ; +0x43, 0x18009d963", "xrefs": ["cocos2d::CCArray::fastRemoveObjectAtIndex @ 0x180006ec4", "<???> @ 0x1801b744c"], "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"}