//
// CCContentManager::addDictDS from 0x80a200 to 0x80a2ac (172 bytes)
//
// 0 xrefs:
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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 12:01:29 +0000
//
cocos2d::CCObject *__fastcall CCContentManager::addDictDS(CCContentManager *this, const char *a2, int a3, int a4)
{
int v6; // r4
size_t v7; // r0
int v8; // r4
DS_Dictionary *v9; // r5
cocos2d::CCObject *DictForKey; // r10
size_t v11; // r0
int v12; // r5
CCContentManager *v14; // [sp+0h] [bp-10h] BYREF
const char *v15; // [sp+4h] [bp-Ch]
int v16; // [sp+8h] [bp-8h]
int v17; // [sp+Ch] [bp-4h]
v14 = this;
v15 = a2;
v16 = a3;
v17 = a4;
v6 = *((_DWORD *)this + 13);
v14 = nullptr;
v15 = nullptr;
v16 = 0;
v7 = strlen(a2);
std::string::__init((int *)&v14, a2, v7);
v8 = cocos2d::CCDictionary::objectForKey(v6, (int)&v14);
std::string::~string((int)&v14);
if ( v8 )
return (cocos2d::CCObject *)v8;
v9 = (DS_Dictionary *)operator new(0xD8u);
DS_Dictionary::DS_Dictionary(v9);
DS_Dictionary::loadRootSubDictFromFile(v9, a2);
DictForKey = (cocos2d::CCObject *)DS_Dictionary::getDictForKey(v9, nullptr, 0);
DS_Dictionary::~DS_Dictionary(v9);
operator delete(v9);
v14 = nullptr;
v15 = nullptr;
v16 = 0;
v11 = strlen(a2);
v12 = *((_DWORD *)this + 13);
std::string::__init((int *)&v14, a2, v11);
cocos2d::CCDictionary::setObject(v12, DictForKey, (int)&v14);
std::string::~string((int)&v14);
return DictForKey;
}