{"type": "func", "start": 6443112992, "end": 6443113173, "name": "sub_1800A1A20", "pseudocode": "// \n// sub_1800A1A20 from 0x1800a1a20 to 0x1800a1ad5 (181 bytes)\n// \n// 4 xrefs:\n// > cocos2d::CCArray::removeObjectsInArray @ 0x180007398\n// > <???> @ 0x180148288\n// > <???> @ 0x180148298\n// > <???> @ 0x1801c174c\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\nvoid __fastcall sub_1800A1A20(__int64 a1, __int64 a2)\n{\n  __int64 i; // rdi\n  __int64 v5; // rbx\n  _QWORD *v6; // rax\n  cocos2d::CCObject *v7; // rcx\n\n  for ( i = 0; (unsigned int)i < *(_DWORD *)a2; i = (unsigned int)(i + 1) )\n  {\n    v5 = 0;\n    v6 = *(_QWORD **)(a1 + 16);\n    if ( *(_DWORD *)a1 )\n    {\n      while ( *v6 != *(_QWORD *)(*(_QWORD *)(a2 + 16) + 8 * i) )\n      {\n        v5 = (unsigned int)(v5 + 1);\n        ++v6;\n        if ( (unsigned int)v5 >= *(_DWORD *)a1 )\n          goto LABEL_11;\n      }\n      if ( (_DWORD)v5 != -1 )\n      {\n        v7 = *(cocos2d::CCObject **)(8 * v5 + *(_QWORD *)(a1 + 16));\n        if ( v7 )\n          cocos2d::CCObject::release(v7);\n        if ( --*(_DWORD *)a1 != (_DWORD)v5 )\n          memmove(\n            (void *)(8 * v5 + *(_QWORD *)(a1 + 16)),\n            (const void *)(*(_QWORD *)(a1 + 16) + 8LL * (unsigned int)(v5 + 1)),\n            8LL * (unsigned int)(*(_DWORD *)a1 - v5));\n      }\n    }\nLABEL_11:\n    ;\n  }\n}", "assembly": "; \n; sub_1800A1A20 from 0x1800a1a20 to 0x1800a1ad5 (181 bytes)\n; \n; 4 xrefs:\n; > cocos2d::CCArray::removeObjectsInArray @ 0x180007398\n; > <???> @ 0x180148288\n; > <???> @ 0x180148298\n; > <???> @ 0x1801c174c\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_10], rbp                                              ; +0x0, 0x1800a1a20\nmov     [rsp+arg_18], rsi                                              ; +0x5, 0x1800a1a25\npush    rdi                                                            ; +0xa, 0x1800a1a2a\nsub     rsp, 20h                                                       ; +0xb, 0x1800a1a2b\nxor     edi, edi                                                       ; +0xf, 0x1800a1a2f\nmov     rbp, rdx                                                       ; +0x11, 0x1800a1a31\nmov     rsi, rcx                                                       ; +0x14, 0x1800a1a34\ncmp     [rdx], edi                                                     ; +0x17, 0x1800a1a37\njbe     loc_1800A1AC5                                                  ; +0x19, 0x1800a1a39\nmov     [rsp+28h+arg_0], rbx                                           ; +0x1f, 0x1800a1a3f\nmov     [rsp+28h+arg_8], r14                                           ; +0x24, 0x1800a1a44\nnop     dword ptr [rax+00000000h]                                      ; +0x29, 0x1800a1a49\nmov     rax, [rbp+10h]                                                 ; +0x30, 0x1800a1a50\nxor     ebx, ebx                                                       ; +0x34, 0x1800a1a54\nmov     ecx, [rsi]                                                     ; +0x36, 0x1800a1a56\nmov     r8, [rsi+10h]                                                  ; +0x38, 0x1800a1a58\nmov     rdx, [rax+rdi*8]                                               ; +0x3c, 0x1800a1a5c\nmov     rax, r8                                                        ; +0x40, 0x1800a1a60\ntest    ecx, ecx                                                       ; +0x43, 0x1800a1a63\njz      short loc_1800A1AB4                                            ; +0x45, 0x1800a1a65\ncmp     [rax], rdx                                                     ; +0x47, 0x1800a1a67\njz      short loc_1800A1A78                                            ; +0x4a, 0x1800a1a6a\ninc     ebx                                                            ; +0x4c, 0x1800a1a6c\nadd     rax, 8                                                         ; +0x4e, 0x1800a1a6e\ncmp     ebx, ecx                                                       ; +0x52, 0x1800a1a72\njb      short loc_1800A1A67                                            ; +0x54, 0x1800a1a74\njmp     short loc_1800A1AB4                                            ; +0x56, 0x1800a1a76\ncmp     ebx, 0FFFFFFFFh                                                ; +0x58, 0x1800a1a78\njz      short loc_1800A1AB4                                            ; +0x5b, 0x1800a1a7b\nlea     r14, ds:0[rbx*8]                                               ; +0x5d, 0x1800a1a7d\nmov     rcx, [r14+r8]; this                                            ; +0x65, 0x1800a1a85\ntest    rcx, rcx                                                       ; +0x69, 0x1800a1a89\njz      short loc_1800A1A93                                            ; +0x6c, 0x1800a1a8c\ncall    ?release@CCObject@cocos2d@@QEAAXXZ; cocos2d::CCObject::release(void) ; +0x6e, 0x1800a1a8e\ndec     dword ptr [rsi]                                                ; +0x73, 0x1800a1a93\nmov     eax, [rsi]                                                     ; +0x75, 0x1800a1a95\nsub     eax, ebx                                                       ; +0x77, 0x1800a1a97\njz      short loc_1800A1AB4                                            ; +0x79, 0x1800a1a99\nmov     rcx, [rsi+10h]                                                 ; +0x7b, 0x1800a1a9b\nmov     r8d, eax                                                       ; +0x7f, 0x1800a1a9f\nshl     r8, 3; Size                                                    ; +0x82, 0x1800a1aa2\ninc     ebx                                                            ; +0x86, 0x1800a1aa6\nlea     rdx, [rcx+rbx*8]; Src                                          ; +0x88, 0x1800a1aa8\nadd     rcx, r14; void *                                               ; +0x8c, 0x1800a1aac\ncall    memmove                                                        ; +0x8f, 0x1800a1aaf\ninc     edi                                                            ; +0x94, 0x1800a1ab4\ncmp     edi, [rbp+0]                                                   ; +0x96, 0x1800a1ab6\njb      short loc_1800A1A50                                            ; +0x99, 0x1800a1ab9\nmov     r14, [rsp+28h+arg_8]                                           ; +0x9b, 0x1800a1abb\nmov     rbx, [rsp+28h+arg_0]                                           ; +0xa0, 0x1800a1ac0\nmov     rbp, [rsp+28h+arg_10]                                          ; +0xa5, 0x1800a1ac5\nmov     rsi, [rsp+28h+arg_18]                                          ; +0xaa, 0x1800a1aca\nadd     rsp, 20h                                                       ; +0xaf, 0x1800a1acf\npop     rdi                                                            ; +0xb3, 0x1800a1ad3\nretn                                                                   ; +0xb4, 0x1800a1ad4", "xrefs": ["cocos2d::CCArray::removeObjectsInArray @ 0x180007398", "<???> @ 0x180148288", "<???> @ 0x180148298", "<???> @ 0x1801c174c"], "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"}