{"type": "func", "start": 6278220, "end": 6278344, "name": "DS_Dictionary::getKey", "pseudocode": "// \n// DS_Dictionary::getKey from 0x5fcc4c to 0x5fccc8 (124 bytes)\n// \n// 3 xrefs:\n// > CCAnimateFrameCache::addDict @ 0x2e4996\n// > CCAnimateFrameCache::addDict @ 0x2e4a98\n// > DS_Dictionary::getArrayForKey @ 0x5ff864\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\nDS_Dictionary *__fastcall DS_Dictionary::getKey(DS_Dictionary *this, unsigned int a2, int a3)\n{\n  int v5; // r7\n  pugi::xml_node *v6; // r0\n  char *v7; // r0\n  pugi::xml_node v9; // [sp+4h] [bp-10h] BYREF\n  pugi::xml_node v10; // [sp+8h] [bp-Ch] BYREF\n\n  v5 = 0;\n  v6 = (pugi::xml_node *)std::vector<pugi::xml_node>::back(a2 + 200);\n  for ( v9._root = (pugi::xml_node_struct *)pugi::xml_node::first_child(v6);\n        pugi::xml_node::operator void (*)(pugi::xml_node***)(&v9);\n        v9._root = (pugi::xml_node_struct *)pugi::xml_node::next_sibling(&v10) )\n  {\n    if ( v5 == a3 )\n    {\n      v7 = (char *)pugi::xml_node::child_value(&v9);\n      sub_776584((int)this, v7);\n      return this;\n    }\n    ++v5;\n    v10._root = (pugi::xml_node_struct *)pugi::xml_node::next_sibling(&v9);\n  }\n  this->doc._root = (pugi::xml_node_struct *)&unk_ACDDA8;\n  return this;\n}", "assembly": "; \n; DS_Dictionary::getKey from 0x5fcc4c to 0x5fccc8 (124 bytes)\n; \n; 3 xrefs:\n; > CCAnimateFrameCache::addDict @ 0x2e4996\n; > CCAnimateFrameCache::addDict @ 0x2e4a98\n; > DS_Dictionary::getArrayForKey @ 0x5ff864\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-R9,LR}                                             ; +0x0, 0x5fcc4c\nSUB             SP, SP, #0x14                                          ; +0x4, 0x5fcc50\nLDR             R5, =(__stack_chk_guard_ptr - 0x5FCC60)                ; +0x6, 0x5fcc52\nMOV             R6, R0                                                 ; +0x8, 0x5fcc54\nADD.W           R0, R1, #0xC8                                          ; +0xa, 0x5fcc56\nMOV             R9, R2                                                 ; +0xe, 0x5fcc5a\nADD             R5, PC; __stack_chk_guard_ptr                          ; +0x10, 0x5fcc5c\nLDR             R5, [R5]; __stack_chk_guard                            ; +0x12, 0x5fcc5e\nADD             R4, SP, #0x14+var_4                                    ; +0x14, 0x5fcc60\nADD.W           R8, SP, #0x14+var_C                                    ; +0x16, 0x5fcc62\nMOVS            R7, #0                                                 ; +0x1a, 0x5fcc66\nLDR             R3, [R5]                                               ; +0x1c, 0x5fcc68\nSTR             R3, [SP,#0x14+var_8]                                   ; +0x1e, 0x5fcc6a\nBL              _ZNSt6vectorIN4pugi8xml_nodeESaIS1_EE4backEv; std::vector<pugi::xml_node>::back(void) ; +0x20, 0x5fcc6c\nBL              _ZNK4pugi8xml_node11first_childEv; pugi::xml_node::first_child(void) ; +0x24, 0x5fcc70\nSTR.W           R0, [R4,#-0xC]!                                        ; +0x28, 0x5fcc74\nMOV             R0, R4                                                 ; +0x2c, 0x5fcc78\nBL              _ZNK4pugi8xml_nodecvPFvPPPS0_EEv; pugi::xml_node::operator void (*)(pugi::xml_node***)(void) ; +0x2e, 0x5fcc7a\nCBZ             R0, loc_5FCCAA                                         ; +0x32, 0x5fcc7e\nCMP             R7, R9                                                 ; +0x34, 0x5fcc80\nBNE             loc_5FCC96                                             ; +0x36, 0x5fcc82\nMOV             R0, R4; this                                           ; +0x38, 0x5fcc84\nBL              _ZNK4pugi8xml_node11child_valueEv; pugi::xml_node::child_value(void) ; +0x3a, 0x5fcc86\nMOV             R2, R8                                                 ; +0x3e, 0x5fcc8a\nMOV             R1, R0; char *                                         ; +0x40, 0x5fcc8c\nMOV             R0, R6; int                                            ; +0x42, 0x5fcc8e\nBL              sub_776584                                             ; +0x44, 0x5fcc90\nB               loc_5FCCB4                                             ; +0x48, 0x5fcc94\nMOV             R0, R4; this                                           ; +0x4a, 0x5fcc96\nADDS            R7, #1                                                 ; +0x4c, 0x5fcc98\nBL              _ZNK4pugi8xml_node12next_siblingEv; pugi::xml_node::next_sibling(void) ; +0x4e, 0x5fcc9a\nSTR             R0, [SP,#0x14+var_C]                                   ; +0x52, 0x5fcc9e\nMOV             R0, R8; this                                           ; +0x54, 0x5fcca0\nBL              _ZNK4pugi8xml_node12next_siblingEv; pugi::xml_node::next_sibling(void) ; +0x56, 0x5fcca2\nSTR             R0, [SP,#0x14+var_10]                                  ; +0x5a, 0x5fcca6\nB               loc_5FCC78                                             ; +0x5c, 0x5fcca8\nLDR             R3, =(off_AB5BA0 - 0x5FCCB0)                           ; +0x5e, 0x5fccaa\nADD             R3, PC; off_AB5BA0                                     ; +0x60, 0x5fccac\nLDR             R3, [R3]; dword_ACDD9C                                 ; +0x62, 0x5fccae\nADDS            R3, #0xC                                               ; +0x64, 0x5fccb0\nSTR             R3, [R6]                                               ; +0x66, 0x5fccb2\nLDR             R2, [SP,#0x14+var_8]                                   ; +0x68, 0x5fccb4\nMOV             R0, R6                                                 ; +0x6a, 0x5fccb6\nLDR             R3, [R5]                                               ; +0x6c, 0x5fccb8\nCMP             R2, R3                                                 ; +0x6e, 0x5fccba\nBEQ             loc_5FCCC2                                             ; +0x70, 0x5fccbc\nBLX             __stack_chk_fail                                       ; +0x72, 0x5fccbe\nADD             SP, SP, #0x14                                          ; +0x76, 0x5fccc2\nPOP.W           {R4-R9,PC}                                             ; +0x78, 0x5fccc4", "xrefs": ["CCAnimateFrameCache::addDict @ 0x2e4996", "CCAnimateFrameCache::addDict @ 0x2e4a98", "DS_Dictionary::getArrayForKey @ 0x5ff864"], "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"}