{"type": "func", "start": 6442494688, "end": 6442495107, "name": "cocos2d::CCDictionary::removeAllObjects", "pseudocode": "// \n// cocos2d::CCDictionary::removeAllObjects from 0x18000aae0 to 0x18000ac83 (419 bytes)\n// \n// 10 xrefs:\n// > cocos2d::CCTextureCache::removeAllTextures @ 0x1800060a4\n// > cocos2d::CCDictionary::~CCDictionary @ 0x180009793\n// > sub_1800097C0 @ 0x18000982c\n// > cocos2d::CCLabelBMFont::purgeCachedData @ 0x180048e60\n// > cocos2d::CCSpriteFrameCache::removeSpriteFrames @ 0x1800951c1\n// > cocos2d::CCSpriteFrameCache::removeSpriteFrames @ 0x1800951ca\n// > <???> @ 0x18013abe8\n// > <???> @ 0x18013abf8\n// > <???> @ 0x18014cf68\n// > <???> @ 0x1801b7d44\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:19 +0000\n// \n\nvoid __fastcall cocos2d::CCDictionary::removeAllObjects(cocos2d::CCDictionary *this)\n{\n  __int64 v1; // rdi\n  __int64 i; // rsi\n  __int64 v4; // r8\n  __int64 v5; // r10\n  __int64 v6; // r9\n  __int64 v7; // r11\n  __int64 v8; // r9\n  __int64 v9; // r8\n  __int64 v10; // r9\n  __int64 v11; // rdx\n  __int64 v12; // r9\n  _QWORD *v13; // rdx\n  __int64 v14; // rdx\n  __int64 v15; // rcx\n\n  v1 = *((_QWORD *)this + 7);\n  if ( v1 )\n  {\n    for ( i = *(_QWORD *)(v1 + 288); ; i = *(_QWORD *)(i + 288) )\n    {\n      v4 = *(_QWORD *)(v1 + 280);\n      if ( v4 || *(_QWORD *)(v1 + 288) )\n      {\n        v5 = *((_QWORD *)this + 7);\n        v6 = *(_QWORD *)(v5 + 272);\n        v7 = *(_QWORD *)(v6 + 32);\n        if ( v1 == *(_QWORD *)(v6 + 24) - v7 )\n        {\n          *(_QWORD *)(v6 + 24) = v4 + v7;\n          v5 = *((_QWORD *)this + 7);\n        }\n        v8 = *(_QWORD *)(v1 + 280);\n        v9 = *(_QWORD *)(v1 + 288);\n        if ( v8 )\n        {\n          *(_QWORD *)(*(_QWORD *)(*(_QWORD *)(v5 + 272) + 32LL) + v8 + 16) = v9;\n          v9 = *((_QWORD *)this + 7);\n        }\n        else\n        {\n          *((_QWORD *)this + 7) = v9;\n        }\n        v10 = *(_QWORD *)(v1 + 288);\n        if ( v10 )\n          *(_QWORD *)(*(_QWORD *)(*(_QWORD *)(v9 + 272) + 32LL) + v10 + 8) = *(_QWORD *)(v1 + 280);\n        v11 = *(_QWORD *)(*((_QWORD *)this + 7) + 272LL);\n        v12 = *(_DWORD *)(v1 + 324) & (unsigned int)(*(_DWORD *)(v11 + 8) - 1);\n        --*(_DWORD *)(16 * v12 + *(_QWORD *)v11 + 8);\n        v13 = *(_QWORD **)(*((_QWORD *)this + 7) + 272LL);\n        if ( *(_QWORD *)(16 * v12 + *v13) == v1 + 272 )\n          *(_QWORD *)(*v13 + 16 * v12) = *(_QWORD *)(v1 + 304);\n        v14 = *(_QWORD *)(v1 + 296);\n        if ( v14 )\n          *(_QWORD *)(v14 + 32) = *(_QWORD *)(v1 + 304);\n        v15 = *(_QWORD *)(v1 + 304);\n        if ( v15 )\n          *(_QWORD *)(v15 + 24) = *(_QWORD *)(v1 + 296);\n        --*(_DWORD *)(*(_QWORD *)(*((_QWORD *)this + 7) + 272LL) + 16LL);\n      }\n      else\n      {\n        free(**(void ***)(*((_QWORD *)this + 7) + 272LL));\n        free(*(void **)(*((_QWORD *)this + 7) + 272LL));\n        *((_QWORD *)this + 7) = 0;\n      }\n      cocos2d::CCObject::release(*(cocos2d::CCObject **)(v1 + 264));\n      j_j_free_0((void *)v1);\n      v1 = i;\n      if ( !i )\n        break;\n    }\n  }\n}", "assembly": "; \n; cocos2d::CCDictionary::removeAllObjects from 0x18000aae0 to 0x18000ac83 (419 bytes)\n; \n; 10 xrefs:\n; > cocos2d::CCTextureCache::removeAllTextures @ 0x1800060a4\n; > cocos2d::CCDictionary::~CCDictionary @ 0x180009793\n; > sub_1800097C0 @ 0x18000982c\n; > cocos2d::CCLabelBMFont::purgeCachedData @ 0x180048e60\n; > cocos2d::CCSpriteFrameCache::removeSpriteFrames @ 0x1800951c1\n; > cocos2d::CCSpriteFrameCache::removeSpriteFrames @ 0x1800951ca\n; > <???> @ 0x18013abe8\n; > <???> @ 0x18013abf8\n; > <???> @ 0x18014cf68\n; > <???> @ 0x1801b7d44\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:19 +0000\n; \nmov     [rsp+arg_10], rbx                                              ; +0x0, 0x18000aae0\npush    rdi                                                            ; +0x5, 0x18000aae5\nsub     rsp, 20h                                                       ; +0x6, 0x18000aae6\nmov     rdi, [rcx+38h]                                                 ; +0xa, 0x18000aaea\nmov     rbx, rcx                                                       ; +0xe, 0x18000aaee\ntest    rdi, rdi                                                       ; +0x11, 0x18000aaf1\njz      loc_18000AC78                                                  ; +0x14, 0x18000aaf4\nmov     [rsp+28h+arg_0], rbp                                           ; +0x1a, 0x18000aafa\nxor     ebp, ebp                                                       ; +0x1f, 0x18000aaff\nmov     [rsp+28h+arg_8], rsi                                           ; +0x21, 0x18000ab01\nmov     rsi, [rdi+120h]                                                ; +0x26, 0x18000ab06\nnop     dword ptr [rax]                                                ; +0x2d, 0x18000ab0d\nmov     r8, [rdi+118h]                                                 ; +0x30, 0x18000ab10\ntest    r8, r8                                                         ; +0x37, 0x18000ab17\njnz     short loc_18000AB53                                            ; +0x3a, 0x18000ab1a\ncmp     [rdi+120h], rbp                                                ; +0x3c, 0x18000ab1c\njnz     short loc_18000AB53                                            ; +0x43, 0x18000ab23\nmov     rax, [rbx+38h]                                                 ; +0x45, 0x18000ab25\nmov     rcx, [rax+110h]                                                ; +0x49, 0x18000ab29\nmov     rcx, [rcx]; Block                                              ; +0x50, 0x18000ab30\ncall    cs:__imp_free                                                  ; +0x53, 0x18000ab33\nmov     rcx, [rbx+38h]                                                 ; +0x59, 0x18000ab39\nmov     rcx, [rcx+110h]; Block                                         ; +0x5d, 0x18000ab3d\ncall    cs:__imp_free                                                  ; +0x64, 0x18000ab44\nmov     [rbx+38h], rbp                                                 ; +0x6a, 0x18000ab4a\njmp     loc_18000AC41                                                  ; +0x6e, 0x18000ab4e\nmov     r10, [rbx+38h]                                                 ; +0x73, 0x18000ab53\nlea     rax, [rdi+110h]                                                ; +0x77, 0x18000ab57\nmov     r9, [r10+110h]                                                 ; +0x7e, 0x18000ab5e\nmov     r11, [r9+20h]                                                  ; +0x85, 0x18000ab65\nmov     rcx, [r9+18h]                                                  ; +0x89, 0x18000ab69\nsub     rcx, r11                                                       ; +0x8d, 0x18000ab6d\ncmp     rdi, rcx                                                       ; +0x90, 0x18000ab70\njnz     short loc_18000AB81                                            ; +0x93, 0x18000ab73\nlea     rcx, [r8+r11]                                                  ; +0x95, 0x18000ab75\nmov     [r9+18h], rcx                                                  ; +0x99, 0x18000ab79\nmov     r10, [rbx+38h]                                                 ; +0x9d, 0x18000ab7d\nmov     r9, [rdi+118h]                                                 ; +0xa1, 0x18000ab81\nmov     r8, [rdi+120h]                                                 ; +0xa8, 0x18000ab88\ntest    r9, r9                                                         ; +0xaf, 0x18000ab8f\njz      short loc_18000ABAA                                            ; +0xb2, 0x18000ab92\nmov     rcx, [r10+110h]                                                ; +0xb4, 0x18000ab94\nmov     rdx, [rcx+20h]                                                 ; +0xbb, 0x18000ab9b\nmov     [rdx+r9+10h], r8                                               ; +0xbf, 0x18000ab9f\nmov     r8, [rbx+38h]                                                  ; +0xc4, 0x18000aba4\njmp     short loc_18000ABAE                                            ; +0xc8, 0x18000aba8\nmov     [rbx+38h], r8                                                  ; +0xca, 0x18000abaa\nmov     r9, [rax+10h]                                                  ; +0xce, 0x18000abae\ntest    r9, r9                                                         ; +0xd2, 0x18000abb2\njz      short loc_18000ABCB                                            ; +0xd5, 0x18000abb5\nmov     rcx, [r8+110h]                                                 ; +0xd7, 0x18000abb7\nmov     rdx, [rcx+20h]                                                 ; +0xde, 0x18000abbe\nmov     rcx, [rax+8]                                                   ; +0xe2, 0x18000abc2\nmov     [rdx+r9+8], rcx                                                ; +0xe6, 0x18000abc6\nmov     rcx, [rbx+38h]                                                 ; +0xeb, 0x18000abcb\nmov     rdx, [rcx+110h]                                                ; +0xef, 0x18000abcf\nmov     ecx, [rax+34h]                                                 ; +0xf6, 0x18000abd6\nmov     r9d, [rdx+8]                                                   ; +0xf9, 0x18000abd9\ndec     r9d                                                            ; +0xfd, 0x18000abdd\nand     r9, rcx                                                        ; +0x100, 0x18000abe0\nmov     rcx, [rdx]                                                     ; +0x103, 0x18000abe3\nmov     r8, r9                                                         ; +0x106, 0x18000abe6\nshl     r8, 4                                                          ; +0x109, 0x18000abe9\ndec     dword ptr [r8+rcx+8]                                           ; +0x10d, 0x18000abed\nmov     rcx, [rbx+38h]                                                 ; +0x112, 0x18000abf2\nmov     rdx, [rcx+110h]                                                ; +0x116, 0x18000abf6\nmov     r10, [rdx]                                                     ; +0x11d, 0x18000abfd\ncmp     [r8+r10], rax                                                  ; +0x120, 0x18000ac00\njnz     short loc_18000AC11                                            ; +0x124, 0x18000ac04\nmov     rcx, [rax+20h]                                                 ; +0x126, 0x18000ac06\nadd     r9, r9                                                         ; +0x12a, 0x18000ac0a\nmov     [r10+r9*8], rcx                                                ; +0x12d, 0x18000ac0d\nmov     rdx, [rax+18h]                                                 ; +0x131, 0x18000ac11\ntest    rdx, rdx                                                       ; +0x135, 0x18000ac15\njz      short loc_18000AC22                                            ; +0x138, 0x18000ac18\nmov     rcx, [rax+20h]                                                 ; +0x13a, 0x18000ac1a\nmov     [rdx+20h], rcx                                                 ; +0x13e, 0x18000ac1e\nmov     rcx, [rax+20h]                                                 ; +0x142, 0x18000ac22\ntest    rcx, rcx                                                       ; +0x146, 0x18000ac26\njz      short loc_18000AC33                                            ; +0x149, 0x18000ac29\nmov     rdx, [rax+18h]                                                 ; +0x14b, 0x18000ac2b\nmov     [rcx+18h], rdx                                                 ; +0x14f, 0x18000ac2f\nmov     rax, [rbx+38h]                                                 ; +0x153, 0x18000ac33\nmov     rdx, [rax+110h]                                                ; +0x157, 0x18000ac37\ndec     dword ptr [rdx+10h]                                            ; +0x15e, 0x18000ac3e\nmov     rcx, [rdi+108h]; this                                          ; +0x161, 0x18000ac41\ncall    ?release@CCObject@cocos2d@@QEAAXXZ; cocos2d::CCObject::release(void) ; +0x168, 0x18000ac48\nmov     edx, 148h                                                      ; +0x16d, 0x18000ac4d\nmov     rcx, rdi; Block                                                ; +0x172, 0x18000ac52\ncall    j_j_free_0                                                     ; +0x175, 0x18000ac55\nmov     rdi, rsi                                                       ; +0x17a, 0x18000ac5a\ntest    rsi, rsi                                                       ; +0x17d, 0x18000ac5d\njz      short loc_18000AC6E                                            ; +0x180, 0x18000ac60\nmov     rsi, [rsi+120h]                                                ; +0x182, 0x18000ac62\njmp     loc_18000AB10                                                  ; +0x189, 0x18000ac69\nmov     rbp, [rsp+28h+arg_0]                                           ; +0x18e, 0x18000ac6e\nmov     rsi, [rsp+28h+arg_8]                                           ; +0x193, 0x18000ac73\nmov     rbx, [rsp+28h+arg_10]                                          ; +0x198, 0x18000ac78\nadd     rsp, 20h                                                       ; +0x19d, 0x18000ac7d\npop     rdi                                                            ; +0x1a1, 0x18000ac81\nretn                                                                   ; +0x1a2, 0x18000ac82", "xrefs": ["cocos2d::CCTextureCache::removeAllTextures @ 0x1800060a4", "cocos2d::CCDictionary::~CCDictionary @ 0x180009793", "sub_1800097C0 @ 0x18000982c", "cocos2d::CCLabelBMFont::purgeCachedData @ 0x180048e60", "cocos2d::CCSpriteFrameCache::removeSpriteFrames @ 0x1800951c1", "cocos2d::CCSpriteFrameCache::removeSpriteFrames @ 0x1800951ca", "<???> @ 0x18013abe8", "<???> @ 0x18013abf8", "<???> @ 0x18014cf68", "<???> @ 0x1801b7d44"], "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"}