{"type": "func", "start": 8433704, "end": 8433828, "name": "DS_Dictionary::removeAllKeys", "pseudocode": "// \n// DS_Dictionary::removeAllKeys from 0x80b028 to 0x80b0a4 (124 bytes)\n// \n// 0 xrefs:\n// \n// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 12:01:29 +0000\n// \n\nint __fastcall DS_Dictionary::removeAllKeys(DS_Dictionary *this)\n{\n  const char *v2; // r1\n  int result; // r0\n  pugi::xml_node *v4; // r7\n  int v5; // [sp+4h] [bp-10h] BYREF\n  int sibling; // [sp+8h] [bp-Ch] BYREF\n\n  while ( 1 )\n  {\n    v2 = *((_BYTE *)this + 212) ? \"key\" : \"k\";\n    v5 = pugi::xml_node::child((pugi::xml_node *)(*((_DWORD *)this + 51) - 4), v2);\n    result = pugi::xml_node::operator void (*)(pugi::xml_node***)(&v5);\n    if ( !result )\n      break;\n    v4 = (pugi::xml_node *)(*((_DWORD *)this + 51) - 4);\n    sibling = pugi::xml_node::next_sibling((pugi::xml_node *)&v5);\n    pugi::xml_node::remove_child(v4, (const pugi::xml_node *)&sibling);\n    pugi::xml_node::remove_child((pugi::xml_node *)(*((_DWORD *)this + 51) - 4), (const pugi::xml_node *)&v5);\n  }\n  return result;\n}", "assembly": "; \n; DS_Dictionary::removeAllKeys from 0x80b028 to 0x80b0a4 (124 bytes)\n; \n; 0 xrefs:\n; \n; This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 12:01:29 +0000\n; \nLDR             R3, =(__stack_chk_guard_ptr - 0x80B032)                ; +0x0, 0x80b028\nPUSH.W          {R4-R9,LR}                                             ; +0x2, 0x80b02a\nADD             R3, PC; __stack_chk_guard_ptr                          ; +0x6, 0x80b02e\nLDR             R3, [R3]; __stack_chk_guard                            ; +0x8, 0x80b030\nLDR.W           R8, =(aKey - 0x80B044); \"key\"                          ; +0xa, 0x80b032\nSUB             SP, SP, #0x14                                          ; +0xe, 0x80b036\nLDR.W           R9, =(aK_0 - 0x80B046); \"k\"                            ; +0x10, 0x80b038\nADD             R6, SP, #0x14+var_10                                   ; +0x14, 0x80b03c\nLDR             R2, [R3]                                               ; +0x16, 0x80b03e\nADD             R8, PC; \"key\"                                          ; +0x18, 0x80b040\nADD             R9, PC; \"k\"                                            ; +0x1a, 0x80b042\nMOV             R4, R0                                                 ; +0x1c, 0x80b044\nMOV             R5, R3                                                 ; +0x1e, 0x80b046\nSTR             R2, [SP,#0x14+var_8]                                   ; +0x20, 0x80b048\nLDRB.W          R3, [R4,#0xD4]                                         ; +0x22, 0x80b04a\nLDR.W           R0, [R4,#0xCC]                                         ; +0x26, 0x80b04e\nCMP             R3, #0                                                 ; +0x2a, 0x80b052\nSUB.W           R0, R0, #4; this                                       ; +0x2c, 0x80b054\nITE NE                                                                 ; +0x30, 0x80b058\nMOVNE           R1, R8                                                 ; +0x32, 0x80b05a\nMOVEQ           R1, R9; char *                                         ; +0x34, 0x80b05c\nBL              _ZNK4pugi8xml_node5childEPKc; pugi::xml_node::child(char const*) ; +0x36, 0x80b05e\nSTR             R0, [SP,#0x14+var_10]                                  ; +0x3a, 0x80b062\nMOV             R0, R6                                                 ; +0x3c, 0x80b064\nBL              _ZNK4pugi8xml_nodecvPFvPPPS0_EEv; pugi::xml_node::operator void (*)(pugi::xml_node***)(void) ; +0x3e, 0x80b066\nCBZ             R0, loc_80B092                                         ; +0x42, 0x80b06a\nLDR.W           R3, [R4,#0xCC]                                         ; +0x44, 0x80b06c\nMOV             R0, R6; this                                           ; +0x48, 0x80b070\nSUBS            R7, R3, #4                                             ; +0x4a, 0x80b072\nBL              _ZNK4pugi8xml_node12next_siblingEv; pugi::xml_node::next_sibling(void) ; +0x4c, 0x80b074\nADD             R1, SP, #0x14+var_4                                    ; +0x50, 0x80b078\nSTR.W           R0, [R1,#-8]!; pugi::xml_node *                        ; +0x52, 0x80b07a\nMOV             R0, R7; this                                           ; +0x56, 0x80b07e\nBL              _ZN4pugi8xml_node12remove_childERKS0_; pugi::xml_node::remove_child(pugi::xml_node const&) ; +0x58, 0x80b080\nLDR.W           R0, [R4,#0xCC]                                         ; +0x5c, 0x80b084\nMOV             R1, R6; pugi::xml_node *                               ; +0x60, 0x80b088\nSUBS            R0, #4; this                                           ; +0x62, 0x80b08a\nBL              _ZN4pugi8xml_node12remove_childERKS0_; pugi::xml_node::remove_child(pugi::xml_node const&) ; +0x64, 0x80b08c\nB               loc_80B04A                                             ; +0x68, 0x80b090\nLDR             R2, [SP,#0x14+var_8]                                   ; +0x6a, 0x80b092\nLDR             R3, [R5]                                               ; +0x6c, 0x80b094\nCMP             R2, R3                                                 ; +0x6e, 0x80b096\nBEQ             loc_80B09E                                             ; +0x70, 0x80b098\nBLX             __stack_chk_fail                                       ; +0x72, 0x80b09a\nADD             SP, SP, #0x14                                          ; +0x76, 0x80b09e\nPOP.W           {R4-R9,PC}                                             ; +0x78, 0x80b0a0", "xrefs": [], "is_objc": false, "is_32_bit": true, "is_64_bit": false, "idp_name": "arm", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}