//
// cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache from 0x1800927b0 to 0x180092819 (105 bytes)
//
// 7 xrefs:
// > cocos2d::CCAnimationCache::addAnimationsWithDictionary @ 0x18008a63b
// > cocos2d::CCAnimationCache::parseVersion1 @ 0x18008a7e9
// > cocos2d::CCAnimationCache::parseVersion2 @ 0x18008aae8
// > cocos2d::CCSprite::createWithSpriteFrameName @ 0x18008b6c9
// > cocos2d::CCSprite::initWithSpriteFrameName @ 0x18008bc50
// > ??> @ 0x1801438a8
// > ??> @ 0x1801b63cc
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
// 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 = (struct cocos2d::CCSpriteFrameCache *)qword_1801A87F0;
if ( !qword_1801A87F0 )
{
v1 = (cocos2d::CCObject *)operator new(0x50u);
v2 = v1;
if ( v1 )
{
cocos2d::CCObject::CCObject(v1);
v2->__vftable = (cocos2d::CCObject_vtbl *)&cocos2d::CCSpriteFrameCache::`vftable';
v2[1].__vftable = nullptr;
*(_QWORD *)&v2[1].m_uID = 0;
}
else
{
v2 = nullptr;
}
qword_1801A87F0 = v2;
cocos2d::CCSpriteFrameCache::init((cocos2d::CCSpriteFrameCache *)v2);
return (struct cocos2d::CCSpriteFrameCache *)qword_1801A87F0;
}
return result;
}