//
// DS_Dictionary::addBoolValuesToMapForKey from 0xdbc980 to 0xdbcb24 (420 bytes)
//
// 2 xrefs:
// > GameLevelManager::dataLoaded @ 0x8608f4
// > ??> @ 0xf8320
//
// 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
//
__int64 __fastcall DS_Dictionary::addBoolValuesToMapForKey(
DS_Dictionary *a1,
__int64 a2,
char *a3,
char a4,
int a5,
int a6,
int a7,
int a8,
char a9)
{
char *v10; // x4
const char *v11; // x0
const char *v12; // x23
size_t v13; // x0
size_t v14; // x27
unsigned __int64 v15; // x28
char *v16; // x0
__int64 i; // [xsp+80h] [xbp+80h] BYREF
__int64 *sibling; // [xsp+88h] [xbp+88h] BYREF
__int64 v22; // [xsp+90h] [xbp+90h] BYREF
size_t v23; // [xsp+98h] [xbp+98h]
void *v24; // [xsp+A0h] [xbp+A0h]
if ( a3 && !a4 && !(unsigned __int8)DS_Dictionary::stepIntoSubDictWithKey(a1, a3) )
return _stack_chk_guard;
for ( i = pugi::xml_node::first_child((pugi::xml_node *)(*((_QWORD *)a1 + 27) - 8LL));
pugi::xml_node::operator void (*)(pugi::xml_node***)(&i);
i = pugi::xml_node::next_sibling((pugi::xml_node *)&sibling) )
{
v11 = (const char *)pugi::xml_node::child_value((pugi::xml_node *)&i);
v22 = 0;
v12 = v11;
v23 = 0;
v24 = nullptr;
v13 = strlen(v11);
v14 = v13;
if ( v13 <= 0x16 )
{
LOBYTE(v22) = 2 * v13;
v10 = (char *)&v22 + 1;
if ( !v13 )
goto LABEL_5;
}
else
{
v15 = (v13 + 16) & 0xFFFFFFFFFFFFFFF0LL;
v16 = (char *)operator new(v15);
v23 = v14;
v10 = v16;
v24 = v16;
v22 = v15 | 1;
}
v10 = (char *)memcpy(v10, v12, v14);
LABEL_5:
v10[v14] = 0;
sibling = &v22;
*((_BYTE *)std::__tree,std::__map_value_compare,std::less,true>,std::allocator>>::__emplace_unique_key_args,std::tuple<>>(
a2,
(__int64)&v22,
(__int64)&unk_11AE340,
(__int64 *)&sibling)
+ 56) = 1;
if ( (v22 & 1) != 0 )
operator delete(v24);
sibling = (__int64 *)pugi::xml_node::next_sibling((pugi::xml_node *)&i);
}
if ( a3 )
DS_Dictionary::stepOutOfSubDict((__int64)a1);
return _stack_chk_guard;
}