user: What is the c source code of the assembly code below?

```asm
<Info_SetValueForKey>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  push   %rbx
  sub    $0x438,%rsp
  mov    %rdi,-0x428(%rbp)
  mov    %rsi,-0x430(%rbp)
  mov    %rdx,-0x438(%rbp)
  mov    %fs:0x28,%rax
  mov    %rax,-0x18(%rbp)
  xor    %eax,%eax
  mov    -0x428(%rbp),%rax
  mov    %rax,%rdi
  call   <strlen@plt>
  cmp    $0x3ff,%eax
  jg     L97
  mov    -0x430(%rbp),%rax
  mov    $0x5c,%esi
  mov    %rax,%rdi
  call   <strchr@plt>
  test   %rax,%rax
  jne    L147
  mov    -0x438(%rbp),%rax
  mov    $0x5c,%esi
  mov    %rax,%rdi
  call   <strchr@plt>
  test   %rax,%rax
  je     L24
L147:
  lea    D34(%rip),%rax
  mov    %rax,%rdi
  call   <Com_Printf@plt>
  jmp    L73
L24:
  mov    -0x430(%rbp),%rax
  mov    $0x3b,%esi
  mov    %rax,%rdi
  call   <strchr@plt>
  test   %rax,%rax
  jne    L161
  mov    -0x438(%rbp),%rax
  mov    $0x3b,%esi
  mov    %rax,%rdi
  call   <strchr@plt>
  test   %rax,%rax
  je     L89
L161:
  lea    D0(%rip),%rax
  mov    %rax,%rdi
  call   <Com_Printf@plt>
  jmp    L73
L89:
  mov    -0x430(%rbp),%rax
  mov    $0x22,%esi
  mov    %rax,%rdi
  call   <strchr@plt>
  test   %rax,%rax
  jne    L133
  mov    -0x438(%rbp),%rax
  mov    $0x22,%esi
  mov    %rax,%rdi
  call   <strchr@plt>
  test   %rax,%rax
  je     L62
L133:
  lea    D7(%rip),%rax
  mov    %rax,%rdi
  call   <Com_Printf@plt>
  jmp    L73
L62:
  mov    -0x430(%rbp),%rdx
  mov    -0x428(%rbp),%rax
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <Info_RemoveKey@plt>
  cmpq   $0x0,-0x438(%rbp)
  je     L163
  mov    -0x438(%rbp),%rax
  mov    %rax,%rdi
  call   <strlen@plt>
  test   %eax,%eax
  je     L163
  mov    -0x438(%rbp),%rcx
  mov    -0x430(%rbp),%rdx
  lea    -0x420(%rbp),%rax
  mov    %rcx,%r8
  mov    %rdx,%rcx
  lea    D24(%rip),%rdx
  mov    $0x400,%esi
  mov    %rax,%rdi
  call   <snprintf@plt>
  lea    -0x420(%rbp),%rax
  mov    %rax,%rdi
  call   <strlen@plt>
  mov    %eax,%ebx
  mov    -0x428(%rbp),%rax
  mov    %rax,%rdi
  call   <strlen@plt>
  add    %ebx,%eax
  cmp    $0x400,%eax
  jle    L82
  lea    D12(%rip),%rax
  mov    %rax,%rdi
  call   <Com_Printf@plt>
  jmp    L73
L82:
  mov    -0x428(%rbp),%rdx
  lea    -0x420(%rbp),%rax
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <strcat@plt>
  lea    -0x420(%rbp),%rdx
  mov    -0x428(%rbp),%rax
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <strcpy@plt>
  jmp    L73
L97:
  nop
  jmp    L73
L163:
  nop
L73:
  mov    -0x18(%rbp),%rax
  sub    %fs:0x28,%rax
  je     L119
  call   <__stack_chk_fail@plt>
L119:
  mov    -0x8(%rbp),%rbx
  leave
  ret
```

tool_calls: name: unpack_data
arguments: tag: D34
data_type: string
name: unpack_data
arguments: tag: D0
data_type: string
name: unpack_data
arguments: tag: D7
data_type: string
name: unpack_data
arguments: tag: D24
data_type: string
name: unpack_data
arguments: tag: D12
data_type: string

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


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


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


tool: D24: \%s\%s

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