{"type": "func", "start": 8436676, "end": 8436846, "name": "DS_Dictionary::getAllKeys", "pseudocode": "// \n// DS_Dictionary::getAllKeys from 0x80bbc4 to 0x80bc6e (170 bytes)\n// \n// 3 xrefs:\n// > GameLevelManager::collectPlatformerJournalKeys @ 0x4b5bce\n// > sub_4C60B4 @ 0x4c6108\n// > GameLevelManager::replayPlatformerSaveJournal @ 0x4cfb1c\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:31 +0000\n// \n\nDS_Dictionary *__fastcall DS_Dictionary::getAllKeys(DS_Dictionary *this, int a2)\n{\n  int v3; // r3\n  int v4; // r0\n  const char *v5; // r0\n  const char *v6; // r9\n  size_t v7; // r0\n  _DWORD *v8; // r3\n  int v9; // r1\n  int v10; // r2\n  int i; // [sp+0h] [bp-1Ch] BYREF\n  int sibling; // [sp+4h] [bp-18h] BYREF\n  int v14; // [sp+8h] [bp-14h] BYREF\n  int v15; // [sp+Ch] [bp-10h]\n  int v16; // [sp+10h] [bp-Ch]\n  int v17; // [sp+14h] [bp-8h]\n\n  *((_DWORD *)this + 1) = 0;\n  *((_DWORD *)this + 2) = 0;\n  v3 = _stack_chk_guard;\n  *(_DWORD *)this = 0;\n  v4 = *(_DWORD *)(a2 + 204);\n  v17 = v3;\n  for ( i = pugi::xml_node::first_child((pugi::xml_node *)(v4 - 4));\n        pugi::xml_node::operator void (*)(pugi::xml_node***)(&i);\n        i = pugi::xml_node::next_sibling((pugi::xml_node *)&sibling) )\n  {\n    v5 = (const char *)pugi::xml_node::child_value((pugi::xml_node *)&i);\n    v14 = 0;\n    v15 = 0;\n    v16 = 0;\n    v6 = v5;\n    v7 = strlen(v5);\n    std::string::__init(&v14, v6, v7);\n    v8 = *((_DWORD **)this + 1);\n    if ( (unsigned int)v8 >= *((_DWORD *)this + 2) )\n    {\n      std::vector<std::string>::__push_back_slow_path<std::string>((void **)this, &v14);\n    }\n    else\n    {\n      if ( v8 )\n      {\n        v9 = v15;\n        v10 = v16;\n        *v8 = v14;\n        v8[1] = v9;\n        v8[2] = v10;\n        v14 = 0;\n        v15 = 0;\n        v16 = 0;\n      }\n      *((_DWORD *)this + 1) += 12;\n    }\n    std::string::~string((int)&v14);\n    sibling = pugi::xml_node::next_sibling((pugi::xml_node *)&i);\n  }\n  return this;\n}", "assembly": "; \n; DS_Dictionary::getAllKeys from 0x80bbc4 to 0x80bc6e (170 bytes)\n; \n; 3 xrefs:\n; > GameLevelManager::collectPlatformerJournalKeys @ 0x4b5bce\n; > sub_4C60B4 @ 0x4c6108\n; > GameLevelManager::replayPlatformerSaveJournal @ 0x4cfb1c\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:31 +0000\n; \nPUSH.W          {R4-R9,LR}                                             ; +0x0, 0x80bbc4\nMOVS            R4, #0                                                 ; +0x4, 0x80bbc8\nLDR             R7, =(__stack_chk_guard_ptr - 0x80BBD6)                ; +0x6, 0x80bbca\nMOV             R5, R0                                                 ; +0x8, 0x80bbcc\nSTR             R4, [R0,#4]                                            ; +0xa, 0x80bbce\nSUB             SP, SP, #0x1C                                          ; +0xc, 0x80bbd0\nADD             R7, PC; __stack_chk_guard_ptr                          ; +0xe, 0x80bbd2\nLDR             R7, [R7]; __stack_chk_guard                            ; +0x10, 0x80bbd4\nSTR             R4, [R0,#8]                                            ; +0x12, 0x80bbd6\nADD.W           R8, SP, #0x1C+var_4                                    ; +0x14, 0x80bbd8\nADD             R6, SP, #0x1C+var_14                                   ; +0x18, 0x80bbdc\nLDR             R3, [R7]                                               ; +0x1a, 0x80bbde\nSTR             R4, [R0]                                               ; +0x1c, 0x80bbe0\nLDR.W           R0, [R1,#0xCC]                                         ; +0x1e, 0x80bbe2\nSTR             R3, [SP,#0x1C+var_8]                                   ; +0x22, 0x80bbe6\nSUBS            R0, #4; this                                           ; +0x24, 0x80bbe8\nBL              _ZNK4pugi8xml_node11first_childEv; pugi::xml_node::first_child(void) ; +0x26, 0x80bbea\nSTR.W           R0, [R8,#-0x18]!                                       ; +0x2a, 0x80bbee\nMOV             R0, R8                                                 ; +0x2e, 0x80bbf2\nBL              _ZNK4pugi8xml_nodecvPFvPPPS0_EEv; pugi::xml_node::operator void (*)(pugi::xml_node***)(void) ; +0x30, 0x80bbf4\nCBZ             R0, loc_80BC5A                                         ; +0x34, 0x80bbf8\nMOV             R0, R8; this                                           ; +0x36, 0x80bbfa\nBL              _ZNK4pugi8xml_node11child_valueEv; pugi::xml_node::child_value(void) ; +0x38, 0x80bbfc\nSTR             R4, [SP,#0x1C+var_14]                                  ; +0x3c, 0x80bc00\nSTR             R4, [SP,#0x1C+var_10]                                  ; +0x3e, 0x80bc02\nSTR             R4, [SP,#0x1C+var_C]                                   ; +0x40, 0x80bc04\nMOV             R9, R0                                                 ; +0x42, 0x80bc06\nBLX             strlen                                                 ; +0x44, 0x80bc08\nMOV             R1, R9                                                 ; +0x48, 0x80bc0c\nMOV             R2, R0                                                 ; +0x4a, 0x80bc0e\nMOV             R0, R6                                                 ; +0x4c, 0x80bc10\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6__initEPKcj; std::string::__init(char const*,uint) ; +0x4e, 0x80bc12\nLDR             R3, [R5,#4]                                            ; +0x52, 0x80bc16\nLDR             R2, [R5,#8]                                            ; +0x54, 0x80bc18\nCMP             R3, R2                                                 ; +0x56, 0x80bc1a\nBCS             loc_80BC36                                             ; +0x58, 0x80bc1c\nCBZ             R3, loc_80BC2E                                         ; +0x5a, 0x80bc1e\nLDM.W           R6, {R0-R2}                                            ; +0x5c, 0x80bc20\nSTM.W           R3, {R0-R2}                                            ; +0x60, 0x80bc24\nSTR             R4, [SP,#0x1C+var_14]                                  ; +0x64, 0x80bc28\nSTR             R4, [SP,#0x1C+var_10]                                  ; +0x66, 0x80bc2a\nSTR             R4, [SP,#0x1C+var_C]                                   ; +0x68, 0x80bc2c\nLDR             R3, [R5,#4]                                            ; +0x6a, 0x80bc2e\nADDS            R3, #0xC                                               ; +0x6c, 0x80bc30\nSTR             R3, [R5,#4]                                            ; +0x6e, 0x80bc32\nB               loc_80BC3E                                             ; +0x70, 0x80bc34\nMOV             R0, R5                                                 ; +0x72, 0x80bc36\nMOV             R1, R6                                                 ; +0x74, 0x80bc38\nBL              _ZNSt6__ndk16vectorINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEENS4_IS6_EEE21__push_back_slow_pathIS6_EEvOT_; std::vector<std::string>::__push_back_slow_path<std::string>(std::string &&) ; +0x76, 0x80bc3a\nMOV             R0, R6                                                 ; +0x7a, 0x80bc3e\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev; std::string::~string() ; +0x7c, 0x80bc40\nMOV             R0, R8; this                                           ; +0x80, 0x80bc44\nBL              _ZNK4pugi8xml_node12next_siblingEv; pugi::xml_node::next_sibling(void) ; +0x82, 0x80bc46\nADD             R3, SP, #0x1C+var_4                                    ; +0x86, 0x80bc4a\nSTR.W           R0, [R3,#-0x14]!                                       ; +0x88, 0x80bc4c\nMOV             R0, R3; this                                           ; +0x8c, 0x80bc50\nBL              _ZNK4pugi8xml_node12next_siblingEv; pugi::xml_node::next_sibling(void) ; +0x8e, 0x80bc52\nSTR             R0, [SP,#0x1C+var_1C]                                  ; +0x92, 0x80bc56\nB               loc_80BBF2                                             ; +0x94, 0x80bc58\nLDR             R2, [SP,#0x1C+var_8]                                   ; +0x96, 0x80bc5a\nMOV             R0, R5                                                 ; +0x98, 0x80bc5c\nLDR             R3, [R7]                                               ; +0x9a, 0x80bc5e\nCMP             R2, R3                                                 ; +0x9c, 0x80bc60\nBEQ             loc_80BC68                                             ; +0x9e, 0x80bc62\nBLX             __stack_chk_fail                                       ; +0xa0, 0x80bc64\nADD             SP, SP, #0x1C                                          ; +0xa4, 0x80bc68\nPOP.W           {R4-R9,PC}                                             ; +0xa6, 0x80bc6a", "xrefs": ["GameLevelManager::collectPlatformerJournalKeys @ 0x4b5bce", "sub_4C60B4 @ 0x4c6108", "GameLevelManager::replayPlatformerSaveJournal @ 0x4cfb1c"], "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"}