{"type": "func", "start": 4296737396, "end": 4296737484, "name": "CCAnimateFrameCache::sharedSpriteFrameCache", "pseudocode": "// \n// CCAnimateFrameCache::sharedSpriteFrameCache from 0x1001b0274 to 0x1001b02cc (88 bytes)\n// \n// 5 xrefs:\n// > CCPartAnimSprite::initWithAnimDesc @ 0x10007e68c\n// > CCPartAnimSprite::setDisplayFrame @ 0x10007f0fc\n// > CCPartAnimSprite::tweenToFrame @ 0x10007f24c\n// > LoadingLayer::loadAssets @ 0x1001d6db0\n// > GameManager::reloadAllStep2 @ 0x10031d9f8\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\nCCAnimateFrameCache *__fastcall CCAnimateFrameCache::sharedSpriteFrameCache()\n{\n  CCAnimateFrameCache *result; // x0\n  CCAnimateFrameCache *v1; // x19\n\n  result = (CCAnimateFrameCache *)qword_10086C220;\n  if ( !qword_10086C220 )\n  {\n    v1 = (CCAnimateFrameCache *)operator new(0x50u);\n    cocos2d::CCObject::CCObject((__int64)v1);\n    v1->__vftable = (CCAnimateFrameCache_vtbl *)off_1007B0648;\n    v1->m_unk040 = nullptr;\n    v1->m_animateDescriptions = nullptr;\n    v1->m_animateFrames = nullptr;\n    qword_10086C220 = (__int64)v1;\n    CCAnimateFrameCache::init(v1);\n    return (CCAnimateFrameCache *)qword_10086C220;\n  }\n  return result;\n}", "assembly": "; \n; CCAnimateFrameCache::sharedSpriteFrameCache from 0x1001b0274 to 0x1001b02cc (88 bytes)\n; \n; 5 xrefs:\n; > CCPartAnimSprite::initWithAnimDesc @ 0x10007e68c\n; > CCPartAnimSprite::setDisplayFrame @ 0x10007f0fc\n; > CCPartAnimSprite::tweenToFrame @ 0x10007f24c\n; > LoadingLayer::loadAssets @ 0x1001d6db0\n; > GameManager::reloadAllStep2 @ 0x10031d9f8\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\nSTP             X20, X19, [SP,#-0x10+var_10]!                          ; +0x0, 0x1001b0274\nSTP             X29, X30, [SP,#0x10+var_s0]                            ; +0x4, 0x1001b0278\nADD             X29, SP, #0x10                                         ; +0x8, 0x1001b027c\nADRP            X20, #qword_10086C220@PAGE                             ; +0xc, 0x1001b0280\nLDR             X0, [X20,#qword_10086C220@PAGEOFF]                     ; +0x10, 0x1001b0284\nCBNZ            X0, loc_1001B02C0                                      ; +0x14, 0x1001b0288\nMOV             W0, #0x50 ; 'P'; __sz                                  ; +0x18, 0x1001b028c\nBL              __Znwm; operator new(ulong)                            ; +0x1c, 0x1001b0290\nMOV             X19, X0                                                ; +0x20, 0x1001b0294\nBL              cocos2d__CCObject__CCObject                            ; +0x24, 0x1001b0298\nADRL            X8, off_1007B0648                                      ; +0x28, 0x1001b029c\nSTR             X8, [X19]                                              ; +0x30, 0x1001b02a4\nSTP             XZR, XZR, [X19,#0x40]                                  ; +0x34, 0x1001b02a8\nSTR             XZR, [X19,#0x38]                                       ; +0x38, 0x1001b02ac\nSTR             X19, [X20,#qword_10086C220@PAGEOFF]                    ; +0x3c, 0x1001b02b0\nMOV             X0, X19                                                ; +0x40, 0x1001b02b4\nBL              CCAnimateFrameCache__init                              ; +0x44, 0x1001b02b8\nLDR             X0, [X20,#qword_10086C220@PAGEOFF]                     ; +0x48, 0x1001b02bc\nLDP             X29, X30, [SP,#0x10+var_s0]                            ; +0x4c, 0x1001b02c0\nLDP             X20, X19, [SP+0x10+var_10],#0x20                       ; +0x50, 0x1001b02c4\nRET                                                                    ; +0x54, 0x1001b02c8", "xrefs": ["CCPartAnimSprite::initWithAnimDesc @ 0x10007e68c", "CCPartAnimSprite::setDisplayFrame @ 0x10007f0fc", "CCPartAnimSprite::tweenToFrame @ 0x10007f24c", "LoadingLayer::loadAssets @ 0x1001d6db0", "GameManager::reloadAllStep2 @ 0x10031d9f8"], "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"}