{"type": "func", "start": 11809332, "end": 11809596, "name": "DS_Dictionary::removeKey", "pseudocode": "// \n// DS_Dictionary::removeKey from 0xb43234 to 0xb4333c (264 bytes)\n// \n// 7 xrefs:\n// > DS_Dictionary::setVec2ForKey @ 0xb43ffc\n// > DS_Dictionary::setRectForKey @ 0xb446f4\n// > DS_Dictionary::setStringArrayForKey @ 0xb44c08\n// > DS_Dictionary::setVec2ArrayForKey @ 0xb44e54\n// > DS_Dictionary::setRectArrayForKey @ 0xb45628\n// > DS_Dictionary::getArrayForKey @ 0xb46f14\n// > <???> @ 0x4efc0\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  _BOOL4 compatible; // w1\n  pugi::xml_node *v5; // x0\n  const char *v6; // x1\n  const char *v7; // x0\n  const char *v8; // x1\n  pugi::xml_node *m_finish; // x21\n  pugi::xml_node v10; // [xsp+48h] [xbp+48h] BYREF\n  pugi::xml_node v11; // [xsp+50h] [xbp+50h] 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 ( v10._root = (pugi::xml_node_struct *)pugi::xml_node::child(v5, v6);\n        pugi::xml_node::operator void (*)(pugi::xml_node***)(&v10);\n        v10._root = (pugi::xml_node_struct *)pugi::xml_node::next_sibling(&v10, v8) )\n  {\n    v7 = (const char *)pugi::xml_node::child_value(&v10);\n    if ( !strcmp(v7, a2) )\n    {\n      m_finish = a1->dictTree.m_finish;\n      v11._root = (pugi::xml_node_struct *)pugi::xml_node::next_sibling(&v10);\n      pugi::xml_node::remove_child(m_finish - 1, &v11);\n      pugi::xml_node::remove_child(a1->dictTree.m_finish - 1, &v10);\n      return;\n    }\n    if ( a1->compatible )\n      v8 = \"key\";\n    else\n      v8 = \"k\";\n  }\n}", "assembly": "; \n; DS_Dictionary::removeKey from 0xb43234 to 0xb4333c (264 bytes)\n; \n; 7 xrefs:\n; > DS_Dictionary::setVec2ForKey @ 0xb43ffc\n; > DS_Dictionary::setRectForKey @ 0xb446f4\n; > DS_Dictionary::setStringArrayForKey @ 0xb44c08\n; > DS_Dictionary::setVec2ArrayForKey @ 0xb44e54\n; > DS_Dictionary::setRectArrayForKey @ 0xb45628\n; > DS_Dictionary::getArrayForKey @ 0xb46f14\n; > <???> @ 0x4efc0\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_60]!                                ; +0x0, 0xb43234\nMOV             X29, SP                                                ; +0x4, 0xb43238\nSTP             X23, X24, [SP,#0x60+var_30]                            ; +0x8, 0xb4323c\nADRP            X24, #__stack_chk_guard_ptr@PAGE                       ; +0xc, 0xb43240\nMOV             X23, X1                                                ; +0x10, 0xb43244\nLDRB            W1, [X0,#0xE8]                                         ; +0x14, 0xb43248\nSTP             X19, X20, [SP,#0x60+var_50]                            ; +0x18, 0xb4324c\nLDR             X2, [X24,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x1c, 0xb43250\nMOV             X20, X0                                                ; +0x20, 0xb43254\nSTP             X21, X22, [SP,#0x60+var_40]                            ; +0x24, 0xb43258\nLDR             X0, [X0,#0xD8]                                         ; +0x28, 0xb4325c\nLDR             X2, [X2]                                               ; +0x2c, 0xb43260\nSTR             X2, [X29,#0x60+var_8]                                  ; +0x30, 0xb43264\nSUB             X0, X0, #8; this                                       ; +0x34, 0xb43268\nCBNZ            W1, loc_B432F8                                         ; +0x38, 0xb4326c\nADRL            X1, (aNoVerifyCookie+0x18); char *                     ; +0x3c, 0xb43270\nADD             X19, X29, #0x60+arg_0                                  ; +0x44, 0xb43278\nADRP            X22, #(aExpectingADsaK+0x10)@PAGE; \"key\"               ; +0x48, 0xb4327c\nADRP            X21, #(aNoVerifyCookie+0x18)@PAGE; \"k\"                 ; +0x4c, 0xb43280\nBL              _ZNK4pugi8xml_node5childEPKc; pugi::xml_node::child(char const*) ; +0x50, 0xb43284\nADD             X22, X22, #(aExpectingADsaK+0x10)@PAGEOFF; \"key\"       ; +0x54, 0xb43288\nADD             X21, X21, #(aNoVerifyCookie+0x18)@PAGEOFF; \"k\"         ; +0x58, 0xb4328c\nSTR             X0, [X19,#-0x18]!                                      ; +0x5c, 0xb43290\nB               loc_B432C4                                             ; +0x60, 0xb43294\nMOV             X0, X19; this                                          ; +0x64, 0xb43298\nBL              _ZNK4pugi8xml_node11child_valueEv; pugi::xml_node::child_value(void) ; +0x68, 0xb4329c\nMOV             X1, X23; char *                                        ; +0x6c, 0xb432a0\nBL              .strcmp                                                ; +0x70, 0xb432a4\nCBZ             W0, loc_B43304                                         ; +0x74, 0xb432a8\nLDRB            W1, [X20,#0xE8]                                        ; +0x78, 0xb432ac\nMOV             X0, X19; this                                          ; +0x7c, 0xb432b0\nCMP             W1, WZR                                                ; +0x80, 0xb432b4\nCSEL            X1, X22, X21, NE; char *                               ; +0x84, 0xb432b8\nBL              _ZNK4pugi8xml_node12next_siblingEPKc; pugi::xml_node::next_sibling(char const*) ; +0x88, 0xb432bc\nSTR             X0, [X29,#0x60+var_18]                                 ; +0x8c, 0xb432c0\nMOV             X0, X19                                                ; +0x90, 0xb432c4\nBL              _ZNK4pugi8xml_nodecvPFvPPPS0_EEv; pugi::xml_node::operator void (*)(pugi::xml_node***)(void) ; +0x94, 0xb432c8\nCBNZ            X0, loc_B43298                                         ; +0x98, 0xb432cc\nLDR             X24, [X24,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x9c, 0xb432d0\nLDR             X1, [X29,#0x60+var_8]                                  ; +0xa0, 0xb432d4\nLDR             X0, [X24]                                              ; +0xa4, 0xb432d8\nCMP             X1, X0                                                 ; +0xa8, 0xb432dc\nB.NE            loc_B43338                                             ; +0xac, 0xb432e0\nLDP             X19, X20, [SP,#0x60+var_50]                            ; +0xb0, 0xb432e4\nLDP             X21, X22, [SP,#0x60+var_40]                            ; +0xb4, 0xb432e8\nLDP             X23, X24, [SP,#0x60+var_30]                            ; +0xb8, 0xb432ec\nLDP             X29, X30, [SP+0x60+var_60],#0x60                       ; +0xbc, 0xb432f0\nRET                                                                    ; +0xc0, 0xb432f4\nADRL            X1, (aExpectingADsaK+0x10); \"key\"                      ; +0xc4, 0xb432f8\nB               loc_B43278                                             ; +0xcc, 0xb43300\nMOV             X0, X19; this                                          ; +0xd0, 0xb43304\nLDR             X21, [X20,#0xD8]                                       ; +0xd4, 0xb43308\nBL              _ZNK4pugi8xml_node12next_siblingEv; pugi::xml_node::next_sibling(void) ; +0xd8, 0xb4330c\nSUB             X21, X21, #8                                           ; +0xdc, 0xb43310\nADD             X1, X29, #0x60+arg_0                                   ; +0xe0, 0xb43314\nSTR             X0, [X1,#-0x10]!; pugi::xml_node *                     ; +0xe4, 0xb43318\nMOV             X0, X21; this                                          ; +0xe8, 0xb4331c\nBL              _ZN4pugi8xml_node12remove_childERKS0_; pugi::xml_node::remove_child(pugi::xml_node const&) ; +0xec, 0xb43320\nLDR             X0, [X20,#0xD8]                                        ; +0xf0, 0xb43324\nMOV             X1, X19; pugi::xml_node *                              ; +0xf4, 0xb43328\nSUB             X0, X0, #8; this                                       ; +0xf8, 0xb4332c\nBL              _ZN4pugi8xml_node12remove_childERKS0_; pugi::xml_node::remove_child(pugi::xml_node const&) ; +0xfc, 0xb43330\nB               loc_B432D0                                             ; +0x100, 0xb43334\nBL              .__stack_chk_fail                                      ; +0x104, 0xb43338", "xrefs": ["DS_Dictionary::setVec2ForKey @ 0xb43ffc", "DS_Dictionary::setRectForKey @ 0xb446f4", "DS_Dictionary::setStringArrayForKey @ 0xb44c08", "DS_Dictionary::setVec2ArrayForKey @ 0xb44e54", "DS_Dictionary::setRectArrayForKey @ 0xb45628", "DS_Dictionary::getArrayForKey @ 0xb46f14", "<???> @ 0x4efc0"], "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"}