{"type": "func", "start": 11826364, "end": 11826732, "name": "DS_Dictionary::getAllKeys", "pseudocode": "// \n// DS_Dictionary::getAllKeys from 0xb474bc to 0xb4762c (368 bytes)\n// \n// 1 xrefs:\n// > <???> @ 0xa05a8\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\nstd::vector<std::string> *DS_Dictionary::getAllKeys(std::vector<std::string> *__return_ptr retstr, DS_Dictionary *a2)\n{\n  pugi::xml_node_struct *v3; // x1\n  char *v4; // x0\n  std::string *m_finish; // x0\n  pugi::xml_node_struct *root; // x1\n  char *v7; // x0\n  unsigned int *v8; // x1\n  int v9; // w2\n  pugi::xml_node v11; // [xsp+68h] [xbp+68h] BYREF\n  pugi::xml_node v12[2]; // [xsp+70h] [xbp+70h] BYREF\n\n  retstr->m_finish = nullptr;\n  v3 = (pugi::xml_node_struct *)_stack_chk_guard;\n  retstr->m_reserveEnd = nullptr;\n  retstr->m_start = nullptr;\n  v12[1]._root = v3;\n  for ( v11._root = (pugi::xml_node_struct *)pugi::xml_node::first_child(a2->dictTree.m_finish - 1);\n        pugi::xml_node::operator void (*)(pugi::xml_node***)(&v11);\n        v11._root = (pugi::xml_node_struct *)pugi::xml_node::next_sibling(v12) )\n  {\n    v4 = (char *)pugi::xml_node::child_value(&v11);\n    sub_D153B8((int)v12, v4);\n    m_finish = retstr->m_finish;\n    if ( m_finish == retstr->m_reserveEnd )\n    {\n      std::vector<std::string>::_M_emplace_back_aux<std::string>((__int64)retstr, v12);\n      root = v12[0]._root;\n    }\n    else\n    {\n      root = v12[0]._root;\n      if ( m_finish )\n      {\n        m_finish->m_data.m_data = v12[0]._root;\n        root = (pugi::xml_node_struct *)&byte_124B6C8;\n        v12[0]._root = (pugi::xml_node_struct *)&byte_124B6C8;\n      }\n      retstr->m_finish = m_finish + 1;\n    }\n    v7 = (char *)root - 24;\n    if ( (__int64 *)((char *)root - 24) != &qword_124B6B0 )\n    {\n      if ( &pthread_create )\n      {\n        v8 = (unsigned int *)((char *)root - 8);\n        do\n          v9 = __ldaxr(v8);\n        while ( __stlxr(v9 - 1, v8) );\n      }\n      else\n      {\n        v9 = *((_DWORD *)root - 2);\n        *((_DWORD *)root - 2) = v9 - 1;\n      }\n      if ( v9 <= 0 )\n        operator delete(v7);\n    }\n    v12[0]._root = (pugi::xml_node_struct *)pugi::xml_node::next_sibling(&v11);\n  }\n  return retstr;\n}", "assembly": "; \n; DS_Dictionary::getAllKeys from 0xb474bc to 0xb4762c (368 bytes)\n; \n; 1 xrefs:\n; > <???> @ 0xa05a8\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_80]!                                ; +0x0, 0xb474bc\nMOV             X29, SP                                                ; +0x4, 0xb474c0\nSTP             X23, X24, [SP,#0x80+var_50]                            ; +0x8, 0xb474c4\nADRP            X24, #__stack_chk_guard_ptr@PAGE                       ; +0xc, 0xb474c8\nADRP            X23, #off_122EFE8@PAGE                                 ; +0x10, 0xb474cc\nSTP             X19, X20, [SP,#0x80+var_70]                            ; +0x14, 0xb474d0\nSTP             X21, X22, [SP,#0x80+var_60]                            ; +0x18, 0xb474d4\nLDR             X1, [X24,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x1c, 0xb474d8\nADD             X21, X29, #0x80+arg_0                                  ; +0x20, 0xb474dc\nSTP             X25, X26, [SP,#0x80+var_40]                            ; +0x24, 0xb474e0\nSTR             XZR, [X8,#8]                                           ; +0x28, 0xb474e4\nMOV             X20, X8                                                ; +0x2c, 0xb474e8\nLDR             X1, [X1]                                               ; +0x30, 0xb474ec\nADD             X19, X29, #0x80+var_10                                 ; +0x34, 0xb474f0\nSTR             XZR, [X8,#0x10]                                        ; +0x38, 0xb474f4\nADD             X22, X29, #0x80+var_28                                 ; +0x3c, 0xb474f8\nSTR             XZR, [X8]                                              ; +0x40, 0xb474fc\nADRP            X25, #pthread_create_ptr_0@PAGE                        ; +0x44, 0xb47500\nSTR             X1, [X29,#0x80+var_8]                                  ; +0x48, 0xb47504\nADD             X26, X29, #0x80+var_20                                 ; +0x4c, 0xb47508\nLDR             X0, [X0,#0xD8]                                         ; +0x50, 0xb4750c\nSUB             X0, X0, #8; this                                       ; +0x54, 0xb47510\nBL              _ZNK4pugi8xml_node11first_childEv; pugi::xml_node::first_child(void) ; +0x58, 0xb47514\nSTR             X0, [X21,#-0x18]!                                      ; +0x5c, 0xb47518\nB               loc_B47538                                             ; +0x60, 0xb4751c\nMOV             X0, X21; this                                          ; +0x64, 0xb47520\nBL              _ZNK4pugi8xml_node12next_siblingEv; pugi::xml_node::next_sibling(void) ; +0x68, 0xb47524\nSTR             X0, [X29,#0x80+var_10]                                 ; +0x6c, 0xb47528\nMOV             X0, X19; this                                          ; +0x70, 0xb4752c\nBL              _ZNK4pugi8xml_node12next_siblingEv; pugi::xml_node::next_sibling(void) ; +0x74, 0xb47530\nSTR             X0, [X29,#0x80+var_18]                                 ; +0x78, 0xb47534\nMOV             X0, X21                                                ; +0x7c, 0xb47538\nBL              _ZNK4pugi8xml_nodecvPFvPPPS0_EEv; pugi::xml_node::operator void (*)(pugi::xml_node***)(void) ; +0x80, 0xb4753c\nCBZ             X0, loc_B475D0                                         ; +0x84, 0xb47540\nMOV             X0, X21; this                                          ; +0x88, 0xb47544\nBL              _ZNK4pugi8xml_node11child_valueEv; pugi::xml_node::child_value(void) ; +0x8c, 0xb47548\nMOV             X1, X0; char *                                         ; +0x90, 0xb4754c\nMOV             X2, X22                                                ; +0x94, 0xb47550\nMOV             X0, X19; int                                           ; +0x98, 0xb47554\nBL              sub_D153B8                                             ; +0x9c, 0xb47558\nLDR             X0, [X20,#8]                                           ; +0xa0, 0xb4755c\nLDR             X1, [X20,#0x10]                                        ; +0xa4, 0xb47560\nCMP             X0, X1                                                 ; +0xa8, 0xb47564\nB.EQ            loc_B47600                                             ; +0xac, 0xb47568\nLDR             X1, [X19]                                              ; +0xb0, 0xb4756c\nADRP            X2, #off_122EFE8@PAGE                                  ; +0xb4, 0xb47570\nCBZ             X0, loc_B47588                                         ; +0xb8, 0xb47574\nSTR             X1, [X0]                                               ; +0xbc, 0xb47578\nLDR             X1, [X23,#off_122EFE8@PAGEOFF]; qword_124B6B0          ; +0xc0, 0xb4757c\nADD             X1, X1, #0x18                                          ; +0xc4, 0xb47580\nSTR             X1, [X19]                                              ; +0xc8, 0xb47584\nADD             X0, X0, #8                                             ; +0xcc, 0xb47588\nSTR             X0, [X20,#8]                                           ; +0xd0, 0xb4758c\nLDR             X2, [X2,#off_122EFE8@PAGEOFF]; qword_124B6B0           ; +0xd4, 0xb47590\nSUB             X0, X1, #0x18; p                                       ; +0xd8, 0xb47594\nCMP             X0, X2                                                 ; +0xdc, 0xb47598\nB.EQ            loc_B47520                                             ; +0xe0, 0xb4759c\nLDR             X2, [X25,#pthread_create_ptr_0@PAGEOFF]; pthread_create ; +0xe4, 0xb475a0\nCBZ             X2, loc_B47618                                         ; +0xe8, 0xb475a4\nSUB             X1, X1, #8                                             ; +0xec, 0xb475a8\nLDAXR           W2, [X1]                                               ; +0xf0, 0xb475ac\nSUB             W3, W2, #1                                             ; +0xf4, 0xb475b0\nSTLXR           W4, W3, [X1]                                           ; +0xf8, 0xb475b4\nCBNZ            W4, loc_B475AC                                         ; +0xfc, 0xb475b8\nCMP             W2, WZR                                                ; +0x100, 0xb475bc\nB.GT            loc_B47520                                             ; +0x104, 0xb475c0\nMOV             X1, X26                                                ; +0x108, 0xb475c4\nBL              j__ZdlPv; operator delete(void *)                      ; +0x10c, 0xb475c8\nB               loc_B47520                                             ; +0x110, 0xb475cc\nLDR             X24, [X24,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x114, 0xb475d0\nMOV             X0, X20                                                ; +0x118, 0xb475d4\nLDR             X2, [X29,#0x80+var_8]                                  ; +0x11c, 0xb475d8\nLDR             X1, [X24]                                              ; +0x120, 0xb475dc\nCMP             X2, X1                                                 ; +0x124, 0xb475e0\nB.NE            loc_B47628                                             ; +0x128, 0xb475e4\nLDP             X19, X20, [SP,#0x80+var_70]                            ; +0x12c, 0xb475e8\nLDP             X21, X22, [SP,#0x80+var_60]                            ; +0x130, 0xb475ec\nLDP             X23, X24, [SP,#0x80+var_50]                            ; +0x134, 0xb475f0\nLDP             X25, X26, [SP,#0x80+var_40]                            ; +0x138, 0xb475f4\nLDP             X29, X30, [SP+0x80+var_80],#0x80                       ; +0x13c, 0xb475f8\nRET                                                                    ; +0x140, 0xb475fc\nMOV             X1, X19                                                ; +0x144, 0xb47600\nMOV             X0, X20                                                ; +0x148, 0xb47604\nBL              _ZNSt6vectorISsSaISsEE19_M_emplace_back_auxIJSsEEEvDpOT_; std::vector<std::string>::_M_emplace_back_aux<std::string>(std::string &&) ; +0x14c, 0xb47608\nLDR             X1, [X19]                                              ; +0x150, 0xb4760c\nADRP            X2, #off_122EFE8@PAGE                                  ; +0x154, 0xb47610\nB               loc_B47590                                             ; +0x158, 0xb47614\nLDUR            W2, [X1,#-8]                                           ; +0x15c, 0xb47618\nSUB             W3, W2, #1                                             ; +0x160, 0xb4761c\nSTUR            W3, [X1,#-8]                                           ; +0x164, 0xb47620\nB               loc_B475BC                                             ; +0x168, 0xb47624\nBL              .__stack_chk_fail                                      ; +0x16c, 0xb47628", "xrefs": ["<???> @ 0xa05a8"], "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"}