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

```asm
<pcbc_log_formatter>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x460,%rsp
  mov    %rdi,-0x428(%rbp)
  mov    %esi,-0x42c(%rbp)
  mov    %rdx,-0x438(%rbp)
  mov    %rcx,-0x440(%rbp)
  mov    %r8d,-0x430(%rbp)
  mov    %r9d,-0x444(%rbp)
  mov    0x10(%rbp),%rax
  mov    %rax,-0x450(%rbp)
  mov    0x20(%rbp),%rax
  mov    %rax,-0x458(%rbp)
  mov    %fs:0x28,%rax
  mov    %rax,-0x8(%rbp)
  xor    %eax,%eax
  movq   $0x0,-0x410(%rbp)
  movq   $0x0,-0x408(%rbp)
  lea    -0x400(%rbp),%rdx
  mov    $0x0,%eax
  mov    $0x7e,%ecx
  mov    %rdx,%rdi
  rep stos %rax,%es:(%rdi)
  mov    0x28(%rbp),%ecx
  mov    -0x458(%rbp),%rdx
  lea    -0x410(%rbp),%rax
  mov    $0x400,%esi
  mov    %rax,%rdi
  call   <vsnprintf@plt>
  movb   $0x0,-0x11(%rbp)
  movl   $0x0,-0x414(%rbp)
  jmp    L43
L21:
  mov    -0x414(%rbp),%eax
  cltq
  movzbl -0x410(%rbp,%rax,1),%eax
  cmp    $0xa,%al
  jne    L75
  mov    -0x414(%rbp),%eax
  cltq
  movb   $0x20,-0x410(%rbp,%rax,1)
L75:
  addl   $0x1,-0x414(%rbp)
L43:
  cmpl   $0x3ff,-0x414(%rbp)
  jle    L21
  cmpl   $0x0,0x18(%rbp)
  je     L16
  mov    -0x444(%rbp),%ecx
  mov    -0x430(%rbp),%r9d
  mov    -0x440(%rbp),%r8
  mov    -0x438(%rbp),%rdx
  mov    -0x42c(%rbp),%esi
  mov    -0x428(%rbp),%rax
  lea    -0x410(%rbp),%rdi
  push   %rdi
  push   %rcx
  mov    %rdx,%rcx
  lea    D18(%rip),%rdx
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <snprintf@plt>
  add    $0x10,%rsp
  jmp    L60
L16:
  cmpq   $0x0,-0x450(%rbp)
  je     L38
  mov    -0x430(%rbp),%r8d
  mov    -0x440(%rbp),%rdi
  mov    -0x438(%rbp),%rdx
  mov    -0x42c(%rbp),%esi
  mov    -0x428(%rbp),%rax
  push   -0x450(%rbp)
  lea    -0x410(%rbp),%rcx
  push   %rcx
  mov    %r8d,%r9d
  mov    %rdi,%r8
  mov    %rdx,%rcx
  lea    D6(%rip),%rdx
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <snprintf@plt>
  add    $0x10,%rsp
  jmp    L60
L38:
  mov    -0x430(%rbp),%r8d
  mov    -0x440(%rbp),%rdi
  mov    -0x438(%rbp),%rdx
  mov    -0x42c(%rbp),%esi
  mov    -0x428(%rbp),%rax
  sub    $0x8,%rsp
  lea    -0x410(%rbp),%rcx
  push   %rcx
  mov    %r8d,%r9d
  mov    %rdi,%r8
  mov    %rdx,%rcx
  lea    D10(%rip),%rdx
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <snprintf@plt>
  add    $0x10,%rsp
L60:
  nop
  mov    -0x8(%rbp),%rax
  sub    %fs:0x28,%rax
  je     L68
  call   <__stack_chk_fail@plt>
L68:
  leave
  ret
```

tool_calls: name: extract_symbolic_data
arguments: data_tag: D18
type_guessed: string
name: extract_symbolic_data
arguments: data_tag: D6
type_guessed: string
name: extract_symbolic_data
arguments: data_tag: D10
type_guessed: string

tool: D18: [cb,%s] (%s L:%d I:%u) %s

tool: D6: [cb,%s] (%s L:%d) %s. I=%p

tool: D10: [cb,%s] (%s L:%d) %s

assistant: ```c
void pcbc_log_formatter(char *buf, int buf_size, const char *severity, const char *subsystem, int srcline, int instance_id, void *instance_ptr, int is_lcb, const char *fmt, va_list ap) {
  char msg[1024] = {0};
  int i;
  vsnprintf(msg, 1024, fmt, ap);
  msg[1024 - 1] = '\0';
  for (i = 0; i < 1024; i++) {
    if (msg[i] == '\n') {
      msg[i] = ' ';
    }
  }
  if (is_lcb) {
    snprintf(buf, buf_size, "[cb,%s] (%s L:%d I:%u) %s", severity, subsystem, srcline, (unsigned int)instance_id, msg);
  } else if (instance_ptr) {
    snprintf(buf, buf_size, "[cb,%s] (%s L:%d) %s. I=%p", severity, subsystem, srcline, msg, instance_ptr);
  } else {
    snprintf(buf, buf_size, "[cb,%s] (%s L:%d) %s", severity, subsystem, srcline, msg);
  }
}
```