//
// cocos2d::CCAnimationCache::sharedAnimationCache from 0xd85070 to 0xd850c4 (84 bytes)
//
// 6 xrefs:
// > SpriteAnimationManager::createAnimations @ 0x6b076c
// > SpriteAnimationManager::loadAnimations @ 0x6b1618
// > cocos2d::CCAnimationCache::parseVersion1 @ 0xd85568
// > cocos2d::CCAnimationCache::parseVersion2 @ 0xd858d0
// > cocos2d::CCSprite::setDisplayFrameWithAnimationName @ 0xd867f8
// > ??> @ 0xd5e20
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 13:08:12 +0000
//
__int64 __fastcall cocos2d::CCAnimationCache::sharedAnimationCache(cocos2d::CCAnimationCache *this)
{
__int64 result; // x0
cocos2d::CCAnimationCache *v2; // x20
result = cocos2d::CCAnimationCache::s_pSharedAnimationCache;
if ( !cocos2d::CCAnimationCache::s_pSharedAnimationCache )
{
v2 = (cocos2d::CCAnimationCache *)operator new(0x40u);
cocos2d::CCAnimationCache::CCAnimationCache(v2);
cocos2d::CCAnimationCache::s_pSharedAnimationCache = (__int64)v2;
cocos2d::CCAnimationCache::init(v2);
return cocos2d::CCAnimationCache::s_pSharedAnimationCache;
}
return result;
}