{"type": "func", "start": 6442495120, "end": 6442495497, "name": "cocos2d::CCDictionary::removeObjectForElememt", "pseudocode": "// \n// cocos2d::CCDictionary::removeObjectForElememt from 0x18000ac90 to 0x18000ae09 (377 bytes)\n// \n// 7 xrefs:\n// > cocos2d::CCDictionary::removeObjectForKey @ 0x18000b138\n// > cocos2d::CCDictionary::removeObjectForKey @ 0x18000b2e5\n// > cocos2d::CCDictionary::removeObjectForKey @ 0x18000b2f8\n// > cocos2d::CCSpriteFrameCache::removeUnusedSpriteFrames @ 0x180095c8b\n// > cocos2d::CCTextureCache::removeUnusedTextures @ 0x1800ad238\n// > <???> @ 0x18014cf68\n// > <???> @ 0x1801b7d68\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:21:20 +0000\n// \n\nvoid __fastcall cocos2d::CCDictionary::removeObjectForElememt(\n        cocos2d::CCDictionary *this,\n        struct cocos2d::CCDictElement *a2)\n{\n  __int64 v4; // rcx\n  char *v5; // r8\n  __int64 v6; // rdx\n  __int64 v7; // r10\n  __int64 v8; // r10\n  __int64 v9; // r9\n  __int64 v10; // rcx\n  __int64 v11; // r9\n  _QWORD *v12; // rcx\n  __int64 v13; // rcx\n  __int64 v14; // rcx\n\n  if ( a2 )\n  {\n    v4 = *((_QWORD *)a2 + 35);\n    if ( *(_OWORD *)((char *)a2 + 280) == 0 )\n    {\n      free(**(void ***)(*((_QWORD *)this + 7) + 272LL));\n      free(*(void **)(*((_QWORD *)this + 7) + 272LL));\n      *((_QWORD *)this + 7) = 0;\n    }\n    else\n    {\n      v5 = (char *)a2 + 272;\n      v6 = *(_QWORD *)(*((_QWORD *)this + 7) + 272LL);\n      v7 = *(_QWORD *)(v6 + 32);\n      if ( a2 == (struct cocos2d::CCDictElement *)(*(_QWORD *)(v6 + 24) - v7) )\n        *(_QWORD *)(v6 + 24) = v4 + v7;\n      v8 = *((_QWORD *)a2 + 35);\n      if ( v8 )\n        *(_QWORD *)(*(_QWORD *)(*(_QWORD *)(*((_QWORD *)this + 7) + 272LL) + 32LL) + v8 + 16) = *((_QWORD *)a2 + 36);\n      else\n        *((_QWORD *)this + 7) = *((_QWORD *)a2 + 36);\n      v9 = *((_QWORD *)v5 + 2);\n      if ( v9 )\n        *(_QWORD *)(*(_QWORD *)(*(_QWORD *)(*((_QWORD *)this + 7) + 272LL) + 32LL) + v9 + 8) = *((_QWORD *)v5 + 1);\n      v10 = *(_QWORD *)(*((_QWORD *)this + 7) + 272LL);\n      v11 = *((_DWORD *)v5 + 13) & (unsigned int)(*(_DWORD *)(v10 + 8) - 1);\n      --*(_DWORD *)(16 * v11 + *(_QWORD *)v10 + 8);\n      v12 = *(_QWORD **)(*((_QWORD *)this + 7) + 272LL);\n      if ( *(char **)(16 * v11 + *v12) == v5 )\n        *(_QWORD *)(*v12 + 16 * v11) = *((_QWORD *)v5 + 4);\n      v13 = *((_QWORD *)v5 + 3);\n      if ( v13 )\n        *(_QWORD *)(v13 + 32) = *((_QWORD *)v5 + 4);\n      v14 = *((_QWORD *)v5 + 4);\n      if ( v14 )\n        *(_QWORD *)(v14 + 24) = *((_QWORD *)v5 + 3);\n      --*(_DWORD *)(*(_QWORD *)(*((_QWORD *)this + 7) + 272LL) + 16LL);\n    }\n    cocos2d::CCObject::release(*((cocos2d::CCObject **)a2 + 33));\n    j_j_free_0(a2);\n  }\n}", "assembly": "; \n; cocos2d::CCDictionary::removeObjectForElememt from 0x18000ac90 to 0x18000ae09 (377 bytes)\n; \n; 7 xrefs:\n; > cocos2d::CCDictionary::removeObjectForKey @ 0x18000b138\n; > cocos2d::CCDictionary::removeObjectForKey @ 0x18000b2e5\n; > cocos2d::CCDictionary::removeObjectForKey @ 0x18000b2f8\n; > cocos2d::CCSpriteFrameCache::removeUnusedSpriteFrames @ 0x180095c8b\n; > cocos2d::CCTextureCache::removeUnusedTextures @ 0x1800ad238\n; > <???> @ 0x18014cf68\n; > <???> @ 0x1801b7d68\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:21:20 +0000\n; \ntest    rdx, rdx                                                       ; +0x0, 0x18000ac90\njz      locret_18000AE08                                               ; +0x3, 0x18000ac93\nmov     [rsp+arg_0], rbx                                               ; +0x9, 0x18000ac99\npush    rdi                                                            ; +0xe, 0x18000ac9e\nsub     rsp, 20h                                                       ; +0xf, 0x18000ac9f\nmov     rbx, rcx                                                       ; +0x13, 0x18000aca3\nmov     rdi, rdx                                                       ; +0x16, 0x18000aca6\nmov     rcx, [rdx+118h]                                                ; +0x19, 0x18000aca9\ntest    rcx, rcx                                                       ; +0x20, 0x18000acb0\njnz     short loc_18000ACF0                                            ; +0x23, 0x18000acb3\ncmp     [rdx+120h], rcx                                                ; +0x25, 0x18000acb5\njnz     short loc_18000ACF0                                            ; +0x2c, 0x18000acbc\nmov     rax, [rbx+38h]                                                 ; +0x2e, 0x18000acbe\nmov     rcx, [rax+110h]                                                ; +0x32, 0x18000acc2\nmov     rcx, [rcx]; Block                                              ; +0x39, 0x18000acc9\ncall    cs:__imp_free                                                  ; +0x3c, 0x18000accc\nmov     rcx, [rbx+38h]                                                 ; +0x42, 0x18000acd2\nmov     rcx, [rcx+110h]; Block                                         ; +0x46, 0x18000acd6\ncall    cs:__imp_free                                                  ; +0x4d, 0x18000acdd\nmov     qword ptr [rbx+38h], 0                                         ; +0x53, 0x18000ace3\njmp     loc_18000ADE5                                                  ; +0x5b, 0x18000aceb\nmov     rax, [rbx+38h]                                                 ; +0x60, 0x18000acf0\nlea     r8, [rdx+110h]                                                 ; +0x64, 0x18000acf4\nmov     rdx, [rax+110h]                                                ; +0x6b, 0x18000acfb\nmov     r10, [rdx+20h]                                                 ; +0x72, 0x18000ad02\nmov     rax, [rdx+18h]                                                 ; +0x76, 0x18000ad06\nsub     rax, r10                                                       ; +0x7a, 0x18000ad0a\ncmp     rdi, rax                                                       ; +0x7d, 0x18000ad0d\njnz     short loc_18000AD1A                                            ; +0x80, 0x18000ad10\nlea     rax, [rcx+r10]                                                 ; +0x82, 0x18000ad12\nmov     [rdx+18h], rax                                                 ; +0x86, 0x18000ad16\nmov     r10, [rdi+118h]                                                ; +0x8a, 0x18000ad1a\ntest    r10, r10                                                       ; +0x91, 0x18000ad21\njz      short loc_18000AD43                                            ; +0x94, 0x18000ad24\nmov     rax, [rbx+38h]                                                 ; +0x96, 0x18000ad26\nmov     rcx, [rax+110h]                                                ; +0x9a, 0x18000ad2a\nmov     rax, [rdi+120h]                                                ; +0xa1, 0x18000ad31\nmov     rdx, [rcx+20h]                                                 ; +0xa8, 0x18000ad38\nmov     [rdx+r10+10h], rax                                             ; +0xac, 0x18000ad3c\njmp     short loc_18000AD4E                                            ; +0xb1, 0x18000ad41\nmov     rax, [rdi+120h]                                                ; +0xb3, 0x18000ad43\nmov     [rbx+38h], rax                                                 ; +0xba, 0x18000ad4a\nmov     r9, [r8+10h]                                                   ; +0xbe, 0x18000ad4e\ntest    r9, r9                                                         ; +0xc2, 0x18000ad52\njz      short loc_18000AD6F                                            ; +0xc5, 0x18000ad55\nmov     rax, [rbx+38h]                                                 ; +0xc7, 0x18000ad57\nmov     rcx, [rax+110h]                                                ; +0xcb, 0x18000ad5b\nmov     rax, [r8+8]                                                    ; +0xd2, 0x18000ad62\nmov     rdx, [rcx+20h]                                                 ; +0xd6, 0x18000ad66\nmov     [rdx+r9+8], rax                                                ; +0xda, 0x18000ad6a\nmov     rax, [rbx+38h]                                                 ; +0xdf, 0x18000ad6f\nmov     rcx, [rax+110h]                                                ; +0xe3, 0x18000ad73\nmov     eax, [r8+34h]                                                  ; +0xea, 0x18000ad7a\nmov     r9d, [rcx+8]                                                   ; +0xee, 0x18000ad7e\ndec     r9d                                                            ; +0xf2, 0x18000ad82\nand     r9, rax                                                        ; +0xf5, 0x18000ad85\nmov     rax, [rcx]                                                     ; +0xf8, 0x18000ad88\nmov     rdx, r9                                                        ; +0xfb, 0x18000ad8b\nshl     rdx, 4                                                         ; +0xfe, 0x18000ad8e\ndec     dword ptr [rdx+rax+8]                                          ; +0x102, 0x18000ad92\nmov     rax, [rbx+38h]                                                 ; +0x106, 0x18000ad96\nmov     rcx, [rax+110h]                                                ; +0x10a, 0x18000ad9a\nmov     r10, [rcx]                                                     ; +0x111, 0x18000ada1\ncmp     [rdx+r10], r8                                                  ; +0x114, 0x18000ada4\njnz     short loc_18000ADB5                                            ; +0x118, 0x18000ada8\nmov     rax, [r8+20h]                                                  ; +0x11a, 0x18000adaa\nadd     r9, r9                                                         ; +0x11e, 0x18000adae\nmov     [r10+r9*8], rax                                                ; +0x121, 0x18000adb1\nmov     rcx, [r8+18h]                                                  ; +0x125, 0x18000adb5\ntest    rcx, rcx                                                       ; +0x129, 0x18000adb9\njz      short loc_18000ADC6                                            ; +0x12c, 0x18000adbc\nmov     rax, [r8+20h]                                                  ; +0x12e, 0x18000adbe\nmov     [rcx+20h], rax                                                 ; +0x132, 0x18000adc2\nmov     rcx, [r8+20h]                                                  ; +0x136, 0x18000adc6\ntest    rcx, rcx                                                       ; +0x13a, 0x18000adca\njz      short loc_18000ADD7                                            ; +0x13d, 0x18000adcd\nmov     rax, [r8+18h]                                                  ; +0x13f, 0x18000adcf\nmov     [rcx+18h], rax                                                 ; +0x143, 0x18000add3\nmov     rax, [rbx+38h]                                                 ; +0x147, 0x18000add7\nmov     rcx, [rax+110h]                                                ; +0x14b, 0x18000addb\ndec     dword ptr [rcx+10h]                                            ; +0x152, 0x18000ade2\nmov     rcx, [rdi+108h]; this                                          ; +0x155, 0x18000ade5\ncall    ?release@CCObject@cocos2d@@QEAAXXZ; cocos2d::CCObject::release(void) ; +0x15c, 0x18000adec\nmov     edx, 148h                                                      ; +0x161, 0x18000adf1\nmov     rcx, rdi; Block                                                ; +0x166, 0x18000adf6\ncall    j_j_free_0                                                     ; +0x169, 0x18000adf9\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x16e, 0x18000adfe\nadd     rsp, 20h                                                       ; +0x173, 0x18000ae03\npop     rdi                                                            ; +0x177, 0x18000ae07\nretn                                                                   ; +0x178, 0x18000ae08", "xrefs": ["cocos2d::CCDictionary::removeObjectForKey @ 0x18000b138", "cocos2d::CCDictionary::removeObjectForKey @ 0x18000b2e5", "cocos2d::CCDictionary::removeObjectForKey @ 0x18000b2f8", "cocos2d::CCSpriteFrameCache::removeUnusedSpriteFrames @ 0x180095c8b", "cocos2d::CCTextureCache::removeUnusedTextures @ 0x1800ad238", "<???> @ 0x18014cf68", "<???> @ 0x1801b7d68"], "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"}