//
// DS_Dictionary::setArrayForKey from 0x1001eb2c4 to 0x1001eb398 (212 bytes)
//
// 6 xrefs:
// > GameLevelManager::encodeDataTo @ 0x1000b126c
// > GameLevelManager::encodeDataTo @ 0x1000b1360
// > DS_Dictionary::setObjectForKey @ 0x1001eb4bc
// > LocalLevelManager::encodeDataTo @ 0x10025f048
// > LocalLevelManager::encodeDataTo @ 0x10025f078
// > GJRewardItem::encodeWithCoder @ 0x1003deb60
//
// 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 11:00:35 +0000
//
__int64 __fastcall DS_Dictionary::setArrayForKey(__int64 result, const char *a2, __int64 a3)
{
__int64 v4; // x19
__int64 v5; // x21
void *v6; // x23
__int64 v7; // x0
int CString; // w0
__int64 v9; // x8
if ( a3 )
{
v4 = result;
DS_Dictionary::setSubDictForKey(result, a2, 0, 1);
DS_Dictionary::setBoolForKey(v4, "_isArr", 1, 0);
result = sub_1002E757C(a3);
if ( (_DWORD)result )
{
v5 = 0;
do
{
v6 = (void *)sub_1002E75A0(a3, v5);
v7 = sub_1003065B0("k_%i", v5);
CString = cocos2d::CCString::getCString(v7);
DS_Dictionary::setObjectForKey(v4, CString, v6);
v5 = (unsigned int)(v5 + 1);
result = sub_1002E757C(a3);
}
while ( (unsigned int)v5 < (unsigned int)result );
}
v9 = *(_QWORD *)(v4 + 216);
if ( (unsigned __int64)(v9 - *(_QWORD *)(v4 + 208)) >= 9 )
*(_QWORD *)(v4 + 216) = v9 - 8;
}
return result;
}