{"type": "func", "start": 11821784, "end": 11822116, "name": "DS_Dictionary::setBoolMapForKey", "pseudocode": "// \n// DS_Dictionary::setBoolMapForKey from 0xb462d8 to 0xb46424 (332 bytes)\n// \n// 2 xrefs:\n// > GameLevelManager::encodeDataTo @ 0x708b9c\n// > <???> @ 0x9f270\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::setBoolMapForKey(DS_Dictionary *a1, const char *a2, std::map<std::string,bool> *a3)\n{\n  std::_rb_tree_base *p_m_header; // x22\n  std::_rb_tree_base *m_left; // x20\n  char *v7; // x0\n  unsigned int *v8; // x1\n  int v9; // w2\n  const char *v11; // [xsp+80h] [xbp+80h] BYREF\n\n  DS_Dictionary::setSubDictForKey(a1, a2);\n  if ( DS_Dictionary::stepIntoSubDictWithKey(a1, a2) )\n  {\n    p_m_header = &a3->m_header;\n    m_left = a3->m_header.m_left;\n    if ( m_left != &a3->m_header )\n    {\n      do\n      {\n        while ( 1 )\n        {\n          sub_D18D28(&v11);\n          DS_Dictionary::setBoolForKey(a1, v11, (bool)m_left[1].m_parent);\n          v7 = (char *)(v11 - 24);\n          if ( v11 - 24 != (const char *)&qword_124B6B0 )\n          {\n            if ( &pthread_create )\n            {\n              v8 = (unsigned int *)(v11 - 8);\n              do\n                v9 = __ldaxr(v8);\n              while ( __stlxr(v9 - 1, v8) );\n            }\n            else\n            {\n              v9 = *((_DWORD *)v11 - 2);\n              *((_DWORD *)v11 - 2) = v9 - 1;\n            }\n            if ( v9 <= 0 )\n              break;\n          }\n          m_left = (std::_rb_tree_base *)sub_CFAB14(m_left);\n          if ( p_m_header == m_left )\n            goto LABEL_11;\n        }\n        operator delete(v7);\n        m_left = (std::_rb_tree_base *)sub_CFAB14(m_left);\n      }\n      while ( p_m_header != m_left );\n    }\nLABEL_11:\n    DS_Dictionary::stepOutOfSubDict(a1);\n  }\n}", "assembly": "; \n; DS_Dictionary::setBoolMapForKey from 0xb462d8 to 0xb46424 (332 bytes)\n; \n; 2 xrefs:\n; > GameLevelManager::encodeDataTo @ 0x708b9c\n; > <???> @ 0x9f270\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_90]!                                ; +0x0, 0xb462d8\nMOV             X29, SP                                                ; +0x4, 0xb462dc\nSTP             X25, X26, [SP,#0x90+var_50]                            ; +0x8, 0xb462e0\nADRP            X25, #__stack_chk_guard_ptr@PAGE                       ; +0xc, 0xb462e4\nSTR             X27, [SP,#0x90+var_40]                                 ; +0x10, 0xb462e8\nSTP             X19, X20, [SP,#0x90+var_80]                            ; +0x14, 0xb462ec\nSTP             X23, X24, [SP,#0x90+var_60]                            ; +0x18, 0xb462f0\nLDR             X3, [X25,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x1c, 0xb462f4\nMOV             X23, X0                                                ; +0x20, 0xb462f8\nMOV             X19, X1                                                ; +0x24, 0xb462fc\nSTR             X2, [X29,#0x90+var_28]                                 ; +0x28, 0xb46300\nSTP             X21, X22, [SP,#0x90+var_70]                            ; +0x2c, 0xb46304\nLDR             X3, [X3]                                               ; +0x30, 0xb46308\nSTR             X3, [X29,#0x90+var_8]                                  ; +0x34, 0xb4630c\nBL              _ZN13DS_Dictionary16setSubDictForKeyEPKc; DS_Dictionary::setSubDictForKey(char const*) ; +0x38, 0xb46310\nMOV             X0, X23; this                                          ; +0x3c, 0xb46314\nMOV             X1, X19; char *                                        ; +0x40, 0xb46318\nBL              _ZN13DS_Dictionary22stepIntoSubDictWithKeyEPKc; DS_Dictionary::stepIntoSubDictWithKey(char const*) ; +0x44, 0xb4631c\nUXTB            W0, W0                                                 ; +0x48, 0xb46320\nCBZ             W0, loc_B463E0                                         ; +0x4c, 0xb46324\nLDR             X2, [X29,#0x90+var_28]                                 ; +0x50, 0xb46328\nADD             X22, X2, #8                                            ; +0x54, 0xb4632c\nLDR             X20, [X2,#0x18]                                        ; +0x58, 0xb46330\nCMP             X20, X22                                               ; +0x5c, 0xb46334\nB.EQ            loc_B463D8                                             ; +0x60, 0xb46338\nADD             X21, X29, #0x90+var_10                                 ; +0x64, 0xb4633c\nADRP            X24, #off_122EFE8@PAGE                                 ; +0x68, 0xb46340\nADRP            X26, #pthread_create_ptr_0@PAGE                        ; +0x6c, 0xb46344\nADD             X27, X29, #0x90+var_18                                 ; +0x70, 0xb46348\nB               loc_B46364                                             ; +0x74, 0xb4634c\nMOV             X0, X20                                                ; +0x78, 0xb46350\nBL              sub_CFAB14                                             ; +0x7c, 0xb46354\nCMP             X22, X0                                                ; +0x80, 0xb46358\nMOV             X20, X0                                                ; +0x84, 0xb4635c\nB.EQ            loc_B463D8                                             ; +0x88, 0xb46360\nADD             X19, X20, #0x20 ; ' '                                  ; +0x8c, 0xb46364\nMOV             X0, X21                                                ; +0x90, 0xb46368\nMOV             X1, X19                                                ; +0x94, 0xb4636c\nBL              sub_D18D28                                             ; +0x98, 0xb46370\nLDR             X1, [X21]; char *                                      ; +0x9c, 0xb46374\nMOV             X0, X23; this                                          ; +0xa0, 0xb46378\nLDRB            W2, [X20,#0x28]; bool                                  ; +0xa4, 0xb4637c\nBL              _ZN13DS_Dictionary13setBoolForKeyEPKcb; DS_Dictionary::setBoolForKey(char const*,bool) ; +0xa8, 0xb46380\nLDR             X1, [X21]                                              ; +0xac, 0xb46384\nLDR             X2, [X24,#off_122EFE8@PAGEOFF]; qword_124B6B0          ; +0xb0, 0xb46388\nSUB             X0, X1, #0x18; p                                       ; +0xb4, 0xb4638c\nCMP             X0, X2                                                 ; +0xb8, 0xb46390\nB.EQ            loc_B46350                                             ; +0xbc, 0xb46394\nLDR             X2, [X26,#pthread_create_ptr_0@PAGEOFF]; pthread_create ; +0xc0, 0xb46398\nCBZ             X2, loc_B46410                                         ; +0xc4, 0xb4639c\nSUB             X1, X1, #8                                             ; +0xc8, 0xb463a0\nLDAXR           W2, [X1]                                               ; +0xcc, 0xb463a4\nSUB             W3, W2, #1                                             ; +0xd0, 0xb463a8\nSTLXR           W4, W3, [X1]                                           ; +0xd4, 0xb463ac\nCBNZ            W4, loc_B463A4                                         ; +0xd8, 0xb463b0\nCMP             W2, WZR                                                ; +0xdc, 0xb463b4\nB.GT            loc_B46350                                             ; +0xe0, 0xb463b8\nMOV             X1, X27                                                ; +0xe4, 0xb463bc\nBL              j__ZdlPv; operator delete(void *)                      ; +0xe8, 0xb463c0\nMOV             X0, X20                                                ; +0xec, 0xb463c4\nBL              sub_CFAB14                                             ; +0xf0, 0xb463c8\nCMP             X22, X0                                                ; +0xf4, 0xb463cc\nMOV             X20, X0                                                ; +0xf8, 0xb463d0\nB.NE            loc_B46364                                             ; +0xfc, 0xb463d4\nMOV             X0, X23; this                                          ; +0x100, 0xb463d8\nBL              _ZN13DS_Dictionary16stepOutOfSubDictEv; DS_Dictionary::stepOutOfSubDict(void) ; +0x104, 0xb463dc\nLDR             X25, [X25,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x108, 0xb463e0\nLDR             X1, [X29,#0x90+var_8]                                  ; +0x10c, 0xb463e4\nLDR             X0, [X25]                                              ; +0x110, 0xb463e8\nCMP             X1, X0                                                 ; +0x114, 0xb463ec\nB.NE            loc_B46420                                             ; +0x118, 0xb463f0\nLDP             X19, X20, [SP,#0x90+var_80]                            ; +0x11c, 0xb463f4\nLDP             X21, X22, [SP,#0x90+var_70]                            ; +0x120, 0xb463f8\nLDP             X23, X24, [SP,#0x90+var_60]                            ; +0x124, 0xb463fc\nLDP             X25, X26, [SP,#0x90+var_50]                            ; +0x128, 0xb46400\nLDR             X27, [SP,#0x90+var_40]                                 ; +0x12c, 0xb46404\nLDP             X29, X30, [SP+0x90+var_90],#0x90                       ; +0x130, 0xb46408\nRET                                                                    ; +0x134, 0xb4640c\nLDUR            W2, [X1,#-8]                                           ; +0x138, 0xb46410\nSUB             W3, W2, #1                                             ; +0x13c, 0xb46414\nSTUR            W3, [X1,#-8]                                           ; +0x140, 0xb46418\nB               loc_B463B4                                             ; +0x144, 0xb4641c\nBL              .__stack_chk_fail                                      ; +0x148, 0xb46420", "xrefs": ["GameLevelManager::encodeDataTo @ 0x708b9c", "<???> @ 0x9f270"], "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"}