{"type": "func", "start": 6286168, "end": 6286332, "name": "DS_Dictionary::DS_Dictionary", "pseudocode": "// \n// DS_Dictionary::DS_Dictionary from 0x5feb58 to 0x5febfc (164 bytes)\n// \n// 8 xrefs:\n// > CCAnimateFrameCache::addSpriteFramesWithFile @ 0x2e4c4a\n// > CCAnimateFrameCache::addCustomSpriteFramesWithFile @ 0x2e506a\n// > GManager::getSaveString @ 0x2f0212\n// > GManager::loadFromString @ 0x2f02a2\n// > GManager::saveGMTo @ 0x2f0352\n// > GManager::loadDataFromFile @ 0x2f0438\n// > CCContentManager::addDict @ 0x5fc3e4\n// > CCContentManager::addDictDS @ 0x5fc484\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// Alternative name is '_ZN13DS_DictionaryC2Ev'\nDS_Dictionary *DS_Dictionary::DS_Dictionary(DS_Dictionary *a1)\n{\n  char **p_dictTree; // r9\n  _DWORD *v3; // r9\n  pugi::xml_node v5; // [sp+4h] [bp-4h] BYREF\n  pugi::xml_node v6; // [sp+8h] [bp+0h] BYREF\n\n  p_dictTree = (char **)&a1->dictTree;\n  pugi::xml_document::xml_document(&a1->doc);\n  a1->dictTree.m_start = nullptr;\n  a1->dictTree.m_finish = nullptr;\n  a1->dictTree.m_reserveEnd = nullptr;\n  a1->compatible = 0;\n  pugi::xml_node::xml_node(&v6);\n  std::vector<pugi::xml_node>::emplace_back<pugi::xml_node>(p_dictTree, &v6);\n  v5._root = (pugi::xml_node_struct *)pugi::xml_node::append_child(&a1->doc, \"plist\");\n  v6._root = (pugi::xml_node_struct *)pugi::xml_node::append_attribute(&v5, \"version\");\n  pugi::xml_attribute::operator=(&v6, \"1.0\");\n  pugi::xml_node::append_child(&v5, \"dict\");\n  v3 = (_DWORD *)std::vector<pugi::xml_node>::back((int)p_dictTree);\n  v6._root = (pugi::xml_node_struct *)pugi::xml_node::child(&a1->doc, \"plist\");\n  *v3 = pugi::xml_node::child(&v6, \"dict\");\n  return a1;\n}", "assembly": "; \n; DS_Dictionary::DS_Dictionary from 0x5feb58 to 0x5febfc (164 bytes)\n; \n; 8 xrefs:\n; > CCAnimateFrameCache::addSpriteFramesWithFile @ 0x2e4c4a\n; > CCAnimateFrameCache::addCustomSpriteFramesWithFile @ 0x2e506a\n; > GManager::getSaveString @ 0x2f0212\n; > GManager::loadFromString @ 0x2f02a2\n; > GManager::saveGMTo @ 0x2f0352\n; > GManager::loadDataFromFile @ 0x2f0438\n; > CCContentManager::addDict @ 0x5fc3e4\n; > CCContentManager::addDictDS @ 0x5fc484\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.W          {R0-R10,LR}                                            ; +0x0, 0x5feb58\nADD             R7, SP, #8                                             ; +0x4, 0x5feb5c\nLDR             R5, =(__stack_chk_guard_ptr - 0x5FEB6E)                ; +0x6, 0x5feb5e\nMOV             R4, R0                                                 ; +0x8, 0x5feb60\nLDR.W           R8, =(aPlist_0 - 0x5FEB76); \"plist\"                    ; +0xa, 0x5feb62\nADD.W           R9, R4, #0xC8                                          ; +0xe, 0x5feb66\nADD             R5, PC; __stack_chk_guard_ptr                          ; +0x12, 0x5feb6a\nLDR             R5, [R5]; __stack_chk_guard                            ; +0x14, 0x5feb6c\nADD.W           R10, SP, #0x10+var_s0                                  ; +0x16, 0x5feb6e\nADD             R8, PC; \"plist\"                                        ; +0x1a, 0x5feb72\nLDR             R6, =(aDict_1 - 0x5FEB7C); \"dict\"                      ; +0x1c, 0x5feb74\nLDR             R3, [R5]                                               ; +0x1e, 0x5feb76\nADD             R6, PC; \"dict\"                                         ; +0x20, 0x5feb78\nSTR             R3, [SP,#0x10+var_4]                                   ; +0x22, 0x5feb7a\nBL              _ZN4pugi12xml_documentC1Ev; pugi::xml_document::xml_document(void) ; +0x24, 0x5feb7c\nMOVS            R3, #0                                                 ; +0x28, 0x5feb80\nMOV             R0, R7; this                                           ; +0x2a, 0x5feb82\nSTR.W           R3, [R4,#0xC8]                                         ; +0x2c, 0x5feb84\nSTR.W           R3, [R4,#0xCC]                                         ; +0x30, 0x5feb88\nSTR.W           R3, [R4,#0xD0]                                         ; +0x34, 0x5feb8c\nSTRB.W          R3, [R4,#0xD4]                                         ; +0x38, 0x5feb90\nBL              _ZN4pugi8xml_nodeC1Ev; pugi::xml_node::xml_node(void)  ; +0x3c, 0x5feb94\nMOV             R0, R9                                                 ; +0x40, 0x5feb98\nMOV             R1, R7                                                 ; +0x42, 0x5feb9a\nBL              _ZNSt6vectorIN4pugi8xml_nodeESaIS1_EE12emplace_backIJS1_EEEvDpOT_; std::vector<pugi::xml_node>::emplace_back<pugi::xml_node>(pugi::xml_node &&) ; +0x44, 0x5feb9c\nMOV             R1, R8; char *                                         ; +0x48, 0x5feba0\nMOV             R0, R4; this                                           ; +0x4a, 0x5feba2\nBL              _ZN4pugi8xml_node12append_childEPKc; pugi::xml_node::append_child(char const*) ; +0x4c, 0x5feba4\nLDR             R1, =(aVersion - 0x5FEBAE); \"version\"                  ; +0x50, 0x5feba8\nADD             R1, PC; \"version\"                                      ; +0x52, 0x5febaa\nSTR.W           R0, [R10,#-0xC]!                                       ; +0x54, 0x5febac\nMOV             R0, R10; this                                          ; +0x58, 0x5febb0\nBL              _ZN4pugi8xml_node16append_attributeEPKc; pugi::xml_node::append_attribute(char const*) ; +0x5a, 0x5febb2\nLDR             R1, =(a10_1 - 0x5FEBBC); \"1.0\"                         ; +0x5e, 0x5febb6\nADD             R1, PC; \"1.0\"                                          ; +0x60, 0x5febb8\nSTR             R0, [SP,#0x10+var_8]                                   ; +0x62, 0x5febba\nMOV             R0, R7                                                 ; +0x64, 0x5febbc\nBL              _ZN4pugi13xml_attributeaSEPKc; pugi::xml_attribute::operator=(char const*) ; +0x66, 0x5febbe\nMOV             R1, R6; char *                                         ; +0x6a, 0x5febc2\nMOV             R0, R10; this                                          ; +0x6c, 0x5febc4\nBL              _ZN4pugi8xml_node12append_childEPKc; pugi::xml_node::append_child(char const*) ; +0x6e, 0x5febc6\nMOV             R0, R9                                                 ; +0x72, 0x5febca\nBL              _ZNSt6vectorIN4pugi8xml_nodeESaIS1_EE4backEv; std::vector<pugi::xml_node>::back(void) ; +0x74, 0x5febcc\nMOV             R1, R8; char *                                         ; +0x78, 0x5febd0\nMOV             R9, R0                                                 ; +0x7a, 0x5febd2\nMOV             R0, R4; this                                           ; +0x7c, 0x5febd4\nBL              _ZNK4pugi8xml_node5childEPKc; pugi::xml_node::child(char const*) ; +0x7e, 0x5febd6\nMOV             R1, R6; char *                                         ; +0x82, 0x5febda\nSTR             R0, [SP,#0x10+var_8]                                   ; +0x84, 0x5febdc\nMOV             R0, R7; this                                           ; +0x86, 0x5febde\nBL              _ZNK4pugi8xml_node5childEPKc; pugi::xml_node::child(char const*) ; +0x88, 0x5febe0\nLDR             R2, [SP,#0x10+var_4]                                   ; +0x8c, 0x5febe4\nSTR.W           R0, [R9]                                               ; +0x8e, 0x5febe6\nMOV             R0, R4                                                 ; +0x92, 0x5febea\nLDR             R3, [R5]                                               ; +0x94, 0x5febec\nCMP             R2, R3                                                 ; +0x96, 0x5febee\nBEQ             loc_5FEBF6                                             ; +0x98, 0x5febf0\nBLX             __stack_chk_fail                                       ; +0x9a, 0x5febf2\nADD             SP, SP, #0x10                                          ; +0x9e, 0x5febf6\nPOP.W           {R4-R10,PC}                                            ; +0xa0, 0x5febf8", "xrefs": ["CCAnimateFrameCache::addSpriteFramesWithFile @ 0x2e4c4a", "CCAnimateFrameCache::addCustomSpriteFramesWithFile @ 0x2e506a", "GManager::getSaveString @ 0x2f0212", "GManager::loadFromString @ 0x2f02a2", "GManager::saveGMTo @ 0x2f0352", "GManager::loadDataFromFile @ 0x2f0438", "CCContentManager::addDict @ 0x5fc3e4", "CCContentManager::addDictDS @ 0x5fc484"], "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"}