user: What would the C source look like for the assembly code provided here?

```asm
<deslash>:
  endbr64
  push   %r12
  mov    %rdi,%r12
  push   %rbp
  push   %rbx
  mov    %rdi,%rbx
  sub    $0x10,%rsp
  movzbl (%rdi),%edx
  mov    %fs:0x28,%rax
  mov    %rax,0x8(%rsp)
  xor    %eax,%eax
  mov    %rdi,(%rsp)
  test   %dl,%dl
  je     L97
  mov    %rdi,%rax
  lea    D9(%rip),%rbp
  jmp    L123
  nopl   (%rax)
L118:
  movzbl (%rax),%eax
  mov    %al,-0x1(%r12)
  mov    %rcx,%rax
L144:
  movzbl (%rax),%edx
  test   %dl,%dl
  je     L16
L123:
  lea    0x1(%rax),%rcx
  add    $0x1,%r12
  mov    %rcx,(%rsp)
  cmp    $0x5c,%dl
  jne    L118
  movzbl 0x1(%rax),%edx
  cmp    $0x78,%dl
  ja     L41
  cmp    $0x61,%dl
  jbe    L86
  sub    $0x62,%edx
  cmp    $0x16,%dl
  ja     L41
  movzbl %dl,%edx
  movslq 0x0(%rbp,%rdx,4),%rdx
  add    %rbp,%rdx
  notrack jmp *%rdx
  nopw   0x0(%rax,%rax,1)
L86:
  cmp    $0x30,%dl
  je     L143
  sub    $0x31,%edx
  cmp    $0x8,%dl
  jbe    L25
L41:
  lea    0x2(%rax),%rdx
  mov    %rdx,(%rsp)
  movzbl 0x1(%rax),%eax
  mov    %al,-0x1(%r12)
  mov    %rdx,%rax
  movzbl (%rax),%edx
  test   %dl,%dl
  jne    L123
  nopl   0x0(%rax)
L16:
  mov    %r12d,%eax
  sub    %ebx,%eax
L61:
  movb   $0x0,(%r12)
  mov    0x8(%rsp),%rdx
  sub    %fs:0x28,%rdx
  jne    L18
  add    $0x10,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  ret
  nopw   0x0(%rax,%rax,1)
L25:
  mov    %rsp,%rdi
  mov    $0xa,%esi
  call   <get_char_code@plt>
  mov    %al,-0x1(%r12)
  mov    (%rsp),%rax
  jmp    L144
  nopl   0x0(%rax,%rax,1)
  add    $0x2,%rax
  mov    %rsp,%rdi
  mov    $0x10,%esi
  mov    %rax,(%rsp)
  call   <get_char_code@plt>
  mov    %al,-0x1(%r12)
  mov    (%rsp),%rax
  jmp    L144
  nopl   0x0(%rax,%rax,1)
  add    $0x2,%rax
  movb   $0x9,-0x1(%r12)
  mov    %rax,(%rsp)
  jmp    L144
  nopl   0x0(%rax,%rax,1)
  add    $0x2,%rax
  movb   $0xd,-0x1(%r12)
  mov    %rax,(%rsp)
  jmp    L144
  nopl   0x0(%rax,%rax,1)
  add    $0x2,%rax
  movb   $0xa,-0x1(%r12)
  mov    %rax,(%rsp)
  jmp    L144
  nopl   0x0(%rax,%rax,1)
  add    $0x2,%rax
  movb   $0x8,-0x1(%r12)
  mov    %rax,(%rsp)
  jmp    L144
  nopl   0x0(%rax,%rax,1)
L143:
  mov    %rsp,%rdi
  mov    $0x8,%esi
  call   <get_char_code@plt>
  mov    %al,-0x1(%r12)
  mov    (%rsp),%rax
  jmp    L144
  nopl   0x0(%rax,%rax,1)
L97:
  xor    %eax,%eax
  jmp    L61
L18:
  call   <__stack_chk_fail@plt>
```

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;
}
```