//
// DS_Dictionary::stepBackToRootSubDict from 0xb481cc to 0xb482a0 (212 bytes)
//
// 2 xrefs:
// > CCAnimateFrameCache::addDict @ 0x5723a4
// > ??> @ 0x5b488
//
// 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::stepBackToRootSubDict(DS_Dictionary *a1)
{
pugi::xml_node *m_start; // x1
pugi::xml_node *m_finish; // x1
pugi::xml_node *v4; // x1
pugi::xml_node *v5; // x19
pugi::xml_node v6; // [xsp+30h] [xbp+30h] BYREF
m_start = a1->dictTree.m_start;
if ( (pugi::xml_node *)((char *)a1->dictTree.m_finish - (char *)m_start) > (pugi::xml_node *)&byte_9[6] )
{
a1->dictTree.m_finish = m_start;
pugi::xml_node::xml_node(&v6);
m_finish = a1->dictTree.m_finish;
if ( m_finish == a1->dictTree.m_reserveEnd )
{
std::vector
::_M_emplace_back_aux((__int64)&a1->dictTree, &v6);
v5 = a1->dictTree.m_finish;
}
else
{
if ( m_finish )
m_finish->_root = v6._root;
v4 = m_finish + 1;
a1->dictTree.m_finish = v4;
v5 = v4;
}
v6._root = (pugi::xml_node_struct *)pugi::xml_node::child(&a1->doc, "plist");
v5[-1]._root = (pugi::xml_node_struct *)pugi::xml_node::child(&v6, "dict");
}
}