user: 请将以下的汇编代码转换成C语言代码：

```asm
<BigInfo_SetValueForKey>:
  endbr64
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x1000,%rsp
  orq    $0x0,(%rsp)
  sub    $0x1000,%rsp
  orq    $0x0,(%rsp)
  sub    $0x18,%rsp
  mov    %rdi,%rbp
  mov    %rsi,%rbx
  mov    %rdx,%r12
  mov    %fs:0x28,%rax
  mov    %rax,0x2008(%rsp)
  xor    %eax,%eax
  call   <strlen@plt>
  cmp    $0x1fff,%eax
  jg     L96
L89:
  mov    $0x5c,%esi
  mov    %rbx,%rdi
  call   <strchr@plt>
  test   %rax,%rax
  jne    L100
  mov    $0x5c,%esi
  mov    %r12,%rdi
  call   <strchr@plt>
  test   %rax,%rax
  je     L142
L100:
  lea    D51(%rip),%rdi
  call   <Com_Printf@plt>
L159:
  mov    0x2008(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L57
  add    $0x2018,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  ret
L96:
  lea    D57(%rip),%rdi
  call   <Com_Printf@plt>
  jmp    L89
L142:
  mov    $0x3b,%esi
  mov    %rbx,%rdi
  call   <strchr@plt>
  test   %rax,%rax
  jne    L131
  mov    $0x3b,%esi
  mov    %r12,%rdi
  call   <strchr@plt>
  test   %rax,%rax
  je     L37
L131:
  lea    D43(%rip),%rdi
  call   <Com_Printf@plt>
  jmp    L159
L37:
  mov    $0x22,%esi
  mov    %rbx,%rdi
  call   <strchr@plt>
  test   %rax,%rax
  jne    L0
  mov    $0x22,%esi
  mov    %r12,%rdi
  call   <strchr@plt>
  test   %rax,%rax
  je     L147
L0:
  lea    D59(%rip),%rdi
  call   <Com_Printf@plt>
  jmp    L159
L147:
  mov    %rbx,%rsi
  mov    %rbp,%rdi
  call   <BigInfo_RemoveKey@plt>
  test   %r12,%r12
  je     L159
  mov    %r12,%rdi
  call   <strlen@plt>
  test   %eax,%eax
  je     L159
  mov    %rsp,%r13
  mov    %r12,%r8
  mov    %rbx,%rcx
  lea    D17(%rip),%rdx
  mov    $0x2000,%esi
  mov    %r13,%rdi
  call   <Com_sprintf@plt>
  mov    %r13,%rdi
  call   <strlen@plt>
  mov    %eax,%ebx
  mov    %rbp,%rdi
  call   <strlen@plt>
  add    %eax,%ebx
  cmp    $0x2000,%ebx
  jg     L6
  mov    %rbp,%rsi
  mov    %r13,%rdi
  call   <strcat@plt>
  mov    %r13,%rsi
  mov    %rbp,%rdi
  call   <strcpy@plt>
  jmp    L159
L6:
  lea    D21(%rip),%rdi
  call   <Com_Printf@plt>
  jmp    L159
L57:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: extract_symbolic_data
arguments: label: D51
data_type: string
name: extract_symbolic_data
arguments: label: D57
data_type: string
name: extract_symbolic_data
arguments: label: D43
data_type: string
name: extract_symbolic_data
arguments: label: D59
data_type: string
name: extract_symbolic_data
arguments: label: D17
data_type: string
name: extract_symbolic_data
arguments: label: D21
data_type: string

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


tool: D57: Error: Info_SetValueForKey: oversize infostring

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


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


tool: D17: \%s\%s

tool: D21: Error: Info string length exceeded


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