//
// CCContentManager::addDictDS from 0x5fc448 to 0x5fc4e4 (156 bytes)
//
// 0 xrefs:
//
// 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 *CCContentManager::addDictDS(CCContentManager *a1, const char *a2)
{
CCContentManager_vtbl *v2; // r4
cocos2d::CCDictionary *DictForKey; // r4
DS_Dictionary *v6; // r7
pugi::xml_node *m_start; // r0
CCContentManager_vtbl *v8; // r7
const char *v10; // [sp+8h] [bp-8h] BYREF
v2 = a1[1].__vftable;
sub_776584((int)&v10, (char *)a2);
DictForKey = (cocos2d::CCDictionary *)cocos2d::CCDictionary::objectForKey((int)v2, &v10);
sub_774008(&v10);
if ( !DictForKey )
{
v6 = (DS_Dictionary *)operator new(0xD8u);
DS_Dictionary::DS_Dictionary(v6);
DS_Dictionary::loadRootSubDictFromFile(v6, a2);
DictForKey = DS_Dictionary::getDictForKey(v6, nullptr, 0);
m_start = v6->dictTree.m_start;
if ( m_start )
operator delete(m_start);
pugi::xml_document::~xml_document(&v6->doc);
operator delete(v6);
v8 = a1[1].__vftable;
sub_776584((int)&v10, (char *)a2);
cocos2d::CCDictionary::setObject((int)v8, DictForKey, &v10);
sub_774008(&v10);
}
return DictForKey;
}