user: 请从给定的汇编指令推导出C源代码：

```asm
<Info_SetValueForKey>:
  endbr64
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x418,%rsp
  mov    %rdi,%rbx
  mov    %rsi,%r12
  mov    %rdx,%rbp
  mov    %fs:0x28,%rax
  mov    %rax,0x408(%rsp)
  xor    %eax,%eax
  call   <strlen@plt>
  cmp    $0x3ff,%eax
  jle    L137
L84:
  mov    0x408(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L150
  add    $0x418,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  ret
L137:
  mov    $0x5c,%esi
  mov    %r12,%rdi
  call   <strchr@plt>
  test   %rax,%rax
  jne    L76
  mov    $0x5c,%esi
  mov    %rbp,%rdi
  call   <strchr@plt>
  test   %rax,%rax
  je     L114
L76:
  lea    D39(%rip),%rdi
  call   <Com_Printf@plt>
  jmp    L84
L114:
  mov    $0x3b,%esi
  mov    %r12,%rdi
  call   <strchr@plt>
  test   %rax,%rax
  jne    L48
  mov    $0x3b,%esi
  mov    %rbp,%rdi
  call   <strchr@plt>
  test   %rax,%rax
  je     L88
L48:
  lea    D25(%rip),%rdi
  call   <Com_Printf@plt>
  jmp    L84
L88:
  mov    $0x22,%esi
  mov    %r12,%rdi
  call   <strchr@plt>
  test   %rax,%rax
  jne    L32
  mov    $0x22,%esi
  mov    %rbp,%rdi
  call   <strchr@plt>
  test   %rax,%rax
  je     L51
L32:
  lea    D15(%rip),%rdi
  call   <Com_Printf@plt>
  jmp    L84
L51:
  mov    %r12,%rsi
  mov    %rbx,%rdi
  call   <Info_RemoveKey@plt>
  test   %rbp,%rbp
  je     L84
  mov    %rbp,%rdi
  call   <strlen@plt>
  test   %eax,%eax
  je     L84
  mov    %rsp,%r13
  mov    %rbp,%r8
  mov    %r12,%rcx
  lea    D1(%rip),%rdx
  mov    $0x400,%esi
  mov    %r13,%rdi
  call   <snprintf@plt>
  mov    %r13,%rdi
  call   <strlen@plt>
  mov    %eax,%ebp
  mov    %rbx,%rdi
  call   <strlen@plt>
  add    %eax,%ebp
  cmp    $0x400,%ebp
  jg     L159
  mov    %rbx,%rsi
  mov    %r13,%rdi
  call   <strcat@plt>
  mov    %r13,%rsi
  mov    %rbx,%rdi
  call   <strcpy@plt>
  jmp    L84
L159:
  lea    D19(%rip),%rdi
  call   <Com_Printf@plt>
  jmp    L84
L150:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: parse_data
arguments: data_tag: D39
type: string
name: parse_data
arguments: data_tag: D25
type: string
name: parse_data
arguments: data_tag: D15
type: string
name: parse_data
arguments: data_tag: D1
type: string
name: parse_data
arguments: data_tag: D19
type: string

tool: D39: Can't use keys or values with a \


tool: D25: Can't use keys or values with a semicolon


tool: D15: Can't use keys or values with a "


tool: D1: \%s\%s

tool: D19: Info string length exceeded


assistant: ```c
void Info_SetValueForKey(char *s, const char *key, const char *value) {
  char newi[1024];
  if (strlen(s) >= 1024) {
    ;
    return;
  }
  if (strchr(key, '\\') || strchr(value, '\\')) {
    Com_Printf("Can't use keys or values with a \\\n");
    return;
  }
  if (strchr(key, ';') || strchr(value, ';')) {
    Com_Printf("Can't use keys or values with a semicolon\n");
    return;
  }
  if (strchr(key, '\"') || strchr(value, '\"')) {
    Com_Printf("Can't use keys or values with a \"\n");
    return;
  }
  Info_RemoveKey(s, key);
  if (!value || !strlen(value))
    return;
  snprintf(newi, sizeof(newi), "\\%s\\%s", key, value);
  if (strlen(newi) + strlen(s) > 1024) {
    Com_Printf("Info string length exceeded\n");
    return;
  }
  strcat(newi, s);
  strcpy(s, newi);
}
```