{"type": "func", "start": 6442496688, "end": 6442496900, "name": "cocos2d::CCDictionary::removeObjectsForKeys", "pseudocode": "// \n// cocos2d::CCDictionary::removeObjectsForKeys from 0x18000b2b0 to 0x18000b384 (212 bytes)\n// \n// 5 xrefs:\n// > cocos2d::CCSpriteFrameCache::removeSpriteFramesFromDictionary @ 0x180092074\n// > cocos2d::CCSpriteFrameCache::removeSpriteFramesFromTexture @ 0x1800926ab\n// > cocos2d::CCTextureCache::removeTexture @ 0x1800a984d\n// > <???> @ 0x1801438a8\n// > <???> @ 0x1801addd4\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// Hidden C++ exception states: #wind=1\nvoid __fastcall cocos2d::CCDictionary::removeObjectsForKeys(cocos2d::CCDictionary *this, struct cocos2d::CCArray *a2)\n{\n  cocos2d::ccArray *data; // rbx\n  __int64 num; // rax\n  cocos2d::CCString **arr; // rbx\n  cocos2d::CCString **i; // rdi\n  char *CString; // rax\n  void *v8; // rcx\n  unsigned __int8 Buf2[24]; // [rsp+20h] [rbp-38h] BYREF\n  unsigned __int64 v10; // [rsp+38h] [rbp-20h]\n\n  if ( a2 )\n  {\n    data = a2->data;\n    num = data->num;\n    if ( (_DWORD)num )\n    {\n      arr = (cocos2d::CCString **)data->arr;\n      for ( i = &arr[num - 1]; arr <= i; ++arr )\n      {\n        if ( !*arr )\n          break;\n        CString = (char *)cocos2d::CCString::getCString(*arr);\n        sub_180005910(Buf2, CString);\n        cocos2d::CCDictionary::removeObjectForKey(this, Buf2);\n        if ( v10 > 0xF )\n        {\n          v8 = *(void **)Buf2;\n          if ( v10 + 1 >= 0x1000 )\n          {\n            v8 = *(void **)(*(_QWORD *)Buf2 - 8LL);\n            if ( (unsigned __int64)(*(_QWORD *)Buf2 - (_QWORD)v8 - 8LL) > 0x1F )\n              invalid_parameter_noinfo_noreturn();\n          }\n          j_j_free_0(v8);\n        }\n      }\n    }\n  }\n}", "assembly": "; \n; cocos2d::CCDictionary::removeObjectsForKeys from 0x18000b2b0 to 0x18000b384 (212 bytes)\n; \n; 5 xrefs:\n; > cocos2d::CCSpriteFrameCache::removeSpriteFramesFromDictionary @ 0x180092074\n; > cocos2d::CCSpriteFrameCache::removeSpriteFramesFromTexture @ 0x1800926ab\n; > cocos2d::CCTextureCache::removeTexture @ 0x1800a984d\n; > <???> @ 0x1801438a8\n; > <???> @ 0x1801addd4\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\ntest    rdx, rdx                                                       ; +0x0, 0x18000b2b0\njz      locret_18000B37C                                               ; +0x3, 0x18000b2b3\nmov     [rsp+arg_10], rbx                                              ; +0x9, 0x18000b2b9\nmov     [rsp+arg_18], rsi                                              ; +0xe, 0x18000b2be\npush    rdi                                                            ; +0x13, 0x18000b2c3\nsub     rsp, 50h                                                       ; +0x14, 0x18000b2c4\nmov     rax, cs:__security_cookie                                      ; +0x18, 0x18000b2c8\nxor     rax, rsp                                                       ; +0x1f, 0x18000b2cf\nmov     [rsp+58h+var_18], rax                                          ; +0x22, 0x18000b2d2\nmov     rsi, rcx                                                       ; +0x27, 0x18000b2d7\nmov     rbx, [rdx+38h]                                                 ; +0x2a, 0x18000b2da\nmov     eax, [rbx]                                                     ; +0x2e, 0x18000b2de\ntest    eax, eax                                                       ; +0x30, 0x18000b2e0\njz      short loc_18000B360                                            ; +0x32, 0x18000b2e2\nmov     rbx, [rbx+10h]                                                 ; +0x34, 0x18000b2e4\nlea     rdi, [rax-1]                                                   ; +0x38, 0x18000b2e8\nlea     rdi, [rbx+rdi*8]                                               ; +0x3c, 0x18000b2ec\ncmp     rbx, rdi                                                       ; +0x40, 0x18000b2f0\nja      short loc_18000B360                                            ; +0x43, 0x18000b2f3\nmov     rcx, [rbx]; this                                               ; +0x45, 0x18000b2f5\ntest    rcx, rcx                                                       ; +0x48, 0x18000b2f8\njz      short loc_18000B360                                            ; +0x4b, 0x18000b2fb\ncall    ?getCString@CCString@cocos2d@@QEBAPEBDXZ; cocos2d::CCString::getCString(void) ; +0x4d, 0x18000b2fd\nmov     rdx, rax                                                       ; +0x52, 0x18000b302\nlea     rcx, [rsp+58h+Buf2]                                            ; +0x55, 0x18000b305\ncall    sub_180005910                                                  ; +0x5a, 0x18000b30a\nnop                                                                    ; +0x5f, 0x18000b30f\nlea     rdx, [rsp+58h+Buf2]; Buf2                                      ; +0x60, 0x18000b310\nmov     rcx, rsi; this                                                 ; +0x65, 0x18000b315\ncall    ?removeObjectForKey@CCDictionary@cocos2d@@QEAAXAEBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z; cocos2d::CCDictionary::removeObjectForKey(std::string const &) ; +0x68, 0x18000b318\nnop                                                                    ; +0x6d, 0x18000b31d\nmov     rdx, [rsp+58h+var_20]                                          ; +0x6e, 0x18000b31e\ncmp     rdx, 0Fh                                                       ; +0x73, 0x18000b323\njbe     short loc_18000B357                                            ; +0x77, 0x18000b327\ninc     rdx                                                            ; +0x79, 0x18000b329\nmov     rcx, qword ptr [rsp+58h+Buf2]                                  ; +0x7c, 0x18000b32c\nmov     rax, rcx                                                       ; +0x81, 0x18000b331\ncmp     rdx, 1000h                                                     ; +0x84, 0x18000b334\njb      short loc_18000B352                                            ; +0x8b, 0x18000b33b\nadd     rdx, 27h ; '''                                                 ; +0x8d, 0x18000b33d\nmov     rcx, [rcx-8]; Block                                            ; +0x91, 0x18000b341\nsub     rax, rcx                                                       ; +0x95, 0x18000b345\nadd     rax, 0FFFFFFFFFFFFFFF8h                                        ; +0x98, 0x18000b348\ncmp     rax, 1Fh                                                       ; +0x9c, 0x18000b34c\nja      short loc_18000B37D                                            ; +0xa0, 0x18000b350\ncall    j_j_free_0                                                     ; +0xa2, 0x18000b352\nadd     rbx, 8                                                         ; +0xa7, 0x18000b357\ncmp     rbx, rdi                                                       ; +0xab, 0x18000b35b\njbe     short loc_18000B2F5                                            ; +0xae, 0x18000b35e\nmov     rcx, [rsp+58h+var_18]                                          ; +0xb0, 0x18000b360\nxor     rcx, rsp; StackCookie                                          ; +0xb5, 0x18000b365\ncall    __security_check_cookie                                        ; +0xb8, 0x18000b368\nmov     rbx, [rsp+58h+arg_10]                                          ; +0xbd, 0x18000b36d\nmov     rsi, [rsp+58h+arg_18]                                          ; +0xc2, 0x18000b372\nadd     rsp, 50h                                                       ; +0xc7, 0x18000b377\npop     rdi                                                            ; +0xcb, 0x18000b37b\nretn                                                                   ; +0xcc, 0x18000b37c\ncall    cs:_invalid_parameter_noinfo_noreturn                          ; +0xcd, 0x18000b37d\ndb 0CCh                                                                ; +0xd3, 0x18000b383", "xrefs": ["cocos2d::CCSpriteFrameCache::removeSpriteFramesFromDictionary @ 0x180092074", "cocos2d::CCSpriteFrameCache::removeSpriteFramesFromTexture @ 0x1800926ab", "cocos2d::CCTextureCache::removeTexture @ 0x1800a984d", "<???> @ 0x1801438a8", "<???> @ 0x1801addd4"], "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"}