{"type": "func", "start": 8442776, "end": 8442910, "name": "DS_Dictionary::setBoolMapForKey", "pseudocode": "// \n// DS_Dictionary::setBoolMapForKey from 0x80d398 to 0x80d41e (134 bytes)\n// \n// 1 xrefs:\n// > GameLevelManager::encodeDataTo @ 0x4ae3da\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:33 +0000\n// \n\nint __fastcall DS_Dictionary::setBoolMapForKey(DS_Dictionary *a1, const char *a2, char *a3, int a4)\n{\n  int result; // r0\n  char *v8; // r4\n  char *v9; // r5\n  char *v10; // t1\n  char *v11; // r1\n  char *v12; // r3\n  char *v13; // r3\n  int v14[2]; // [sp+0h] [bp-10h] BYREF\n  char *v15; // [sp+8h] [bp-8h]\n  int v16; // [sp+Ch] [bp-4h]\n\n  v14[0] = (int)a1;\n  v14[1] = (int)a2;\n  v15 = a3;\n  v16 = a4;\n  DS_Dictionary::setSubDictForKey(a1, a2);\n  result = DS_Dictionary::stepIntoSubDictWithKey(a1, a2);\n  if ( result )\n  {\n    v10 = *(char **)a3;\n    v9 = a3 + 4;\n    v8 = v10;\n    while ( v8 != v9 )\n    {\n      std::string::basic_string(v14, (int)(v8 + 16));\n      if ( (v14[0] & 1) != 0 )\n        v11 = v15;\n      else\n        v11 = (char *)v14 + 1;\n      DS_Dictionary::setBoolForKey(a1, v11, v8[28]);\n      std::string::~string((int)v14);\n      v12 = *((char **)v8 + 1);\n      if ( v12 )\n      {\n        do\n        {\n          v8 = v12;\n          v12 = *(char **)v12;\n        }\n        while ( v12 );\n      }\n      else\n      {\n        do\n        {\n          v13 = v8;\n          v8 = *((char **)v8 + 2);\n        }\n        while ( v13 != *(char **)v8 );\n      }\n    }\n    return DS_Dictionary::stepOutOfSubDict((int)a1);\n  }\n  return result;\n}", "assembly": "; \n; DS_Dictionary::setBoolMapForKey from 0x80d398 to 0x80d41e (134 bytes)\n; \n; 1 xrefs:\n; > GameLevelManager::encodeDataTo @ 0x4ae3da\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:33 +0000\n; \nPUSH.W          {R0-R8,LR}                                             ; +0x0, 0x80d398\nMOV             R6, R1                                                 ; +0x4, 0x80d39c\nLDR             R4, =(__stack_chk_guard_ptr - 0x80D3A8)                ; +0x6, 0x80d39e\nMOV             R7, R0                                                 ; +0x8, 0x80d3a0\nMOV             R5, R2                                                 ; +0xa, 0x80d3a2\nADD             R4, PC; __stack_chk_guard_ptr                          ; +0xc, 0x80d3a4\nLDR             R4, [R4]; __stack_chk_guard                            ; +0xe, 0x80d3a6\nLDR             R3, [R4]                                               ; +0x10, 0x80d3a8\nSTR             R3, [SP,#0x10+var_4]                                   ; +0x12, 0x80d3aa\nBL              _ZN13DS_Dictionary16setSubDictForKeyEPKc; DS_Dictionary::setSubDictForKey(char const*) ; +0x14, 0x80d3ac\nMOV             R1, R6; char *                                         ; +0x18, 0x80d3b0\nMOV             R0, R7; this                                           ; +0x1a, 0x80d3b2\nBL              _ZN13DS_Dictionary22stepIntoSubDictWithKeyEPKc; DS_Dictionary::stepIntoSubDictWithKey(char const*) ; +0x1c, 0x80d3b4\nMOV             R6, R4                                                 ; +0x20, 0x80d3b8\nCBZ             R0, loc_80D40C                                         ; +0x22, 0x80d3ba\nLDR.W           R4, [R5],#4                                            ; +0x24, 0x80d3bc\nMOV             R8, SP                                                 ; +0x28, 0x80d3c0\nCMP             R4, R5                                                 ; +0x2a, 0x80d3c2\nBEQ             loc_80D406                                             ; +0x2c, 0x80d3c4\nADD.W           R1, R4, #0x10                                          ; +0x2e, 0x80d3c6\nMOV             R0, R8                                                 ; +0x32, 0x80d3ca\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEC2ERKS5_; std::string::basic_string(std::string const&) ; +0x34, 0x80d3cc\nLDRB.W          R3, [SP,#0x10+var_10]                                  ; +0x38, 0x80d3d0\nLDRB            R2, [R4,#0x1C]; bool                                   ; +0x3c, 0x80d3d4\nMOV             R0, R7; this                                           ; +0x3e, 0x80d3d6\nLSLS            R3, R3, #0x1F                                          ; +0x40, 0x80d3d8\nITE PL                                                                 ; +0x42, 0x80d3da\nADDPL.W         R1, SP, #0x10+var_F                                    ; +0x44, 0x80d3dc\nLDRMI           R1, [SP,#0x10+var_8]; char *                           ; +0x48, 0x80d3e0\nBL              _ZN13DS_Dictionary13setBoolForKeyEPKcb; DS_Dictionary::setBoolForKey(char const*,bool) ; +0x4a, 0x80d3e2\nMOV             R0, R8                                                 ; +0x4e, 0x80d3e6\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev; std::string::~string() ; +0x50, 0x80d3e8\nLDR             R3, [R4,#4]                                            ; +0x54, 0x80d3ec\nCBNZ            R3, loc_80D3FC                                         ; +0x56, 0x80d3ee\nMOV             R3, R4                                                 ; +0x58, 0x80d3f0\nLDR             R4, [R4,#8]                                            ; +0x5a, 0x80d3f2\nLDR             R2, [R4]                                               ; +0x5c, 0x80d3f4\nCMP             R3, R2                                                 ; +0x5e, 0x80d3f6\nBNE             loc_80D3F0                                             ; +0x60, 0x80d3f8\nB               loc_80D3C2                                             ; +0x62, 0x80d3fa\nMOV             R4, R3                                                 ; +0x64, 0x80d3fc\nLDR             R3, [R3]                                               ; +0x66, 0x80d3fe\nCMP             R3, #0                                                 ; +0x68, 0x80d400\nBNE             loc_80D3FC                                             ; +0x6a, 0x80d402\nB               loc_80D3C2                                             ; +0x6c, 0x80d404\nMOV             R0, R7; this                                           ; +0x6e, 0x80d406\nBL              _ZN13DS_Dictionary16stepOutOfSubDictEv; DS_Dictionary::stepOutOfSubDict(void) ; +0x70, 0x80d408\nLDR             R2, [SP,#0x10+var_4]                                   ; +0x74, 0x80d40c\nLDR             R3, [R6]                                               ; +0x76, 0x80d40e\nCMP             R2, R3                                                 ; +0x78, 0x80d410\nBEQ             loc_80D418                                             ; +0x7a, 0x80d412\nBLX             __stack_chk_fail                                       ; +0x7c, 0x80d414\nADD             SP, SP, #0x10                                          ; +0x80, 0x80d418\nPOP.W           {R4-R8,PC}                                             ; +0x82, 0x80d41a", "xrefs": ["GameLevelManager::encodeDataTo @ 0x4ae3da"], "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"}