user: 下面的汇编指令对应的C源代码是什么：

```asm
<vfmsg>:
  endbr64
  push   %r15
  mov    %rsi,%r15
  push   %r14
  mov    %rdx,%r14
  push   %r13
  mov    %r8d,%r13d
  push   %r12
  mov    %rcx,%r12
  push   %rbp
  mov    %rdi,%rbp
  push   %rbx
  sub    $0x28,%rsp
  test   %rsi,%rsi
  je     L45
  mov    %rsi,%rdi
  call   <strlen@plt>
  mov    %eax,0x8(%rsp)
  lea    (%rax,%rax,1),%edx
L150:
  xor    %ebx,%ebx
  test   %r12,%r12
  je     L73
  mov    %r12,%rdi
  mov    %edx,0x14(%rsp)
  call   <strlen@plt>
  mov    0x14(%rsp),%edx
  movslq %eax,%rbx
  add    %ebx,%edx
L73:
  test   %r14,%r14
  je     L131
  mov    %r14,%rdi
  mov    %edx,0x18(%rsp)
  call   <strlen@plt>
  mov    0x18(%rsp),%edx
  mov    %eax,0x14(%rsp)
  add    %eax,%eax
L186:
  lea    0x4(%rax,%rdx,1),%edi
  call   <malloc@plt>
  mov    %rax,%r8
  test   %rax,%rax
  je     L0
  mov    0x8(%rsp),%r9d
  mov    %rax,%rdx
  test   %r9d,%r9d
  je     L49
  movzbl (%r15),%eax
  test   %al,%al
  je     L49
  xchg   %ax,%ax
L15:
  mov    %al,(%rdx)
  add    $0x1,%r15
  cmp    $0x25,%al
  je     L23
  movzbl (%r15),%eax
  add    $0x1,%rdx
  test   %al,%al
  jne    L15
L49:
  test   %ebx,%ebx
  jne    L3
L36:
  mov    0x14(%rsp),%edi
  test   %edi,%edi
  je     L61
  mov    $0x203a,%esi
  lea    0x2(%rdx),%rcx
  mov    %si,(%rdx)
  movzbl (%r14),%eax
  test   %al,%al
  je     L158
  xchg   %ax,%ax
L117:
  mov    %al,(%rcx)
  add    $0x1,%r14
  cmp    $0x25,%al
  je     L189
  movzbl (%r14),%eax
  add    $0x1,%rcx
  test   %al,%al
  jne    L117
L158:
  mov    %rcx,%rdx
L61:
  mov    $0xa,%eax
  mov    %rbp,%rdi
  mov    %r8,%rsi
  mov    %r8,0x8(%rsp)
  mov    %ax,(%rdx)
  mov    %r13d,%edx
  call   <vfprintf@plt>
  mov    %rbp,%rdi
  call   <fflush@plt>
  mov    0x8(%rsp),%rdi
  add    $0x28,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  jmp    10a0 <free@plt>
  nopl   0x0(%rax)
L189:
  movb   $0x25,0x1(%rcx)
  movzbl (%r14),%eax
  lea    0x2(%rcx),%rdx
  test   %al,%al
  je     L61
  mov    %rdx,%rcx
  jmp    L117
  nopl   (%rax)
L23:
  movb   $0x25,0x1(%rdx)
  movzbl (%r15),%eax
  lea    0x2(%rdx),%rcx
  mov    %rcx,%rdx
  test   %al,%al
  jne    L15
  test   %ebx,%ebx
  je     L36
  nop
L3:
  mov    %rdx,%rdi
  mov    %r12,%rsi
  mov    %r8,0x18(%rsp)
  mov    %rdx,0x8(%rsp)
  call   <strcpy@plt>
  mov    0x8(%rsp),%rdx
  mov    0x18(%rsp),%r8
  add    %rbx,%rdx
  jmp    L36
  nopw   0x0(%rax,%rax,1)
L131:
  movl   $0x0,0x14(%rsp)
  xor    %eax,%eax
  jmp    L186
  nop
L45:
  movl   $0x0,0x8(%rsp)
  xor    %edx,%edx
  jmp    L150
  nop
L0:
  mov    %rbp,%rdi
  mov    %r13d,%edx
  mov    %r12,%rsi
  call   <vfprintf@plt>
  add    $0x28,%rsp
  mov    %rbp,%rdi
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  jmp    10e0 <fflush@plt>
```

assistant: ```c
void vfmsg(FILE *f, const char *pre, const char *suf, const char *fmt, va_list ap) {
  int prelen = 0, fmtlen = 0, suflen = 0;
  if (pre)
    prelen = strlen(pre);
  if (fmt)
    fmtlen = strlen(fmt);
  if (suf)
    suflen = strlen(suf);
  char *newfmt = malloc(prelen * 2 + fmtlen + 2 + suflen * 2 + 2);
  if (!newfmt)
    goto finish;
  char *newfmt_end = newfmt;
  if (prelen)
    while (*pre)
      if ((*newfmt_end++ = *pre++) == '%')
        *newfmt_end++ = '%';
  if (fmtlen) {
    strcpy(newfmt_end, fmt);
    newfmt_end += fmtlen;
  }
  if (suflen) {
    *newfmt_end++ = ':';
    *newfmt_end++ = ' ';
    while (*suf)
      if ((*newfmt_end++ = *suf++) == '%')
        *newfmt_end++ = '%';
  }
  *newfmt_end++ = '\n';
  *newfmt_end++ = '\0';
  fmt = newfmt;
finish:
  vfprintf(f, fmt, ap);
  fflush(f);
  if (newfmt)
    free(newfmt);
}
```