{"type": "func", "start": 6443159648, "end": 6443159843, "name": "cocos2d::CCTextureCache::removeTextureForKey", "pseudocode": "// \n// cocos2d::CCTextureCache::removeTextureForKey from 0x1800ad060 to 0x1800ad123 (195 bytes)\n// \n// 3 xrefs:\n// > cocos2d::CCDirector::removeStatsLabel @ 0x1800c290d\n// > <???> @ 0x18014cf68\n// > <???> @ 0x1801c219c\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:18 +0000\n// \n\n// Hidden C++ exception states: #wind=1\nvoid __fastcall cocos2d::CCTextureCache::removeTextureForKey(cocos2d::CCDictionary **this, const char *a2)\n{\n  struct cocos2d::CCFileUtils *v4; // rax\n  void *v5; // rcx\n  void *Block[3]; // [rsp+30h] [rbp-38h] BYREF\n  unsigned __int64 v7; // [rsp+48h] [rbp-20h]\n\n  if ( a2 )\n  {\n    v4 = cocos2d::CCFileUtils::sharedFileUtils();\n    (*(void (__fastcall **)(struct cocos2d::CCFileUtils *, void **, const char *, _QWORD))(*(_QWORD *)v4 + 40LL))(\n      v4,\n      Block,\n      a2,\n      0);\n    cocos2d::CCDictionary::removeObjectForKey(*(this + 7), (char *)Block);\n    if ( v7 > 0xF )\n    {\n      v5 = Block[0];\n      if ( v7 + 1 >= 0x1000 )\n      {\n        v5 = *((void **)Block[0] - 1);\n        if ( (unsigned __int64)((char *)Block[0] - (char *)v5 - 8) > 0x1F )\n          invoke_watson(nullptr, nullptr, nullptr, 0, 0);\n      }\n      j_j_free_0(v5);\n    }\n  }\n}", "assembly": "; \n; cocos2d::CCTextureCache::removeTextureForKey from 0x1800ad060 to 0x1800ad123 (195 bytes)\n; \n; 3 xrefs:\n; > cocos2d::CCDirector::removeStatsLabel @ 0x1800c290d\n; > <???> @ 0x18014cf68\n; > <???> @ 0x1801c219c\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:18 +0000\n; \ntest    rdx, rdx                                                       ; +0x0, 0x1800ad060\njz      locret_1800AD122                                               ; +0x3, 0x1800ad063\nmov     [rsp+arg_10], rbx                                              ; +0x9, 0x1800ad069\npush    rdi                                                            ; +0xe, 0x1800ad06e\nsub     rsp, 60h                                                       ; +0xf, 0x1800ad06f\nmov     rax, cs:__security_cookie                                      ; +0x13, 0x1800ad073\nxor     rax, rsp                                                       ; +0x1a, 0x1800ad07a\nmov     [rsp+68h+var_18], rax                                          ; +0x1d, 0x1800ad07d\nmov     rbx, rdx                                                       ; +0x22, 0x1800ad082\nmov     rdi, rcx                                                       ; +0x25, 0x1800ad085\ncall    ?sharedFileUtils@CCFileUtils@cocos2d@@SAPEAV12@XZ; cocos2d::CCFileUtils::sharedFileUtils(void) ; +0x28, 0x1800ad088\nmov     rdx, [rax]                                                     ; +0x2d, 0x1800ad08d\nmov     r10, [rdx+28h]                                                 ; +0x30, 0x1800ad090\nxor     r9d, r9d                                                       ; +0x34, 0x1800ad094\nmov     r8, rbx                                                        ; +0x37, 0x1800ad097\nlea     rdx, [rsp+68h+Block]                                           ; +0x3a, 0x1800ad09a\nmov     rcx, rax                                                       ; +0x3f, 0x1800ad09f\ncall    r10                                                            ; +0x42, 0x1800ad0a2\nnop                                                                    ; +0x45, 0x1800ad0a5\nlea     rdx, [rsp+68h+Block]; Str                                      ; +0x46, 0x1800ad0a6\nmov     rcx, [rdi+38h]; this                                           ; +0x4b, 0x1800ad0ab\ncall    ?removeObjectForKey@CCDictionary@cocos2d@@QEAAXAEBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z; cocos2d::CCDictionary::removeObjectForKey(std::string const &) ; +0x4f, 0x1800ad0af\nnop                                                                    ; +0x54, 0x1800ad0b4\nmov     rdx, [rsp+68h+var_20]                                          ; +0x55, 0x1800ad0b5\ncmp     rdx, 0Fh                                                       ; +0x5a, 0x1800ad0ba\njbe     short loc_1800AD108                                            ; +0x5e, 0x1800ad0be\ninc     rdx                                                            ; +0x60, 0x1800ad0c0\nmov     rcx, [rsp+68h+Block]; Block                                    ; +0x63, 0x1800ad0c3\nmov     rax, rcx                                                       ; +0x68, 0x1800ad0c8\ncmp     rdx, 1000h                                                     ; +0x6b, 0x1800ad0cb\njb      short loc_1800AD103                                            ; +0x72, 0x1800ad0d2\nadd     rdx, 27h ; '''                                                 ; +0x74, 0x1800ad0d4\nmov     rcx, [rcx-8]                                                   ; +0x78, 0x1800ad0d8\nsub     rax, rcx                                                       ; +0x7c, 0x1800ad0dc\nsub     rax, 8                                                         ; +0x7f, 0x1800ad0df\ncmp     rax, 1Fh                                                       ; +0x83, 0x1800ad0e3\njbe     short loc_1800AD103                                            ; +0x87, 0x1800ad0e7\nmov     [rsp+68h+Reserved], 0; Reserved                                ; +0x89, 0x1800ad0e9\nxor     r9d, r9d; LineNo                                               ; +0x92, 0x1800ad0f2\nxor     r8d, r8d; FileName                                             ; +0x95, 0x1800ad0f5\nxor     edx, edx; FunctionName                                         ; +0x98, 0x1800ad0f8\nxor     ecx, ecx; Expression                                           ; +0x9a, 0x1800ad0fa\ncall    cs:_invoke_watson                                              ; +0x9c, 0x1800ad0fc\ndb 0CCh                                                                ; +0xa2, 0x1800ad102\ncall    j_j_free_0                                                     ; +0xa3, 0x1800ad103\nmov     rcx, [rsp+68h+var_18]                                          ; +0xa8, 0x1800ad108\nxor     rcx, rsp; StackCookie                                          ; +0xad, 0x1800ad10d\ncall    __security_check_cookie                                        ; +0xb0, 0x1800ad110\nmov     rbx, [rsp+68h+arg_10]                                          ; +0xb5, 0x1800ad115\nadd     rsp, 60h                                                       ; +0xbd, 0x1800ad11d\npop     rdi                                                            ; +0xc1, 0x1800ad121\nretn                                                                   ; +0xc2, 0x1800ad122", "xrefs": ["cocos2d::CCDirector::removeStatsLabel @ 0x1800c290d", "<???> @ 0x18014cf68", "<???> @ 0x1801c219c"], "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"}