//
// CCContentManager::addDict from 0x100412774 to 0x10041282c (184 bytes)
//
// 5 xrefs:
// > cocos2d::CCParticleSystem::initWithFile @ 0x1001933d4
// > LoadingLayer::loadAssets @ 0x1001d6dd0
// > LoadingLayer::loadAssets @ 0x1001d6de4
// > LoadingLayer::loadAssets @ 0x1001d6df8
// > cocos2d::CCSpriteFrameCache::addSpriteFramesWithFile @ 0x1003bc910
//
// 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
//
cocos2d::CCDictionary *__fastcall CCContentManager::addDict(CCContentManager *a1, const char *a2, bool a3)
{
CCContentManager_vtbl *v6; // x20
__int64 v7; // x0
cocos2d::CCDictionary *v8; // x20
cocos2d::CCDictionary *v9; // x0
CCContentManager_vtbl *v10; // x21
void *__p[2]; // [xsp+8h] [xbp-38h] BYREF
char v13; // [xsp+1Fh] [xbp-21h]
v6 = a1[1].__vftable;
sub_100009900(__p, (char *)a2);
v7 = cocos2d::CCDictionary::objectForKey_1(v6, __p);
v8 = (cocos2d::CCDictionary *)v7;
if ( v13 < 0 )
{
operator delete(__p[0]);
if ( v8 )
return v8;
}
else if ( v7 )
{
return v8;
}
if ( a3 )
v9 = cocos2d::CCDictionary::createWithContentsOfFileThreadSafe(a2);
else
v9 = cocos2d::CCDictionary::createWithContentsOfFile(a2);
v8 = v9;
v10 = a1[1].__vftable;
sub_100009900(__p, (char *)a2);
cocos2d::CCDictionary::setObject_1(v10, v8, __p);
if ( v13 < 0 )
operator delete(__p[0]);
return v8;
}