user: 请将以下的汇编代码转换成C语言代码:

```asm
<deslash>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x30,%rsp
  mov    %rdi,-0x28(%rbp)
  mov    %fs:0x28,%rax
  mov    %rax,-0x8(%rbp)
  xor    %eax,%eax
  mov    -0x28(%rbp),%rax
  mov    %rax,-0x10(%rbp)
  mov    -0x10(%rbp),%rax
  mov    %rax,-0x18(%rbp)
  jmp    L77
L33:
  mov    -0x18(%rbp),%rax
  movzbl (%rax),%eax
  cmp    $0x5c,%al
  je     L166
  mov    -0x18(%rbp),%rdx
  lea    0x1(%rdx),%rax
  mov    %rax,-0x18(%rbp)
  mov    -0x10(%rbp),%rax
  lea    0x1(%rax),%rcx
  mov    %rcx,-0x10(%rbp)
  movzbl (%rdx),%edx
  mov    %dl,(%rax)
  jmp    L77
L166:
  mov    -0x18(%rbp),%rax
  add    $0x1,%rax
  mov    %rax,-0x18(%rbp)
  mov    -0x18(%rbp),%rax
  movzbl (%rax),%eax
  movzbl %al,%eax
  cmp    $0x78,%eax
  jg     L157
  cmp    $0x62,%eax
  jge    L55
  cmp    $0x30,%eax
  je     L48
  cmp    $0x30,%eax
  jl     L157
  sub    $0x31,%eax
  cmp    $0x8,%eax
  ja     L157
  jmp    L26
L55:
  sub    $0x62,%eax
  cmp    $0x16,%eax
  ja     L157
  mov    %eax,%eax
  lea    0x0(,%rax,4),%rdx
  lea    D6(%rip),%rax
  mov    (%rdx,%rax,1),%eax
  cltq
  lea    D6(%rip),%rdx
  add    %rdx,%rax
  notrack jmp *%rax
  mov    -0x10(%rbp),%rax
  lea    0x1(%rax),%rdx
  mov    %rdx,-0x10(%rbp)
  movb   $0xa,(%rax)
  mov    -0x18(%rbp),%rax
  add    $0x1,%rax
  mov    %rax,-0x18(%rbp)
  jmp    L77
  mov    -0x10(%rbp),%rax
  lea    0x1(%rax),%rdx
  mov    %rdx,-0x10(%rbp)
  movb   $0xd,(%rax)
  mov    -0x18(%rbp),%rax
  add    $0x1,%rax
  mov    %rax,-0x18(%rbp)
  jmp    L77
  mov    -0x10(%rbp),%rax
  lea    0x1(%rax),%rdx
  mov    %rdx,-0x10(%rbp)
  movb   $0x9,(%rax)
  mov    -0x18(%rbp),%rax
  add    $0x1,%rax
  mov    %rax,-0x18(%rbp)
  jmp    L77
  mov    -0x10(%rbp),%rax
  lea    0x1(%rax),%rdx
  mov    %rdx,-0x10(%rbp)
  movb   $0x8,(%rax)
  mov    -0x18(%rbp),%rax
  add    $0x1,%rax
  mov    %rax,-0x18(%rbp)
  jmp    L77
  mov    -0x18(%rbp),%rax
  add    $0x1,%rax
  mov    %rax,-0x18(%rbp)
  lea    -0x18(%rbp),%rax
  mov    $0x10,%esi
  mov    %rax,%rdi
  call   <get_char_code@plt>
  mov    %rax,%rcx
  mov    -0x10(%rbp),%rax
  lea    0x1(%rax),%rdx
  mov    %rdx,-0x10(%rbp)
  mov    %ecx,%edx
  mov    %dl,(%rax)
  jmp    L77
L48:
  lea    -0x18(%rbp),%rax
  mov    $0x8,%esi
  mov    %rax,%rdi
  call   <get_char_code@plt>
  mov    %rax,%rcx
  mov    -0x10(%rbp),%rax
  lea    0x1(%rax),%rdx
  mov    %rdx,-0x10(%rbp)
  mov    %ecx,%edx
  mov    %dl,(%rax)
  jmp    L77
L26:
  lea    -0x18(%rbp),%rax
  mov    $0xa,%esi
  mov    %rax,%rdi
  call   <get_char_code@plt>
  mov    %rax,%rcx
  mov    -0x10(%rbp),%rax
  lea    0x1(%rax),%rdx
  mov    %rdx,-0x10(%rbp)
  mov    %ecx,%edx
  mov    %dl,(%rax)
  jmp    L77
L157:
  mov    -0x18(%rbp),%rdx
  lea    0x1(%rdx),%rax
  mov    %rax,-0x18(%rbp)
  mov    -0x10(%rbp),%rax
  lea    0x1(%rax),%rcx
  mov    %rcx,-0x10(%rbp)
  movzbl (%rdx),%edx
  mov    %dl,(%rax)
  nop
L77:
  mov    -0x18(%rbp),%rax
  movzbl (%rax),%eax
  test   %al,%al
  jne    L33
  mov    -0x10(%rbp),%rax
  movb   $0x0,(%rax)
  mov    -0x10(%rbp),%rax
  sub    -0x28(%rbp),%rax
  mov    -0x8(%rbp),%rdx
  sub    %fs:0x28,%rdx
  je     L16
  call   <__stack_chk_fail@plt>
L16:
  leave
  ret
```

assistant: ```c
int deslash(unsigned char *str) {
  unsigned char *wp, *rp;
  rp = wp = str;
  while (*rp) {
    if (*rp != '\\')
      *wp++ = *rp++;
    else {
      switch (*++rp) {
      case 'n':
        *wp++ = 10;
        ++rp;
        break;
      case 'r':
        *wp++ = 13;
        ++rp;
        break;
      case 't':
        *wp++ = 9;
        ++rp;
        break;
      case 'b':
        *wp++ = 8;
        ++rp;
        break;
      case 'x':
        ++rp;
        *wp++ = get_char_code(&rp, 16);
        break;
      case '0':
        *wp++ = get_char_code(&rp, 8);
        break;
      case '1':
      case '2':
      case '3':
      case '4':
      case '5':
      case '6':
      case '7':
      case '8':
      case '9':
        *wp++ = get_char_code(&rp, 10);
        break;
      default:
        *wp++ = *rp++;
        break;
      }
    }
  }
  *wp = '\0';
  return wp - str;
}
```