{"type": "func", "start": 6443033408, "end": 6443033543, "name": "cocos2d::CCAnimationCache::sharedAnimationCache", "pseudocode": "// \n// cocos2d::CCAnimationCache::sharedAnimationCache from 0x18008e340 to 0x18008e3c7 (135 bytes)\n// \n// 6 xrefs:\n// > cocos2d::CCAnimationCache::parseVersion1 @ 0x18008daa5\n// > cocos2d::CCAnimationCache::parseVersion2 @ 0x18008e12a\n// > cocos2d::CCSprite::setDisplayFrameWithAnimationName @ 0x18008f6f8\n// > <???> @ 0x18014cf68\n// > <???> @ 0x1801bfd84\n// > <???> @ 0x1801bfd90\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:07 +0000\n// \n\n// Hidden C++ exception states: #wind=2\nstruct cocos2d::CCAnimationCache *__fastcall cocos2d::CCAnimationCache::sharedAnimationCache()\n{\n  struct cocos2d::CCAnimationCache *result; // rax\n  cocos2d::CCObject *v1; // rax\n  cocos2d::CCObject *v2; // rbx\n  cocos2d::CCDictionary *v3; // rdi\n  cocos2d::CCDictionary *v4; // rax\n\n  result = cocos2d::CCAnimationCache::s_pSharedAnimationCache;\n  if ( !cocos2d::CCAnimationCache::s_pSharedAnimationCache )\n  {\n    v1 = (cocos2d::CCObject *)sub_1800E4AC0(0x40u);\n    v2 = v1;\n    if ( v1 )\n    {\n      cocos2d::CCObject::CCObject(v1);\n      *(_QWORD *)v2 = &cocos2d::CCAnimationCache::`vftable';\n      v3 = nullptr;\n      *((_QWORD *)v2 + 7) = 0;\n    }\n    else\n    {\n      v3 = nullptr;\n      v2 = nullptr;\n    }\n    cocos2d::CCAnimationCache::s_pSharedAnimationCache = v2;\n    v4 = (cocos2d::CCDictionary *)sub_1800E4AC0(0x48u);\n    if ( v4 )\n      v3 = cocos2d::CCDictionary::CCDictionary(v4);\n    *((_QWORD *)v2 + 7) = v3;\n    return cocos2d::CCAnimationCache::s_pSharedAnimationCache;\n  }\n  return result;\n}", "assembly": "; \n; cocos2d::CCAnimationCache::sharedAnimationCache from 0x18008e340 to 0x18008e3c7 (135 bytes)\n; \n; 6 xrefs:\n; > cocos2d::CCAnimationCache::parseVersion1 @ 0x18008daa5\n; > cocos2d::CCAnimationCache::parseVersion2 @ 0x18008e12a\n; > cocos2d::CCSprite::setDisplayFrameWithAnimationName @ 0x18008f6f8\n; > <???> @ 0x18014cf68\n; > <???> @ 0x1801bfd84\n; > <???> @ 0x1801bfd90\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:07 +0000\n; \nmov     [rsp+arg_8], rbx                                               ; +0x0, 0x18008e340\npush    rdi                                                            ; +0x5, 0x18008e345\nsub     rsp, 20h                                                       ; +0x6, 0x18008e346\nmov     rax, cs:?s_pSharedAnimationCache@CCAnimationCache@cocos2d@@0PEAV12@EA; cocos2d::CCAnimationCache * cocos2d::CCAnimationCache::s_pSharedAnimationCache ; +0xa, 0x18008e34a\ntest    rax, rax                                                       ; +0x11, 0x18008e351\njnz     short loc_18008E3BC                                            ; +0x14, 0x18008e354\nmov     ecx, 40h ; '@'; Size                                           ; +0x16, 0x18008e356\ncall    sub_1800E4AC0                                                  ; +0x1b, 0x18008e35b\nmov     rbx, rax                                                       ; +0x20, 0x18008e360\nmov     [rsp+28h+arg_0], rax                                           ; +0x23, 0x18008e363\ntest    rax, rax                                                       ; +0x28, 0x18008e368\njz      short loc_18008E387                                            ; +0x2b, 0x18008e36b\nmov     rcx, rax; this                                                 ; +0x2d, 0x18008e36d\ncall    ??0CCObject@cocos2d@@QEAA@XZ; cocos2d::CCObject::CCObject(void) ; +0x30, 0x18008e370\nlea     rax, ??_7CCAnimationCache@cocos2d@@6B@; const cocos2d::CCAnimationCache::`vftable' ; +0x35, 0x18008e375\nmov     [rbx], rax                                                     ; +0x3c, 0x18008e37c\nxor     edi, edi                                                       ; +0x3f, 0x18008e37f\nmov     [rbx+38h], rdi                                                 ; +0x41, 0x18008e381\njmp     short loc_18008E38B                                            ; +0x45, 0x18008e385\nxor     edi, edi                                                       ; +0x47, 0x18008e387\nmov     ebx, edi                                                       ; +0x49, 0x18008e389\nmov     cs:?s_pSharedAnimationCache@CCAnimationCache@cocos2d@@0PEAV12@EA, rbx; cocos2d::CCAnimationCache * cocos2d::CCAnimationCache::s_pSharedAnimationCache ; +0x4b, 0x18008e38b\nmov     ecx, 48h ; 'H'; Size                                           ; +0x52, 0x18008e392\ncall    sub_1800E4AC0                                                  ; +0x57, 0x18008e397\nmov     [rsp+28h+arg_0], rax                                           ; +0x5c, 0x18008e39c\ntest    rax, rax                                                       ; +0x61, 0x18008e3a1\njz      short loc_18008E3B1                                            ; +0x64, 0x18008e3a4\nmov     rcx, rax; this                                                 ; +0x66, 0x18008e3a6\ncall    ??0CCDictionary@cocos2d@@QEAA@XZ; cocos2d::CCDictionary::CCDictionary(void) ; +0x69, 0x18008e3a9\nmov     rdi, rax                                                       ; +0x6e, 0x18008e3ae\nmov     [rbx+38h], rdi                                                 ; +0x71, 0x18008e3b1\nmov     rax, cs:?s_pSharedAnimationCache@CCAnimationCache@cocos2d@@0PEAV12@EA; cocos2d::CCAnimationCache * cocos2d::CCAnimationCache::s_pSharedAnimationCache ; +0x75, 0x18008e3b5\nmov     rbx, [rsp+28h+arg_8]                                           ; +0x7c, 0x18008e3bc\nadd     rsp, 20h                                                       ; +0x81, 0x18008e3c1\npop     rdi                                                            ; +0x85, 0x18008e3c5\nretn                                                                   ; +0x86, 0x18008e3c6", "xrefs": ["cocos2d::CCAnimationCache::parseVersion1 @ 0x18008daa5", "cocos2d::CCAnimationCache::parseVersion2 @ 0x18008e12a", "cocos2d::CCSprite::setDisplayFrameWithAnimationName @ 0x18008f6f8", "<???> @ 0x18014cf68", "<???> @ 0x1801bfd84", "<???> @ 0x1801bfd90"], "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"}