{"type": "func", "start": 8433516, "end": 8433682, "name": "DS_Dictionary::removeKey", "pseudocode": "// \n// DS_Dictionary::removeKey from 0x80af6c to 0x80b012 (166 bytes)\n// \n// 11 xrefs:\n// > GJGameLevel::getExportSaveString @ 0x4aba74\n// > GameLevelManager::prunePlatformerJournalKeys @ 0x4b5d80\n// > sub_4C60B4 @ 0x4c623e\n// > GameLevelManager::writePlatformerSaveJournal @ 0x4caf02\n// > GameLevelManager::replayPlatformerSaveJournal @ 0x4cfda6\n// > DS_Dictionary::setStringArrayForKey @ 0x80b70a\n// > DS_Dictionary::getArrayForKey @ 0x80d9fc\n// > DS_Dictionary::setVec2ForKey @ 0x80ec44\n// > DS_Dictionary::setRectForKey @ 0x80eea0\n// > DS_Dictionary::setVec2ArrayForKey @ 0x80f026\n// > DS_Dictionary::setRectArrayForKey @ 0x80f2b4\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::removeKey(DS_Dictionary *this, const char *a2)\n{\n  pugi::xml_node *v4; // r0\n  const char *v5; // r1\n  int result; // r0\n  const char *v7; // r0\n  pugi::xml_node *v8; // r7\n  const char *v9; // r1\n  int i; // [sp+4h] [bp-10h] BYREF\n  int sibling; // [sp+8h] [bp-Ch] BYREF\n\n  v4 = (pugi::xml_node *)(*((_DWORD *)this + 51) - 4);\n  if ( *((_BYTE *)this + 212) )\n    v5 = \"key\";\n  else\n    v5 = \"k\";\n  for ( i = pugi::xml_node::child(v4, v5); ; i = pugi::xml_node::next_sibling((pugi::xml_node *)&i, v9) )\n  {\n    result = pugi::xml_node::operator void (*)(pugi::xml_node***)(&i);\n    if ( !result )\n      break;\n    v7 = (const char *)pugi::xml_node::child_value((pugi::xml_node *)&i);\n    if ( !strcmp(v7, a2) )\n    {\n      v8 = (pugi::xml_node *)(*((_DWORD *)this + 51) - 4);\n      sibling = pugi::xml_node::next_sibling((pugi::xml_node *)&i);\n      pugi::xml_node::remove_child(v8, (const pugi::xml_node *)&sibling);\n      return pugi::xml_node::remove_child((pugi::xml_node *)(*((_DWORD *)this + 51) - 4), (const pugi::xml_node *)&i);\n    }\n    if ( *((_BYTE *)this + 212) )\n      v9 = \"key\";\n    else\n      v9 = \"k\";\n  }\n  return result;\n}", "assembly": "; \n; DS_Dictionary::removeKey from 0x80af6c to 0x80b012 (166 bytes)\n; \n; 11 xrefs:\n; > GJGameLevel::getExportSaveString @ 0x4aba74\n; > GameLevelManager::prunePlatformerJournalKeys @ 0x4b5d80\n; > sub_4C60B4 @ 0x4c623e\n; > GameLevelManager::writePlatformerSaveJournal @ 0x4caf02\n; > GameLevelManager::replayPlatformerSaveJournal @ 0x4cfda6\n; > DS_Dictionary::setStringArrayForKey @ 0x80b70a\n; > DS_Dictionary::getArrayForKey @ 0x80d9fc\n; > DS_Dictionary::setVec2ForKey @ 0x80ec44\n; > DS_Dictionary::setRectForKey @ 0x80eea0\n; > DS_Dictionary::setVec2ArrayForKey @ 0x80f026\n; > DS_Dictionary::setRectArrayForKey @ 0x80f2b4\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 - 0x80AF76)                ; +0x0, 0x80af6c\nPUSH.W          {R4-R9,LR}                                             ; +0x2, 0x80af6e\nADD             R3, PC; __stack_chk_guard_ptr                          ; +0x6, 0x80af72\nLDR             R3, [R3]; __stack_chk_guard                            ; +0x8, 0x80af74\nSUB             SP, SP, #0x14                                          ; +0xa, 0x80af76\nMOV             R6, R0                                                 ; +0xc, 0x80af78\nLDR             R2, [R3]                                               ; +0xe, 0x80af7a\nMOV             R7, R1                                                 ; +0x10, 0x80af7c\nLDR.W           R0, [R0,#0xCC]                                         ; +0x12, 0x80af7e\nMOV             R5, R3                                                 ; +0x16, 0x80af82\nSTR             R2, [SP,#0x14+var_8]                                   ; +0x18, 0x80af84\nSUBS            R0, #4; this                                           ; +0x1a, 0x80af86\nLDRB.W          R2, [R6,#0xD4]                                         ; +0x1c, 0x80af88\nCBNZ            R2, loc_80AF94                                         ; +0x20, 0x80af8c\nLDR             R1, =(aK_0 - 0x80AF94); \"k\"                            ; +0x22, 0x80af8e\nADD             R1, PC; \"k\"                                            ; +0x24, 0x80af90\nB               loc_80AF98                                             ; +0x26, 0x80af92\nLDR             R1, =(aKey - 0x80AF9A); \"key\"                          ; +0x28, 0x80af94\nADD             R1, PC; \"key\"                                          ; +0x2a, 0x80af96\nBL              _ZNK4pugi8xml_node5childEPKc; pugi::xml_node::child(char const*) ; +0x2c, 0x80af98\nLDR.W           R8, =(aKey - 0x80AFAA); \"key\"                          ; +0x30, 0x80af9c\nLDR.W           R9, =(aK_0 - 0x80AFAC); \"k\"                            ; +0x34, 0x80afa0\nADD             R4, SP, #0x14+var_4                                    ; +0x38, 0x80afa4\nADD             R8, PC; \"key\"                                          ; +0x3a, 0x80afa6\nADD             R9, PC; \"k\"                                            ; +0x3c, 0x80afa8\nSTR.W           R0, [R4,#-0xC]!                                        ; +0x3e, 0x80afaa\nMOV             R0, R4                                                 ; +0x42, 0x80afae\nBL              _ZNK4pugi8xml_nodecvPFvPPPS0_EEv; pugi::xml_node::operator void (*)(pugi::xml_node***)(void) ; +0x44, 0x80afb0\nCBZ             R0, loc_80B000                                         ; +0x48, 0x80afb4\nMOV             R0, R4; this                                           ; +0x4a, 0x80afb6\nBL              _ZNK4pugi8xml_node11child_valueEv; pugi::xml_node::child_value(void) ; +0x4c, 0x80afb8\nMOV             R1, R7; char *                                         ; +0x50, 0x80afbc\nBLX             strcmp                                                 ; +0x52, 0x80afbe\nCBNZ            R0, loc_80AFEA                                         ; +0x56, 0x80afc2\nLDR.W           R3, [R6,#0xCC]                                         ; +0x58, 0x80afc4\nMOV             R0, R4; this                                           ; +0x5c, 0x80afc8\nSUBS            R7, R3, #4                                             ; +0x5e, 0x80afca\nBL              _ZNK4pugi8xml_node12next_siblingEv; pugi::xml_node::next_sibling(void) ; +0x60, 0x80afcc\nADD             R1, SP, #0x14+var_4                                    ; +0x64, 0x80afd0\nSTR.W           R0, [R1,#-8]!; pugi::xml_node *                        ; +0x66, 0x80afd2\nMOV             R0, R7; this                                           ; +0x6a, 0x80afd6\nBL              _ZN4pugi8xml_node12remove_childERKS0_; pugi::xml_node::remove_child(pugi::xml_node const&) ; +0x6c, 0x80afd8\nLDR.W           R0, [R6,#0xCC]                                         ; +0x70, 0x80afdc\nMOV             R1, R4; pugi::xml_node *                               ; +0x74, 0x80afe0\nSUBS            R0, #4; this                                           ; +0x76, 0x80afe2\nBL              _ZN4pugi8xml_node12remove_childERKS0_; pugi::xml_node::remove_child(pugi::xml_node const&) ; +0x78, 0x80afe4\nB               loc_80B000                                             ; +0x7c, 0x80afe8\nLDRB.W          R3, [R6,#0xD4]                                         ; +0x7e, 0x80afea\nMOV             R0, R4; this                                           ; +0x82, 0x80afee\nCMP             R3, #0                                                 ; +0x84, 0x80aff0\nITE NE                                                                 ; +0x86, 0x80aff2\nMOVNE           R1, R8                                                 ; +0x88, 0x80aff4\nMOVEQ           R1, R9; char *                                         ; +0x8a, 0x80aff6\nBL              _ZNK4pugi8xml_node12next_siblingEPKc; pugi::xml_node::next_sibling(char const*) ; +0x8c, 0x80aff8\nSTR             R0, [SP,#0x14+var_10]                                  ; +0x90, 0x80affc\nB               loc_80AFAE                                             ; +0x92, 0x80affe\nLDR             R2, [SP,#0x14+var_8]                                   ; +0x94, 0x80b000\nLDR             R3, [R5]                                               ; +0x96, 0x80b002\nCMP             R2, R3                                                 ; +0x98, 0x80b004\nBEQ             loc_80B00C                                             ; +0x9a, 0x80b006\nBLX             __stack_chk_fail                                       ; +0x9c, 0x80b008\nADD             SP, SP, #0x14                                          ; +0xa0, 0x80b00c\nPOP.W           {R4-R9,PC}                                             ; +0xa2, 0x80b00e", "xrefs": ["GJGameLevel::getExportSaveString @ 0x4aba74", "GameLevelManager::prunePlatformerJournalKeys @ 0x4b5d80", "sub_4C60B4 @ 0x4c623e", "GameLevelManager::writePlatformerSaveJournal @ 0x4caf02", "GameLevelManager::replayPlatformerSaveJournal @ 0x4cfda6", "DS_Dictionary::setStringArrayForKey @ 0x80b70a", "DS_Dictionary::getArrayForKey @ 0x80d9fc", "DS_Dictionary::setVec2ForKey @ 0x80ec44", "DS_Dictionary::setRectForKey @ 0x80eea0", "DS_Dictionary::setVec2ArrayForKey @ 0x80f026", "DS_Dictionary::setRectArrayForKey @ 0x80f2b4"], "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"}