{"type": "func", "start": 8435436, "end": 8435800, "name": "DS_Dictionary::setStringArrayForKey", "pseudocode": "// \n// DS_Dictionary::setStringArrayForKey from 0x80b6ec to 0x80b858 (364 bytes)\n// \n// 1 xrefs:\n// > DS_Dictionary::setStringArrayForKey @ 0x80b892\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:31 +0000\n// \n\nint __fastcall DS_Dictionary::setStringArrayForKey(int a1, const char *a2, _DWORD *a3, int a4)\n{\n  const char *v8; // r1\n  const char *v9; // r1\n  const char *v10; // r0\n  const char *v11; // r1\n  int inserted; // r0\n  const char *v13; // r1\n  const char *v14; // r1\n  int result; // r0\n  unsigned int v16; // r11\n  const char *v17; // r1\n  int v18; // r0\n  int v19; // r3\n  int v20; // r1\n  const char *v21; // r1\n  int v22; // [sp+Ch] [bp+0h] BYREF\n  int v23; // [sp+10h] [bp+4h] BYREF\n  int appended; // [sp+14h] [bp+8h] BYREF\n  int i; // [sp+18h] [bp+Ch] BYREF\n\n  DS_Dictionary::removeKey((DS_Dictionary *)a1, a2);\n  pugi::xml_node::xml_node((pugi::xml_node *)&v22);\n  pugi::xml_node::xml_node((pugi::xml_node *)&v23);\n  if ( a4 )\n  {\n    if ( *(_BYTE *)(a1 + 212) )\n      v9 = \"key\";\n    else\n      v9 = \"k\";\n    for ( i = pugi::xml_node::child((pugi::xml_node *)(*(_DWORD *)(a1 + 204) - 4), v9);\n          pugi::xml_node::operator void (*)(pugi::xml_node***)(&i);\n          i = pugi::xml_node::next_sibling((pugi::xml_node *)&i, v13) )\n    {\n      v10 = (const char *)pugi::xml_node::child_value((pugi::xml_node *)&i);\n      if ( !alphaNumericallyLessThan(v10, a2) )\n      {\n        if ( *(_BYTE *)(a1 + 212) )\n          v11 = \"key\";\n        else\n          v11 = \"k\";\n        inserted = pugi::xml_node::insert_child_before(\n                     (pugi::xml_node *)(*(_DWORD *)(a1 + 204) - 4),\n                     v11,\n                     (const pugi::xml_node *)&i);\n        goto LABEL_20;\n      }\n      if ( *(_BYTE *)(a1 + 212) )\n        v13 = \"key\";\n      else\n        v13 = \"k\";\n    }\n  }\n  if ( *(_BYTE *)(a1 + 212) )\n    v8 = \"key\";\n  else\n    v8 = \"k\";\n  inserted = pugi::xml_node::append_child((pugi::xml_node *)(*(_DWORD *)(a1 + 204) - 4), v8);\nLABEL_20:\n  v22 = inserted;\n  i = pugi::xml_node::append_child(&v22, 3);\n  pugi::xml_node::set_value((pugi::xml_node *)&i, a2);\n  if ( *(_BYTE *)(a1 + 212) )\n    v14 = \"array\";\n  else\n    v14 = \"a\";\n  result = pugi::xml_node::insert_child_after(\n             (pugi::xml_node *)(*(_DWORD *)(a1 + 204) - 4),\n             v14,\n             (const pugi::xml_node *)&v22);\n  v16 = 0;\n  v23 = result;\n  while ( v16 < -1431655765 * ((a3[1] - *a3) >> 2) )\n  {\n    if ( *(_BYTE *)(a1 + 212) )\n      v17 = \"string\";\n    else\n      v17 = (const char *)&a1i2r3e45s789g[8];\n    appended = pugi::xml_node::append_child((pugi::xml_node *)&v23, v17);\n    v18 = pugi::xml_node::append_child(&appended, 3);\n    v19 = 12 * v16++;\n    v20 = *a3 + v19;\n    i = v18;\n    if ( (*(_BYTE *)v20 & 1) != 0 )\n      v21 = *(const char **)(v20 + 8);\n    else\n      v21 = (const char *)(v20 + 1);\n    result = pugi::xml_node::set_value((pugi::xml_node *)&i, v21);\n  }\n  return result;\n}", "assembly": "; \n; DS_Dictionary::setStringArrayForKey from 0x80b6ec to 0x80b858 (364 bytes)\n; \n; 1 xrefs:\n; > DS_Dictionary::setStringArrayForKey @ 0x80b892\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:31 +0000\n; \nPUSH.W          {R4-R11,LR}                                            ; +0x0, 0x80b6ec\nMOV             R10, R3                                                ; +0x4, 0x80b6f0\nLDR             R5, =(__stack_chk_guard_ptr - 0x80B700)                ; +0x6, 0x80b6f2\nSUB             SP, SP, #0x24                                          ; +0x8, 0x80b6f4\nADD             R7, SP, #0xC                                           ; +0xa, 0x80b6f6\nADD.W           R8, SP, #0x24+var_14                                   ; +0xc, 0x80b6f8\nADD             R5, PC; __stack_chk_guard_ptr                          ; +0x10, 0x80b6fc\nLDR             R5, [R5]; __stack_chk_guard                            ; +0x12, 0x80b6fe\nMOV             R9, R1                                                 ; +0x14, 0x80b700\nMOV             R6, R2                                                 ; +0x16, 0x80b702\nMOV             R4, R0                                                 ; +0x18, 0x80b704\nLDR             R3, [R5]                                               ; +0x1a, 0x80b706\nSTR             R3, [SP,#0x24+var_8]                                   ; +0x1c, 0x80b708\nBL              _ZN13DS_Dictionary9removeKeyEPKc; DS_Dictionary::removeKey(char const*) ; +0x1e, 0x80b70a\nMOV             R0, R7; this                                           ; +0x22, 0x80b70e\nBL              _ZN4pugi8xml_nodeC1Ev; pugi::xml_node::xml_node(void)  ; +0x24, 0x80b710\nMOV             R0, R8; this                                           ; +0x28, 0x80b714\nBL              _ZN4pugi8xml_nodeC1Ev; pugi::xml_node::xml_node(void)  ; +0x2a, 0x80b716\nSTR             R5, [SP,#0x24+var_20]                                  ; +0x2e, 0x80b71a\nADD             R5, SP, #0x24+var_C                                    ; +0x30, 0x80b71c\nCMP.W           R10, #0                                                ; +0x32, 0x80b71e\nBNE             loc_80B738                                             ; +0x36, 0x80b722\nLDRB.W          R3, [R4,#0xD4]                                         ; +0x38, 0x80b724\nLDR.W           R0, [R4,#0xCC]                                         ; +0x3c, 0x80b728\nSUBS            R0, #4; this                                           ; +0x40, 0x80b72c\nCMP             R3, #0                                                 ; +0x42, 0x80b72e\nBNE             loc_80B7A8                                             ; +0x44, 0x80b730\nLDR             R1, =(aK_0 - 0x80B738); \"k\"                            ; +0x46, 0x80b732\nADD             R1, PC; \"k\"                                            ; +0x48, 0x80b734\nB               loc_80B7AC                                             ; +0x4a, 0x80b736\nLDRB.W          R3, [R4,#0xD4]                                         ; +0x4c, 0x80b738\nLDR.W           R0, [R4,#0xCC]                                         ; +0x50, 0x80b73c\nSUBS            R0, #4; this                                           ; +0x54, 0x80b740\nCBNZ            R3, loc_80B74A                                         ; +0x56, 0x80b742\nLDR             R1, =(aK_0 - 0x80B74A); \"k\"                            ; +0x58, 0x80b744\nADD             R1, PC; \"k\"                                            ; +0x5a, 0x80b746\nB               loc_80B74E                                             ; +0x5c, 0x80b748\nLDR             R1, =(aKey - 0x80B750); \"key\"                          ; +0x5e, 0x80b74a\nADD             R1, PC; \"key\"                                          ; +0x60, 0x80b74c\nBL              _ZNK4pugi8xml_node5childEPKc; pugi::xml_node::child(char const*) ; +0x62, 0x80b74e\nLDR.W           R10, =(aKey - 0x80B75E); \"key\"                         ; +0x66, 0x80b752\nLDR.W           R11, =(aK_0 - 0x80B760); \"k\"                           ; +0x6a, 0x80b756\nADD             R10, PC; \"key\"                                         ; +0x6e, 0x80b75a\nADD             R11, PC; \"k\"                                           ; +0x70, 0x80b75c\nSTR             R0, [SP,#0x24+var_C]                                   ; +0x72, 0x80b75e\nMOV             R0, R5                                                 ; +0x74, 0x80b760\nBL              _ZNK4pugi8xml_nodecvPFvPPPS0_EEv; pugi::xml_node::operator void (*)(pugi::xml_node***)(void) ; +0x76, 0x80b762\nCMP             R0, #0                                                 ; +0x7a, 0x80b766\nBEQ             loc_80B724                                             ; +0x7c, 0x80b768\nMOV             R0, R5; this                                           ; +0x7e, 0x80b76a\nBL              _ZNK4pugi8xml_node11child_valueEv; pugi::xml_node::child_value(void) ; +0x80, 0x80b76c\nMOV             R1, R9; char *                                         ; +0x84, 0x80b770\nBL              _Z24alphaNumericallyLessThanPKcS0_; alphaNumericallyLessThan(char const*,char const*) ; +0x86, 0x80b772\nLDRB.W          R3, [R4,#0xD4]                                         ; +0x8a, 0x80b776\nCBNZ            R0, loc_80B796                                         ; +0x8e, 0x80b77a\nLDR.W           R0, [R4,#0xCC]                                         ; +0x90, 0x80b77c\nSUBS            R0, #4; this                                           ; +0x94, 0x80b780\nCBNZ            R3, loc_80B78A                                         ; +0x96, 0x80b782\nLDR             R1, =(aK_0 - 0x80B78A); \"k\"                            ; +0x98, 0x80b784\nADD             R1, PC; \"k\"                                            ; +0x9a, 0x80b786\nB               loc_80B78E                                             ; +0x9c, 0x80b788\nLDR             R1, =(aKey - 0x80B790); \"key\"                          ; +0x9e, 0x80b78a\nADD             R1, PC; \"key\"                                          ; +0xa0, 0x80b78c\nMOV             R2, R5; pugi::xml_node *                               ; +0xa2, 0x80b78e\nBL              _ZN4pugi8xml_node19insert_child_beforeEPKcRKS0_; pugi::xml_node::insert_child_before(char const*,pugi::xml_node const&) ; +0xa4, 0x80b790\nB               loc_80B7B0                                             ; +0xa8, 0x80b794\nCMP             R3, #0                                                 ; +0xaa, 0x80b796\nMOV             R0, R5; this                                           ; +0xac, 0x80b798\nITE NE                                                                 ; +0xae, 0x80b79a\nMOVNE           R1, R10                                                ; +0xb0, 0x80b79c\nMOVEQ           R1, R11; char *                                        ; +0xb2, 0x80b79e\nBL              _ZNK4pugi8xml_node12next_siblingEPKc; pugi::xml_node::next_sibling(char const*) ; +0xb4, 0x80b7a0\nSTR             R0, [SP,#0x24+var_C]                                   ; +0xb8, 0x80b7a4\nB               loc_80B760                                             ; +0xba, 0x80b7a6\nLDR             R1, =(aKey - 0x80B7AE); \"key\"                          ; +0xbc, 0x80b7a8\nADD             R1, PC; \"key\"                                          ; +0xbe, 0x80b7aa\nBL              _ZN4pugi8xml_node12append_childEPKc; pugi::xml_node::append_child(char const*) ; +0xc0, 0x80b7ac\nSTR             R0, [SP,#0x24+var_18]                                  ; +0xc4, 0x80b7b0\nMOVS            R1, #3                                                 ; +0xc6, 0x80b7b2\nMOV             R0, R7                                                 ; +0xc8, 0x80b7b4\nBL              _ZN4pugi8xml_node12append_childENS_13xml_node_typeE; pugi::xml_node::append_child(pugi::xml_node_type) ; +0xca, 0x80b7b6\nMOV             R1, R9; char *                                         ; +0xce, 0x80b7ba\nSTR             R0, [SP,#0x24+var_C]                                   ; +0xd0, 0x80b7bc\nMOV             R0, R5; this                                           ; +0xd2, 0x80b7be\nBL              _ZN4pugi8xml_node9set_valueEPKc; pugi::xml_node::set_value(char const*) ; +0xd4, 0x80b7c0\nLDRB.W          R3, [R4,#0xD4]                                         ; +0xd8, 0x80b7c4\nLDR.W           R0, [R4,#0xCC]                                         ; +0xdc, 0x80b7c8\nSUBS            R0, #4; this                                           ; +0xe0, 0x80b7cc\nCBNZ            R3, loc_80B7D6                                         ; +0xe2, 0x80b7ce\nLDR             R1, =(aA - 0x80B7D6); \"a\"                              ; +0xe4, 0x80b7d0\nADD             R1, PC; \"a\"                                            ; +0xe6, 0x80b7d2\nB               loc_80B7DA                                             ; +0xe8, 0x80b7d4\nLDR             R1, =(aArray_1 - 0x80B7DC); \"array\"                    ; +0xea, 0x80b7d6\nADD             R1, PC; \"array\"                                        ; +0xec, 0x80b7d8\nMOV             R2, R7; pugi::xml_node *                               ; +0xee, 0x80b7da\nLDR.W           R9, =(aString - 0x80B7EE); \"string\"                    ; +0xf0, 0x80b7dc\nBL              _ZN4pugi8xml_node18insert_child_afterEPKcRKS0_; pugi::xml_node::insert_child_after(char const*,pugi::xml_node const&) ; +0xf4, 0x80b7e0\nLDR.W           R10, =(a1i2r3e45s789g+0x10 - 0x80B7F0); \"s789g\"        ; +0xf8, 0x80b7e4\nLDR             R7, =0xAAAAAAAB                                        ; +0xfc, 0x80b7e8\nADD             R9, PC; \"string\"                                       ; +0xfe, 0x80b7ea\nADD             R10, PC; \"s789g\"                                       ; +0x100, 0x80b7ec\nMOV.W           R11, #0                                                ; +0x102, 0x80b7ee\nSTR             R0, [SP,#0x24+var_14]                                  ; +0x106, 0x80b7f2\nLDM.W           R6, {R2,R3}                                            ; +0x108, 0x80b7f4\nSUBS            R3, R3, R2                                             ; +0x10c, 0x80b7f8\nASRS            R3, R3, #2                                             ; +0x10e, 0x80b7fa\nMULS            R3, R7                                                 ; +0x110, 0x80b7fc\nCMP             R11, R3                                                ; +0x112, 0x80b7fe\nBCS             loc_80B844                                             ; +0x114, 0x80b800\nLDRB.W          R3, [R4,#0xD4]                                         ; +0x116, 0x80b802\nMOV             R0, R8; this                                           ; +0x11a, 0x80b806\nCMP             R3, #0                                                 ; +0x11c, 0x80b808\nITE NE                                                                 ; +0x11e, 0x80b80a\nMOVNE           R1, R9                                                 ; +0x120, 0x80b80c\nMOVEQ           R1, R10; char *                                        ; +0x122, 0x80b80e\nBL              _ZN4pugi8xml_node12append_childEPKc; pugi::xml_node::append_child(char const*) ; +0x124, 0x80b810\nADD             R3, SP, #0x24+var_4                                    ; +0x128, 0x80b814\nMOVS            R1, #3                                                 ; +0x12a, 0x80b816\nSTR.W           R0, [R3,#-0xC]!                                        ; +0x12c, 0x80b818\nMOV             R0, R3                                                 ; +0x130, 0x80b81c\nBL              _ZN4pugi8xml_node12append_childENS_13xml_node_typeE; pugi::xml_node::append_child(pugi::xml_node_type) ; +0x132, 0x80b81e\nMOVS            R3, #0xC                                               ; +0x136, 0x80b822\nMUL             R3, R3, R11                                            ; +0x138, 0x80b824\nLDR             R2, [R6]                                               ; +0x13c, 0x80b828\nADD.W           R11, R11, #1                                           ; +0x13e, 0x80b82a\nADDS            R1, R2, R3                                             ; +0x142, 0x80b82e\nSTR             R0, [SP,#0x24+var_C]                                   ; +0x144, 0x80b830\nMOV             R0, R5; this                                           ; +0x146, 0x80b832\nLDRB            R3, [R2,R3]                                            ; +0x148, 0x80b834\nLSLS            R3, R3, #0x1F                                          ; +0x14a, 0x80b836\nITE PL                                                                 ; +0x14c, 0x80b838\nADDPL           R1, #1                                                 ; +0x14e, 0x80b83a\nLDRMI           R1, [R1,#8]; char *                                    ; +0x150, 0x80b83c\nBL              _ZN4pugi8xml_node9set_valueEPKc; pugi::xml_node::set_value(char const*) ; +0x152, 0x80b83e\nB               loc_80B7F4                                             ; +0x156, 0x80b842\nLDR             R3, [SP,#0x24+var_20]                                  ; +0x158, 0x80b844\nLDR             R2, [SP,#0x24+var_8]                                   ; +0x15a, 0x80b846\nLDR             R3, [R3]                                               ; +0x15c, 0x80b848\nCMP             R2, R3                                                 ; +0x15e, 0x80b84a\nBEQ             loc_80B852                                             ; +0x160, 0x80b84c\nBLX             __stack_chk_fail                                       ; +0x162, 0x80b84e\nADD             SP, SP, #0x24 ; '$'                                    ; +0x166, 0x80b852\nPOP.W           {R4-R11,PC}                                            ; +0x168, 0x80b854", "xrefs": ["DS_Dictionary::setStringArrayForKey @ 0x80b892"], "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"}