{"type": "func", "start": 3032796, "end": 3032868, "name": "CCAnimateFrameCache::sharedSpriteFrameCache", "pseudocode": "// \n// CCAnimateFrameCache::sharedSpriteFrameCache from 0x2e46dc to 0x2e4724 (72 bytes)\n// \n// 5 xrefs:\n// > CCPartAnimSprite::setDisplayFrame @ 0x2e745e\n// > CCPartAnimSprite::tweenToFrame @ 0x2e7642\n// > CCPartAnimSprite::initWithAnimDesc @ 0x2e7816\n// > LoadingLayer::loadAssets @ 0x30b9b6\n// > GameManager::reloadAllStep2 @ 0x323804\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 *CCAnimateFrameCache::sharedSpriteFrameCache()\n{\n  CCAnimateFrameCache *v0; // r4\n\n  if ( !dword_AC51B0 )\n  {\n    v0 = (CCAnimateFrameCache *)operator new(0x40u);\n    cocos2d::CCObject::CCObject(v0);\n    v0->__vftable = (CCAnimateFrameCache_vtbl *)&off_A3C698;\n    v0->m_animateFrames = nullptr;\n    v0->m_unk040 = nullptr;\n    v0->m_animateDescriptions = nullptr;\n    dword_AC51B0 = (int)v0;\n    CCAnimateFrameCache::init(v0);\n  }\n  return (CCAnimateFrameCache *)dword_AC51B0;\n}", "assembly": "; \n; CCAnimateFrameCache::sharedSpriteFrameCache from 0x2e46dc to 0x2e4724 (72 bytes)\n; \n; 5 xrefs:\n; > CCPartAnimSprite::setDisplayFrame @ 0x2e745e\n; > CCPartAnimSprite::tweenToFrame @ 0x2e7642\n; > CCPartAnimSprite::initWithAnimDesc @ 0x2e7816\n; > LoadingLayer::loadAssets @ 0x30b9b6\n; > GameManager::reloadAllStep2 @ 0x323804\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\nLDR             R3, =(dword_AC51B0 - 0x2E46E4)                         ; +0x0, 0x2e46dc\nPUSH            {R4,LR}                                                ; +0x2, 0x2e46de\nADD             R3, PC; dword_AC51B0                                   ; +0x4, 0x2e46e0\nLDR             R3, [R3]                                               ; +0x6, 0x2e46e2\nCBNZ            R3, loc_2E471C                                         ; +0x8, 0x2e46e4\nMOVS            R0, #0x40 ; '@'; unsigned int                          ; +0xa, 0x2e46e6\nBL              _Znwj; operator new(uint)                              ; +0xc, 0x2e46e8\nMOV             R4, R0                                                 ; +0x10, 0x2e46ec\nBL              _ZN7cocos2d8CCObjectC2Ev; cocos2d::CCObject::CCObject(void) ; +0x12, 0x2e46ee\nLDR             R3, =(_ZTV19CCAnimateFrameCache_ptr - 0x2E46FA)        ; +0x16, 0x2e46f2\nMOV             R0, R4; this                                           ; +0x18, 0x2e46f4\nADD             R3, PC; _ZTV19CCAnimateFrameCache_ptr                  ; +0x1a, 0x2e46f6\nLDR             R3, [R3]; `vtable for'CCAnimateFrameCache ...          ; +0x1c, 0x2e46f8\nADDS            R3, #8                                                 ; +0x1e, 0x2e46fa\nSTR             R3, [R4]                                               ; +0x20, 0x2e46fc\nMOVS            R3, #0                                                 ; +0x22, 0x2e46fe\nSTR             R3, [R4,#0x34]                                         ; +0x24, 0x2e4700\nSTR             R3, [R4,#0x38]                                         ; +0x26, 0x2e4702\nSTR             R3, [R4,#0x3C]                                         ; +0x28, 0x2e4704\nLDR             R3, =(dword_AC51B0 - 0x2E470C)                         ; +0x2a, 0x2e4706\nADD             R3, PC; dword_AC51B0                                   ; +0x2c, 0x2e4708\nSTR             R4, [R3]                                               ; +0x2e, 0x2e470a\nBL              _ZN19CCAnimateFrameCache4initEv; CCAnimateFrameCache::init(void) ; +0x30, 0x2e470c\nB               loc_2E471C                                             ; +0x34, 0x2e4710\nMOV             R0, R4; p                                              ; +0x36, 0x2e4712\nBL              _ZdlPv; operator delete(void *)                        ; +0x38, 0x2e4714\nBL              __cxa_end_cleanup                                      ; +0x3c, 0x2e4718\nLDR             R3, =(dword_AC51B0 - 0x2E4722)                         ; +0x40, 0x2e471c\nADD             R3, PC; dword_AC51B0                                   ; +0x42, 0x2e471e\nLDR             R0, [R3]                                               ; +0x44, 0x2e4720\nPOP             {R4,PC}                                                ; +0x46, 0x2e4722", "xrefs": ["CCPartAnimSprite::setDisplayFrame @ 0x2e745e", "CCPartAnimSprite::tweenToFrame @ 0x2e7642", "CCPartAnimSprite::initWithAnimDesc @ 0x2e7816", "LoadingLayer::loadAssets @ 0x30b9b6", "GameManager::reloadAllStep2 @ 0x323804"], "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"}