{"type": "func", "start": 11820804, "end": 11821156, "name": "DS_Dictionary::stepIntoSubDictWithKey", "pseudocode": "// \n// DS_Dictionary::stepIntoSubDictWithKey from 0xb45f04 to 0xb46064 (352 bytes)\n// \n// 13 xrefs:\n// > CCAnimateFrameCache::addDict @ 0x57224c\n// > CCAnimateFrameCache::addDict @ 0x57228c\n// > CCAnimateFrameCache::addDict @ 0x5722f8\n// > CCAnimateFrameCache::addDict @ 0x5723b0\n// > CCAnimateFrameCache::addDict @ 0x572614\n// > DS_Dictionary::decodeObjectForKey @ 0xb460bc\n// > DS_Dictionary::setBoolMapForKey @ 0xb4631c\n// > DS_Dictionary::setDictForKey @ 0xb46744\n// > DS_Dictionary::getDictForKey @ 0xb46b64\n// > DS_Dictionary::getArrayForKey @ 0xb46ffc\n// > DS_Dictionary::addBoolValuesToMapForKeySpecial @ 0xb49a24\n// > DS_Dictionary::addBoolValuesToMapForKey @ 0xb4a02c\n// > <???> @ 0xa0080\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\nbool DS_Dictionary::stepIntoSubDictWithKey(DS_Dictionary *a1, const char *a2)\n{\n  _BOOL4 compatible; // w1\n  pugi::xml_node *v5; // x0\n  const char *v6; // x1\n  const char *v7; // x1\n  __int64 v8; // x0\n  const char *v9; // x0\n  const char *v10; // x27\n  const char *v11; // x0\n  pugi::xml_node *m_finish; // x1\n  pugi::xml_node v14; // [xsp+68h] [xbp+68h] BYREF\n  pugi::xml_node v15; // [xsp+70h] [xbp+70h] BYREF\n\n  compatible = a1->compatible;\n  v5 = a1->dictTree.m_finish - 1;\n  if ( compatible )\n    v6 = \"key\";\n  else\n    v6 = \"k\";\n  for ( v14._root = (pugi::xml_node_struct *)pugi::xml_node::child(v5, v6);\n        ;\n        v14._root = (pugi::xml_node_struct *)pugi::xml_node::next_sibling(&v14, v7) )\n  {\n    v8 = pugi::xml_node::operator void (*)(pugi::xml_node***)(&v14);\n    if ( !v8 )\n      break;\n    v9 = (const char *)pugi::xml_node::child_value(&v14);\n    if ( !strcmp(v9, a2) )\n    {\n      v15._root = (pugi::xml_node_struct *)pugi::xml_node::next_sibling(&v14);\n      v10 = a1->compatible ? \"dict\" : &byte_F27208;\n      v11 = (const char *)pugi::xml_node::name(&v15);\n      if ( !strcmp(v10, v11) )\n      {\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 const&>((__int64)&a1->dictTree, &v15);\n          LOBYTE(v8) = 1;\n        }\n        else\n        {\n          if ( m_finish )\n            m_finish->_root = v15._root;\n          a1->dictTree.m_finish = m_finish + 1;\n          LOBYTE(v8) = 1;\n        }\n        return v8;\n      }\n    }\n    v7 = \"key\";\n    if ( !a1->compatible )\n      v7 = \"k\";\n  }\n  return v8;\n}", "assembly": "; \n; DS_Dictionary::stepIntoSubDictWithKey from 0xb45f04 to 0xb46064 (352 bytes)\n; \n; 13 xrefs:\n; > CCAnimateFrameCache::addDict @ 0x57224c\n; > CCAnimateFrameCache::addDict @ 0x57228c\n; > CCAnimateFrameCache::addDict @ 0x5722f8\n; > CCAnimateFrameCache::addDict @ 0x5723b0\n; > CCAnimateFrameCache::addDict @ 0x572614\n; > DS_Dictionary::decodeObjectForKey @ 0xb460bc\n; > DS_Dictionary::setBoolMapForKey @ 0xb4631c\n; > DS_Dictionary::setDictForKey @ 0xb46744\n; > DS_Dictionary::getDictForKey @ 0xb46b64\n; > DS_Dictionary::getArrayForKey @ 0xb46ffc\n; > DS_Dictionary::addBoolValuesToMapForKeySpecial @ 0xb49a24\n; > DS_Dictionary::addBoolValuesToMapForKey @ 0xb4a02c\n; > <???> @ 0xa0080\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_80]!                                ; +0x0, 0xb45f04\nMOV             X29, SP                                                ; +0x4, 0xb45f08\nSTP             X25, X26, [SP,#0x80+var_40]                            ; +0x8, 0xb45f0c\nADRP            X26, #__stack_chk_guard_ptr@PAGE                       ; +0xc, 0xb45f10\nSTR             X27, [SP,#0x80+var_30]                                 ; +0x10, 0xb45f14\nSTP             X21, X22, [SP,#0x80+var_60]                            ; +0x14, 0xb45f18\nMOV             X21, X1                                                ; +0x18, 0xb45f1c\nLDRB            W1, [X0,#0xE8]                                         ; +0x1c, 0xb45f20\nLDR             X2, [X26,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x20, 0xb45f24\nSTP             X19, X20, [SP,#0x80+var_70]                            ; +0x24, 0xb45f28\nSTP             X23, X24, [SP,#0x80+var_50]                            ; +0x28, 0xb45f2c\nLDR             X2, [X2]                                               ; +0x2c, 0xb45f30\nMOV             X20, X0                                                ; +0x30, 0xb45f34\nSTR             X2, [X29,#0x80+var_8]                                  ; +0x34, 0xb45f38\nLDR             X0, [X0,#0xD8]                                         ; +0x38, 0xb45f3c\nSUB             X0, X0, #8; this                                       ; +0x3c, 0xb45f40\nCBNZ            W1, loc_B46044                                         ; +0x40, 0xb45f44\nADRL            X1, (aNoVerifyCookie+0x18); char *                     ; +0x44, 0xb45f48\nADD             X19, X29, #0x80+arg_0                                  ; +0x4c, 0xb45f50\nADRP            X24, #aDict@PAGE; \"dict\"                               ; +0x50, 0xb45f54\nADRP            X23, #byte_F27208@PAGE                                 ; +0x54, 0xb45f58\nBL              _ZNK4pugi8xml_node5childEPKc; pugi::xml_node::child(char const*) ; +0x58, 0xb45f5c\nADD             X25, X29, #0x80+var_10                                 ; +0x5c, 0xb45f60\nADRP            X22, #(aExpectingADsaK+0x10)@PAGE; \"key\"               ; +0x60, 0xb45f64\nADD             X24, X24, #aDict@PAGEOFF; \"dict\"                       ; +0x64, 0xb45f68\nADD             X23, X23, #byte_F27208@PAGEOFF                         ; +0x68, 0xb45f6c\nSTR             X0, [X19,#-0x18]!                                      ; +0x6c, 0xb45f70\nB               loc_B45F98                                             ; +0x70, 0xb45f74\nLDRB            W0, [X20,#0xE8]                                        ; +0x74, 0xb45f78\nADD             X1, X22, #(aExpectingADsaK+0x10)@PAGEOFF; \"key\"        ; +0x78, 0xb45f7c\nCBNZ            W0, loc_B45F8C                                         ; +0x7c, 0xb45f80\nADRL            X1, (aNoVerifyCookie+0x18); char *                     ; +0x80, 0xb45f84\nMOV             X0, X19; this                                          ; +0x88, 0xb45f8c\nBL              _ZNK4pugi8xml_node12next_siblingEPKc; pugi::xml_node::next_sibling(char const*) ; +0x8c, 0xb45f90\nSTR             X0, [X29,#0x80+var_18]                                 ; +0x90, 0xb45f94\nMOV             X0, X19                                                ; +0x94, 0xb45f98\nBL              _ZNK4pugi8xml_nodecvPFvPPPS0_EEv; pugi::xml_node::operator void (*)(pugi::xml_node***)(void) ; +0x98, 0xb45f9c\nCBZ             X0, loc_B46014                                         ; +0x9c, 0xb45fa0\nMOV             X0, X19; this                                          ; +0xa0, 0xb45fa4\nBL              _ZNK4pugi8xml_node11child_valueEv; pugi::xml_node::child_value(void) ; +0xa4, 0xb45fa8\nMOV             X1, X21; char *                                        ; +0xa8, 0xb45fac\nBL              .strcmp                                                ; +0xac, 0xb45fb0\nCBNZ            W0, loc_B45F78                                         ; +0xb0, 0xb45fb4\nMOV             X0, X19; this                                          ; +0xb4, 0xb45fb8\nBL              _ZNK4pugi8xml_node12next_siblingEv; pugi::xml_node::next_sibling(void) ; +0xb8, 0xb45fbc\nSTR             X0, [X29,#0x80+var_10]                                 ; +0xbc, 0xb45fc0\nLDRB            W1, [X20,#0xE8]                                        ; +0xc0, 0xb45fc4\nMOV             X0, X25; this                                          ; +0xc4, 0xb45fc8\nCMP             W1, WZR                                                ; +0xc8, 0xb45fcc\nCSEL            X27, X24, X23, NE                                      ; +0xcc, 0xb45fd0\nBL              _ZNK4pugi8xml_node4nameEv; pugi::xml_node::name(void)  ; +0xd0, 0xb45fd4\nMOV             X1, X0; char *                                         ; +0xd4, 0xb45fd8\nMOV             X0, X27; char *                                        ; +0xd8, 0xb45fdc\nBL              .strcmp                                                ; +0xdc, 0xb45fe0\nCBNZ            W0, loc_B45F78                                         ; +0xe0, 0xb45fe4\nADD             X0, X20, #0xD0                                         ; +0xe4, 0xb45fe8\nLDR             X1, [X0,#8]                                            ; +0xe8, 0xb45fec\nLDR             X2, [X0,#0x10]                                         ; +0xec, 0xb45ff0\nCMP             X1, X2                                                 ; +0xf0, 0xb45ff4\nB.EQ            loc_B46050                                             ; +0xf4, 0xb45ff8\nCBZ             X1, loc_B46008                                         ; +0xf8, 0xb45ffc\nLDR             X2, [X29,#0x80+var_10]                                 ; +0xfc, 0xb46000\nSTR             X2, [X1]                                               ; +0x100, 0xb46004\nADD             X1, X1, #8                                             ; +0x104, 0xb46008\nSTR             X1, [X0,#8]                                            ; +0x108, 0xb4600c\nMOV             W0, #1                                                 ; +0x10c, 0xb46010\nLDR             X26, [X26,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x110, 0xb46014\nLDR             X2, [X29,#0x80+var_8]                                  ; +0x114, 0xb46018\nLDR             X1, [X26]                                              ; +0x118, 0xb4601c\nCMP             X2, X1                                                 ; +0x11c, 0xb46020\nB.NE            loc_B46060                                             ; +0x120, 0xb46024\nLDP             X19, X20, [SP,#0x80+var_70]                            ; +0x124, 0xb46028\nLDP             X21, X22, [SP,#0x80+var_60]                            ; +0x128, 0xb4602c\nLDP             X23, X24, [SP,#0x80+var_50]                            ; +0x12c, 0xb46030\nLDP             X25, X26, [SP,#0x80+var_40]                            ; +0x130, 0xb46034\nLDR             X27, [SP,#0x80+var_30]                                 ; +0x134, 0xb46038\nLDP             X29, X30, [SP+0x80+var_80],#0x80                       ; +0x138, 0xb4603c\nRET                                                                    ; +0x13c, 0xb46040\nADRL            X1, (aExpectingADsaK+0x10); \"key\"                      ; +0x140, 0xb46044\nB               loc_B45F50                                             ; +0x148, 0xb4604c\nMOV             X1, X25                                                ; +0x14c, 0xb46050\nBL              _ZNSt6vectorIN4pugi8xml_nodeESaIS1_EE19_M_emplace_back_auxIJRKS1_EEEvDpOT_; std::vector<pugi::xml_node>::_M_emplace_back_aux<pugi::xml_node const&>(pugi::xml_node const&) ; +0x150, 0xb46054\nMOV             W0, #1                                                 ; +0x154, 0xb46058\nB               loc_B46014                                             ; +0x158, 0xb4605c\nBL              .__stack_chk_fail                                      ; +0x15c, 0xb46060", "xrefs": ["CCAnimateFrameCache::addDict @ 0x57224c", "CCAnimateFrameCache::addDict @ 0x57228c", "CCAnimateFrameCache::addDict @ 0x5722f8", "CCAnimateFrameCache::addDict @ 0x5723b0", "CCAnimateFrameCache::addDict @ 0x572614", "DS_Dictionary::decodeObjectForKey @ 0xb460bc", "DS_Dictionary::setBoolMapForKey @ 0xb4631c", "DS_Dictionary::setDictForKey @ 0xb46744", "DS_Dictionary::getDictForKey @ 0xb46b64", "DS_Dictionary::getArrayForKey @ 0xb46ffc", "DS_Dictionary::addBoolValuesToMapForKeySpecial @ 0xb49a24", "DS_Dictionary::addBoolValuesToMapForKey @ 0xb4a02c", "<???> @ 0xa0080"], "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"}