//
// cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache from 0x180095cf0 to 0x180095d5b (107 bytes)
//
// 7 xrefs:
// > cocos2d::CCAnimationCache::addAnimationsWithDictionary @ 0x18008d689
// > cocos2d::CCAnimationCache::parseVersion1 @ 0x18008d85b
// > cocos2d::CCAnimationCache::parseVersion2 @ 0x18008dbc3
// > cocos2d::CCSprite::createWithSpriteFrameName @ 0x18008e869
// > cocos2d::CCSprite::initWithSpriteFrameName @ 0x18008ee40
// > ??> @ 0x18014cf68
// > ??> @ 0x1801c066c
//
// This function is hookable on this platform (idp: pc, 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 11:22:09 +0000
//
// Hidden C++ exception states: #wind=1
struct cocos2d::CCSpriteFrameCache *__fastcall cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache()
{
struct cocos2d::CCSpriteFrameCache *result; // rax
cocos2d::CCObject *v1; // rax
cocos2d::CCObject *v2; // rbx
result = qword_1801B2850;
if ( !qword_1801B2850 )
{
v1 = (cocos2d::CCObject *)sub_1800E4AC0(0x50u);
v2 = v1;
if ( v1 )
{
cocos2d::CCObject::CCObject(v1);
*(_QWORD *)v2 = &cocos2d::CCSpriteFrameCache::`vftable';
*((_QWORD *)v2 + 7) = 0;
*((_QWORD *)v2 + 8) = 0;
}
else
{
v2 = nullptr;
}
qword_1801B2850 = v2;
cocos2d::CCSpriteFrameCache::init(v2);
return qword_1801B2850;
}
return result;
}