{"type": "func", "start": 6277584, "end": 6277680, "name": "DS_Dictionary::saveRootSubDictToString", "pseudocode": "// \n// DS_Dictionary::saveRootSubDictToString from 0x5fc9d0 to 0x5fca30 (96 bytes)\n// \n// 2 xrefs:\n// > GManager::getSaveString @ 0x2f0226\n// > DS_Dictionary::saveRootSubDictToCompressedFile @ 0x5fcade\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\nDS_Dictionary *__fastcall DS_Dictionary::saveRootSubDictToString(DS_Dictionary *this, pugi::xml_node *a2)\n{\n  pugi::xml_node v5; // [sp+Ch] [bp-Ch] BYREF\n  int appended; // [sp+10h] [bp-8h] BYREF\n\n  v5._root = (pugi::xml_node_struct *)pugi::xml_node::child(a2, \"plist\");\n  appended = pugi::xml_node::append_attribute(&v5, \"gjver\");\n  pugi::xml_attribute::operator=(&appended, \"2.0\");\n  pugi::xml_document::save_string((int)this, a2, (int)\"\\t\", 4, 0);\n  return this;\n}", "assembly": "; \n; DS_Dictionary::saveRootSubDictToString from 0x5fc9d0 to 0x5fca30 (96 bytes)\n; \n; 2 xrefs:\n; > GManager::getSaveString @ 0x2f0226\n; > DS_Dictionary::saveRootSubDictToCompressedFile @ 0x5fcade\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\nPUSH            {R4-R6,LR}                                             ; +0x0, 0x5fc9d0\nMOV             R5, R0                                                 ; +0x2, 0x5fc9d2\nLDR             R4, =(__stack_chk_guard_ptr - 0x5FC9E0)                ; +0x4, 0x5fc9d4\nMOV             R6, R1                                                 ; +0x6, 0x5fc9d6\nMOV             R0, R1; this                                           ; +0x8, 0x5fc9d8\nLDR             R1, =(aPlist_0 - 0x5FC9E6); \"plist\"                    ; +0xa, 0x5fc9da\nADD             R4, PC; __stack_chk_guard_ptr                          ; +0xc, 0x5fc9dc\nLDR             R4, [R4]; __stack_chk_guard                            ; +0xe, 0x5fc9de\nSUB             SP, SP, #0x18                                          ; +0x10, 0x5fc9e0\nADD             R1, PC; \"plist\"                                        ; +0x12, 0x5fc9e2\nLDR             R3, [R4]                                               ; +0x14, 0x5fc9e4\nSTR             R3, [SP,#0x18+var_4]                                   ; +0x16, 0x5fc9e6\nBL              _ZNK4pugi8xml_node5childEPKc; pugi::xml_node::child(char const*) ; +0x18, 0x5fc9e8\nADD             R3, SP, #0x18+var_s0                                   ; +0x1c, 0x5fc9ec\nLDR             R1, =(aGjver - 0x5FC9F4); \"gjver\"                      ; +0x1e, 0x5fc9ee\nADD             R1, PC; \"gjver\"                                        ; +0x20, 0x5fc9f0\nSTR.W           R0, [R3,#-0xC]!                                        ; +0x22, 0x5fc9f2\nMOV             R0, R3; this                                           ; +0x26, 0x5fc9f6\nBL              _ZN4pugi8xml_node16append_attributeEPKc; pugi::xml_node::append_attribute(char const*) ; +0x28, 0x5fc9f8\nADD             R3, SP, #0x18+var_s0                                   ; +0x2c, 0x5fc9fc\nLDR             R1, =(a20_0 - 0x5FCA04); \"2.0\"                         ; +0x2e, 0x5fc9fe\nADD             R1, PC; \"2.0\"                                          ; +0x30, 0x5fca00\nSTR.W           R0, [R3,#-8]!                                          ; +0x32, 0x5fca02\nMOV             R0, R3                                                 ; +0x36, 0x5fca06\nBL              _ZN4pugi13xml_attributeaSEPKc; pugi::xml_attribute::operator=(char const*) ; +0x38, 0x5fca08\nLDR             R2, =(asc_9A54F5 - 0x5FCA18); \"\\t\"                     ; +0x3c, 0x5fca0c\nMOVS            R3, #0                                                 ; +0x3e, 0x5fca0e\nMOV             R0, R5; int                                            ; +0x40, 0x5fca10\nSTR             R3, [SP,#0x18+var_18]; char                            ; +0x42, 0x5fca12\nADD             R2, PC; \"\\t\"                                           ; +0x44, 0x5fca14\nMOVS            R3, #4; int                                            ; +0x46, 0x5fca16\nMOV             R1, R6; this                                           ; +0x48, 0x5fca18\nBL              _ZNK4pugi12xml_document11save_stringEPKcjNS_12xml_encodingE; pugi::xml_document::save_string(char const*,uint,pugi::xml_encoding) ; +0x4a, 0x5fca1a\nLDR             R2, [SP,#0x18+var_4]                                   ; +0x4e, 0x5fca1e\nLDR             R3, [R4]                                               ; +0x50, 0x5fca20\nMOV             R0, R5                                                 ; +0x52, 0x5fca22\nCMP             R2, R3                                                 ; +0x54, 0x5fca24\nBEQ             loc_5FCA2C                                             ; +0x56, 0x5fca26\nBLX             __stack_chk_fail                                       ; +0x58, 0x5fca28\nADD             SP, SP, #0x18                                          ; +0x5c, 0x5fca2c\nPOP             {R4-R6,PC}                                             ; +0x5e, 0x5fca2e", "xrefs": ["GManager::getSaveString @ 0x2f0226", "DS_Dictionary::saveRootSubDictToCompressedFile @ 0x5fcade"], "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"}