{"type": "func", "start": 8434792, "end": 8435040, "name": "DS_Dictionary::setBoolForKey", "pseudocode": "// \n// DS_Dictionary::setBoolForKey from 0x80b468 to 0x80b560 (248 bytes)\n// \n// 1 xrefs:\n// > DS_Dictionary::setBoolForKey @ 0x80b58e\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:30 +0000\n// \n\nint __fastcall DS_Dictionary::setBoolForKey(int this, const char *a2, int a3, int a4)\n{\n  int v6; // r4\n  const char *v7; // r1\n  const char *v8; // r1\n  const char *v9; // r0\n  const char *v10; // r1\n  const char *inserted; // r0\n  const char *v12; // r1\n  const char *v13; // r1\n  const char *v14; // [sp+4h] [bp-Ch] BYREF\n  _DWORD v15[2]; // [sp+8h] [bp-8h] BYREF\n\n  v14 = a2;\n  v15[0] = a3;\n  v15[1] = a4;\n  v6 = this;\n  if ( a3 )\n  {\n    pugi::xml_node::xml_node((pugi::xml_node *)&v14);\n    if ( a4 )\n    {\n      if ( *(_BYTE *)(v6 + 212) )\n        v8 = \"key\";\n      else\n        v8 = \"k\";\n      v15[0] = pugi::xml_node::child((pugi::xml_node *)(*(_DWORD *)(v6 + 204) - 4), v8);\n      while ( pugi::xml_node::operator void (*)(pugi::xml_node***)(v15) )\n      {\n        v9 = (const char *)pugi::xml_node::child_value((pugi::xml_node *)v15);\n        if ( !alphaNumericallyLessThan(v9, a2) )\n        {\n          if ( *(_BYTE *)(v6 + 212) )\n            v10 = \"key\";\n          else\n            v10 = \"k\";\n          inserted = (const char *)pugi::xml_node::insert_child_before(\n                                     (pugi::xml_node *)(*(_DWORD *)(v6 + 204) - 4),\n                                     v10,\n                                     (const pugi::xml_node *)v15);\n          goto LABEL_21;\n        }\n        if ( *(_BYTE *)(v6 + 212) )\n          v12 = \"key\";\n        else\n          v12 = \"k\";\n        v15[0] = pugi::xml_node::next_sibling((pugi::xml_node *)v15, v12);\n      }\n    }\n    if ( *(_BYTE *)(v6 + 212) )\n      v7 = \"key\";\n    else\n      v7 = \"k\";\n    inserted = (const char *)pugi::xml_node::append_child((pugi::xml_node *)(*(_DWORD *)(v6 + 204) - 4), v7);\nLABEL_21:\n    v14 = inserted;\n    v15[0] = pugi::xml_node::append_child(&v14, 3);\n    pugi::xml_node::set_value((pugi::xml_node *)v15, a2);\n    if ( *(_BYTE *)(v6 + 212) )\n      v13 = \"true\";\n    else\n      v13 = \"t\";\n    return pugi::xml_node::insert_child_after(\n             (pugi::xml_node *)(*(_DWORD *)(v6 + 204) - 4),\n             v13,\n             (const pugi::xml_node *)&v14);\n  }\n  return this;\n}", "assembly": "; \n; DS_Dictionary::setBoolForKey from 0x80b468 to 0x80b560 (248 bytes)\n; \n; 1 xrefs:\n; > DS_Dictionary::setBoolForKey @ 0x80b58e\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:30 +0000\n; \nPUSH.W          {R0-R10,LR}                                            ; +0x0, 0x80b468\nMOV             R8, R1                                                 ; +0x4, 0x80b46c\nLDR             R1, =(__stack_chk_guard_ptr - 0x80B478)                ; +0x6, 0x80b46e\nMOV             R9, R3                                                 ; +0x8, 0x80b470\nMOV             R4, R0                                                 ; +0xa, 0x80b472\nADD             R1, PC; __stack_chk_guard_ptr                          ; +0xc, 0x80b474\nLDR             R1, [R1]; __stack_chk_guard                            ; +0xe, 0x80b476\nLDR             R3, [R1]                                               ; +0x10, 0x80b478\nMOV             R6, R1                                                 ; +0x12, 0x80b47a\nSTR             R3, [SP,#0x10+var_4]                                   ; +0x14, 0x80b47c\nCMP             R2, #0                                                 ; +0x16, 0x80b47e\nBEQ             loc_80B54E                                             ; +0x18, 0x80b480\nADD             R7, SP, #0x10+var_C                                    ; +0x1a, 0x80b482\nADD             R5, SP, #0x10+var_8                                    ; +0x1c, 0x80b484\nMOV             R0, R7; this                                           ; +0x1e, 0x80b486\nBL              _ZN4pugi8xml_nodeC1Ev; pugi::xml_node::xml_node(void)  ; +0x20, 0x80b488\nCMP.W           R9, #0                                                 ; +0x24, 0x80b48c\nBNE             loc_80B4A6                                             ; +0x28, 0x80b490\nLDRB.W          R3, [R4,#0xD4]                                         ; +0x2a, 0x80b492\nLDR.W           R0, [R4,#0xCC]                                         ; +0x2e, 0x80b496\nSUBS            R0, #4; this                                           ; +0x32, 0x80b49a\nCMP             R3, #0                                                 ; +0x34, 0x80b49c\nBNE             loc_80B516                                             ; +0x36, 0x80b49e\nLDR             R1, =(aK_0 - 0x80B4A6); \"k\"                            ; +0x38, 0x80b4a0\nADD             R1, PC; \"k\"                                            ; +0x3a, 0x80b4a2\nB               loc_80B51A                                             ; +0x3c, 0x80b4a4\nLDRB.W          R3, [R4,#0xD4]                                         ; +0x3e, 0x80b4a6\nLDR.W           R0, [R4,#0xCC]                                         ; +0x42, 0x80b4aa\nSUBS            R0, #4; this                                           ; +0x46, 0x80b4ae\nCBNZ            R3, loc_80B4B8                                         ; +0x48, 0x80b4b0\nLDR             R1, =(aK_0 - 0x80B4B8); \"k\"                            ; +0x4a, 0x80b4b2\nADD             R1, PC; \"k\"                                            ; +0x4c, 0x80b4b4\nB               loc_80B4BC                                             ; +0x4e, 0x80b4b6\nLDR             R1, =(aKey - 0x80B4BE); \"key\"                          ; +0x50, 0x80b4b8\nADD             R1, PC; \"key\"                                          ; +0x52, 0x80b4ba\nBL              _ZNK4pugi8xml_node5childEPKc; pugi::xml_node::child(char const*) ; +0x54, 0x80b4bc\nLDR.W           R9, =(aKey - 0x80B4CC); \"key\"                          ; +0x58, 0x80b4c0\nLDR.W           R10, =(aK_0 - 0x80B4CE); \"k\"                           ; +0x5c, 0x80b4c4\nADD             R9, PC; \"key\"                                          ; +0x60, 0x80b4c8\nADD             R10, PC; \"k\"                                           ; +0x62, 0x80b4ca\nSTR             R0, [SP,#0x10+var_8]                                   ; +0x64, 0x80b4cc\nMOV             R0, R5                                                 ; +0x66, 0x80b4ce\nBL              _ZNK4pugi8xml_nodecvPFvPPPS0_EEv; pugi::xml_node::operator void (*)(pugi::xml_node***)(void) ; +0x68, 0x80b4d0\nCMP             R0, #0                                                 ; +0x6c, 0x80b4d4\nBEQ             loc_80B492                                             ; +0x6e, 0x80b4d6\nMOV             R0, R5; this                                           ; +0x70, 0x80b4d8\nBL              _ZNK4pugi8xml_node11child_valueEv; pugi::xml_node::child_value(void) ; +0x72, 0x80b4da\nMOV             R1, R8; char *                                         ; +0x76, 0x80b4de\nBL              _Z24alphaNumericallyLessThanPKcS0_; alphaNumericallyLessThan(char const*,char const*) ; +0x78, 0x80b4e0\nLDRB.W          R3, [R4,#0xD4]                                         ; +0x7c, 0x80b4e4\nCBNZ            R0, loc_80B504                                         ; +0x80, 0x80b4e8\nLDR.W           R0, [R4,#0xCC]                                         ; +0x82, 0x80b4ea\nSUBS            R0, #4; this                                           ; +0x86, 0x80b4ee\nCBNZ            R3, loc_80B4F8                                         ; +0x88, 0x80b4f0\nLDR             R1, =(aK_0 - 0x80B4F8); \"k\"                            ; +0x8a, 0x80b4f2\nADD             R1, PC; \"k\"                                            ; +0x8c, 0x80b4f4\nB               loc_80B4FC                                             ; +0x8e, 0x80b4f6\nLDR             R1, =(aKey - 0x80B4FE); \"key\"                          ; +0x90, 0x80b4f8\nADD             R1, PC; \"key\"                                          ; +0x92, 0x80b4fa\nMOV             R2, R5; pugi::xml_node *                               ; +0x94, 0x80b4fc\nBL              _ZN4pugi8xml_node19insert_child_beforeEPKcRKS0_; pugi::xml_node::insert_child_before(char const*,pugi::xml_node const&) ; +0x96, 0x80b4fe\nB               loc_80B51E                                             ; +0x9a, 0x80b502\nCMP             R3, #0                                                 ; +0x9c, 0x80b504\nMOV             R0, R5; this                                           ; +0x9e, 0x80b506\nITE NE                                                                 ; +0xa0, 0x80b508\nMOVNE           R1, R9                                                 ; +0xa2, 0x80b50a\nMOVEQ           R1, R10; char *                                        ; +0xa4, 0x80b50c\nBL              _ZNK4pugi8xml_node12next_siblingEPKc; pugi::xml_node::next_sibling(char const*) ; +0xa6, 0x80b50e\nSTR             R0, [SP,#0x10+var_8]                                   ; +0xaa, 0x80b512\nB               loc_80B4CE                                             ; +0xac, 0x80b514\nLDR             R1, =(aKey - 0x80B51C); \"key\"                          ; +0xae, 0x80b516\nADD             R1, PC; \"key\"                                          ; +0xb0, 0x80b518\nBL              _ZN4pugi8xml_node12append_childEPKc; pugi::xml_node::append_child(char const*) ; +0xb2, 0x80b51a\nSTR             R0, [SP,#0x10+var_C]                                   ; +0xb6, 0x80b51e\nMOVS            R1, #3                                                 ; +0xb8, 0x80b520\nMOV             R0, R7                                                 ; +0xba, 0x80b522\nBL              _ZN4pugi8xml_node12append_childENS_13xml_node_typeE; pugi::xml_node::append_child(pugi::xml_node_type) ; +0xbc, 0x80b524\nMOV             R1, R8; char *                                         ; +0xc0, 0x80b528\nSTR             R0, [SP,#0x10+var_8]                                   ; +0xc2, 0x80b52a\nMOV             R0, R5; this                                           ; +0xc4, 0x80b52c\nBL              _ZN4pugi8xml_node9set_valueEPKc; pugi::xml_node::set_value(char const*) ; +0xc6, 0x80b52e\nLDRB.W          R3, [R4,#0xD4]                                         ; +0xca, 0x80b532\nLDR.W           R0, [R4,#0xCC]                                         ; +0xce, 0x80b536\nSUBS            R0, #4; this                                           ; +0xd2, 0x80b53a\nCBNZ            R3, loc_80B544                                         ; +0xd4, 0x80b53c\nLDR             R1, =(aT - 0x80B544); \"t\"                              ; +0xd6, 0x80b53e\nADD             R1, PC; \"t\"                                            ; +0xd8, 0x80b540\nB               loc_80B548                                             ; +0xda, 0x80b542\nLDR             R1, =(aTrue - 0x80B54A); \"true\"                        ; +0xdc, 0x80b544\nADD             R1, PC; \"true\"                                         ; +0xde, 0x80b546\nMOV             R2, R7; pugi::xml_node *                               ; +0xe0, 0x80b548\nBL              _ZN4pugi8xml_node18insert_child_afterEPKcRKS0_; pugi::xml_node::insert_child_after(char const*,pugi::xml_node const&) ; +0xe2, 0x80b54a\nLDR             R2, [SP,#0x10+var_4]                                   ; +0xe6, 0x80b54e\nLDR             R3, [R6]                                               ; +0xe8, 0x80b550\nCMP             R2, R3                                                 ; +0xea, 0x80b552\nBEQ             loc_80B55A                                             ; +0xec, 0x80b554\nBLX             __stack_chk_fail                                       ; +0xee, 0x80b556\nADD             SP, SP, #0x10                                          ; +0xf2, 0x80b55a\nPOP.W           {R4-R10,PC}                                            ; +0xf4, 0x80b55c", "xrefs": ["DS_Dictionary::setBoolForKey @ 0x80b58e"], "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"}