//
// CCContentManager::sharedManager from 0x180005f90 to 0x180006004 (116 bytes)
//
// 7 xrefs:
// > cocos2d::CCLabelAtlas::initWithString @ 0x180045f9c
// > cocos2d::CCParticleSystem::initWithFile @ 0x1800689e4
// > cocos2d::CCSpriteFrameCache::addSpriteFramesWithFile @ 0x180091313
// > cocos2d::CCSpriteFrameCache::addSpriteFramesWithFile @ 0x1800914ba
// > cocos2d::CCSpriteFrameCache::addSpriteFramesWithFile @ 0x180091938
// > ??> @ 0x1801438a8
// > ??> @ 0x1801ad894
//
// 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 CCContentManager *__fastcall CCContentManager::sharedManager()
{
struct CCContentManager *result; // rax
cocos2d::CCObject *v1; // rax
_QWORD *v2; // rbx
struct cocos2d::CCDictionary *v3; // rax
result = (struct CCContentManager *)qword_1801A82F0;
if ( !qword_1801A82F0 )
{
v1 = (cocos2d::CCObject *)operator new(0x40u);
v2 = &v1->__vftable;
if ( v1 )
{
*(_OWORD *)&v1->__vftable = 0;
*(_OWORD *)&v1->m_nTag = 0;
*(_OWORD *)&v1->m_uIndexInArray = 0;
*(_OWORD *)&v1->m_uOrderOfArrival = 0;
cocos2d::CCObject::CCObject(v1);
*v2 = &CCContentManager::`vftable';
}
else
{
v2 = nullptr;
}
qword_1801A82F0 = (__int64)v2;
v3 = cocos2d::CCDictionary::create();
v2[7] = v3;
cocos2d::CCObject::retain(v3);
return (struct CCContentManager *)qword_1801A82F0;
}
return result;
}