{"type": "func", "start": 8446216, "end": 8446378, "name": "DS_Dictionary::addBoolValuesToMapForKey", "pseudocode": "// \n// DS_Dictionary::addBoolValuesToMapForKey from 0x80e108 to 0x80e1aa (162 bytes)\n// \n// 1 xrefs:\n// > GameLevelManager::dataLoaded @ 0x4dd2ec\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:34 +0000\n// \n\nint __fastcall DS_Dictionary::addBoolValuesToMapForKey(DS_Dictionary *a1, int *a2, char *a3, int a4)\n{\n  int result; // r0\n  const char *v8; // r0\n  const char *v9; // r11\n  size_t v10; // r0\n  int i; // [sp+0h] [bp-1Ch] BYREF\n  int sibling; // [sp+4h] [bp-18h] BYREF\n  int v13[3]; // [sp+8h] [bp-14h] BYREF\n\n  if ( !a3 || a4 || (result = DS_Dictionary::stepIntoSubDictWithKey(a1, a3)) != 0 )\n  {\n    for ( i = pugi::xml_node::first_child((pugi::xml_node *)(*((_DWORD *)a1 + 51) - 4));\n          ;\n          i = pugi::xml_node::next_sibling((pugi::xml_node *)&sibling) )\n    {\n      result = pugi::xml_node::operator void (*)(pugi::xml_node***)(&i);\n      if ( !result )\n        break;\n      v8 = (const char *)pugi::xml_node::child_value((pugi::xml_node *)&i);\n      memset(v13, 0, sizeof(v13));\n      v9 = v8;\n      v10 = strlen(v8);\n      std::string::__init(v13, v9, v10);\n      *(_BYTE *)std::map<std::string,bool>::operator[](a2, v13) = 1;\n      std::string::~string((int)v13);\n      sibling = pugi::xml_node::next_sibling((pugi::xml_node *)&i);\n    }\n    if ( a3 )\n      return DS_Dictionary::stepOutOfSubDict((int)a1);\n  }\n  return result;\n}", "assembly": "; \n; DS_Dictionary::addBoolValuesToMapForKey from 0x80e108 to 0x80e1aa (162 bytes)\n; \n; 1 xrefs:\n; > GameLevelManager::dataLoaded @ 0x4dd2ec\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:34 +0000\n; \nPUSH.W          {R4-R11,LR}                                            ; +0x0, 0x80e108\nMOV             R10, R1                                                ; +0x4, 0x80e10c\nLDR             R1, =(__stack_chk_guard_ptr - 0x80E11A)                ; +0x6, 0x80e10e\nSUB             SP, SP, #0x1C                                          ; +0x8, 0x80e110\nMOV             R9, R0                                                 ; +0xa, 0x80e112\nMOV             R8, R2                                                 ; +0xc, 0x80e114\nADD             R1, PC; __stack_chk_guard_ptr                          ; +0xe, 0x80e116\nLDR             R1, [R1]; __stack_chk_guard                            ; +0x10, 0x80e118\nLDR             R4, [R1]                                               ; +0x12, 0x80e11a\nMOV             R5, R1                                                 ; +0x14, 0x80e11c\nSTR             R4, [SP,#0x1C+var_8]                                   ; +0x16, 0x80e11e\nCBZ             R2, loc_80E12C                                         ; +0x18, 0x80e120\nCBNZ            R3, loc_80E12C                                         ; +0x1a, 0x80e122\nMOV             R1, R2; char *                                         ; +0x1c, 0x80e124\nBL              _ZN13DS_Dictionary22stepIntoSubDictWithKeyEPKc; DS_Dictionary::stepIntoSubDictWithKey(char const*) ; +0x1e, 0x80e126\nCBZ             R0, loc_80E198                                         ; +0x22, 0x80e12a\nLDR.W           R0, [R9,#0xCC]                                         ; +0x24, 0x80e12c\nADD             R4, SP, #0x1C+var_4                                    ; +0x28, 0x80e130\nADD             R6, SP, #0x1C+var_14                                   ; +0x2a, 0x80e132\nMOVS            R7, #0                                                 ; +0x2c, 0x80e134\nSUBS            R0, #4; this                                           ; +0x2e, 0x80e136\nBL              _ZNK4pugi8xml_node11first_childEv; pugi::xml_node::first_child(void) ; +0x30, 0x80e138\nSTR.W           R0, [R4,#-0x18]!                                       ; +0x34, 0x80e13c\nMOV             R0, R4                                                 ; +0x38, 0x80e140\nBL              _ZNK4pugi8xml_nodecvPFvPPPS0_EEv; pugi::xml_node::operator void (*)(pugi::xml_node***)(void) ; +0x3a, 0x80e142\nCBZ             R0, loc_80E18C                                         ; +0x3e, 0x80e146\nMOV             R0, R4; this                                           ; +0x40, 0x80e148\nBL              _ZNK4pugi8xml_node11child_valueEv; pugi::xml_node::child_value(void) ; +0x42, 0x80e14a\nSTR             R7, [SP,#0x1C+var_14]                                  ; +0x46, 0x80e14e\nSTR             R7, [SP,#0x1C+var_10]                                  ; +0x48, 0x80e150\nSTR             R7, [SP,#0x1C+var_C]                                   ; +0x4a, 0x80e152\nMOV             R11, R0                                                ; +0x4c, 0x80e154\nBLX             strlen                                                 ; +0x4e, 0x80e156\nMOV             R1, R11                                                ; +0x52, 0x80e15a\nMOV             R2, R0                                                 ; +0x54, 0x80e15c\nMOV             R0, R6                                                 ; +0x56, 0x80e15e\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6__initEPKcj; std::string::__init(char const*,uint) ; +0x58, 0x80e160\nMOV             R1, R6                                                 ; +0x5c, 0x80e164\nMOV             R0, R10                                                ; +0x5e, 0x80e166\nBL              _ZNSt6__ndk13mapINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEEbNS_4lessIS6_EENS4_INS_4pairIKS6_bEEEEEixERSA_; std::map<std::string,bool>::operator[](std::string const&) ; +0x60, 0x80e168\nMOVS            R3, #1                                                 ; +0x64, 0x80e16c\nSTRB            R3, [R0]                                               ; +0x66, 0x80e16e\nMOV             R0, R6                                                 ; +0x68, 0x80e170\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev; std::string::~string() ; +0x6a, 0x80e172\nMOV             R0, R4; this                                           ; +0x6e, 0x80e176\nBL              _ZNK4pugi8xml_node12next_siblingEv; pugi::xml_node::next_sibling(void) ; +0x70, 0x80e178\nADD             R3, SP, #0x1C+var_4                                    ; +0x74, 0x80e17c\nSTR.W           R0, [R3,#-0x14]!                                       ; +0x76, 0x80e17e\nMOV             R0, R3; this                                           ; +0x7a, 0x80e182\nBL              _ZNK4pugi8xml_node12next_siblingEv; pugi::xml_node::next_sibling(void) ; +0x7c, 0x80e184\nSTR             R0, [SP,#0x1C+var_1C]                                  ; +0x80, 0x80e188\nB               loc_80E140                                             ; +0x82, 0x80e18a\nCMP.W           R8, #0                                                 ; +0x84, 0x80e18c\nBEQ             loc_80E198                                             ; +0x88, 0x80e190\nMOV             R0, R9; this                                           ; +0x8a, 0x80e192\nBL              _ZN13DS_Dictionary16stepOutOfSubDictEv; DS_Dictionary::stepOutOfSubDict(void) ; +0x8c, 0x80e194\nLDR             R2, [SP,#0x1C+var_8]                                   ; +0x90, 0x80e198\nLDR             R3, [R5]                                               ; +0x92, 0x80e19a\nCMP             R2, R3                                                 ; +0x94, 0x80e19c\nBEQ             loc_80E1A4                                             ; +0x96, 0x80e19e\nBLX             __stack_chk_fail                                       ; +0x98, 0x80e1a0\nADD             SP, SP, #0x1C                                          ; +0x9c, 0x80e1a4\nPOP.W           {R4-R11,PC}                                            ; +0x9e, 0x80e1a6", "xrefs": ["GameLevelManager::dataLoaded @ 0x4dd2ec"], "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"}