{"type": "func", "start": 6443020560, "end": 6443020701, "name": "cocos2d::CCAnimationCache::removeAnimationByName", "pseudocode": "// \n// cocos2d::CCAnimationCache::removeAnimationByName from 0x18008b110 to 0x18008b19d (141 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x1801438a8\n// > <???> @ 0x1801b5ab4\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::CCAnimationCache::removeAnimationByName(cocos2d::CCAnimationCache *this, char *a2)\n{\n  void *v3; // rcx\n  void *Block[3]; // [rsp+20h] [rbp-38h] BYREF\n  unsigned __int64 v5; // [rsp+38h] [rbp-20h]\n\n  if ( a2 )\n  {\n    sub_180005910(Block, a2);\n    cocos2d::CCDictionary::removeObjectForKey(*((cocos2d::CCDictionary **)this + 7), (unsigned __int8 *)Block);\n    if ( v5 > 0xF )\n    {\n      v3 = Block[0];\n      if ( v5 + 1 >= 0x1000 )\n      {\n        v3 = *((void **)Block[0] - 1);\n        if ( (unsigned __int64)((char *)Block[0] - (char *)v3 - 8) > 0x1F )\n          invalid_parameter_noinfo_noreturn();\n      }\n      j_j_free_0(v3);\n    }\n  }\n}", "assembly": "; \n; cocos2d::CCAnimationCache::removeAnimationByName from 0x18008b110 to 0x18008b19d (141 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x1801438a8\n; > <???> @ 0x1801b5ab4\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, 0x18008b110\njz      locret_18008B19C                                               ; +0x3, 0x18008b113\npush    rbx                                                            ; +0x9, 0x18008b119\nsub     rsp, 50h                                                       ; +0xa, 0x18008b11a\nmov     rax, cs:__security_cookie                                      ; +0xe, 0x18008b11e\nxor     rax, rsp                                                       ; +0x15, 0x18008b125\nmov     [rsp+58h+var_18], rax                                          ; +0x18, 0x18008b128\nmov     rbx, rcx                                                       ; +0x1d, 0x18008b12d\nlea     rcx, [rsp+58h+Block]                                           ; +0x20, 0x18008b130\ncall    sub_180005910                                                  ; +0x25, 0x18008b135\nnop                                                                    ; +0x2a, 0x18008b13a\nlea     rdx, [rsp+58h+Block]; Buf2                                     ; +0x2b, 0x18008b13b\nmov     rcx, [rbx+38h]; this                                           ; +0x30, 0x18008b140\ncall    ?removeObjectForKey@CCDictionary@cocos2d@@QEAAXAEBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z; cocos2d::CCDictionary::removeObjectForKey(std::string const &) ; +0x34, 0x18008b144\nnop                                                                    ; +0x39, 0x18008b149\nmov     rdx, [rsp+58h+var_20]                                          ; +0x3a, 0x18008b14a\ncmp     rdx, 0Fh                                                       ; +0x3f, 0x18008b14f\njbe     short loc_18008B18A                                            ; +0x43, 0x18008b153\ninc     rdx                                                            ; +0x45, 0x18008b155\nmov     rcx, [rsp+58h+Block]; Block                                    ; +0x48, 0x18008b158\nmov     rax, rcx                                                       ; +0x4d, 0x18008b15d\ncmp     rdx, 1000h                                                     ; +0x50, 0x18008b160\njb      short loc_18008B185                                            ; +0x57, 0x18008b167\nadd     rdx, 27h ; '''                                                 ; +0x59, 0x18008b169\nmov     rcx, [rcx-8]                                                   ; +0x5d, 0x18008b16d\nsub     rax, rcx                                                       ; +0x61, 0x18008b171\nadd     rax, 0FFFFFFFFFFFFFFF8h                                        ; +0x64, 0x18008b174\ncmp     rax, 1Fh                                                       ; +0x68, 0x18008b178\njbe     short loc_18008B185                                            ; +0x6c, 0x18008b17c\ncall    cs:_invalid_parameter_noinfo_noreturn                          ; +0x6e, 0x18008b17e\ndb 0CCh                                                                ; +0x74, 0x18008b184\ncall    j_j_free_0                                                     ; +0x75, 0x18008b185\nmov     rcx, [rsp+58h+var_18]                                          ; +0x7a, 0x18008b18a\nxor     rcx, rsp; StackCookie                                          ; +0x7f, 0x18008b18f\ncall    __security_check_cookie                                        ; +0x82, 0x18008b192\nadd     rsp, 50h                                                       ; +0x87, 0x18008b197\npop     rbx                                                            ; +0x8b, 0x18008b19b\nretn                                                                   ; +0x8c, 0x18008b19c", "xrefs": ["<???> @ 0x1801438a8", "<???> @ 0x1801b5ab4"], "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"}