//
// DS_Dictionary::setArrayForKey from 0xb46424 to 0xb464d8 (180 bytes)
//
// 7 xrefs:
// > GameLevelManager::encodeDataTo @ 0x708b88
// > GameLevelManager::encodeDataTo @ 0x708c54
// > GJRewardItem::encodeWithCoder @ 0x7a1114
// > LocalLevelManager::encodeDataTo @ 0x7e84d0
// > LocalLevelManager::encodeDataTo @ 0x7e8500
// > DS_Dictionary::setObjectForKey @ 0xb46618
// > ??> @ 0xa66f8
//
// 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
//
void DS_Dictionary::setArrayForKey(DS_Dictionary *a1, const char *a2, cocos2d::CCArray *a3)
{
unsigned int v5; // w19
unsigned int v6; // w1
cocos2d::CCString *v7; // x0
const char *CString; // x0
cocos2d::CCObject *lpsrc; // [xsp+38h] [xbp+38h]
if ( a3 )
{
v5 = 0;
DS_Dictionary::setSubDictForKey(a1, a2, 0, 1u);
DS_Dictionary::setBoolForKey(a1, "_isArr", 1);
while ( v5 < (unsigned int)cocos2d::CCArray::count(a3) )
{
lpsrc = cocos2d::CCArray::objectAtIndex(a3, v5);
v6 = v5++;
v7 = cocos2d::CCString::createWithFormat((cocos2d::CCString *)"k_%i", v6);
CString = cocos2d::CCString::getCString(v7);
DS_Dictionary::setObjectForKey(a1, CString, lpsrc);
}
DS_Dictionary::stepOutOfSubDict(a1);
}
}