{"type": "func", "start": 6442545616, "end": 6442545846, "name": "DS_Dictionary::DS_Dictionary", "pseudocode": "// \n// DS_Dictionary::DS_Dictionary from 0x1800171d0 to 0x1800172b6 (230 bytes)\n// \n// 3 xrefs:\n// > CCContentManager::addDictDS @ 0x180005e81\n// > <???> @ 0x1801438a8\n// > <???> @ 0x1801ae608\n// \n// This function is hookable on this platform!\n// \n// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings\n// \n\n// Hidden C++ exception states: #wind=2\nDS_Dictionary *__fastcall DS_Dictionary::DS_Dictionary(DS_Dictionary *this)\n{\n  pugi::xml_node_struct **v2; // rax\n  std::_Vector_val<std::_Simple_types<pugi::xml_node>>::pointer Mylast; // rdx\n  __int64 v4; // rax\n  std::_Vector_val<std::_Simple_types<pugi::xml_node>>::pointer v5; // rbx\n  __int64 v6; // rax\n  char v8; // [rsp+48h] [rbp+10h] BYREF\n  cocos2d::CCThread v9; // [rsp+50h] [rbp+18h] BYREF\n  char v10; // [rsp+58h] [rbp+20h] BYREF\n\n  pugi::xml_document::xml_document(&this->doc);\n  this->dictTree._Mypair._Myval2._Myfirst = nullptr;\n  this->dictTree._Mypair._Myval2._Mylast = nullptr;\n  this->dictTree._Mypair._Myval2._Myend = nullptr;\n  this->compatible = 0;\n  v2 = (pugi::xml_node_struct **)pugi::xml_node::xml_node(&v9);\n  Mylast = this->dictTree._Mypair._Myval2._Mylast;\n  if ( Mylast == this->dictTree._Mypair._Myval2._Myend )\n  {\n    sub_180015D80((const void **)&this->dictTree._Mypair._Myval2._Myfirst, Mylast, v2);\n  }\n  else\n  {\n    Mylast->_root = *v2;\n    ++this->dictTree._Mypair._Myval2._Mylast;\n  }\n  sub_18007F870(this, &v8, \"plist\");\n  v4 = sub_18007F750(&v8, &v9, \"version\");\n  sub_18007F4A0(v4, \"1.0\");\n  sub_18007F870(&v8, &v9, \"dict\");\n  v5 = this->dictTree._Mypair._Myval2._Mylast;\n  v6 = sub_18007FB10(this, &v9, \"plist\");\n  v5[-1]._root = *(pugi::xml_node_struct **)sub_18007FB10(v6, &v10, \"dict\");\n  return this;\n}", "assembly": "; \n; DS_Dictionary::DS_Dictionary from 0x1800171d0 to 0x1800172b6 (230 bytes)\n; \n; 3 xrefs:\n; > CCContentManager::addDictDS @ 0x180005e81\n; > <???> @ 0x1801438a8\n; > <???> @ 0x1801ae608\n; \n; This function is hookable on this platform!\n; \n; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA\n; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings\n; \n\nmov     [rsp+arg_0], rcx                                               ; +0x0, 0x1800171d0\npush    rbx                                                            ; +0x5, 0x1800171d5\npush    rdi                                                            ; +0x6, 0x1800171d6\nsub     rsp, 28h                                                       ; +0x7, 0x1800171d7\nmov     rdi, rcx                                                       ; +0xb, 0x1800171db\ncall    ??0xml_document@pugi@@QEAA@XZ; pugi::xml_document::xml_document(void) ; +0xe, 0x1800171de\nnop                                                                    ; +0x13, 0x1800171e3\nlea     rbx, [rdi+0D0h]                                                ; +0x14, 0x1800171e4\nxor     eax, eax                                                       ; +0x1b, 0x1800171eb\nmov     [rbx], rax                                                     ; +0x1d, 0x1800171ed\nmov     [rbx+8], rax                                                   ; +0x20, 0x1800171f0\nmov     [rbx+10h], rax                                                 ; +0x24, 0x1800171f4\nmov     [rdi+0E8h], al                                                 ; +0x28, 0x1800171f8\nlea     rcx, [rsp+38h+arg_10]; this                                    ; +0x2e, 0x1800171fe\ncall    pugi__xml_node__xml_node                                       ; +0x33, 0x180017203\nmov     rdx, [rbx+8]                                                   ; +0x38, 0x180017208\ncmp     rdx, [rbx+10h]                                                 ; +0x3c, 0x18001720c\njz      short loc_18001721F                                            ; +0x40, 0x180017210\nmov     rax, [rax]                                                     ; +0x42, 0x180017212\nmov     [rdx], rax                                                     ; +0x45, 0x180017215\nadd     qword ptr [rbx+8], 8                                           ; +0x48, 0x180017218\njmp     short loc_18001722A                                            ; +0x4d, 0x18001721d\nmov     r8, rax                                                        ; +0x4f, 0x18001721f\nmov     rcx, rbx                                                       ; +0x52, 0x180017222\ncall    sub_180015D80                                                  ; +0x55, 0x180017225\nlea     r8, aPlist; \"plist\"                                            ; +0x5a, 0x18001722a\nlea     rdx, [rsp+38h+arg_8]                                           ; +0x61, 0x180017231\nmov     rcx, rdi                                                       ; +0x66, 0x180017236\ncall    sub_18007F870                                                  ; +0x69, 0x180017239\nlea     r8, aVersion; \"version\"                                        ; +0x6e, 0x18001723e\nlea     rdx, [rsp+38h+arg_10]                                          ; +0x75, 0x180017245\nlea     rcx, [rsp+38h+arg_8]                                           ; +0x7a, 0x18001724a\ncall    sub_18007F750                                                  ; +0x7f, 0x18001724f\nmov     rcx, rax                                                       ; +0x84, 0x180017254\nlea     rdx, a10; \"1.0\"                                                ; +0x87, 0x180017257\ncall    sub_18007F4A0                                                  ; +0x8e, 0x18001725e\nlea     r8, aDict_1; \"dict\"                                            ; +0x93, 0x180017263\nlea     rdx, [rsp+38h+arg_10]                                          ; +0x9a, 0x18001726a\nlea     rcx, [rsp+38h+arg_8]                                           ; +0x9f, 0x18001726f\ncall    sub_18007F870                                                  ; +0xa4, 0x180017274\nmov     rbx, [rbx+8]                                                   ; +0xa9, 0x180017279\nlea     r8, aPlist; \"plist\"                                            ; +0xad, 0x18001727d\nlea     rdx, [rsp+38h+arg_10]                                          ; +0xb4, 0x180017284\nmov     rcx, rdi                                                       ; +0xb9, 0x180017289\ncall    sub_18007FB10                                                  ; +0xbc, 0x18001728c\nmov     rcx, rax                                                       ; +0xc1, 0x180017291\nlea     r8, aDict_1; \"dict\"                                            ; +0xc4, 0x180017294\nlea     rdx, [rsp+38h+arg_18]                                          ; +0xcb, 0x18001729b\ncall    sub_18007FB10                                                  ; +0xd0, 0x1800172a0\nmov     rcx, [rax]                                                     ; +0xd5, 0x1800172a5\nmov     [rbx-8], rcx                                                   ; +0xd8, 0x1800172a8\nmov     rax, rdi                                                       ; +0xdc, 0x1800172ac\nadd     rsp, 28h                                                       ; +0xdf, 0x1800172af\npop     rdi                                                            ; +0xe3, 0x1800172b3\npop     rbx                                                            ; +0xe4, 0x1800172b4\nretn                                                                   ; +0xe5, 0x1800172b5", "xrefs": ["CCContentManager::addDictDS @ 0x180005e81", "<???> @ 0x1801438a8", "<???> @ 0x1801ae608"], "is_objc": false, "is_arm32": false, "is_arm64": false, "bida_info": "8.0.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings"}