user: 这段汇编代码用C语言表示是什么样的：

```asm
<MakeErrString>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x20,%rsp
  mov    %rdi,-0x18(%rbp)
  mov    %esi,-0x1c(%rbp)
  movl   $0x0,-0xc(%rbp)
  mov    -0x18(%rbp),%rax
  mov    (%rax),%rax
  mov    %rax,-0x8(%rbp)
  cmpq   $0x0,-0x8(%rbp)
  je     L49
  mov    -0x8(%rbp),%rax
  mov    %rax,%rdi
  call   <free@plt>
L49:
  mov    -0x1c(%rbp),%eax
  and    $0x1,%eax
  test   %eax,%eax
  je     L39
  addl   $0x1,-0xc(%rbp)
L39:
  mov    -0x1c(%rbp),%eax
  and    $0x2,%eax
  test   %eax,%eax
  je     L11
  addl   $0x1,-0xc(%rbp)
L11:
  mov    -0x1c(%rbp),%eax
  and    $0x4,%eax
  test   %eax,%eax
  je     L109
  addl   $0x1,-0xc(%rbp)
L109:
  mov    -0x1c(%rbp),%eax
  and    $0x8,%eax
  test   %eax,%eax
  je     L20
  addl   $0x1,-0xc(%rbp)
L20:
  mov    -0x1c(%rbp),%eax
  and    $0x10,%eax
  test   %eax,%eax
  je     L76
  addl   $0x1,-0xc(%rbp)
L76:
  mov    -0x1c(%rbp),%eax
  and    $0x20,%eax
  test   %eax,%eax
  je     L125
  addl   $0x1,-0xc(%rbp)
L125:
  mov    -0x1c(%rbp),%eax
  and    $0x40,%eax
  test   %eax,%eax
  je     L19
  addl   $0x1,-0xc(%rbp)
L19:
  mov    -0x1c(%rbp),%eax
  and    $0x80,%eax
  test   %eax,%eax
  je     L137
  addl   $0x1,-0xc(%rbp)
L137:
  mov    -0xc(%rbp),%eax
  add    $0x1,%eax
  mov    %eax,%edi
  call   <malloc@plt>
  mov    %rax,-0x8(%rbp)
  movl   $0x0,-0xc(%rbp)
  mov    -0x1c(%rbp),%eax
  and    $0x1,%eax
  test   %eax,%eax
  je     L140
  mov    -0xc(%rbp),%eax
  lea    0x1(%rax),%edx
  mov    %edx,-0xc(%rbp)
  movslq %eax,%rdx
  mov    -0x8(%rbp),%rax
  add    %rdx,%rax
  movb   $0x2d,(%rax)
L140:
  mov    -0x1c(%rbp),%eax
  and    $0x2,%eax
  test   %eax,%eax
  je     L144
  mov    -0xc(%rbp),%eax
  lea    0x1(%rax),%edx
  mov    %edx,-0xc(%rbp)
  movslq %eax,%rdx
  mov    -0x8(%rbp),%rax
  add    %rdx,%rax
  movb   $0x42,(%rax)
L144:
  mov    -0x1c(%rbp),%eax
  and    $0x4,%eax
  test   %eax,%eax
  je     L150
  mov    -0xc(%rbp),%eax
  lea    0x1(%rax),%edx
  mov    %edx,-0xc(%rbp)
  movslq %eax,%rdx
  mov    -0x8(%rbp),%rax
  add    %rdx,%rax
  movb   $0x4e,(%rax)
L150:
  mov    -0x1c(%rbp),%eax
  and    $0x8,%eax
  test   %eax,%eax
  je     L158
  mov    -0xc(%rbp),%eax
  lea    0x1(%rax),%edx
  mov    %edx,-0xc(%rbp)
  movslq %eax,%rdx
  mov    -0x8(%rbp),%rax
  add    %rdx,%rax
  movb   $0x54,(%rax)
L158:
  mov    -0x1c(%rbp),%eax
  and    $0x10,%eax
  test   %eax,%eax
  je     L5
  mov    -0xc(%rbp),%eax
  lea    0x1(%rax),%edx
  mov    %edx,-0xc(%rbp)
  movslq %eax,%rdx
  mov    -0x8(%rbp),%rax
  add    %rdx,%rax
  movb   $0x56,(%rax)
L5:
  mov    -0x1c(%rbp),%eax
  and    $0x20,%eax
  test   %eax,%eax
  je     L88
  mov    -0xc(%rbp),%eax
  lea    0x1(%rax),%edx
  mov    %edx,-0xc(%rbp)
  movslq %eax,%rdx
  mov    -0x8(%rbp),%rax
  add    %rdx,%rax
  movb   $0x57,(%rax)
L88:
  mov    -0x1c(%rbp),%eax
  and    $0x40,%eax
  test   %eax,%eax
  je     L24
  mov    -0xc(%rbp),%eax
  lea    0x1(%rax),%edx
  mov    %edx,-0xc(%rbp)
  movslq %eax,%rdx
  mov    -0x8(%rbp),%rax
  add    %rdx,%rax
  movb   $0x52,(%rax)
L24:
  mov    -0x1c(%rbp),%eax
  and    $0x80,%eax
  test   %eax,%eax
  je     L149
  mov    -0xc(%rbp),%eax
  lea    0x1(%rax),%edx
  mov    %edx,-0xc(%rbp)
  movslq %eax,%rdx
  mov    -0x8(%rbp),%rax
  add    %rdx,%rax
  movb   $0x44,(%rax)
L149:
  mov    -0xc(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x8(%rbp),%rax
  add    %rdx,%rax
  movb   $0x0,(%rax)
  mov    -0x18(%rbp),%rax
  mov    -0x8(%rbp),%rdx
  mov    %rdx,(%rax)
  nop
  leave
  ret
```

assistant: ```c
void MakeErrString(char **str, int errn) {
  int nerr = 0;
  char *string;
  string = *str;
  if (NULL != string)
    free(string);
  if ((errn & 1) == 1)
    nerr++;
  if ((errn & 2) == 2)
    nerr++;
  if ((errn & 4) == 4)
    nerr++;
  if ((errn & 8) == 8)
    nerr++;
  if ((errn & 16) == 16)
    nerr++;
  if ((errn & 32) == 32)
    nerr++;
  if ((errn & 64) == 64)
    nerr++;
  if ((errn & 128) == 128)
    nerr++;
  string = malloc((nerr + 1) * sizeof(char));
  nerr = 0;
  if ((errn & 1) == 1)
    string[nerr++] = '-';
  if ((errn & 2) == 2)
    string[nerr++] = 'B';
  if ((errn & 4) == 4)
    string[nerr++] = 'N';
  if ((errn & 8) == 8)
    string[nerr++] = 'T';
  if ((errn & 16) == 16)
    string[nerr++] = 'V';
  if ((errn & 32) == 32)
    string[nerr++] = 'W';
  if ((errn & 64) == 64)
    string[nerr++] = 'R';
  if ((errn & 128) == 128)
    string[nerr++] = 'D';
  string[nerr] = '\0';
  *str = string;
}
```