//
// DS_Dictionary::getArrayForKey from 0x80d9c0 to 0x80da4e (142 bytes)
//
// 7 xrefs:
// > GameLevelManager::dataLoaded @ 0x4dd0ee
// > GameLevelManager::dataLoaded @ 0x4dd6c2
// > GJRewardItem::dataLoaded @ 0x516786
// > LocalLevelManager::dataLoaded @ 0x544778
// > LocalLevelManager::dataLoaded @ 0x544b8c
// > DS_Dictionary::getDictForKey @ 0x80d72a
// > DS_Dictionary::getObjectForKey @ 0x80d8f8
//
// 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:34 +0000
//
cocos2d::CCArray *__fastcall DS_Dictionary::getArrayForKey(DS_Dictionary *this, const char *a2, int a3)
{
DS_Dictionary *v3; // r7
int v5; // r5
cocos2d::CCArray *v6; // r4
int NumKeys; // r9
char *v8; // r1
cocos2d::CCObject *ObjectForKey; // r1
char v10; // [sp+0h] [bp-14h] BYREF
char v11; // [sp+1h] [bp-13h] BYREF
char *v12; // [sp+8h] [bp-Ch]
v3 = this;
if ( !a3 )
{
this = (DS_Dictionary *)DS_Dictionary::stepIntoSubDictWithKey(this, a2);
if ( !this )
return cocos2d::CCArray::create(nullptr);
}
v5 = 0;
v6 = cocos2d::CCArray::create(this);
DS_Dictionary::removeKey(v3, "_isArr");
NumKeys = DS_Dictionary::getNumKeys(v3);
while ( v5 < NumKeys )
{
DS_Dictionary::getKey((DS_Dictionary *)&v10, (unsigned int)v3, v5);
if ( (v10 & 1) != 0 )
v8 = v12;
else
v8 = &v11;
ObjectForKey = DS_Dictionary::getObjectForKey(v3, v8);
if ( ObjectForKey )
cocos2d::CCArray::addObject(v6, ObjectForKey);
++v5;
std::string::~string((int)&v10);
}
DS_Dictionary::stepOutOfSubDict((int)v3);
return v6;
}