{"type": "func", "start": 14376792, "end": 14376960, "name": "DS_Dictionary::saveRootSubDictToString", "pseudocode": "// \n// DS_Dictionary::saveRootSubDictToString from 0xdb5f58 to 0xdb6000 (168 bytes)\n// \n// 6 xrefs:\n// > GManager::getSaveString @ 0x6a8be8\n// > GJGameLevel::getFullSaveString @ 0x806560\n// > GJGameLevel::getExportSaveString @ 0x80662c\n// > sub_82F964 @ 0x82f990\n// > DS_Dictionary::saveRootSubDictToCompressedFile @ 0xdb9a20\n// > <???> @ 0xecb90\n// \n// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 13:08:41 +0000\n// \n\n__int64 *__usercall DS_Dictionary::saveRootSubDictToString@<X0>(\n        __int64 *__return_ptr a1@<X8>,\n        DS_Dictionary *this@<X0>)\n{\n  __int64 v5; // [xsp+38h] [xbp+38h] BYREF\n  __int64 appended; // [xsp+40h] [xbp+40h] BYREF\n\n  v5 = pugi::xml_node::child(this, \"plist\");\n  appended = pugi::xml_node::append_attribute((pugi::xml_node *)&v5, \"gjver\");\n  pugi::xml_attribute::operator=(&appended, \"2.0\");\n  pugi::xml_document::save_string(this, \"\\t\", 4, 0);\n  return a1;\n}", "assembly": "; \n; DS_Dictionary::saveRootSubDictToString from 0xdb5f58 to 0xdb6000 (168 bytes)\n; \n; 6 xrefs:\n; > GManager::getSaveString @ 0x6a8be8\n; > GJGameLevel::getFullSaveString @ 0x806560\n; > GJGameLevel::getExportSaveString @ 0x80662c\n; > sub_82F964 @ 0x82f990\n; > DS_Dictionary::saveRootSubDictToCompressedFile @ 0xdb9a20\n; > <???> @ 0xecb90\n; \n; This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 13:08:41 +0000\n; \nSTP             X29, X30, [SP,#var_50]!                                ; +0x0, 0xdb5f58\nADRP            X1, #(aLevelcomplete0+0x10)@PAGE; \"plist\"              ; +0x4, 0xdb5f5c\nMOV             X29, SP                                                ; +0x8, 0xdb5f60\nSTP             X19, X20, [SP,#0x50+var_40]                            ; +0xc, 0xdb5f64\nADRP            X19, #__stack_chk_guard_ptr@PAGE                       ; +0x10, 0xdb5f68\nSTR             X21, [SP,#0x50+var_30]                                 ; +0x14, 0xdb5f6c\nADD             X1, X1, #(aLevelcomplete0+0x10)@PAGEOFF; char *        ; +0x18, 0xdb5f70\nMOV             X20, X8                                                ; +0x1c, 0xdb5f74\nMOV             X21, X0                                                ; +0x20, 0xdb5f78\nLDR             X19, [X19,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x24, 0xdb5f7c\nLDR             X2, [X19]                                              ; +0x28, 0xdb5f80\nSTR             X2, [X29,#0x50+var_8]                                  ; +0x2c, 0xdb5f84\nBL              _ZNK4pugi8xml_node5childEPKc; pugi::xml_node::child(char const*) ; +0x30, 0xdb5f88\nADD             X2, X29, #0x50+arg_0                                   ; +0x34, 0xdb5f8c\nADRL            X1, aGjver; \"gjver\"                                    ; +0x38, 0xdb5f90\nSTR             X0, [X2,#-0x18]!                                       ; +0x40, 0xdb5f98\nMOV             X0, X2; this                                           ; +0x44, 0xdb5f9c\nBL              _ZN4pugi8xml_node16append_attributeEPKc; pugi::xml_node::append_attribute(char const*) ; +0x48, 0xdb5fa0\nADD             X2, X29, #0x50+arg_0                                   ; +0x4c, 0xdb5fa4\nADRL            X1, a20; \"2.0\"                                         ; +0x50, 0xdb5fa8\nSTR             X0, [X2,#-0x10]!                                       ; +0x58, 0xdb5fb0\nMOV             X0, X2                                                 ; +0x5c, 0xdb5fb4\nBL              _ZN4pugi13xml_attributeaSEPKc; pugi::xml_attribute::operator=(char const*) ; +0x60, 0xdb5fb8\nADRP            X1, #asc_11A7B20@PAGE; \"\\t\"                            ; +0x64, 0xdb5fbc\nMOV             X0, X21                                                ; +0x68, 0xdb5fc0\nADD             X1, X1, #asc_11A7B20@PAGEOFF; \"\\t\"                     ; +0x6c, 0xdb5fc4\nMOV             W2, #4                                                 ; +0x70, 0xdb5fc8\nMOV             X8, X20                                                ; +0x74, 0xdb5fcc\nMOV             W3, #0                                                 ; +0x78, 0xdb5fd0\nBL              _ZNK4pugi12xml_document11save_stringEPKcjNS_12xml_encodingE; pugi::xml_document::save_string(char const*,uint,pugi::xml_encoding) ; +0x7c, 0xdb5fd4\nLDR             X2, [X29,#0x50+var_8]                                  ; +0x80, 0xdb5fd8\nMOV             X0, X20                                                ; +0x84, 0xdb5fdc\nLDR             X1, [X19]                                              ; +0x88, 0xdb5fe0\nCMP             X2, X1                                                 ; +0x8c, 0xdb5fe4\nB.NE            loc_DB5FFC                                             ; +0x90, 0xdb5fe8\nLDP             X19, X20, [SP,#0x50+var_40]                            ; +0x94, 0xdb5fec\nLDR             X21, [SP,#0x50+var_30]                                 ; +0x98, 0xdb5ff0\nLDP             X29, X30, [SP+0x50+var_50],#0x50                       ; +0x9c, 0xdb5ff4\nRET                                                                    ; +0xa0, 0xdb5ff8\nBL              .__stack_chk_fail                                      ; +0xa4, 0xdb5ffc", "xrefs": ["GManager::getSaveString @ 0x6a8be8", "GJGameLevel::getFullSaveString @ 0x806560", "GJGameLevel::getExportSaveString @ 0x80662c", "sub_82F964 @ 0x82f990", "DS_Dictionary::saveRootSubDictToCompressedFile @ 0xdb9a20", "<???> @ 0xecb90"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "arm", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}