//
// DS_Dictionary::getArrayForKey from 0xdbbdd4 to 0xdbbee8 (276 bytes)
//
// 9 xrefs:
// > GameLevelManager::dataLoaded @ 0x860688
// > GameLevelManager::dataLoaded @ 0x860c70
// > GJRewardItem::dataLoaded @ 0x8cd4a8
// > LocalLevelManager::dataLoaded @ 0x9148c0
// > LocalLevelManager::dataLoaded @ 0x914e10
// > LocalLevelManager::dataLoaded @ 0x9152cc
// > DS_Dictionary::getDictForKey @ 0xdbb9bc
// > DS_Dictionary::getObjectForKey @ 0xdbbcd8
// > ??> @ 0xa6af8
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// 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 13:08:45 +0000
//
cocos2d::CCArray *__fastcall DS_Dictionary::getArrayForKey(DS_Dictionary *this, const char *a2, char a3)
{
DS_Dictionary *v3; // x21
cocos2d::CCArray *v4; // x22
int v5; // w19
int NumKeys; // w23
const char *v7; // x1
cocos2d::CCObject *ObjectForKey; // x1
__int64 v10[2]; // [xsp+40h] [xbp+40h] BYREF
char *v11; // [xsp+50h] [xbp+50h]
v3 = this;
if ( !a3 )
{
this = (DS_Dictionary *)(unsigned __int8)DS_Dictionary::stepIntoSubDictWithKey(this, a2);
if ( !(_BYTE)this )
return cocos2d::CCArray::create(this);
}
v4 = cocos2d::CCArray::create(this);
v5 = 0;
DS_Dictionary::removeKey(v3, "_isArr");
NumKeys = DS_Dictionary::getNumKeys(v3);
if ( NumKeys > 0 )
{
do
{
while ( 1 )
{
DS_Dictionary::getKey(v3, v5, v10);
v7 = (char *)v10 + 1;
if ( (v10[0] & 1) != 0 )
v7 = v11;
ObjectForKey = DS_Dictionary::getObjectForKey(v3, v7);
if ( ObjectForKey )
cocos2d::CCArray::addObject(v4, ObjectForKey);
if ( (v10[0] & 1) != 0 )
break;
if ( NumKeys == ++v5 )
goto LABEL_11;
}
++v5;
operator delete(v11);
}
while ( NumKeys != v5 );
}
LABEL_11:
DS_Dictionary::stepOutOfSubDict((__int64)v3);
return v4;
}