{"type": "func", "start": 6279032, "end": 6279160, "name": "DS_Dictionary::removeAllKeys", "pseudocode": "// \n// DS_Dictionary::removeAllKeys from 0x5fcf78 to 0x5fcff8 (128 bytes)\n// \n// 0 xrefs:\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  std::vector<pugi::xml_node> *p_dictTree; // r6\n  pugi::xml_node *v3; // r0\n  const char *v4; // r1\n  pugi::xml_node *v5; // r8\n  pugi::xml_node *v6; // r0\n  pugi::xml_node v7; // [sp+4h] [bp-Ch] BYREF\n  pugi::xml_node v8; // [sp+8h] [bp-8h] BYREF\n\n  p_dictTree = &a1->dictTree;\n  while ( 1 )\n  {\n    v3 = (pugi::xml_node *)std::vector<pugi::xml_node>::back((int)p_dictTree);\n    v4 = a1->compatible ? \"key\" : \"k\";\n    v7._root = (pugi::xml_node_struct *)pugi::xml_node::child(v3, v4);\n    if ( !pugi::xml_node::operator void (*)(pugi::xml_node***)(&v7) )\n      break;\n    v5 = (pugi::xml_node *)std::vector<pugi::xml_node>::back((int)p_dictTree);\n    v8._root = (pugi::xml_node_struct *)pugi::xml_node::next_sibling(&v7);\n    pugi::xml_node::remove_child(v5, &v8);\n    v6 = (pugi::xml_node *)std::vector<pugi::xml_node>::back((int)p_dictTree);\n    pugi::xml_node::remove_child(v6, &v7);\n  }\n}", "assembly": "; \n; DS_Dictionary::removeAllKeys from 0x5fcf78 to 0x5fcff8 (128 bytes)\n; \n; 0 xrefs:\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, 0x5fcf78\nADD.W           R6, R0, #0xC8                                          ; +0x4, 0x5fcf7c\nLDR             R3, =(__stack_chk_guard_ptr - 0x5FCF8C)                ; +0x8, 0x5fcf80\nMOV             R7, R0                                                 ; +0xa, 0x5fcf82\nLDR.W           R9, =(aKey - 0x5FCF94); \"key\"                          ; +0xc, 0x5fcf84\nADD             R3, PC; __stack_chk_guard_ptr                          ; +0x10, 0x5fcf88\nLDR             R3, [R3]; __stack_chk_guard                            ; +0x12, 0x5fcf8a\nLDR.W           R10, =(aK_0 - 0x5FCF98); \"k\"                           ; +0x14, 0x5fcf8c\nADD             R9, PC; \"key\"                                          ; +0x18, 0x5fcf90\nLDR             R2, [R3]                                               ; +0x1a, 0x5fcf92\nADD             R10, PC; \"k\"                                           ; +0x1c, 0x5fcf94\nMOV             R5, R3                                                 ; +0x1e, 0x5fcf96\nSTR             R2, [SP,#0x10+var_4]                                   ; +0x20, 0x5fcf98\nMOV             R0, R6                                                 ; +0x22, 0x5fcf9a\nADD             R4, SP, #0x10+var_s0                                   ; +0x24, 0x5fcf9c\nBL              _ZNSt6vectorIN4pugi8xml_nodeESaIS1_EE4backEv; std::vector<pugi::xml_node>::back(void) ; +0x26, 0x5fcf9e\nLDRB.W          R3, [R7,#0xD4]                                         ; +0x2a, 0x5fcfa2\nCMP             R3, #0                                                 ; +0x2e, 0x5fcfa6\nITE NE                                                                 ; +0x30, 0x5fcfa8\nMOVNE           R1, R9                                                 ; +0x32, 0x5fcfaa\nMOVEQ           R1, R10; char *                                        ; +0x34, 0x5fcfac\nBL              _ZNK4pugi8xml_node5childEPKc; pugi::xml_node::child(char const*) ; +0x36, 0x5fcfae\nSTR.W           R0, [R4,#-0xC]!                                        ; +0x3a, 0x5fcfb2\nMOV             R0, R4                                                 ; +0x3e, 0x5fcfb6\nBL              _ZNK4pugi8xml_nodecvPFvPPPS0_EEv; pugi::xml_node::operator void (*)(pugi::xml_node***)(void) ; +0x40, 0x5fcfb8\nCBZ             R0, loc_5FCFE6                                         ; +0x44, 0x5fcfbc\nMOV             R0, R6                                                 ; +0x46, 0x5fcfbe\nBL              _ZNSt6vectorIN4pugi8xml_nodeESaIS1_EE4backEv; std::vector<pugi::xml_node>::back(void) ; +0x48, 0x5fcfc0\nMOV             R8, R0                                                 ; +0x4c, 0x5fcfc4\nMOV             R0, R4; this                                           ; +0x4e, 0x5fcfc6\nBL              _ZNK4pugi8xml_node12next_siblingEv; pugi::xml_node::next_sibling(void) ; +0x50, 0x5fcfc8\nADD             R1, SP, #0x10+var_s0                                   ; +0x54, 0x5fcfcc\nSTR.W           R0, [R1,#-8]!; pugi::xml_node *                        ; +0x56, 0x5fcfce\nMOV             R0, R8; this                                           ; +0x5a, 0x5fcfd2\nBL              _ZN4pugi8xml_node12remove_childERKS0_; pugi::xml_node::remove_child(pugi::xml_node const&) ; +0x5c, 0x5fcfd4\nMOV             R0, R6                                                 ; +0x60, 0x5fcfd8\nBL              _ZNSt6vectorIN4pugi8xml_nodeESaIS1_EE4backEv; std::vector<pugi::xml_node>::back(void) ; +0x62, 0x5fcfda\nMOV             R1, R4; pugi::xml_node *                               ; +0x66, 0x5fcfde\nBL              _ZN4pugi8xml_node12remove_childERKS0_; pugi::xml_node::remove_child(pugi::xml_node const&) ; +0x68, 0x5fcfe0\nB               loc_5FCF9A                                             ; +0x6c, 0x5fcfe4\nLDR             R2, [SP,#0x10+var_4]                                   ; +0x6e, 0x5fcfe6\nLDR             R3, [R5]                                               ; +0x70, 0x5fcfe8\nCMP             R2, R3                                                 ; +0x72, 0x5fcfea\nBEQ             loc_5FCFF2                                             ; +0x74, 0x5fcfec\nBLX             __stack_chk_fail                                       ; +0x76, 0x5fcfee\nADD             SP, SP, #0x10                                          ; +0x7a, 0x5fcff2\nPOP.W           {R4-R10,PC}                                            ; +0x7c, 0x5fcff4", "xrefs": [], "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"}