{"type": "func", "start": 6442586608, "end": 6442586782, "name": "DS_Dictionary::stepBackToRootSubDict", "pseudocode": "// \n// DS_Dictionary::stepBackToRootSubDict from 0x1800211f0 to 0x18002129e (174 bytes)\n// \n// 4 xrefs:\n// > <???> @ 0x180133090\n// > <???> @ 0x1801330a0\n// > <???> @ 0x1801438a8\n// > <???> @ 0x1801aedb8\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\nvoid __fastcall DS_Dictionary::stepBackToRootSubDict(DS_Dictionary *this)\n{\n  std::vector<pugi::xml_node> *p_dictTree; // rbx\n  std::_Simple_types<pugi::xml_node>::value_type *Myfirst; // rdx\n  _QWORD *v4; // rax\n  _BYTE *Mylast; // rdx\n  std::_Vector_val<std::_Simple_types<pugi::xml_node>>::pointer v6; // rbx\n  __int64 v7; // rax\n  cocos2d::CCThread v8; // [rsp+30h] [rbp+8h] BYREF\n  char v9; // [rsp+38h] [rbp+10h] BYREF\n\n  p_dictTree = &this->dictTree;\n  Myfirst = this->dictTree._Mypair._Myval2._Myfirst;\n  if ( (unsigned __int64)(this->dictTree._Mypair._Myval2._Mylast - Myfirst) > 1 )\n  {\n    if ( Myfirst != this->dictTree._Mypair._Myval2._Mylast )\n      this->dictTree._Mypair._Myval2._Mylast = Myfirst;\n    v4 = (_QWORD *)pugi::xml_node::xml_node(&v8);\n    Mylast = p_dictTree->_Mypair._Myval2._Mylast;\n    if ( Mylast == (_BYTE *)p_dictTree->_Mypair._Myval2._Myend )\n    {\n      sub_180015D80((const void **)&p_dictTree->_Mypair._Myval2._Myfirst, Mylast, v4);\n    }\n    else\n    {\n      *(_QWORD *)Mylast = *v4;\n      ++p_dictTree->_Mypair._Myval2._Mylast;\n    }\n    v6 = this->dictTree._Mypair._Myval2._Mylast;\n    v7 = sub_18007FB10(this, &v8, \"plist\");\n    v6[-1]._root = *(pugi::xml_node_struct **)sub_18007FB10(v7, &v9, \"dict\");\n  }\n}", "assembly": "; \n; DS_Dictionary::stepBackToRootSubDict from 0x1800211f0 to 0x18002129e (174 bytes)\n; \n; 4 xrefs:\n; > <???> @ 0x180133090\n; > <???> @ 0x1801330a0\n; > <???> @ 0x1801438a8\n; > <???> @ 0x1801aedb8\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_18], rbx                                              ; +0x0, 0x1800211f0\npush    rsi                                                            ; +0x5, 0x1800211f5\nsub     rsp, 20h                                                       ; +0x6, 0x1800211f6\nlea     rbx, [rcx+0D0h]                                                ; +0xa, 0x1800211fa\nmov     rsi, rcx                                                       ; +0x11, 0x180021201\nmov     r8, [rbx+8]                                                    ; +0x14, 0x180021204\nmov     rdx, [rbx]                                                     ; +0x18, 0x180021208\nmov     rax, r8                                                        ; +0x1b, 0x18002120b\nsub     rax, rdx                                                       ; +0x1e, 0x18002120e\nsar     rax, 3                                                         ; +0x21, 0x180021211\ncmp     rax, 1                                                         ; +0x25, 0x180021215\njbe     short loc_180021293                                            ; +0x29, 0x180021219\nmov     [rsp+28h+arg_10], rdi                                          ; +0x2b, 0x18002121b\ncmp     rdx, r8                                                        ; +0x30, 0x180021220\njz      short loc_18002122C                                            ; +0x33, 0x180021223\nmov     [rcx+0D8h], rdx                                                ; +0x35, 0x180021225\nlea     rcx, [rsp+28h+arg_0]; this                                     ; +0x3c, 0x18002122c\ncall    pugi__xml_node__xml_node                                       ; +0x41, 0x180021231\nmov     rdx, [rbx+8]                                                   ; +0x46, 0x180021236\ncmp     rdx, [rbx+10h]                                                 ; +0x4a, 0x18002123a\njz      short loc_18002124D                                            ; +0x4e, 0x18002123e\nmov     rax, [rax]                                                     ; +0x50, 0x180021240\nmov     [rdx], rax                                                     ; +0x53, 0x180021243\nadd     qword ptr [rbx+8], 8                                           ; +0x56, 0x180021246\njmp     short loc_180021258                                            ; +0x5b, 0x18002124b\nmov     r8, rax                                                        ; +0x5d, 0x18002124d\nmov     rcx, rbx                                                       ; +0x60, 0x180021250\ncall    sub_180015D80                                                  ; +0x63, 0x180021253\nmov     rbx, [rsi+0D8h]                                                ; +0x68, 0x180021258\nlea     r8, aPlist; \"plist\"                                            ; +0x6f, 0x18002125f\nlea     rdx, [rsp+28h+arg_0]                                           ; +0x76, 0x180021266\nmov     rcx, rsi                                                       ; +0x7b, 0x18002126b\ncall    sub_18007FB10                                                  ; +0x7e, 0x18002126e\nmov     rcx, rax                                                       ; +0x83, 0x180021273\nlea     r8, aDict_1; \"dict\"                                            ; +0x86, 0x180021276\nlea     rdx, [rsp+28h+arg_8]                                           ; +0x8d, 0x18002127d\ncall    sub_18007FB10                                                  ; +0x92, 0x180021282\nmov     rdi, [rsp+28h+arg_10]                                          ; +0x97, 0x180021287\nmov     rcx, [rax]                                                     ; +0x9c, 0x18002128c\nmov     [rbx-8], rcx                                                   ; +0x9f, 0x18002128f\nmov     rbx, [rsp+28h+arg_18]                                          ; +0xa3, 0x180021293\nadd     rsp, 20h                                                       ; +0xa8, 0x180021298\npop     rsi                                                            ; +0xac, 0x18002129c\nretn                                                                   ; +0xad, 0x18002129d", "xrefs": ["<???> @ 0x180133090", "<???> @ 0x1801330a0", "<???> @ 0x1801438a8", "<???> @ 0x1801aedb8"], "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"}