//
// DS_Dictionary::setBoolMapForKey from 0x80d398 to 0x80d41e (134 bytes)
//
// 1 xrefs:
// > GameLevelManager::encodeDataTo @ 0x4ae3da
//
// 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:33 +0000
//
int __fastcall DS_Dictionary::setBoolMapForKey(DS_Dictionary *a1, const char *a2, char *a3, int a4)
{
int result; // r0
char *v8; // r4
char *v9; // r5
char *v10; // t1
char *v11; // r1
char *v12; // r3
char *v13; // r3
int v14[2]; // [sp+0h] [bp-10h] BYREF
char *v15; // [sp+8h] [bp-8h]
int v16; // [sp+Ch] [bp-4h]
v14[0] = (int)a1;
v14[1] = (int)a2;
v15 = a3;
v16 = a4;
DS_Dictionary::setSubDictForKey(a1, a2);
result = DS_Dictionary::stepIntoSubDictWithKey(a1, a2);
if ( result )
{
v10 = *(char **)a3;
v9 = a3 + 4;
v8 = v10;
while ( v8 != v9 )
{
std::string::basic_string(v14, (int)(v8 + 16));
if ( (v14[0] & 1) != 0 )
v11 = v15;
else
v11 = (char *)v14 + 1;
DS_Dictionary::setBoolForKey(a1, v11, v8[28]);
std::string::~string((int)v14);
v12 = *((char **)v8 + 1);
if ( v12 )
{
do
{
v8 = v12;
v12 = *(char **)v12;
}
while ( v12 );
}
else
{
do
{
v13 = v8;
v8 = *((char **)v8 + 2);
}
while ( v13 != *(char **)v8 );
}
}
return DS_Dictionary::stepOutOfSubDict((int)a1);
}
return result;
}