{"type": "func", "start": 6286992, "end": 6287152, "name": "DS_Dictionary::loadRootSubDictFromString", "pseudocode": "// \n// DS_Dictionary::loadRootSubDictFromString from 0x5fee90 to 0x5fef30 (160 bytes)\n// \n// 1 xrefs:\n// > GManager::loadFromString @ 0x2f02aa\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\nint __fastcall DS_Dictionary::loadRootSubDictFromString(DS_Dictionary *a1, int *a2)\n{\n  int v4; // r5\n  char **p_dictTree; // r7\n  _DWORD *v6; // r7\n  pugi::xml_node v8; // [sp+Ch] [bp-14h] BYREF\n  pugi::xml_node v9[3]; // [sp+10h] [bp-10h] BYREF\n\n  if ( !*(_DWORD *)(*a2 - 12) )\n    return 0;\n  p_dictTree = (char **)&a1->dictTree;\n  a1->dictTree.m_finish = a1->dictTree.m_start;\n  pugi::xml_node::xml_node(v9);\n  std::vector<pugi::xml_node>::emplace_back<pugi::xml_node>(p_dictTree, v9);\n  pugi::xml_document::load_buffer((int)v9, &a1->doc, *a2, *(_DWORD *)(*a2 - 12), 116, 0);\n  v4 = pugi::xml_parse_result::operator bool(v9);\n  if ( !v4 )\n    return 0;\n  v6 = (_DWORD *)std::vector<pugi::xml_node>::back((int)p_dictTree);\n  v8._root = (pugi::xml_node_struct *)pugi::xml_node::child(&a1->doc, \"plist\");\n  *v6 = pugi::xml_node::child(&v8, \"dict\");\n  DS_Dictionary::checkCompatibility(a1);\n  return v4;\n}", "assembly": "; \n; DS_Dictionary::loadRootSubDictFromString from 0x5fee90 to 0x5fef30 (160 bytes)\n; \n; 1 xrefs:\n; > GManager::loadFromString @ 0x2f02aa\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\nLDR             R3, =(__stack_chk_guard_ptr - 0x5FEE9A)                ; +0x0, 0x5fee90\nPUSH.W          {R4-R8,LR}                                             ; +0x2, 0x5fee92\nADD             R3, PC; __stack_chk_guard_ptr                          ; +0x6, 0x5fee96\nLDR             R3, [R3]; __stack_chk_guard                            ; +0x8, 0x5fee98\nSUB             SP, SP, #0x20; int                                     ; +0xa, 0x5fee9a\nMOV             R4, R0                                                 ; +0xc, 0x5fee9c\nLDR             R2, [R3]                                               ; +0xe, 0x5fee9e\nMOV             R8, R1                                                 ; +0x10, 0x5feea0\nMOV             R6, R3                                                 ; +0x12, 0x5feea2\nSTR             R2, [SP,#0x20+var_4]                                   ; +0x14, 0x5feea4\nLDR             R2, [R1]                                               ; +0x16, 0x5feea6\nLDR.W           R2, [R2,#-0xC]                                         ; +0x18, 0x5feea8\nCBNZ            R2, loc_5FEEB2                                         ; +0x1c, 0x5feeac\nMOVS            R5, #0                                                 ; +0x1e, 0x5feeae\nB               loc_5FEF1C                                             ; +0x20, 0x5feeb0\nLDR.W           R3, [R0,#0xC8]                                         ; +0x22, 0x5feeb2\nADD             R5, SP, #0x20+var_10                                   ; +0x26, 0x5feeb6\nADD.W           R7, R0, #0xC8                                          ; +0x28, 0x5feeb8\nSTR.W           R3, [R0,#0xCC]                                         ; +0x2c, 0x5feebc\nMOV             R0, R5; this                                           ; +0x30, 0x5feec0\nBL              _ZN4pugi8xml_nodeC1Ev; pugi::xml_node::xml_node(void)  ; +0x32, 0x5feec2\nMOV             R1, R5                                                 ; +0x36, 0x5feec6\nMOV             R0, R7                                                 ; +0x38, 0x5feec8\nBL              _ZNSt6vectorIN4pugi8xml_nodeESaIS1_EE12emplace_backIJS1_EEEvDpOT_; std::vector<pugi::xml_node>::emplace_back<pugi::xml_node>(pugi::xml_node &&) ; +0x3a, 0x5feeca\nLDR.W           R2, [R8]; int                                          ; +0x3e, 0x5feece\nMOV             R0, R5; int                                            ; +0x42, 0x5feed2\nMOVS            R1, #0x74 ; 't'                                        ; +0x44, 0x5feed4\nMOVS            R3, #0                                                 ; +0x46, 0x5feed6\nSTMEA.W         SP, {R1,R3}                                            ; +0x48, 0x5feed8\nMOV             R1, R4; this                                           ; +0x4c, 0x5feedc\nLDR.W           R3, [R2,#-0xC]; int                                    ; +0x4e, 0x5feede\nBL              _ZN4pugi12xml_document11load_bufferEPKvjjNS_12xml_encodingE; pugi::xml_document::load_buffer(void const*,uint,uint,pugi::xml_encoding) ; +0x52, 0x5feee2\nMOV             R0, R5                                                 ; +0x56, 0x5feee6\nBL              _ZNK4pugi16xml_parse_resultcvbEv; pugi::xml_parse_result::operator bool(void) ; +0x58, 0x5feee8\nMOV             R5, R0                                                 ; +0x5c, 0x5feeec\nCMP             R0, #0                                                 ; +0x5e, 0x5feeee\nBEQ             loc_5FEEAE                                             ; +0x60, 0x5feef0\nMOV             R0, R7                                                 ; +0x62, 0x5feef2\nBL              _ZNSt6vectorIN4pugi8xml_nodeESaIS1_EE4backEv; std::vector<pugi::xml_node>::back(void) ; +0x64, 0x5feef4\nLDR             R1, =(aPlist_0 - 0x5FEEFE); \"plist\"                    ; +0x68, 0x5feef8\nADD             R1, PC; \"plist\"                                        ; +0x6a, 0x5feefa\nMOV             R7, R0                                                 ; +0x6c, 0x5feefc\nMOV             R0, R4; this                                           ; +0x6e, 0x5feefe\nBL              _ZNK4pugi8xml_node5childEPKc; pugi::xml_node::child(char const*) ; +0x70, 0x5fef00\nADD             R3, SP, #0x20+var_s0                                   ; +0x74, 0x5fef04\nLDR             R1, =(aDict_1 - 0x5FEF0C); \"dict\"                      ; +0x76, 0x5fef06\nADD             R1, PC; \"dict\"                                         ; +0x78, 0x5fef08\nSTR.W           R0, [R3,#-0x14]!                                       ; +0x7a, 0x5fef0a\nMOV             R0, R3; this                                           ; +0x7e, 0x5fef0e\nBL              _ZNK4pugi8xml_node5childEPKc; pugi::xml_node::child(char const*) ; +0x80, 0x5fef10\nSTR             R0, [R7]                                               ; +0x84, 0x5fef14\nMOV             R0, R4; this                                           ; +0x86, 0x5fef16\nBL              _ZN13DS_Dictionary18checkCompatibilityEv; DS_Dictionary::checkCompatibility(void) ; +0x88, 0x5fef18\nLDR             R2, [SP,#0x20+var_4]                                   ; +0x8c, 0x5fef1c\nMOV             R0, R5                                                 ; +0x8e, 0x5fef1e\nLDR             R3, [R6]                                               ; +0x90, 0x5fef20\nCMP             R2, R3                                                 ; +0x92, 0x5fef22\nBEQ             loc_5FEF2A                                             ; +0x94, 0x5fef24\nBLX             __stack_chk_fail                                       ; +0x96, 0x5fef26\nADD             SP, SP, #0x20 ; ' '                                    ; +0x9a, 0x5fef2a\nPOP.W           {R4-R8,PC}                                             ; +0x9c, 0x5fef2c", "xrefs": ["GManager::loadFromString @ 0x2f02aa"], "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"}