{"type": "func", "start": 6443020704, "end": 6443020837, "name": "cocos2d::CCAnimationCache::sharedAnimationCache", "pseudocode": "// \n// cocos2d::CCAnimationCache::sharedAnimationCache from 0x18008b1a0 to 0x18008b225 (133 bytes)\n// \n// 5 xrefs:\n// > cocos2d::CCAnimationCache::parseVersion1 @ 0x18008aa35\n// > cocos2d::CCAnimationCache::parseVersion2 @ 0x18008b03d\n// > cocos2d::CCSprite::setDisplayFrameWithAnimationName @ 0x18008c508\n// > <???> @ 0x1801438a8\n// > <???> @ 0x1801b5ac0\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=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 = (struct cocos2d::CCAnimationCache *)cocos2d::CCAnimationCache::s_pSharedAnimationCache;\n  if ( !cocos2d::CCAnimationCache::s_pSharedAnimationCache )\n  {\n    v1 = (cocos2d::CCObject *)operator new(0x40u);\n    v2 = v1;\n    if ( v1 )\n    {\n      cocos2d::CCObject::CCObject(v1);\n      v2->__vftable = (cocos2d::CCObject_vtbl *)&cocos2d::CCAnimationCache::`vftable';\n      v3 = nullptr;\n      v2[1].__vftable = nullptr;\n    }\n    else\n    {\n      v3 = nullptr;\n      v2 = nullptr;\n    }\n    cocos2d::CCAnimationCache::s_pSharedAnimationCache = v2;\n    v4 = (cocos2d::CCDictionary *)operator new(0x48u);\n    if ( v4 )\n      v3 = cocos2d::CCDictionary::CCDictionary(v4);\n    v2[1].__vftable = (cocos2d::CCObject_vtbl *)v3;\n    return (struct cocos2d::CCAnimationCache *)cocos2d::CCAnimationCache::s_pSharedAnimationCache;\n  }\n  return result;\n}", "assembly": "; \n; cocos2d::CCAnimationCache::sharedAnimationCache from 0x18008b1a0 to 0x18008b225 (133 bytes)\n; \n; 5 xrefs:\n; > cocos2d::CCAnimationCache::parseVersion1 @ 0x18008aa35\n; > cocos2d::CCAnimationCache::parseVersion2 @ 0x18008b03d\n; > cocos2d::CCSprite::setDisplayFrameWithAnimationName @ 0x18008c508\n; > <???> @ 0x1801438a8\n; > <???> @ 0x1801b5ac0\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\nmov     [rsp+arg_8], rbx                                               ; +0x0, 0x18008b1a0\npush    rdi                                                            ; +0x5, 0x18008b1a5\nsub     rsp, 20h                                                       ; +0x6, 0x18008b1a6\nmov     rax, cs:?s_pSharedAnimationCache@CCAnimationCache@cocos2d@@0PEAV12@EA; cocos2d::CCAnimationCache * cocos2d::CCAnimationCache::s_pSharedAnimationCache ; +0xa, 0x18008b1aa\ntest    rax, rax                                                       ; +0x11, 0x18008b1b1\njnz     short loc_18008B21A                                            ; +0x14, 0x18008b1b4\nlea     ecx, [rax+40h]; Size                                           ; +0x16, 0x18008b1b6\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x19, 0x18008b1b9\nmov     rbx, rax                                                       ; +0x1e, 0x18008b1be\nmov     [rsp+28h+arg_0], rax                                           ; +0x21, 0x18008b1c1\ntest    rax, rax                                                       ; +0x26, 0x18008b1c6\njz      short loc_18008B1E5                                            ; +0x29, 0x18008b1c9\nmov     rcx, rax; this                                                 ; +0x2b, 0x18008b1cb\ncall    ??0CCObject@cocos2d@@QEAA@XZ; cocos2d::CCObject::CCObject(void) ; +0x2e, 0x18008b1ce\nlea     rax, ??_7CCAnimationCache@cocos2d@@6B@; const cocos2d::CCAnimationCache::`vftable' ; +0x33, 0x18008b1d3\nmov     [rbx], rax                                                     ; +0x3a, 0x18008b1da\nxor     edi, edi                                                       ; +0x3d, 0x18008b1dd\nmov     [rbx+38h], rdi                                                 ; +0x3f, 0x18008b1df\njmp     short loc_18008B1E9                                            ; +0x43, 0x18008b1e3\nxor     edi, edi                                                       ; +0x45, 0x18008b1e5\nmov     ebx, edi                                                       ; +0x47, 0x18008b1e7\nmov     cs:?s_pSharedAnimationCache@CCAnimationCache@cocos2d@@0PEAV12@EA, rbx; cocos2d::CCAnimationCache * cocos2d::CCAnimationCache::s_pSharedAnimationCache ; +0x49, 0x18008b1e9\nmov     ecx, 48h ; 'H'; Size                                           ; +0x50, 0x18008b1f0\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x55, 0x18008b1f5\nmov     [rsp+28h+arg_0], rax                                           ; +0x5a, 0x18008b1fa\ntest    rax, rax                                                       ; +0x5f, 0x18008b1ff\njz      short loc_18008B20F                                            ; +0x62, 0x18008b202\nmov     rcx, rax; this                                                 ; +0x64, 0x18008b204\ncall    ??0CCDictionary@cocos2d@@QEAA@XZ; cocos2d::CCDictionary::CCDictionary(void) ; +0x67, 0x18008b207\nmov     rdi, rax                                                       ; +0x6c, 0x18008b20c\nmov     [rbx+38h], rdi                                                 ; +0x6f, 0x18008b20f\nmov     rax, cs:?s_pSharedAnimationCache@CCAnimationCache@cocos2d@@0PEAV12@EA; cocos2d::CCAnimationCache * cocos2d::CCAnimationCache::s_pSharedAnimationCache ; +0x73, 0x18008b213\nmov     rbx, [rsp+28h+arg_8]                                           ; +0x7a, 0x18008b21a\nadd     rsp, 20h                                                       ; +0x7f, 0x18008b21f\npop     rdi                                                            ; +0x83, 0x18008b223\nretn                                                                   ; +0x84, 0x18008b224", "xrefs": ["cocos2d::CCAnimationCache::parseVersion1 @ 0x18008aa35", "cocos2d::CCAnimationCache::parseVersion2 @ 0x18008b03d", "cocos2d::CCSprite::setDisplayFrameWithAnimationName @ 0x18008c508", "<???> @ 0x1801438a8", "<???> @ 0x1801b5ac0"], "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"}