{"type": "func", "start": 11809596, "end": 11809804, "name": "DS_Dictionary::removeAllKeys", "pseudocode": "// \n// DS_Dictionary::removeAllKeys from 0xb4333c to 0xb4340c (208 bytes)\n// \n// 1 xrefs:\n// > <???> @ 0xc1a28\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::removeAllKeys(DS_Dictionary *a1)\n{\n  pugi::xml_node *v2; // x20\n  const char *v3; // x1\n  pugi::xml_node v4; // [xsp+58h] [xbp+58h] BYREF\n  pugi::xml_node v5; // [xsp+60h] [xbp+60h] BYREF\n\n  while ( 1 )\n  {\n    v3 = a1->compatible ? \"key\" : \"k\";\n    v4._root = (pugi::xml_node_struct *)pugi::xml_node::child(a1->dictTree.m_finish - 1, v3);\n    if ( !pugi::xml_node::operator void (*)(pugi::xml_node***)(&v4) )\n      break;\n    v2 = a1->dictTree.m_finish - 1;\n    v5._root = (pugi::xml_node_struct *)pugi::xml_node::next_sibling(&v4);\n    pugi::xml_node::remove_child(v2, &v5);\n    pugi::xml_node::remove_child(a1->dictTree.m_finish - 1, &v4);\n  }\n}", "assembly": "; \n; DS_Dictionary::removeAllKeys from 0xb4333c to 0xb4340c (208 bytes)\n; \n; 1 xrefs:\n; > <???> @ 0xc1a28\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_70]!                                ; +0x0, 0xb4333c\nMOV             X29, SP                                                ; +0x4, 0xb43340\nSTR             X25, [SP,#0x70+var_30]                                 ; +0x8, 0xb43344\nADRP            X25, #__stack_chk_guard_ptr@PAGE                       ; +0xc, 0xb43348\nSTP             X19, X20, [SP,#0x70+var_60]                            ; +0x10, 0xb4334c\nMOV             X19, X0                                                ; +0x14, 0xb43350\nLDR             X0, [X25,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x18, 0xb43354\nSTP             X21, X22, [SP,#0x70+var_50]                            ; +0x1c, 0xb43358\nSTP             X23, X24, [SP,#0x70+var_40]                            ; +0x20, 0xb4335c\nADRP            X22, #(aNoVerifyCookie+0x18)@PAGE; \"k\"                 ; +0x24, 0xb43360\nADRP            X23, #(aExpectingADsaK+0x10)@PAGE; \"key\"               ; +0x28, 0xb43364\nLDR             X0, [X0]                                               ; +0x2c, 0xb43368\nADD             X21, X29, #0x70+var_18                                 ; +0x30, 0xb4336c\nADD             X23, X23, #(aExpectingADsaK+0x10)@PAGEOFF; \"key\"       ; +0x34, 0xb43370\nADD             X22, X22, #(aNoVerifyCookie+0x18)@PAGEOFF; \"k\"         ; +0x38, 0xb43374\nADD             X24, X29, #0x70+var_10                                 ; +0x3c, 0xb43378\nSTR             X0, [X29,#0x70+var_8]                                  ; +0x40, 0xb4337c\nB               loc_B433B4                                             ; +0x44, 0xb43380\nLDR             X20, [X19,#0xD8]                                       ; +0x48, 0xb43384\nMOV             X0, X21; this                                          ; +0x4c, 0xb43388\nSUB             X20, X20, #8                                           ; +0x50, 0xb4338c\nBL              _ZNK4pugi8xml_node12next_siblingEv; pugi::xml_node::next_sibling(void) ; +0x54, 0xb43390\nMOV             X1, X24; pugi::xml_node *                              ; +0x58, 0xb43394\nSTR             X0, [X29,#0x70+var_10]                                 ; +0x5c, 0xb43398\nMOV             X0, X20; this                                          ; +0x60, 0xb4339c\nBL              _ZN4pugi8xml_node12remove_childERKS0_; pugi::xml_node::remove_child(pugi::xml_node const&) ; +0x64, 0xb433a0\nLDR             X0, [X19,#0xD8]                                        ; +0x68, 0xb433a4\nMOV             X1, X21; pugi::xml_node *                              ; +0x6c, 0xb433a8\nSUB             X0, X0, #8; this                                       ; +0x70, 0xb433ac\nBL              _ZN4pugi8xml_node12remove_childERKS0_; pugi::xml_node::remove_child(pugi::xml_node const&) ; +0x74, 0xb433b0\nLDRB            W1, [X19,#0xE8]                                        ; +0x78, 0xb433b4\nLDR             X0, [X19,#0xD8]                                        ; +0x7c, 0xb433b8\nCMP             W1, WZR                                                ; +0x80, 0xb433bc\nSUB             X0, X0, #8; this                                       ; +0x84, 0xb433c0\nCSEL            X1, X23, X22, NE; char *                               ; +0x88, 0xb433c4\nBL              _ZNK4pugi8xml_node5childEPKc; pugi::xml_node::child(char const*) ; +0x8c, 0xb433c8\nSTR             X0, [X29,#0x70+var_18]                                 ; +0x90, 0xb433cc\nMOV             X0, X21                                                ; +0x94, 0xb433d0\nBL              _ZNK4pugi8xml_nodecvPFvPPPS0_EEv; pugi::xml_node::operator void (*)(pugi::xml_node***)(void) ; +0x98, 0xb433d4\nCBNZ            X0, loc_B43384                                         ; +0x9c, 0xb433d8\nLDR             X25, [X25,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0xa0, 0xb433dc\nLDR             X1, [X29,#0x70+var_8]                                  ; +0xa4, 0xb433e0\nLDR             X0, [X25]                                              ; +0xa8, 0xb433e4\nCMP             X1, X0                                                 ; +0xac, 0xb433e8\nB.NE            loc_B43408                                             ; +0xb0, 0xb433ec\nLDP             X19, X20, [SP,#0x70+var_60]                            ; +0xb4, 0xb433f0\nLDP             X21, X22, [SP,#0x70+var_50]                            ; +0xb8, 0xb433f4\nLDP             X23, X24, [SP,#0x70+var_40]                            ; +0xbc, 0xb433f8\nLDR             X25, [SP,#0x70+var_30]                                 ; +0xc0, 0xb433fc\nLDP             X29, X30, [SP+0x70+var_70],#0x70                       ; +0xc4, 0xb43400\nRET                                                                    ; +0xc8, 0xb43404\nBL              .__stack_chk_fail                                      ; +0xcc, 0xb43408", "xrefs": ["<???> @ 0xc1a28"], "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"}