//
// DS_Dictionary::DS_Dictionary from 0x1800171d0 to 0x1800172b6 (230 bytes)
//
// 3 xrefs:
// > CCContentManager::addDictDS @ 0x180005e81
// > ??> @ 0x1801438a8
// > ??> @ 0x1801ae608
//
// 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
//
// Hidden C++ exception states: #wind=2
DS_Dictionary *__fastcall DS_Dictionary::DS_Dictionary(DS_Dictionary *this)
{
pugi::xml_node_struct **v2; // rax
std::_Vector_val>::pointer Mylast; // rdx
__int64 v4; // rax
std::_Vector_val>::pointer v5; // rbx
__int64 v6; // rax
char v8; // [rsp+48h] [rbp+10h] BYREF
cocos2d::CCThread v9; // [rsp+50h] [rbp+18h] BYREF
char v10; // [rsp+58h] [rbp+20h] BYREF
pugi::xml_document::xml_document(&this->doc);
this->dictTree._Mypair._Myval2._Myfirst = nullptr;
this->dictTree._Mypair._Myval2._Mylast = nullptr;
this->dictTree._Mypair._Myval2._Myend = nullptr;
this->compatible = 0;
v2 = (pugi::xml_node_struct **)pugi::xml_node::xml_node(&v9);
Mylast = this->dictTree._Mypair._Myval2._Mylast;
if ( Mylast == this->dictTree._Mypair._Myval2._Myend )
{
sub_180015D80((const void **)&this->dictTree._Mypair._Myval2._Myfirst, Mylast, v2);
}
else
{
Mylast->_root = *v2;
++this->dictTree._Mypair._Myval2._Mylast;
}
sub_18007F870(this, &v8, "plist");
v4 = sub_18007F750(&v8, &v9, "version");
sub_18007F4A0(v4, "1.0");
sub_18007F870(&v8, &v9, "dict");
v5 = this->dictTree._Mypair._Myval2._Mylast;
v6 = sub_18007FB10(this, &v9, "plist");
v5[-1]._root = *(pugi::xml_node_struct **)sub_18007FB10(v6, &v10, "dict");
return this;
}