{"type": "func", "start": 6443111728, "end": 6443111841, "name": "sub_1800A1530", "pseudocode": "// \n// sub_1800A1530 from 0x1800a1530 to 0x1800a15a1 (113 bytes)\n// \n// 4 xrefs:\n// > cocos2d::CCArray::fastRemoveObject @ 0x180007004\n// > <???> @ 0x18014822c\n// > <???> @ 0x18014823c\n// > <???> @ 0x1801c16c8\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\n__int64 __fastcall sub_1800A1530(unsigned int *a1, __int64 a2)\n{\n  unsigned int v2; // r9d\n  _QWORD *v4; // rcx\n  __int64 result; // rax\n  _QWORD *v6; // r8\n  __int64 v7; // rdi\n  cocos2d::CCObject *v8; // rcx\n  __int64 v9; // rcx\n\n  v2 = *a1;\n  v4 = *((_QWORD **)a1 + 2);\n  result = 0;\n  v6 = v4;\n  if ( v2 )\n  {\n    while ( *v6 != a2 )\n    {\n      result = (unsigned int)(result + 1);\n      ++v6;\n      if ( (unsigned int)result >= v2 )\n        return result;\n    }\n    if ( (_DWORD)result != -1 )\n    {\n      v7 = 8 * result;\n      v8 = (cocos2d::CCObject *)v4[result];\n      if ( v8 )\n        cocos2d::CCObject::release(v8);\n      --*a1;\n      v9 = *((_QWORD *)a1 + 2);\n      result = *(_QWORD *)(v9 + 8LL * *a1);\n      *(_QWORD *)(v9 + v7) = result;\n    }\n  }\n  return result;\n}", "assembly": "; \n; sub_1800A1530 from 0x1800a1530 to 0x1800a15a1 (113 bytes)\n; \n; 4 xrefs:\n; > cocos2d::CCArray::fastRemoveObject @ 0x180007004\n; > <???> @ 0x18014822c\n; > <???> @ 0x18014823c\n; > <???> @ 0x1801c16c8\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; \npush    rbx                                                            ; +0x0, 0x1800a1530\nsub     rsp, 20h                                                       ; +0x2, 0x1800a1532\nmov     r9d, [rcx]                                                     ; +0x6, 0x1800a1536\nmov     rbx, rcx                                                       ; +0x9, 0x1800a1539\nmov     rcx, [rcx+10h]                                                 ; +0xc, 0x1800a153c\nxor     eax, eax                                                       ; +0x10, 0x1800a1540\nmov     r8, rcx                                                        ; +0x12, 0x1800a1542\ntest    r9d, r9d                                                       ; +0x15, 0x1800a1545\njz      short loc_1800A159B                                            ; +0x18, 0x1800a1548\nnop     word ptr [rax+rax+00h]                                         ; +0x1a, 0x1800a154a\ncmp     [r8], rdx                                                      ; +0x20, 0x1800a1550\njz      short loc_1800A1566                                            ; +0x23, 0x1800a1553\ninc     eax                                                            ; +0x25, 0x1800a1555\nadd     r8, 8                                                          ; +0x27, 0x1800a1557\ncmp     eax, r9d                                                       ; +0x2b, 0x1800a155b\njb      short loc_1800A1550                                            ; +0x2e, 0x1800a155e\nadd     rsp, 20h                                                       ; +0x30, 0x1800a1560\npop     rbx                                                            ; +0x34, 0x1800a1564\nretn                                                                   ; +0x35, 0x1800a1565\ncmp     eax, 0FFFFFFFFh                                                ; +0x36, 0x1800a1566\njz      short loc_1800A159B                                            ; +0x39, 0x1800a1569\nmov     [rsp+28h+arg_0], rdi                                           ; +0x3b, 0x1800a156b\nlea     rdi, ds:0[rax*8]                                               ; +0x40, 0x1800a1570\nmov     rcx, [rdi+rcx]; this                                           ; +0x48, 0x1800a1578\ntest    rcx, rcx                                                       ; +0x4c, 0x1800a157c\njz      short loc_1800A1586                                            ; +0x4f, 0x1800a157f\ncall    ?release@CCObject@cocos2d@@QEAAXXZ; cocos2d::CCObject::release(void) ; +0x51, 0x1800a1581\ndec     dword ptr [rbx]                                                ; +0x56, 0x1800a1586\nmov     eax, [rbx]                                                     ; +0x58, 0x1800a1588\nmov     rcx, [rbx+10h]                                                 ; +0x5a, 0x1800a158a\nmov     rax, [rcx+rax*8]                                               ; +0x5e, 0x1800a158e\nmov     [rcx+rdi], rax                                                 ; +0x62, 0x1800a1592\nmov     rdi, [rsp+28h+arg_0]                                           ; +0x66, 0x1800a1596\nadd     rsp, 20h                                                       ; +0x6b, 0x1800a159b\npop     rbx                                                            ; +0x6f, 0x1800a159f\nretn                                                                   ; +0x70, 0x1800a15a0", "xrefs": ["cocos2d::CCArray::fastRemoveObject @ 0x180007004", "<???> @ 0x18014822c", "<???> @ 0x18014823c", "<???> @ 0x1801c16c8"], "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"}