{"type": "func", "start": 6287164, "end": 6287264, "name": "DS_Dictionary::stepBackToRootSubDict", "pseudocode": "// \n// DS_Dictionary::stepBackToRootSubDict from 0x5fef3c to 0x5fefa0 (100 bytes)\n// \n// 1 xrefs:\n// > CCAnimateFrameCache::addDict @ 0x2e4a18\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\nvoid DS_Dictionary::stepBackToRootSubDict(DS_Dictionary *a1)\n{\n  pugi::xml_node *m_start; // r1\n  char **p_dictTree; // r7\n  _DWORD *v4; // r7\n  pugi::xml_node v5; // [sp+0h] [bp-Ch] BYREF\n\n  v5._root = (pugi::xml_node_struct *)a1;\n  m_start = a1->dictTree.m_start;\n  if ( (unsigned int)((char *)a1->dictTree.m_finish - (char *)m_start) > 7 )\n  {\n    p_dictTree = (char **)&a1->dictTree;\n    a1->dictTree.m_finish = m_start;\n    pugi::xml_node::xml_node(&v5);\n    std::vector<pugi::xml_node>::emplace_back<pugi::xml_node>(p_dictTree, &v5);\n    v4 = (_DWORD *)std::vector<pugi::xml_node>::back((int)p_dictTree);\n    v5._root = (pugi::xml_node_struct *)pugi::xml_node::child(&a1->doc, \"plist\");\n    *v4 = pugi::xml_node::child(&v5, \"dict\");\n  }\n}", "assembly": "; \n; DS_Dictionary::stepBackToRootSubDict from 0x5fef3c to 0x5fefa0 (100 bytes)\n; \n; 1 xrefs:\n; > CCAnimateFrameCache::addDict @ 0x2e4a18\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 - 0x5FEF44)                ; +0x0, 0x5fef3c\nPUSH            {R0-R2,R4-R7,LR}                                       ; +0x2, 0x5fef3e\nADD             R3, PC; __stack_chk_guard_ptr                          ; +0x4, 0x5fef40\nLDR             R3, [R3]; __stack_chk_guard                            ; +0x6, 0x5fef42\nLDR.W           R1, [R0,#0xC8]                                         ; +0x8, 0x5fef44\nMOV             R5, R0                                                 ; +0xc, 0x5fef48\nLDR             R2, [R3]                                               ; +0xe, 0x5fef4a\nMOV             R4, R3                                                 ; +0x10, 0x5fef4c\nSTR             R2, [SP,#0xC+var_8]                                    ; +0x12, 0x5fef4e\nLDR.W           R2, [R0,#0xCC]                                         ; +0x14, 0x5fef50\nSUBS            R2, R2, R1                                             ; +0x18, 0x5fef54\nCMP             R2, #7                                                 ; +0x1a, 0x5fef56\nBLS             loc_5FEF90                                             ; +0x1c, 0x5fef58\nADD.W           R7, R0, #0xC8                                          ; +0x1e, 0x5fef5a\nSTR.W           R1, [R0,#0xCC]                                         ; +0x22, 0x5fef5e\nMOV             R0, SP; this                                           ; +0x26, 0x5fef62\nBL              _ZN4pugi8xml_nodeC1Ev; pugi::xml_node::xml_node(void)  ; +0x28, 0x5fef64\nMOV             R0, R7                                                 ; +0x2c, 0x5fef68\nMOV             R1, SP                                                 ; +0x2e, 0x5fef6a\nBL              _ZNSt6vectorIN4pugi8xml_nodeESaIS1_EE12emplace_backIJS1_EEEvDpOT_; std::vector<pugi::xml_node>::emplace_back<pugi::xml_node>(pugi::xml_node &&) ; +0x30, 0x5fef6c\nMOV             R0, R7                                                 ; +0x34, 0x5fef70\nBL              _ZNSt6vectorIN4pugi8xml_nodeESaIS1_EE4backEv; std::vector<pugi::xml_node>::back(void) ; +0x36, 0x5fef72\nLDR             R1, =(aPlist_0 - 0x5FEF7C); \"plist\"                    ; +0x3a, 0x5fef76\nADD             R1, PC; \"plist\"                                        ; +0x3c, 0x5fef78\nMOV             R7, R0                                                 ; +0x3e, 0x5fef7a\nMOV             R0, R5; this                                           ; +0x40, 0x5fef7c\nBL              _ZNK4pugi8xml_node5childEPKc; pugi::xml_node::child(char const*) ; +0x42, 0x5fef7e\nLDR             R1, =(aDict_1 - 0x5FEF88); \"dict\"                      ; +0x46, 0x5fef82\nADD             R1, PC; \"dict\"                                         ; +0x48, 0x5fef84\nSTR             R0, [SP,#0xC+var_C]                                    ; +0x4a, 0x5fef86\nMOV             R0, SP; this                                           ; +0x4c, 0x5fef88\nBL              _ZNK4pugi8xml_node5childEPKc; pugi::xml_node::child(char const*) ; +0x4e, 0x5fef8a\nSTR             R0, [R7]                                               ; +0x52, 0x5fef8e\nLDR             R2, [SP,#0xC+var_8]                                    ; +0x54, 0x5fef90\nLDR             R3, [R4]                                               ; +0x56, 0x5fef92\nCMP             R2, R3                                                 ; +0x58, 0x5fef94\nBEQ             loc_5FEF9C                                             ; +0x5a, 0x5fef96\nBLX             __stack_chk_fail                                       ; +0x5c, 0x5fef98\nADD             SP, SP, #0xC                                           ; +0x60, 0x5fef9c\nPOP             {R4-R7,PC}                                             ; +0x62, 0x5fef9e", "xrefs": ["CCAnimateFrameCache::addDict @ 0x2e4a18"], "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"}