{"type": "func", "start": 3948652, "end": 3948724, "name": "CCAnimateFrameCache::sharedSpriteFrameCache", "pseudocode": "// \n// CCAnimateFrameCache::sharedSpriteFrameCache from 0x3c406c to 0x3c40b4 (72 bytes)\n// \n// 5 xrefs:\n// > CCPartAnimSprite::setDisplayFrame @ 0x3c759e\n// > CCPartAnimSprite::tweenToFrame @ 0x3c78ce\n// > CCPartAnimSprite::initWithAnimDesc @ 0x3c7a6e\n// > LoadingLayer::loadAssets @ 0x3fbe62\n// > GameManager::reloadAllStep2 @ 0x415a78\n// \n// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\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:46:33 +0000\n// \n\nint __fastcall CCAnimateFrameCache::sharedSpriteFrameCache(CCAnimateFrameCache *this)\n{\n  cocos2d::CCObject *v1; // r4\n\n  if ( !dword_D2A360 )\n  {\n    v1 = (cocos2d::CCObject *)operator new(0x40u);\n    cocos2d::CCObject::CCObject(v1);\n    *(_DWORD *)v1 = &off_C83B00;\n    *((_DWORD *)v1 + 13) = 0;\n    *((_DWORD *)v1 + 14) = 0;\n    *((_DWORD *)v1 + 15) = 0;\n    dword_D2A360 = (int)v1;\n    CCAnimateFrameCache::init(v1);\n  }\n  return dword_D2A360;\n}", "assembly": "; \n; CCAnimateFrameCache::sharedSpriteFrameCache from 0x3c406c to 0x3c40b4 (72 bytes)\n; \n; 5 xrefs:\n; > CCPartAnimSprite::setDisplayFrame @ 0x3c759e\n; > CCPartAnimSprite::tweenToFrame @ 0x3c78ce\n; > CCPartAnimSprite::initWithAnimDesc @ 0x3c7a6e\n; > LoadingLayer::loadAssets @ 0x3fbe62\n; > GameManager::reloadAllStep2 @ 0x415a78\n; \n; This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\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:46:33 +0000\n; \nLDR             R3, =(dword_D2A360 - 0x3C4074)                         ; +0x0, 0x3c406c\nPUSH            {R4,LR}                                                ; +0x2, 0x3c406e\nADD             R3, PC; dword_D2A360                                   ; +0x4, 0x3c4070\nLDR             R3, [R3]                                               ; +0x6, 0x3c4072\nCBNZ            R3, loc_3C40AC                                         ; +0x8, 0x3c4074\nMOVS            R0, #0x40 ; '@'; unsigned int                          ; +0xa, 0x3c4076\nBL              _Znwj; operator new(uint)                              ; +0xc, 0x3c4078\nMOV             R4, R0                                                 ; +0x10, 0x3c407c\nBL              _ZN7cocos2d8CCObjectC2Ev; cocos2d::CCObject::CCObject(void) ; +0x12, 0x3c407e\nLDR             R3, =(_ZTV19CCAnimateFrameCache_ptr - 0x3C408A)        ; +0x16, 0x3c4082\nMOV             R0, R4; this                                           ; +0x18, 0x3c4084\nADD             R3, PC; _ZTV19CCAnimateFrameCache_ptr                  ; +0x1a, 0x3c4086\nLDR             R3, [R3]; `vtable for'CCAnimateFrameCache ...          ; +0x1c, 0x3c4088\nADDS            R3, #8                                                 ; +0x1e, 0x3c408a\nSTR             R3, [R4]                                               ; +0x20, 0x3c408c\nMOVS            R3, #0                                                 ; +0x22, 0x3c408e\nSTR             R3, [R4,#0x34]                                         ; +0x24, 0x3c4090\nSTR             R3, [R4,#0x38]                                         ; +0x26, 0x3c4092\nSTR             R3, [R4,#0x3C]                                         ; +0x28, 0x3c4094\nLDR             R3, =(dword_D2A360 - 0x3C409C)                         ; +0x2a, 0x3c4096\nADD             R3, PC; dword_D2A360                                   ; +0x2c, 0x3c4098\nSTR             R4, [R3]                                               ; +0x2e, 0x3c409a\nBL              _ZN19CCAnimateFrameCache4initEv; CCAnimateFrameCache::init(void) ; +0x30, 0x3c409c\nB               loc_3C40AC                                             ; +0x34, 0x3c40a0\nMOV             R0, R4; void *                                         ; +0x36, 0x3c40a2\nBL              _ZdlPv; operator delete(void *)                        ; +0x38, 0x3c40a4\nBL              __cxa_end_cleanup                                      ; +0x3c, 0x3c40a8\nLDR             R3, =(dword_D2A360 - 0x3C40B2)                         ; +0x40, 0x3c40ac\nADD             R3, PC; dword_D2A360                                   ; +0x42, 0x3c40ae\nLDR             R0, [R3]                                               ; +0x44, 0x3c40b0\nPOP             {R4,PC}                                                ; +0x46, 0x3c40b2", "xrefs": ["CCPartAnimSprite::setDisplayFrame @ 0x3c759e", "CCPartAnimSprite::tweenToFrame @ 0x3c78ce", "CCPartAnimSprite::initWithAnimDesc @ 0x3c7a6e", "LoadingLayer::loadAssets @ 0x3fbe62", "GameManager::reloadAllStep2 @ 0x415a78"], "is_objc": false, "is_32_bit": true, "is_64_bit": false, "idp_name": "arm", "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"}