{"type": "func", "start": 6443050928, "end": 6443051033, "name": "cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache", "pseudocode": "// \n// cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache from 0x1800927b0 to 0x180092819 (105 bytes)\n// \n// 7 xrefs:\n// > cocos2d::CCAnimationCache::addAnimationsWithDictionary @ 0x18008a63b\n// > cocos2d::CCAnimationCache::parseVersion1 @ 0x18008a7e9\n// > cocos2d::CCAnimationCache::parseVersion2 @ 0x18008aae8\n// > cocos2d::CCSprite::createWithSpriteFrameName @ 0x18008b6c9\n// > cocos2d::CCSprite::initWithSpriteFrameName @ 0x18008bc50\n// > <???> @ 0x1801438a8\n// > <???> @ 0x1801b63cc\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\nstruct cocos2d::CCSpriteFrameCache *__fastcall cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache()\n{\n  struct cocos2d::CCSpriteFrameCache *result; // rax\n  cocos2d::CCObject *v1; // rax\n  cocos2d::CCObject *v2; // rbx\n\n  result = (struct cocos2d::CCSpriteFrameCache *)qword_1801A87F0;\n  if ( !qword_1801A87F0 )\n  {\n    v1 = (cocos2d::CCObject *)operator new(0x50u);\n    v2 = v1;\n    if ( v1 )\n    {\n      cocos2d::CCObject::CCObject(v1);\n      v2->__vftable = (cocos2d::CCObject_vtbl *)&cocos2d::CCSpriteFrameCache::`vftable';\n      v2[1].__vftable = nullptr;\n      *(_QWORD *)&v2[1].m_uID = 0;\n    }\n    else\n    {\n      v2 = nullptr;\n    }\n    qword_1801A87F0 = v2;\n    cocos2d::CCSpriteFrameCache::init((cocos2d::CCSpriteFrameCache *)v2);\n    return (struct cocos2d::CCSpriteFrameCache *)qword_1801A87F0;\n  }\n  return result;\n}", "assembly": "; \n; cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache from 0x1800927b0 to 0x180092819 (105 bytes)\n; \n; 7 xrefs:\n; > cocos2d::CCAnimationCache::addAnimationsWithDictionary @ 0x18008a63b\n; > cocos2d::CCAnimationCache::parseVersion1 @ 0x18008a7e9\n; > cocos2d::CCAnimationCache::parseVersion2 @ 0x18008aae8\n; > cocos2d::CCSprite::createWithSpriteFrameName @ 0x18008b6c9\n; > cocos2d::CCSprite::initWithSpriteFrameName @ 0x18008bc50\n; > <???> @ 0x1801438a8\n; > <???> @ 0x1801b63cc\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\npush    rbx                                                            ; +0x0, 0x1800927b0\nsub     rsp, 20h                                                       ; +0x2, 0x1800927b2\nmov     rax, cs:qword_1801A87F0                                        ; +0x6, 0x1800927b6\ntest    rax, rax                                                       ; +0xd, 0x1800927bd\njnz     short loc_180092813                                            ; +0x10, 0x1800927c0\nlea     ecx, [rax+50h]; Size                                           ; +0x12, 0x1800927c2\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x15, 0x1800927c5\nmov     rbx, rax                                                       ; +0x1a, 0x1800927ca\nmov     [rsp+28h+arg_0], rax                                           ; +0x1d, 0x1800927cd\ntest    rax, rax                                                       ; +0x22, 0x1800927d2\njz      short loc_1800927FB                                            ; +0x25, 0x1800927d5\nmov     rcx, rax; this                                                 ; +0x27, 0x1800927d7\ncall    ??0CCObject@cocos2d@@QEAA@XZ; cocos2d::CCObject::CCObject(void) ; +0x2a, 0x1800927da\nlea     rax, ??_7CCSpriteFrameCache@cocos2d@@6B@; const cocos2d::CCSpriteFrameCache::`vftable' ; +0x2f, 0x1800927df\nmov     [rbx], rax                                                     ; +0x36, 0x1800927e6\nmov     qword ptr [rbx+38h], 0                                         ; +0x39, 0x1800927e9\nmov     qword ptr [rbx+40h], 0                                         ; +0x41, 0x1800927f1\njmp     short loc_1800927FD                                            ; +0x49, 0x1800927f9\nxor     ebx, ebx                                                       ; +0x4b, 0x1800927fb\nmov     cs:qword_1801A87F0, rbx                                        ; +0x4d, 0x1800927fd\nmov     rcx, rbx; this                                                 ; +0x54, 0x180092804\ncall    ?init@CCSpriteFrameCache@cocos2d@@QEAA_NXZ; cocos2d::CCSpriteFrameCache::init(void) ; +0x57, 0x180092807\nmov     rax, cs:qword_1801A87F0                                        ; +0x5c, 0x18009280c\nadd     rsp, 20h                                                       ; +0x63, 0x180092813\npop     rbx                                                            ; +0x67, 0x180092817\nretn                                                                   ; +0x68, 0x180092818", "xrefs": ["cocos2d::CCAnimationCache::addAnimationsWithDictionary @ 0x18008a63b", "cocos2d::CCAnimationCache::parseVersion1 @ 0x18008a7e9", "cocos2d::CCAnimationCache::parseVersion2 @ 0x18008aae8", "cocos2d::CCSprite::createWithSpriteFrameName @ 0x18008b6c9", "cocos2d::CCSprite::initWithSpriteFrameName @ 0x18008bc50", "<???> @ 0x1801438a8", "<???> @ 0x1801b63cc"], "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"}