//
// DS_Dictionary::setBoolMapForKey from 0xb462d8 to 0xb46424 (332 bytes)
//
// 2 xrefs:
// > GameLevelManager::encodeDataTo @ 0x708b9c
// > ??> @ 0x9f270
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
void DS_Dictionary::setBoolMapForKey(DS_Dictionary *a1, const char *a2, std::map *a3)
{
std::_rb_tree_base *p_m_header; // x22
std::_rb_tree_base *m_left; // x20
char *v7; // x0
unsigned int *v8; // x1
int v9; // w2
const char *v11; // [xsp+80h] [xbp+80h] BYREF
DS_Dictionary::setSubDictForKey(a1, a2);
if ( DS_Dictionary::stepIntoSubDictWithKey(a1, a2) )
{
p_m_header = &a3->m_header;
m_left = a3->m_header.m_left;
if ( m_left != &a3->m_header )
{
do
{
while ( 1 )
{
sub_D18D28(&v11);
DS_Dictionary::setBoolForKey(a1, v11, (bool)m_left[1].m_parent);
v7 = (char *)(v11 - 24);
if ( v11 - 24 != (const char *)&qword_124B6B0 )
{
if ( &pthread_create )
{
v8 = (unsigned int *)(v11 - 8);
do
v9 = __ldaxr(v8);
while ( __stlxr(v9 - 1, v8) );
}
else
{
v9 = *((_DWORD *)v11 - 2);
*((_DWORD *)v11 - 2) = v9 - 1;
}
if ( v9 <= 0 )
break;
}
m_left = (std::_rb_tree_base *)sub_CFAB14(m_left);
if ( p_m_header == m_left )
goto LABEL_11;
}
operator delete(v7);
m_left = (std::_rb_tree_base *)sub_CFAB14(m_left);
}
while ( p_m_header != m_left );
}
LABEL_11:
DS_Dictionary::stepOutOfSubDict(a1);
}
}