{"type": "func", "start": 6287404, "end": 6287606, "name": "DS_Dictionary::stepIntoSubDictWithKey", "pseudocode": "// \n// DS_Dictionary::stepIntoSubDictWithKey from 0x5ff02c to 0x5ff0f6 (202 bytes)\n// \n// 12 xrefs:\n// > CCAnimateFrameCache::addDict @ 0x2e497a\n// > CCAnimateFrameCache::addDict @ 0x2e499e\n// > CCAnimateFrameCache::addDict @ 0x2e49e2\n// > CCAnimateFrameCache::addDict @ 0x2e4a22\n// > CCAnimateFrameCache::addDict @ 0x2e4ab0\n// > DS_Dictionary::decodeObjectForKey @ 0x5ff11c\n// > DS_Dictionary::setBoolMapForKey @ 0x5ff2b0\n// > DS_Dictionary::setDictForKey @ 0x5ff48a\n// > DS_Dictionary::getDictForKey @ 0x5ff51a\n// > DS_Dictionary::getArrayForKey @ 0x5ff828\n// > DS_Dictionary::addBoolValuesToMapForKeySpecial @ 0x5ffa96\n// > DS_Dictionary::addBoolValuesToMapForKey @ 0x5ffb80\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  char **p_dictTree; // r6\n  pugi::xml_node *v5; // r0\n  const char *v6; // r1\n  int v7; // r0\n  const char *v8; // r0\n  pugi::xml_node_struct *v9; // r0\n  char *v10; // r2\n  const char *v11; // r0\n  const char *v12; // r1\n  char *v14; // [sp+Ch] [bp-18h]\n  pugi::xml_node v15; // [sp+14h] [bp-10h] BYREF\n  pugi::xml_node v16; // [sp+18h] [bp-Ch] BYREF\n\n  p_dictTree = (char **)&a1->dictTree;\n  v5 = (pugi::xml_node *)std::vector<pugi::xml_node>::back((int)&a1->dictTree);\n  if ( a1->compatible )\n    v6 = \"key\";\n  else\n    v6 = \"k\";\n  for ( v15._root = (pugi::xml_node_struct *)pugi::xml_node::child(v5, v6);\n        ;\n        v15._root = (pugi::xml_node_struct *)pugi::xml_node::next_sibling(&v15, v12) )\n  {\n    v7 = pugi::xml_node::operator void (*)(pugi::xml_node***)(&v15);\n    if ( !v7 )\n      break;\n    v8 = (const char *)pugi::xml_node::child_value(&v15);\n    if ( !strcmp(v8, a2) )\n    {\n      v9 = (pugi::xml_node_struct *)pugi::xml_node::next_sibling(&v15);\n      v10 = a1->compatible ? \"dict\" : \"d\";\n      v16._root = v9;\n      v14 = v10;\n      v11 = (const char *)pugi::xml_node::name(&v16);\n      if ( !strcmp(v14, v11) )\n      {\n        std::vector<pugi::xml_node>::push_back(p_dictTree, &v16);\n        LOBYTE(v7) = 1;\n        return v7;\n      }\n    }\n    if ( a1->compatible )\n      v12 = \"key\";\n    else\n      v12 = \"k\";\n  }\n  return v7;\n}", "assembly": "; \n; DS_Dictionary::stepIntoSubDictWithKey from 0x5ff02c to 0x5ff0f6 (202 bytes)\n; \n; 12 xrefs:\n; > CCAnimateFrameCache::addDict @ 0x2e497a\n; > CCAnimateFrameCache::addDict @ 0x2e499e\n; > CCAnimateFrameCache::addDict @ 0x2e49e2\n; > CCAnimateFrameCache::addDict @ 0x2e4a22\n; > CCAnimateFrameCache::addDict @ 0x2e4ab0\n; > DS_Dictionary::decodeObjectForKey @ 0x5ff11c\n; > DS_Dictionary::setBoolMapForKey @ 0x5ff2b0\n; > DS_Dictionary::setDictForKey @ 0x5ff48a\n; > DS_Dictionary::getDictForKey @ 0x5ff51a\n; > DS_Dictionary::getArrayForKey @ 0x5ff828\n; > DS_Dictionary::addBoolValuesToMapForKeySpecial @ 0x5ffa96\n; > DS_Dictionary::addBoolValuesToMapForKey @ 0x5ffb80\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          {R4-R11,LR}                                            ; +0x0, 0x5ff02c\nADD.W           R6, R0, #0xC8                                          ; +0x4, 0x5ff030\nLDR             R4, =(__stack_chk_guard_ptr - 0x5FF040)                ; +0x8, 0x5ff034\nSUB             SP, SP, #0x24                                          ; +0xa, 0x5ff036\nMOV             R5, R0                                                 ; +0xc, 0x5ff038\nMOV             R0, R6                                                 ; +0xe, 0x5ff03a\nADD             R4, PC; __stack_chk_guard_ptr                          ; +0x10, 0x5ff03c\nLDR             R4, [R4]; __stack_chk_guard                            ; +0x12, 0x5ff03e\nMOV             R7, R1                                                 ; +0x14, 0x5ff040\nLDR             R3, [R4]                                               ; +0x16, 0x5ff042\nSTR             R3, [SP,#0x24+var_8]                                   ; +0x18, 0x5ff044\nBL              _ZNSt6vectorIN4pugi8xml_nodeESaIS1_EE4backEv; std::vector<pugi::xml_node>::back(void) ; +0x1a, 0x5ff046\nLDRB.W          R3, [R5,#0xD4]                                         ; +0x1e, 0x5ff04a\nSTR             R4, [SP,#0x24+var_20]                                  ; +0x22, 0x5ff04e\nCBNZ            R3, loc_5FF058                                         ; +0x24, 0x5ff050\nLDR             R1, =(aK_0 - 0x5FF058); \"k\"                            ; +0x26, 0x5ff052\nADD             R1, PC; \"k\"                                            ; +0x28, 0x5ff054\nB               loc_5FF05C                                             ; +0x2a, 0x5ff056\nLDR             R1, =(aKey - 0x5FF05E); \"key\"                          ; +0x2c, 0x5ff058\nADD             R1, PC; \"key\"                                          ; +0x2e, 0x5ff05a\nBL              _ZNK4pugi8xml_node5childEPKc; pugi::xml_node::child(char const*) ; +0x30, 0x5ff05c\nLDR.W           R8, =(aDict_1 - 0x5FF070); \"dict\"                      ; +0x34, 0x5ff060\nLDR.W           R9, =(aD_0 - 0x5FF076); \"d\"                            ; +0x38, 0x5ff064\nLDR.W           R10, =(aKey - 0x5FF078); \"key\"                         ; +0x3c, 0x5ff068\nADD             R8, PC; \"dict\"                                         ; +0x40, 0x5ff06c\nLDR.W           R11, =(aK_0 - 0x5FF07A); \"k\"                           ; +0x42, 0x5ff06e\nADD             R9, PC; \"d\"                                            ; +0x46, 0x5ff072\nADD             R10, PC; \"key\"                                         ; +0x48, 0x5ff074\nADD             R11, PC; \"k\"                                           ; +0x4a, 0x5ff076\nSTR             R0, [SP,#0x24+var_10]                                  ; +0x4c, 0x5ff078\nADD             R4, SP, #0x24+var_10                                   ; +0x4e, 0x5ff07a\nMOV             R0, R4                                                 ; +0x50, 0x5ff07c\nBL              _ZNK4pugi8xml_nodecvPFvPPPS0_EEv; pugi::xml_node::operator void (*)(pugi::xml_node***)(void) ; +0x52, 0x5ff07e\nCBZ             R0, loc_5FF0E2                                         ; +0x56, 0x5ff082\nMOV             R0, R4; this                                           ; +0x58, 0x5ff084\nBL              _ZNK4pugi8xml_node11child_valueEv; pugi::xml_node::child_value(void) ; +0x5a, 0x5ff086\nMOV             R1, R7; char *                                         ; +0x5e, 0x5ff08a\nBLX             strcmp                                                 ; +0x60, 0x5ff08c\nCBNZ            R0, loc_5FF0CC                                         ; +0x64, 0x5ff090\nMOV             R0, R4; this                                           ; +0x66, 0x5ff092\nBL              _ZNK4pugi8xml_node12next_siblingEv; pugi::xml_node::next_sibling(void) ; +0x68, 0x5ff094\nLDRB.W          R3, [R5,#0xD4]                                         ; +0x6c, 0x5ff098\nCMP             R3, #0                                                 ; +0x70, 0x5ff09c\nADD             R3, SP, #0x24+var_C                                    ; +0x72, 0x5ff09e\nSTR             R3, [SP,#0x24+var_1C]                                  ; +0x74, 0x5ff0a0\nITE NE                                                                 ; +0x76, 0x5ff0a2\nMOVNE           R2, R8                                                 ; +0x78, 0x5ff0a4\nMOVEQ           R2, R9                                                 ; +0x7a, 0x5ff0a6\nSTR             R0, [SP,#0x24+var_C]                                   ; +0x7c, 0x5ff0a8\nMOV             R0, R3; this                                           ; +0x7e, 0x5ff0aa\nSTR             R2, [SP,#0x24+var_18]                                  ; +0x80, 0x5ff0ac\nBL              _ZNK4pugi8xml_node4nameEv; pugi::xml_node::name(void)  ; +0x82, 0x5ff0ae\nLDR             R2, [SP,#0x24+var_18]                                  ; +0x86, 0x5ff0b2\nMOV             R1, R0; char *                                         ; +0x88, 0x5ff0b4\nMOV             R0, R2; char *                                         ; +0x8a, 0x5ff0b6\nBLX             strcmp                                                 ; +0x8c, 0x5ff0b8\nLDR             R3, [SP,#0x24+var_1C]                                  ; +0x90, 0x5ff0bc\nCBNZ            R0, loc_5FF0CC                                         ; +0x92, 0x5ff0be\nMOV             R0, R6                                                 ; +0x94, 0x5ff0c0\nMOV             R1, R3                                                 ; +0x96, 0x5ff0c2\nBL              _ZNSt6vectorIN4pugi8xml_nodeESaIS1_EE9push_backERKS1_; std::vector<pugi::xml_node>::push_back(pugi::xml_node const&) ; +0x98, 0x5ff0c4\nMOVS            R0, #1                                                 ; +0x9c, 0x5ff0c8\nB               loc_5FF0E2                                             ; +0x9e, 0x5ff0ca\nLDRB.W          R3, [R5,#0xD4]                                         ; +0xa0, 0x5ff0cc\nMOV             R0, R4; this                                           ; +0xa4, 0x5ff0d0\nCMP             R3, #0                                                 ; +0xa6, 0x5ff0d2\nITE NE                                                                 ; +0xa8, 0x5ff0d4\nMOVNE           R1, R10                                                ; +0xaa, 0x5ff0d6\nMOVEQ           R1, R11; char *                                        ; +0xac, 0x5ff0d8\nBL              _ZNK4pugi8xml_node12next_siblingEPKc; pugi::xml_node::next_sibling(char const*) ; +0xae, 0x5ff0da\nSTR             R0, [SP,#0x24+var_10]                                  ; +0xb2, 0x5ff0de\nB               loc_5FF07A                                             ; +0xb4, 0x5ff0e0\nLDR             R3, [SP,#0x24+var_20]                                  ; +0xb6, 0x5ff0e2\nLDR             R2, [SP,#0x24+var_8]                                   ; +0xb8, 0x5ff0e4\nLDR             R3, [R3]                                               ; +0xba, 0x5ff0e6\nCMP             R2, R3                                                 ; +0xbc, 0x5ff0e8\nBEQ             loc_5FF0F0                                             ; +0xbe, 0x5ff0ea\nBLX             __stack_chk_fail                                       ; +0xc0, 0x5ff0ec\nADD             SP, SP, #0x24 ; '$'                                    ; +0xc4, 0x5ff0f0\nPOP.W           {R4-R11,PC}                                            ; +0xc6, 0x5ff0f2", "xrefs": ["CCAnimateFrameCache::addDict @ 0x2e497a", "CCAnimateFrameCache::addDict @ 0x2e499e", "CCAnimateFrameCache::addDict @ 0x2e49e2", "CCAnimateFrameCache::addDict @ 0x2e4a22", "CCAnimateFrameCache::addDict @ 0x2e4ab0", "DS_Dictionary::decodeObjectForKey @ 0x5ff11c", "DS_Dictionary::setBoolMapForKey @ 0x5ff2b0", "DS_Dictionary::setDictForKey @ 0x5ff48a", "DS_Dictionary::getDictForKey @ 0x5ff51a", "DS_Dictionary::getArrayForKey @ 0x5ff828", "DS_Dictionary::addBoolValuesToMapForKeySpecial @ 0x5ffa96", "DS_Dictionary::addBoolValuesToMapForKey @ 0x5ffb80"], "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"}