{"type": "func", "start": 4296421100, "end": 4296421360, "name": "DS_Dictionary::addBoolValuesToMapForKey", "pseudocode": "// \n// DS_Dictionary::addBoolValuesToMapForKey from 0x100162eec to 0x100162ff0 (260 bytes)\n// \n// 1 xrefs:\n// > GameLevelManager::dataLoaded @ 0x10009b808\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 __fastcall DS_Dictionary::addBoolValuesToMapForKey(\n        DS_Dictionary *a1,\n        std::map<std::string,bool> *a2,\n        const char *a3,\n        bool a4)\n{\n  char *v7; // x0\n  std::__vector_base<pugi::xml_node>::pointer end; // x8\n  void *__p[2]; // [xsp+0h] [xbp-60h] BYREF\n  char v10; // [xsp+17h] [xbp-49h]\n  __int64 i; // [xsp+18h] [xbp-48h] BYREF\n  char v12; // [xsp+27h] [xbp-39h] BYREF\n  void **v13; // [xsp+28h] [xbp-38h] BYREF\n\n  if ( !a3 || a4 || DS_Dictionary::stepIntoSubDictWithKey(a1, a3) )\n  {\n    for ( i = sub_1003AB5F8(&a1->dictTree.__end_[-1]); sub_1003AB448(&i); i = sub_1003AB594(__p) )\n    {\n      v7 = (char *)sub_1003AB5AC(&i);\n      sub_100009900(__p, v7);\n      v13 = __p;\n      *(_BYTE *)(sub_100164ADC(a2, __p, &unk_100638BDB, &v13, &v12) + 56) = 1;\n      if ( v10 < 0 )\n        operator delete(__p[0]);\n      __p[0] = (void *)sub_1003AB594(&i);\n    }\n    if ( a3 )\n    {\n      end = a1->dictTree.__end_;\n      if ( (unsigned __int64)((char *)end - (char *)a1->dictTree.__begin_) >= 9 )\n        a1->dictTree.__end_ = end - 1;\n    }\n  }\n}", "assembly": "; \n; DS_Dictionary::addBoolValuesToMapForKey from 0x100162eec to 0x100162ff0 (260 bytes)\n; \n; 1 xrefs:\n; > GameLevelManager::dataLoaded @ 0x10009b808\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\nSUB             SP, SP, #0x70                                          ; +0x0, 0x100162eec\nSTP             X24, X23, [SP,#0x60+var_30]                            ; +0x4, 0x100162ef0\nSTP             X22, X21, [SP,#0x60+var_20]                            ; +0x8, 0x100162ef4\nSTP             X20, X19, [SP,#0x60+var_10]                            ; +0xc, 0x100162ef8\nSTP             X29, X30, [SP,#0x60+var_s0]                            ; +0x10, 0x100162efc\nADD             X29, SP, #0x60                                         ; +0x14, 0x100162f00\nMOV             X20, X2                                                ; +0x18, 0x100162f04\nMOV             X21, X1                                                ; +0x1c, 0x100162f08\nMOV             X19, X0                                                ; +0x20, 0x100162f0c\nCBZ             X2, loc_100162F28                                      ; +0x24, 0x100162f10\nTBNZ            W3, #0, loc_100162F28                                  ; +0x28, 0x100162f14\nMOV             X0, X19                                                ; +0x2c, 0x100162f18\nMOV             X1, X20                                                ; +0x30, 0x100162f1c\nBL              DS_Dictionary__stepIntoSubDictWithKey                  ; +0x34, 0x100162f20\nCBZ             W0, loc_100162FD8                                      ; +0x38, 0x100162f24\nLDR             X8, [X19,#0xD8]                                        ; +0x3c, 0x100162f28\nSUB             X0, X8, #8                                             ; +0x40, 0x100162f2c\nBL              sub_1003AB5F8                                          ; +0x44, 0x100162f30\nSTR             X0, [SP,#0x60+var_48]                                  ; +0x48, 0x100162f34\nADD             X0, SP, #0x60+var_48                                   ; +0x4c, 0x100162f38\nBL              sub_1003AB448                                          ; +0x50, 0x100162f3c\nCBZ             X0, loc_100162FBC                                      ; +0x54, 0x100162f40\nMOV             X23, SP                                                ; +0x58, 0x100162f44\nADRL            X22, unk_100638BDB                                     ; +0x5c, 0x100162f48\nMOV             W24, #1                                                ; +0x64, 0x100162f50\nADD             X0, SP, #0x60+var_48                                   ; +0x68, 0x100162f54\nBL              sub_1003AB5AC                                          ; +0x6c, 0x100162f58\nMOV             X1, X0; __s                                            ; +0x70, 0x100162f5c\nMOV             X0, SP; int                                            ; +0x74, 0x100162f60\nBL              sub_100009900                                          ; +0x78, 0x100162f64\nSTR             X23, [SP,#0x60+var_38]                                 ; +0x7c, 0x100162f68\nMOV             X1, SP                                                 ; +0x80, 0x100162f6c\nADD             X3, SP, #0x60+var_38                                   ; +0x84, 0x100162f70\nADD             X4, SP, #0x60+var_39                                   ; +0x88, 0x100162f74\nMOV             X0, X21                                                ; +0x8c, 0x100162f78\nMOV             X2, X22                                                ; +0x90, 0x100162f7c\nBL              sub_100164ADC                                          ; +0x94, 0x100162f80\nSTRB            W24, [X0,#0x38]                                        ; +0x98, 0x100162f84\nLDRSB           W8, [SP,#0x60+var_49]                                  ; +0x9c, 0x100162f88\nTBZ             W8, #0x1F, loc_100162F98                               ; +0xa0, 0x100162f8c\nLDR             X0, [SP,#0x60+__p]; __p                                ; +0xa4, 0x100162f90\nBL              __ZdlPv; operator delete(void *)                       ; +0xa8, 0x100162f94\nADD             X0, SP, #0x60+var_48                                   ; +0xac, 0x100162f98\nBL              sub_1003AB594                                          ; +0xb0, 0x100162f9c\nSTR             X0, [SP,#0x60+__p]                                     ; +0xb4, 0x100162fa0\nMOV             X0, SP                                                 ; +0xb8, 0x100162fa4\nBL              sub_1003AB594                                          ; +0xbc, 0x100162fa8\nSTR             X0, [SP,#0x60+var_48]                                  ; +0xc0, 0x100162fac\nADD             X0, SP, #0x60+var_48                                   ; +0xc4, 0x100162fb0\nBL              sub_1003AB448                                          ; +0xc8, 0x100162fb4\nCBNZ            X0, loc_100162F54                                      ; +0xcc, 0x100162fb8\nCBZ             X20, loc_100162FD8                                     ; +0xd0, 0x100162fbc\nLDP             X9, X8, [X19,#0xD0]                                    ; +0xd4, 0x100162fc0\nSUB             X9, X8, X9                                             ; +0xd8, 0x100162fc4\nCMP             X9, #9                                                 ; +0xdc, 0x100162fc8\nB.CC            loc_100162FD8                                          ; +0xe0, 0x100162fcc\nSUB             X8, X8, #8                                             ; +0xe4, 0x100162fd0\nSTR             X8, [X19,#0xD8]                                        ; +0xe8, 0x100162fd4\nLDP             X29, X30, [SP,#0x60+var_s0]                            ; +0xec, 0x100162fd8\nLDP             X20, X19, [SP,#0x60+var_10]                            ; +0xf0, 0x100162fdc\nLDP             X22, X21, [SP,#0x60+var_20]                            ; +0xf4, 0x100162fe0\nLDP             X24, X23, [SP,#0x60+var_30]                            ; +0xf8, 0x100162fe4\nADD             SP, SP, #0x70 ; 'p'                                    ; +0xfc, 0x100162fe8\nRET                                                                    ; +0x100, 0x100162fec", "xrefs": ["GameLevelManager::dataLoaded @ 0x10009b808"], "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"}