{"type": "func", "start": 6278844, "end": 6279012, "name": "DS_Dictionary::removeKey", "pseudocode": "// \n// DS_Dictionary::removeKey from 0x5fcebc to 0x5fcf64 (168 bytes)\n// \n// 6 xrefs:\n// > DS_Dictionary::setStringArrayForKey @ 0x5fd778\n// > DS_Dictionary::setVec2ForKey @ 0x5fd950\n// > DS_Dictionary::setRectForKey @ 0x5fdb2a\n// > DS_Dictionary::setVec2ArrayForKey @ 0x5fdca4\n// > DS_Dictionary::setRectArrayForKey @ 0x5fdec0\n// > DS_Dictionary::getArrayForKey @ 0x5ff84e\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::removeKey(DS_Dictionary *a1, const char *a2)\n{\n  std::vector<pugi::xml_node> *p_dictTree; // r6\n  pugi::xml_node *v5; // r0\n  const char *v6; // r1\n  const char *v7; // r0\n  pugi::xml_node *v8; // r7\n  pugi::xml_node *v9; // r0\n  const char *v10; // r1\n  pugi::xml_node v11; // [sp+4h] [bp-Ch] BYREF\n  pugi::xml_node v12; // [sp+8h] [bp-8h] BYREF\n\n  v11._root = (pugi::xml_node_struct *)a2;\n  p_dictTree = &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 ( v11._root = (pugi::xml_node_struct *)pugi::xml_node::child(v5, v6);\n        pugi::xml_node::operator void (*)(pugi::xml_node***)(&v11);\n        v11._root = (pugi::xml_node_struct *)pugi::xml_node::next_sibling(&v11, v10) )\n  {\n    v7 = (const char *)pugi::xml_node::child_value(&v11);\n    if ( !strcmp(v7, a2) )\n    {\n      v8 = (pugi::xml_node *)std::vector<pugi::xml_node>::back((int)p_dictTree);\n      v12._root = (pugi::xml_node_struct *)pugi::xml_node::next_sibling(&v11);\n      pugi::xml_node::remove_child(v8, &v12);\n      v9 = (pugi::xml_node *)std::vector<pugi::xml_node>::back((int)p_dictTree);\n      pugi::xml_node::remove_child(v9, &v11);\n      return;\n    }\n    if ( a1->compatible )\n      v10 = \"key\";\n    else\n      v10 = \"k\";\n  }\n}", "assembly": "; \n; DS_Dictionary::removeKey from 0x5fcebc to 0x5fcf64 (168 bytes)\n; \n; 6 xrefs:\n; > DS_Dictionary::setStringArrayForKey @ 0x5fd778\n; > DS_Dictionary::setVec2ForKey @ 0x5fd950\n; > DS_Dictionary::setRectForKey @ 0x5fdb2a\n; > DS_Dictionary::setVec2ArrayForKey @ 0x5fdca4\n; > DS_Dictionary::setRectArrayForKey @ 0x5fdec0\n; > DS_Dictionary::getArrayForKey @ 0x5ff84e\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          {R0-R10,LR}                                            ; +0x0, 0x5fcebc\nADD.W           R6, R0, #0xC8                                          ; +0x4, 0x5fcec0\nLDR             R5, =(__stack_chk_guard_ptr - 0x5FCED0)                ; +0x8, 0x5fcec4\nMOV             R7, R0                                                 ; +0xa, 0x5fcec6\nMOV             R0, R6                                                 ; +0xc, 0x5fcec8\nMOV             R8, R1                                                 ; +0xe, 0x5fceca\nADD             R5, PC; __stack_chk_guard_ptr                          ; +0x10, 0x5fcecc\nLDR             R5, [R5]; __stack_chk_guard                            ; +0x12, 0x5fcece\nLDR             R3, [R5]                                               ; +0x14, 0x5fced0\nSTR             R3, [SP,#0x10+var_4]                                   ; +0x16, 0x5fced2\nBL              _ZNSt6vectorIN4pugi8xml_nodeESaIS1_EE4backEv; std::vector<pugi::xml_node>::back(void) ; +0x18, 0x5fced4\nLDRB.W          R3, [R7,#0xD4]                                         ; +0x1c, 0x5fced8\nCBNZ            R3, loc_5FCEE4                                         ; +0x20, 0x5fcedc\nLDR             R1, =(aK_0 - 0x5FCEE4); \"k\"                            ; +0x22, 0x5fcede\nADD             R1, PC; \"k\"                                            ; +0x24, 0x5fcee0\nB               loc_5FCEE8                                             ; +0x26, 0x5fcee2\nLDR             R1, =(aKey - 0x5FCEEA); \"key\"                          ; +0x28, 0x5fcee4\nADD             R1, PC; \"key\"                                          ; +0x2a, 0x5fcee6\nBL              _ZNK4pugi8xml_node5childEPKc; pugi::xml_node::child(char const*) ; +0x2c, 0x5fcee8\nLDR.W           R9, =(aKey - 0x5FCEFA); \"key\"                          ; +0x30, 0x5fceec\nLDR.W           R10, =(aK_0 - 0x5FCEFC); \"k\"                           ; +0x34, 0x5fcef0\nADD             R4, SP, #0x10+var_s0                                   ; +0x38, 0x5fcef4\nADD             R9, PC; \"key\"                                          ; +0x3a, 0x5fcef6\nADD             R10, PC; \"k\"                                           ; +0x3c, 0x5fcef8\nSTR.W           R0, [R4,#-0xC]!                                        ; +0x3e, 0x5fcefa\nMOV             R0, R4                                                 ; +0x42, 0x5fcefe\nBL              _ZNK4pugi8xml_nodecvPFvPPPS0_EEv; pugi::xml_node::operator void (*)(pugi::xml_node***)(void) ; +0x44, 0x5fcf00\nCBZ             R0, loc_5FCF52                                         ; +0x48, 0x5fcf04\nMOV             R0, R4; this                                           ; +0x4a, 0x5fcf06\nBL              _ZNK4pugi8xml_node11child_valueEv; pugi::xml_node::child_value(void) ; +0x4c, 0x5fcf08\nMOV             R1, R8; char *                                         ; +0x50, 0x5fcf0c\nBLX             strcmp                                                 ; +0x52, 0x5fcf0e\nCBNZ            R0, loc_5FCF3C                                         ; +0x56, 0x5fcf12\nMOV             R0, R6                                                 ; +0x58, 0x5fcf14\nBL              _ZNSt6vectorIN4pugi8xml_nodeESaIS1_EE4backEv; std::vector<pugi::xml_node>::back(void) ; +0x5a, 0x5fcf16\nMOV             R7, R0                                                 ; +0x5e, 0x5fcf1a\nMOV             R0, R4; this                                           ; +0x60, 0x5fcf1c\nBL              _ZNK4pugi8xml_node12next_siblingEv; pugi::xml_node::next_sibling(void) ; +0x62, 0x5fcf1e\nADD             R1, SP, #0x10+var_s0                                   ; +0x66, 0x5fcf22\nSTR.W           R0, [R1,#-8]!; pugi::xml_node *                        ; +0x68, 0x5fcf24\nMOV             R0, R7; this                                           ; +0x6c, 0x5fcf28\nBL              _ZN4pugi8xml_node12remove_childERKS0_; pugi::xml_node::remove_child(pugi::xml_node const&) ; +0x6e, 0x5fcf2a\nMOV             R0, R6                                                 ; +0x72, 0x5fcf2e\nBL              _ZNSt6vectorIN4pugi8xml_nodeESaIS1_EE4backEv; std::vector<pugi::xml_node>::back(void) ; +0x74, 0x5fcf30\nMOV             R1, R4; pugi::xml_node *                               ; +0x78, 0x5fcf34\nBL              _ZN4pugi8xml_node12remove_childERKS0_; pugi::xml_node::remove_child(pugi::xml_node const&) ; +0x7a, 0x5fcf36\nB               loc_5FCF52                                             ; +0x7e, 0x5fcf3a\nLDRB.W          R3, [R7,#0xD4]                                         ; +0x80, 0x5fcf3c\nMOV             R0, R4; this                                           ; +0x84, 0x5fcf40\nCMP             R3, #0                                                 ; +0x86, 0x5fcf42\nITE NE                                                                 ; +0x88, 0x5fcf44\nMOVNE           R1, R9                                                 ; +0x8a, 0x5fcf46\nMOVEQ           R1, R10; char *                                        ; +0x8c, 0x5fcf48\nBL              _ZNK4pugi8xml_node12next_siblingEPKc; pugi::xml_node::next_sibling(char const*) ; +0x8e, 0x5fcf4a\nSTR             R0, [SP,#0x10+var_C]                                   ; +0x92, 0x5fcf4e\nB               loc_5FCEFE                                             ; +0x94, 0x5fcf50\nLDR             R2, [SP,#0x10+var_4]                                   ; +0x96, 0x5fcf52\nLDR             R3, [R5]                                               ; +0x98, 0x5fcf54\nCMP             R2, R3                                                 ; +0x9a, 0x5fcf56\nBEQ             loc_5FCF5E                                             ; +0x9c, 0x5fcf58\nBLX             __stack_chk_fail                                       ; +0x9e, 0x5fcf5a\nADD             SP, SP, #0x10                                          ; +0xa2, 0x5fcf5e\nPOP.W           {R4-R10,PC}                                            ; +0xa4, 0x5fcf60", "xrefs": ["DS_Dictionary::setStringArrayForKey @ 0x5fd778", "DS_Dictionary::setVec2ForKey @ 0x5fd950", "DS_Dictionary::setRectForKey @ 0x5fdb2a", "DS_Dictionary::setVec2ArrayForKey @ 0x5fdca4", "DS_Dictionary::setRectArrayForKey @ 0x5fdec0", "DS_Dictionary::getArrayForKey @ 0x5ff84e"], "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"}