{"type": "func", "start": 11806248, "end": 11806416, "name": "DS_Dictionary::saveRootSubDictToString", "pseudocode": "// \n// DS_Dictionary::saveRootSubDictToString from 0xb42628 to 0xb426d0 (168 bytes)\n// \n// 3 xrefs:\n// > GManager::getSaveString @ 0x58846c\n// > DS_Dictionary::saveRootSubDictToCompressedFile @ 0xb427d0\n// > <???> @ 0xb53e0\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__int64 __usercall DS_Dictionary::saveRootSubDictToString@<X0>(DS_Dictionary *this@<X0>, __int64 a2@<X8>)\n{\n  pugi::xml_node v5; // [xsp+38h] [xbp+38h] BYREF\n  __int64 appended; // [xsp+40h] [xbp+40h] BYREF\n\n  v5._root = (pugi::xml_node_struct *)pugi::xml_node::child(&this->doc, \"plist\");\n  appended = pugi::xml_node::append_attribute(&v5, \"gjver\");\n  pugi::xml_attribute::operator=(&appended, \"2.0\");\n  pugi::xml_document::save_string(this, \"\\t\", 4, 0);\n  return a2;\n}", "assembly": "; \n; DS_Dictionary::saveRootSubDictToString from 0xb42628 to 0xb426d0 (168 bytes)\n; \n; 3 xrefs:\n; > GManager::getSaveString @ 0x58846c\n; > DS_Dictionary::saveRootSubDictToCompressedFile @ 0xb427d0\n; > <???> @ 0xb53e0\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\nSTP             X29, X30, [SP,#var_50]!                                ; +0x0, 0xb42628\nADRP            X1, #(aLevelcomplete0+0x10)@PAGE; \"plist\"              ; +0x4, 0xb4262c\nMOV             X29, SP                                                ; +0x8, 0xb42630\nSTP             X19, X20, [SP,#0x50+var_40]                            ; +0xc, 0xb42634\nADRP            X19, #__stack_chk_guard_ptr@PAGE                       ; +0x10, 0xb42638\nADD             X1, X1, #(aLevelcomplete0+0x10)@PAGEOFF; char *        ; +0x14, 0xb4263c\nMOV             X20, X8                                                ; +0x18, 0xb42640\nSTR             X21, [SP,#0x50+var_30]                                 ; +0x1c, 0xb42644\nMOV             X21, X0                                                ; +0x20, 0xb42648\nLDR             X19, [X19,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x24, 0xb4264c\nLDR             X2, [X19]                                              ; +0x28, 0xb42650\nSTR             X2, [X29,#0x50+var_8]                                  ; +0x2c, 0xb42654\nBL              _ZNK4pugi8xml_node5childEPKc; pugi::xml_node::child(char const*) ; +0x30, 0xb42658\nADD             X2, X29, #0x50+arg_0                                   ; +0x34, 0xb4265c\nADRL            X1, aGjver; \"gjver\"                                    ; +0x38, 0xb42660\nSTR             X0, [X2,#-0x18]!                                       ; +0x40, 0xb42668\nMOV             X0, X2; this                                           ; +0x44, 0xb4266c\nBL              _ZN4pugi8xml_node16append_attributeEPKc; pugi::xml_node::append_attribute(char const*) ; +0x48, 0xb42670\nADD             X2, X29, #0x50+arg_0                                   ; +0x4c, 0xb42674\nADRL            X1, a20_0; \"2.0\"                                       ; +0x50, 0xb42678\nSTR             X0, [X2,#-0x10]!                                       ; +0x58, 0xb42680\nMOV             X0, X2                                                 ; +0x5c, 0xb42684\nBL              _ZN4pugi13xml_attributeaSEPKc; pugi::xml_attribute::operator=(char const*) ; +0x60, 0xb42688\nADRP            X1, #asc_F17D78@PAGE; \"\\t\"                             ; +0x64, 0xb4268c\nMOV             X0, X21                                                ; +0x68, 0xb42690\nADD             X1, X1, #asc_F17D78@PAGEOFF; \"\\t\"                      ; +0x6c, 0xb42694\nMOV             W2, #4                                                 ; +0x70, 0xb42698\nMOV             X8, X20                                                ; +0x74, 0xb4269c\nMOV             W3, #0                                                 ; +0x78, 0xb426a0\nBL              _ZNK4pugi12xml_document11save_stringEPKcjNS_12xml_encodingE; pugi::xml_document::save_string(char const*,uint,pugi::xml_encoding) ; +0x7c, 0xb426a4\nLDR             X2, [X29,#0x50+var_8]                                  ; +0x80, 0xb426a8\nMOV             X0, X20                                                ; +0x84, 0xb426ac\nLDR             X1, [X19]                                              ; +0x88, 0xb426b0\nCMP             X2, X1                                                 ; +0x8c, 0xb426b4\nB.NE            loc_B426CC                                             ; +0x90, 0xb426b8\nLDP             X19, X20, [SP,#0x50+var_40]                            ; +0x94, 0xb426bc\nLDR             X21, [SP,#0x50+var_30]                                 ; +0x98, 0xb426c0\nLDP             X29, X30, [SP+0x50+var_50],#0x50                       ; +0x9c, 0xb426c4\nRET                                                                    ; +0xa0, 0xb426c8\nBL              .__stack_chk_fail                                      ; +0xa4, 0xb426cc", "xrefs": ["GManager::getSaveString @ 0x58846c", "DS_Dictionary::saveRootSubDictToCompressedFile @ 0xb427d0", "<???> @ 0xb53e0"], "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"}