user: 请将这段汇编代码片段转换成等效的C代码：

```asm
<Info_SetValueForKey>:
  endbr64
  push   %r14
  push   %r13
  mov    %rdi,%r13
  push   %r12
  mov    %rdx,%r12
  push   %rbp
  mov    %rsi,%rbp
  sub    $0x418,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x408(%rsp)
  xor    %eax,%eax
  call   <strlen@plt>
  cmp    $0x3ff,%eax
  jg     L9
L225:
  mov    $0x5c,%esi
  mov    %rbp,%rdi
  call   <strchr@plt>
  test   %rax,%rax
  jne    L205
  mov    $0x5c,%esi
  mov    %r12,%rdi
  call   <strchr@plt>
  test   %rax,%rax
  jne    L23
  mov    $0x3b,%esi
  mov    %rbp,%rdi
  call   <strchr@plt>
  test   %rax,%rax
  jne    L220
  mov    $0x3b,%esi
  mov    %r12,%rdi
  call   <strchr@plt>
  test   %rax,%rax
  jne    L101
  mov    $0x22,%esi
  mov    %rbp,%rdi
  call   <strchr@plt>
  test   %rax,%rax
  jne    L4
  mov    $0x22,%esi
  mov    %r12,%rdi
  call   <strchr@plt>
  test   %rax,%rax
  jne    L144
  mov    %rbp,%rsi
  mov    %r13,%rdi
  call   <Info_RemoveKey@plt>
  test   %r12,%r12
  je     L208
  mov    %r12,%rdi
  call   <strlen@plt>
  test   %eax,%eax
  jne    L195
L208:
  mov    0x408(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L126
  add    $0x418,%rsp
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  ret
  nopl   0x0(%rax,%rax,1)
L23:
  lea    D37(%rip),%rdi
  call   <Com_PrintWarning@plt>
  mov    0x408(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L126
L185:
  mov    %rbp,%rdx
  mov    %r12,%rsi
  lea    D54(%rip),%rdi
L145:
  add    $0x418,%rsp
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  jmp    1130 <Com_DPrintf@plt>
  nopl   0x0(%rax,%rax,1)
L205:
  lea    D61(%rip),%rdi
  call   <Com_PrintWarning@plt>
  mov    0x408(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L126
L198:
  mov    %r12,%rdx
  mov    %rbp,%rsi
  lea    D38(%rip),%rdi
  jmp    L145
  cs nopw 0x0(%rax,%rax,1)
L9:
  lea    D17(%rip),%rdi
  call   <Com_PrintWarning@plt>
  jmp    L225
  nopl   0x0(%rax)
L101:
  lea    D108(%rip),%rdi
  call   <Com_PrintWarning@plt>
  mov    0x408(%rsp),%rax
  sub    %fs:0x28,%rax
  je     L185
L126:
  call   <__stack_chk_fail@plt>
L220:
  lea    D92(%rip),%rdi
  call   <Com_PrintWarning@plt>
  mov    0x408(%rsp),%rax
  sub    %fs:0x28,%rax
  je     L198
  jmp    L126
  nopl   0x0(%rax)
L4:
  lea    D106(%rip),%rdi
  call   <Com_PrintWarning@plt>
  mov    0x408(%rsp),%rax
  sub    %fs:0x28,%rax
  je     L198
  jmp    L126
  nopl   (%rax)
L195:
  mov    %rsp,%r14
  mov    %rbp,%rcx
  mov    %r12,%r8
  mov    $0x400,%esi
  lea    D42(%rip),%rdx
  mov    %r14,%rdi
  call   <Com_sprintf@plt>
  mov    %r14,%rdi
  call   <strlen@plt>
  mov    %r13,%rdi
  mov    %eax,%ebp
  call   <strlen@plt>
  add    %eax,%ebp
  cmp    $0x400,%ebp
  jg     L116
  mov    %r13,%rsi
  mov    %r14,%rdi
  call   <strcat@plt>
  mov    %r14,%rsi
  mov    %r13,%rdi
  call   <strcpy@plt>
  jmp    L208
  nopl   0x0(%rax)
L144:
  lea    D75(%rip),%rdi
  call   <Com_PrintWarning@plt>
  mov    0x408(%rsp),%rax
  sub    %fs:0x28,%rax
  je     L185
  jmp    L126
L116:
  lea    D31(%rip),%rdi
  call   <Com_PrintWarning@plt>
  jmp    L208
```

tool_calls: name: parse_data
arguments: tag: D37
type_infered: string
name: parse_data
arguments: tag: D54
type_infered: string
name: parse_data
arguments: tag: D61
type_infered: string
name: parse_data
arguments: tag: D38
type_infered: string
name: parse_data
arguments: tag: D17
type_infered: string
name: parse_data
arguments: tag: D108
type_infered: string
name: parse_data
arguments: tag: D92
type_infered: string
name: parse_data
arguments: tag: D106
type_infered: string
name: parse_data
arguments: tag: D42
type_infered: string
name: parse_data
arguments: tag: D75
type_infered: string
name: parse_data
arguments: tag: D31
type_infered: string

tool: D37: Can't use values with a \


tool: D54: Bad value: %s key: %s


tool: D61: Can't use keys with a \


tool: D38: Bad key: %s value: %s


tool: D17: Unexpected error - Info_SetValueForKey: oversize infostring

tool: D108: Can't use values with a semicolon


tool: D92: Can't use keys with a semicolon


tool: D106: Can't use keys with a "


tool: D42: \%s\%s

tool: D75: Can't use values with a "


tool: D31: Info string length exceeded


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