{"type": "func", "start": 11829708, "end": 11829920, "name": "DS_Dictionary::stepBackToRootSubDict", "pseudocode": "// \n// DS_Dictionary::stepBackToRootSubDict from 0xb481cc to 0xb482a0 (212 bytes)\n// \n// 2 xrefs:\n// > CCAnimateFrameCache::addDict @ 0x5723a4\n// > <???> @ 0x5b488\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; // x1\n  pugi::xml_node *m_finish; // x1\n  pugi::xml_node *v4; // x1\n  pugi::xml_node *v5; // x19\n  pugi::xml_node v6; // [xsp+30h] [xbp+30h] BYREF\n\n  m_start = a1->dictTree.m_start;\n  if ( (pugi::xml_node *)((char *)a1->dictTree.m_finish - (char *)m_start) > (pugi::xml_node *)&byte_9[6] )\n  {\n    a1->dictTree.m_finish = m_start;\n    pugi::xml_node::xml_node(&v6);\n    m_finish = a1->dictTree.m_finish;\n    if ( m_finish == a1->dictTree.m_reserveEnd )\n    {\n      std::vector<pugi::xml_node>::_M_emplace_back_aux<pugi::xml_node>((__int64)&a1->dictTree, &v6);\n      v5 = a1->dictTree.m_finish;\n    }\n    else\n    {\n      if ( m_finish )\n        m_finish->_root = v6._root;\n      v4 = m_finish + 1;\n      a1->dictTree.m_finish = v4;\n      v5 = v4;\n    }\n    v6._root = (pugi::xml_node_struct *)pugi::xml_node::child(&a1->doc, \"plist\");\n    v5[-1]._root = (pugi::xml_node_struct *)pugi::xml_node::child(&v6, \"dict\");\n  }\n}", "assembly": "; \n; DS_Dictionary::stepBackToRootSubDict from 0xb481cc to 0xb482a0 (212 bytes)\n; \n; 2 xrefs:\n; > CCAnimateFrameCache::addDict @ 0x5723a4\n; > <???> @ 0x5b488\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\nSTP             X29, X30, [SP,#var_40]!                                ; +0x0, 0xb481cc\nMOV             X29, SP                                                ; +0x4, 0xb481d0\nSTP             X19, X20, [SP,#0x40+var_30]                            ; +0x8, 0xb481d4\nADRP            X20, #__stack_chk_guard_ptr@PAGE                       ; +0xc, 0xb481d8\nLDR             X1, [X0,#0xD0]                                         ; +0x10, 0xb481dc\nSTP             X21, X22, [SP,#0x40+var_20]                            ; +0x14, 0xb481e0\nMOV             X21, X0                                                ; +0x18, 0xb481e4\nLDR             X0, [X0,#0xD8]                                         ; +0x1c, 0xb481e8\nLDR             X2, [X20,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x20, 0xb481ec\nSUB             X0, X0, X1                                             ; +0x24, 0xb481f0\nCMP             X0, #0xF                                               ; +0x28, 0xb481f4\nLDR             X2, [X2]                                               ; +0x2c, 0xb481f8\nSTR             X2, [X29,#0x40+var_8]                                  ; +0x30, 0xb481fc\nB.LS            loc_B48268                                             ; +0x34, 0xb48200\nADD             X22, X29, #0x40+var_10                                 ; +0x38, 0xb48204\nSTR             X1, [X21,#0xD8]                                        ; +0x3c, 0xb48208\nMOV             X0, X22; this                                          ; +0x40, 0xb4820c\nBL              _ZN4pugi8xml_nodeC2Ev; pugi::xml_node::xml_node(void)  ; +0x44, 0xb48210\nLDR             X1, [X21,#0xD8]                                        ; +0x48, 0xb48214\nADD             X0, X21, #0xD0                                         ; +0x4c, 0xb48218\nLDR             X2, [X0,#0x10]                                         ; +0x50, 0xb4821c\nCMP             X1, X2                                                 ; +0x54, 0xb48220\nB.EQ            loc_B4828C                                             ; +0x58, 0xb48224\nCBZ             X1, loc_B48234                                         ; +0x5c, 0xb48228\nLDR             X2, [X29,#0x40+var_10]                                 ; +0x60, 0xb4822c\nSTR             X2, [X1]                                               ; +0x64, 0xb48230\nADD             X1, X1, #8                                             ; +0x68, 0xb48234\nSTR             X1, [X0,#8]                                            ; +0x6c, 0xb48238\nMOV             X19, X1                                                ; +0x70, 0xb4823c\nADRP            X1, #(aLevelcomplete0+0x10)@PAGE; \"plist\"              ; +0x74, 0xb48240\nMOV             X0, X21; this                                          ; +0x78, 0xb48244\nADD             X1, X1, #(aLevelcomplete0+0x10)@PAGEOFF; char *        ; +0x7c, 0xb48248\nBL              _ZNK4pugi8xml_node5childEPKc; pugi::xml_node::child(char const*) ; +0x80, 0xb4824c\nSTR             X0, [X29,#0x40+var_10]                                 ; +0x84, 0xb48250\nADRP            X1, #aDict@PAGE; \"dict\"                                ; +0x88, 0xb48254\nMOV             X0, X22; this                                          ; +0x8c, 0xb48258\nADD             X1, X1, #aDict@PAGEOFF; \"dict\"                         ; +0x90, 0xb4825c\nBL              _ZNK4pugi8xml_node5childEPKc; pugi::xml_node::child(char const*) ; +0x94, 0xb48260\nSTUR            X0, [X19,#-8]                                          ; +0x98, 0xb48264\nLDR             X20, [X20,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x9c, 0xb48268\nLDR             X1, [X29,#0x40+var_8]                                  ; +0xa0, 0xb4826c\nLDR             X0, [X20]                                              ; +0xa4, 0xb48270\nCMP             X1, X0                                                 ; +0xa8, 0xb48274\nB.NE            loc_B4829C                                             ; +0xac, 0xb48278\nLDP             X19, X20, [SP,#0x40+var_30]                            ; +0xb0, 0xb4827c\nLDP             X21, X22, [SP,#0x40+var_20]                            ; +0xb4, 0xb48280\nLDP             X29, X30, [SP+0x40+var_40],#0x40                       ; +0xb8, 0xb48284\nRET                                                                    ; +0xbc, 0xb48288\nMOV             X1, X22                                                ; +0xc0, 0xb4828c\nBL              _ZNSt6vectorIN4pugi8xml_nodeESaIS1_EE19_M_emplace_back_auxIJS1_EEEvDpOT_; std::vector<pugi::xml_node>::_M_emplace_back_aux<pugi::xml_node>(pugi::xml_node &&) ; +0xc4, 0xb48290\nLDR             X19, [X21,#0xD8]                                       ; +0xc8, 0xb48294\nB               loc_B48240                                             ; +0xcc, 0xb48298\nBL              .__stack_chk_fail                                      ; +0xd0, 0xb4829c", "xrefs": ["CCAnimateFrameCache::addDict @ 0x5723a4", "<???> @ 0x5b488"], "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"}