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

```asm
<Info_SetValueForKey>:
  endbr64
  push   %r13
  push   %r12
  mov    %rsi,%r12
  push   %rbp
  mov    %rdi,%rbp
  push   %rbx
  mov    %rdx,%rbx
  sub    $0x418,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x408(%rsp)
  xor    %eax,%eax
  call   <strlen@plt>
  cmp    $0x3ff,%eax
  jle    L142
L39:
  mov    0x408(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L160
  add    $0x418,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  ret
  xchg   %ax,%ax
L142:
  mov    $0x5c,%esi
  mov    %r12,%rdi
  call   <strchr@plt>
  test   %rax,%rax
  jne    L156
  mov    $0x5c,%esi
  mov    %rbx,%rdi
  call   <strchr@plt>
  test   %rax,%rax
  je     L20
L156:
  mov    0x408(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L160
  lea    D22(%rip),%rdi
L5:
  add    $0x418,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  jmp    1110 <Com_Printf@plt>
  nopl   0x0(%rax)
L20:
  mov    $0x3b,%esi
  mov    %r12,%rdi
  call   <strchr@plt>
  test   %rax,%rax
  jne    L120
  mov    $0x3b,%esi
  mov    %rbx,%rdi
  call   <strchr@plt>
  test   %rax,%rax
  jne    L120
  mov    $0x22,%esi
  mov    %r12,%rdi
  call   <strchr@plt>
  test   %rax,%rax
  jne    L152
  mov    $0x22,%esi
  mov    %rbx,%rdi
  call   <strchr@plt>
  test   %rax,%rax
  jne    L152
  mov    %r12,%rsi
  mov    %rbp,%rdi
  call   <Info_RemoveKey@plt>
  test   %rbx,%rbx
  je     L39
  mov    %rbx,%rdi
  call   <strlen@plt>
  test   %eax,%eax
  je     L39
  mov    %rsp,%r13
  mov    %rbx,%r8
  mov    %r12,%rcx
  mov    $0x400,%esi
  lea    D8(%rip),%rdx
  mov    %r13,%rdi
  call   <snprintf@plt>
  mov    %r13,%rdi
  call   <strlen@plt>
  mov    %rbp,%rdi
  mov    %eax,%ebx
  call   <strlen@plt>
  add    %eax,%ebx
  cmp    $0x400,%ebx
  jg     L151
  mov    %rbp,%rsi
  mov    %r13,%rdi
  call   <strcat@plt>
  mov    %r13,%rsi
  mov    %rbp,%rdi
  call   <strcpy@plt>
  jmp    L39
  nopl   0x0(%rax,%rax,1)
L120:
  mov    0x408(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L160
  lea    D20(%rip),%rdi
  jmp    L5
  nop
L152:
  mov    0x408(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L160
  lea    D32(%rip),%rdi
  jmp    L5
L151:
  lea    D48(%rip),%rdi
  call   <Com_Printf@plt>
  jmp    L39
L160:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: unpack_data
arguments: tag: D22
data_type: string
name: unpack_data
arguments: tag: D8
data_type: string
name: unpack_data
arguments: tag: D20
data_type: string
name: unpack_data
arguments: tag: D32
data_type: string
name: unpack_data
arguments: tag: D48
data_type: string

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


tool: D8: \%s\%s

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


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


tool: D48: 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);
}
```