//
// DS_Dictionary::addBoolValuesToMapForKey from 0x80e108 to 0x80e1aa (162 bytes)
//
// 1 xrefs:
// > GameLevelManager::dataLoaded @ 0x4dd2ec
//
// 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
//
int __fastcall DS_Dictionary::addBoolValuesToMapForKey(DS_Dictionary *a1, int *a2, char *a3, int a4)
{
int result; // r0
const char *v8; // r0
const char *v9; // r11
size_t v10; // r0
int i; // [sp+0h] [bp-1Ch] BYREF
int sibling; // [sp+4h] [bp-18h] BYREF
int v13[3]; // [sp+8h] [bp-14h] BYREF
if ( !a3 || a4 || (result = DS_Dictionary::stepIntoSubDictWithKey(a1, a3)) != 0 )
{
for ( i = pugi::xml_node::first_child((pugi::xml_node *)(*((_DWORD *)a1 + 51) - 4));
;
i = pugi::xml_node::next_sibling((pugi::xml_node *)&sibling) )
{
result = pugi::xml_node::operator void (*)(pugi::xml_node***)(&i);
if ( !result )
break;
v8 = (const char *)pugi::xml_node::child_value((pugi::xml_node *)&i);
memset(v13, 0, sizeof(v13));
v9 = v8;
v10 = strlen(v8);
std::string::__init(v13, v9, v10);
*(_BYTE *)std::map::operator[](a2, v13) = 1;
std::string::~string((int)v13);
sibling = pugi::xml_node::next_sibling((pugi::xml_node *)&i);
}
if ( a3 )
return DS_Dictionary::stepOutOfSubDict((int)a1);
}
return result;
}