{"type": "func", "start": 6443145312, "end": 6443145482, "name": "cocos2d::CCTextureCache::removeTextureForKey", "pseudocode": "// \n// cocos2d::CCTextureCache::removeTextureForKey from 0x1800a9860 to 0x1800a990a (170 bytes)\n// \n// 3 xrefs:\n// > cocos2d::CCDirector::removeStatsLabel @ 0x1800bf0bd\n// > <???> @ 0x1801438a8\n// > <???> @ 0x1801b7ed8\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::CCTextureCache::removeTextureForKey(cocos2d::CCTextureCache *this, const char *a2)\n{\n  struct cocos2d::CCFileUtils *v4; // rax\n  void *v5; // rcx\n  void *Block[3]; // [rsp+20h] [rbp-38h] BYREF\n  unsigned __int64 v7; // [rsp+38h] [rbp-20h]\n\n  if ( a2 )\n  {\n    v4 = cocos2d::CCFileUtils::sharedFileUtils();\n    ((void (__fastcall *)(struct cocos2d::CCFileUtils *, void **, const char *, _QWORD))v4->createCCArrayWithContentsOfFile)(\n      v4,\n      Block,\n      a2,\n      0);\n    cocos2d::CCDictionary::removeObjectForKey(this->m_pTextures, (unsigned __int8 *)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          invalid_parameter_noinfo_noreturn();\n      }\n      j_j_free_0(v5);\n    }\n  }\n}", "assembly": "; \n; cocos2d::CCTextureCache::removeTextureForKey from 0x1800a9860 to 0x1800a990a (170 bytes)\n; \n; 3 xrefs:\n; > cocos2d::CCDirector::removeStatsLabel @ 0x1800bf0bd\n; > <???> @ 0x1801438a8\n; > <???> @ 0x1801b7ed8\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, 0x1800a9860\njz      locret_1800A9909                                               ; +0x3, 0x1800a9863\nmov     [rsp+arg_10], rbx                                              ; +0x9, 0x1800a9869\npush    rdi                                                            ; +0xe, 0x1800a986e\nsub     rsp, 50h                                                       ; +0xf, 0x1800a986f\nmov     rax, cs:__security_cookie                                      ; +0x13, 0x1800a9873\nxor     rax, rsp                                                       ; +0x1a, 0x1800a987a\nmov     [rsp+58h+var_18], rax                                          ; +0x1d, 0x1800a987d\nmov     rbx, rdx                                                       ; +0x22, 0x1800a9882\nmov     rdi, rcx                                                       ; +0x25, 0x1800a9885\ncall    ?sharedFileUtils@CCFileUtils@cocos2d@@SAPEAV12@XZ; cocos2d::CCFileUtils::sharedFileUtils(void) ; +0x28, 0x1800a9888\nmov     r10, [rax]                                                     ; +0x2d, 0x1800a988d\nxor     r9d, r9d                                                       ; +0x30, 0x1800a9890\nmov     r8, rbx                                                        ; +0x33, 0x1800a9893\nlea     rdx, [rsp+58h+Block]                                           ; +0x36, 0x1800a9896\nmov     rcx, rax                                                       ; +0x3b, 0x1800a989b\ncall    qword ptr [r10+28h]                                            ; +0x3e, 0x1800a989e\nnop                                                                    ; +0x42, 0x1800a98a2\nlea     rdx, [rsp+58h+Block]; Buf2                                     ; +0x43, 0x1800a98a3\nmov     rcx, [rdi+38h]; this                                           ; +0x48, 0x1800a98a8\ncall    ?removeObjectForKey@CCDictionary@cocos2d@@QEAAXAEBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z; cocos2d::CCDictionary::removeObjectForKey(std::string const &) ; +0x4c, 0x1800a98ac\nnop                                                                    ; +0x51, 0x1800a98b1\nmov     rdx, [rsp+58h+var_20]                                          ; +0x52, 0x1800a98b2\ncmp     rdx, 0Fh                                                       ; +0x57, 0x1800a98b7\njbe     short loc_1800A98F2                                            ; +0x5b, 0x1800a98bb\ninc     rdx                                                            ; +0x5d, 0x1800a98bd\nmov     rcx, [rsp+58h+Block]; Block                                    ; +0x60, 0x1800a98c0\nmov     rax, rcx                                                       ; +0x65, 0x1800a98c5\ncmp     rdx, 1000h                                                     ; +0x68, 0x1800a98c8\njb      short loc_1800A98ED                                            ; +0x6f, 0x1800a98cf\nadd     rdx, 27h ; '''                                                 ; +0x71, 0x1800a98d1\nmov     rcx, [rcx-8]                                                   ; +0x75, 0x1800a98d5\nsub     rax, rcx                                                       ; +0x79, 0x1800a98d9\nadd     rax, 0FFFFFFFFFFFFFFF8h                                        ; +0x7c, 0x1800a98dc\ncmp     rax, 1Fh                                                       ; +0x80, 0x1800a98e0\njbe     short loc_1800A98ED                                            ; +0x84, 0x1800a98e4\ncall    cs:_invalid_parameter_noinfo_noreturn                          ; +0x86, 0x1800a98e6\ndb 0CCh                                                                ; +0x8c, 0x1800a98ec\ncall    j_j_free_0                                                     ; +0x8d, 0x1800a98ed\nmov     rcx, [rsp+58h+var_18]                                          ; +0x92, 0x1800a98f2\nxor     rcx, rsp; StackCookie                                          ; +0x97, 0x1800a98f7\ncall    __security_check_cookie                                        ; +0x9a, 0x1800a98fa\nmov     rbx, [rsp+58h+arg_10]                                          ; +0x9f, 0x1800a98ff\nadd     rsp, 50h                                                       ; +0xa4, 0x1800a9904\npop     rdi                                                            ; +0xa8, 0x1800a9908\nretn                                                                   ; +0xa9, 0x1800a9909", "xrefs": ["cocos2d::CCDirector::removeStatsLabel @ 0x1800bf0bd", "<???> @ 0x1801438a8", "<???> @ 0x1801b7ed8"], "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"}