//
// DS_Dictionary::addBoolValuesToMapForKeySpecial from 0x80df14 to 0x80e0f0 (476 bytes)
//
// 1 xrefs:
// > GameLevelManager::dataLoaded @ 0x4dd2fc
//
// 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::addBoolValuesToMapForKeySpecial(DS_Dictionary *a1, int *a2, char *a3, int a4)
{
int result; // r0
const char *v7; // r0
const char *v8; // r4
size_t v9; // r0
int v10; // r4
char *v11; // r0
unsigned __int8 *v12; // r12
unsigned int v13; // r4
unsigned __int8 *v14; // r4
unsigned __int8 *v15; // r12
unsigned int v16; // r4
unsigned __int8 *v17; // r4
unsigned __int8 *v18; // r12
unsigned int v19; // r4
unsigned __int8 *v20; // r4
int v22; // [sp+24h] [bp-28h]
unsigned __int8 *v23; // [sp+24h] [bp-28h]
unsigned __int8 *v24; // [sp+24h] [bp-28h]
unsigned __int8 *v25; // [sp+24h] [bp-28h]
int i; // [sp+2Ch] [bp-20h] BYREF
unsigned __int8 *v27[2]; // [sp+30h] [bp-1Ch] BYREF
int v28; // [sp+38h] [bp-14h] BYREF
unsigned int v29; // [sp+3Ch] [bp-10h]
char *v30; // [sp+40h] [bp-Ch]
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 *)v27) )
{
result = pugi::xml_node::operator void (*)(pugi::xml_node***)(&i);
if ( !result )
break;
v7 = (const char *)pugi::xml_node::child_value((pugi::xml_node *)&i);
v28 = 0;
v29 = 0;
v30 = nullptr;
v8 = v7;
v9 = strlen(v7);
std::string::__init(&v28, v8, v9);
v10 = (unsigned __int8)v28;
v22 = v28 & 1;
if ( v22 )
v11 = v30;
else
v11 = (char *)&v28 + 1;
if ( atoi(v11) <= 0 )
{
if ( v22 )
{
v12 = (unsigned __int8 *)v30;
v13 = v29;
}
else
{
v13 = v10 >> 1;
v12 = (unsigned __int8 *)&v28 + 1;
}
if ( v13 <= 3
|| (v14 = &v12[v13],
v23 = v12,
std::__search(
v27,
v12,
v14,
"Rate",
(unsigned __int8 *)"",
(int (__fastcall *)(int, _DWORD))std::char_traits::eq),
v27[0] == v14)
|| v27[0] - v23 == -1 )
{
if ( (v28 & 1) != 0 )
{
v15 = (unsigned __int8 *)v30;
v16 = v29;
}
else
{
v16 = (int)(unsigned __int8)v28 >> 1;
v15 = (unsigned __int8 *)&v28 + 1;
}
if ( v16 <= 3
|| (v17 = &v15[v16],
v24 = v15,
std::__search(
v27,
v15,
v17,
"like",
(unsigned __int8 *)"",
(int (__fastcall *)(int, _DWORD))std::char_traits::eq),
v27[0] == v17)
|| v27[0] - v24 == -1 )
{
if ( (v28 & 1) != 0 )
{
v18 = (unsigned __int8 *)v30;
v19 = v29;
}
else
{
v19 = (int)(unsigned __int8)v28 >> 1;
v18 = (unsigned __int8 *)&v28 + 1;
}
if ( v19 <= 5
|| (v20 = &v18[v19],
v25 = v18,
std::__search(
v27,
v18,
v20,
"report",
(unsigned __int8 *)"",
(int (__fastcall *)(int, _DWORD))std::char_traits::eq),
v27[0] == v20)
|| v27[0] - v25 == -1 )
{
*(_BYTE *)std::map::operator[](a2, &v28) = 1;
}
}
}
}
std::string::~string((int)&v28);
v27[0] = (unsigned __int8 *)pugi::xml_node::next_sibling((pugi::xml_node *)&i);
}
if ( a3 )
return DS_Dictionary::stepOutOfSubDict((int)a1);
}
return result;
}