user: Demonstrate the C code that generates the assembly output below:

```asm
<backslash_eliminate>:
  endbr64
  push   %r15
  push   %r14
  mov    %esi,%r14d
  push   %r13
  push   %r12
  mov    %rdi,%r12
  push   %rbp
  push   %rbx
  mov    %rdi,%rbx
  sub    $0x28,%rsp
  cmp    $0x1,%esi
  je     L86
L70:
  movzbl (%rbx),%eax
  test   %al,%al
  je     L353
  xor    %r8d,%r8d
  xor    %edx,%edx
  xor    %ebp,%ebp
  xor    %ecx,%ecx
  mov    $0x64,%esi
  lea    D3(%rip),%r13
  nopl   0x0(%rax)
L186:
  test   %edx,%edx
  je     L54
  lea    -0x2d(%rax),%edx
  cmp    $0x50,%dl
  ja     L34
  movzbl %dl,%edx
  movslq 0x0(%r13,%rdx,4),%rdx
  add    %r13,%rdx
  notrack jmp *%rdx
  cs nopw 0x0(%rax,%rax,1)
L34:
  mov    %ebp,%eax
  test   %r14d,%r14d
  jne    L393
  movslq %ebp,%rbp
  add    $0x1,%eax
  movb   $0x5c,(%r12,%rbp,1)
L393:
  lea    0x1(%rax),%ebp
L87:
  movzbl (%rbx),%edx
  cltq
  add    $0x1,%rbx
  mov    %dl,(%r12,%rax,1)
  xor    %edx,%edx
  nopl   0x0(%rax)
L279:
  movzbl (%rbx),%eax
  test   %al,%al
  jne    L186
  movslq %ebp,%rax
  add    %r12,%rax
  test   %edx,%edx
  je     L119
  movb   $0x5c,(%rax)
  lea    0x1(%rbp),%eax
  cltq
  add    %r12,%rax
L119:
  movb   $0x0,(%rax)
L655:
  add    $0x28,%rsp
  mov    %r12,%rax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nopl   0x0(%rax)
  lea    -0x30(%rax),%r9d
  movzbl 0x1(%rbx),%edx
  cmp    $0x3,%r9b
  ja     L525
  lea    -0x30(%rdx),%r10d
  cmp    $0x7,%r10b
  jbe    L171
  cmp    $0x30,%al
  jne    L525
  mov    %edx,%edi
  and    $0xffffffdf,%edi
  cmp    $0x58,%dil
  jne    L434
  movsbl 0x2(%rbx),%edi
  mov    %esi,0x18(%rsp)
  mov    %r8d,0x14(%rsp)
  mov    %ecx,0x10(%rsp)
  mov    %edi,%r15d
  mov    %r9b,0xc(%rsp)
  mov    %edi,0x1c(%rsp)
  call   <isxdigit@plt>
  movzbl 0xc(%rsp),%r9d
  mov    0x10(%rsp),%ecx
  test   %eax,%eax
  mov    0x14(%rsp),%r8d
  mov    0x18(%rsp),%esi
  je     L162
  mov    0x1c(%rsp),%edi
  lea    -0x30(%rdi),%eax
  cmp    $0x9,%eax
  ja     L295
  sub    $0x30,%r15d
L125:
  movsbl 0x3(%rbx),%edi
  mov    %esi,0x14(%rsp)
  mov    %r8d,0x10(%rsp)
  mov    %ecx,0xc(%rsp)
  mov    %dil,0x1c(%rsp)
  mov    %edi,0x18(%rsp)
  call   <isxdigit@plt>
  mov    0xc(%rsp),%ecx
  mov    0x10(%rsp),%r8d
  test   %eax,%eax
  mov    0x14(%rsp),%esi
  je     L67
  mov    0x18(%rsp),%edi
  shl    $0x4,%r15d
  movzbl 0x1c(%rsp),%edx
  lea    -0x30(%rdi),%eax
  cmp    $0x9,%eax
  jbe    L419
  mov    %esi,0x18(%rsp)
  mov    %r8d,0x14(%rsp)
  mov    %ecx,0x10(%rsp)
  mov    %dl,0xc(%rsp)
  call   <islower@plt>
  movzbl 0xc(%rsp),%edx
  mov    0x18(%rsp),%esi
  mov    %eax,%r9d
  mov    0x14(%rsp),%r8d
  mov    0x10(%rsp),%ecx
  lea    -0x57(%rdx),%eax
  sub    $0x37,%edx
  test   %r9d,%r9d
  cmovne %eax,%edx
L427:
  add    %edx,%r15d
  add    $0x4,%rbx
  jmp    L622
  nopl   0x0(%rax,%rax,1)
  mov    %ebp,%eax
  test   %ecx,%ecx
  je     L77
  movslq %ebp,%rbp
  add    $0x1,%eax
  movb   $0x5c,(%r12,%rbp,1)
L77:
  lea    0x1(%rax),%ebp
  cltq
  add    $0x1,%rbx
  xor    %edx,%edx
  movb   $0x7d,(%r12,%rax,1)
  jmp    L279
  add    $0x1,%rbx
  xor    %edx,%edx
  jmp    L279
  movslq %ebp,%rax
  add    $0x1,%rbx
  add    $0x1,%ebp
  xor    %edx,%edx
  movb   $0xb,(%r12,%rax,1)
  jmp    L279
  movslq %ebp,%rax
  add    $0x1,%rbx
  add    $0x1,%ebp
  xor    %edx,%edx
  movb   $0x9,(%r12,%rax,1)
  jmp    L279
  movslq %ebp,%rax
  add    $0x1,%rbx
  add    $0x1,%ebp
  xor    %edx,%edx
  movb   $0x20,(%r12,%rax,1)
  jmp    L279
  movslq %ebp,%rax
  add    $0x1,%rbx
  add    $0x1,%ebp
  xor    %edx,%edx
  movb   $0xd,(%r12,%rax,1)
  jmp    L279
  movslq %ebp,%rax
  add    $0x1,%rbx
  add    $0x1,%ebp
  xor    %edx,%edx
  movb   $0xa,(%r12,%rax,1)
  jmp    L279
  movslq %ebp,%rax
  add    $0x1,%rbx
  add    $0x1,%ebp
  xor    %edx,%edx
  movb   $0xc,(%r12,%rax,1)
  jmp    L279
  movslq %ebp,%rax
  add    $0x1,%rbx
  add    $0x1,%ebp
  xor    %edx,%edx
  movb   $0x8,(%r12,%rax,1)
  jmp    L279
  movslq %ebp,%rax
  add    $0x1,%rbx
  add    $0x1,%ebp
  xor    %edx,%edx
  movb   $0x5c,(%r12,%rax,1)
  jmp    L279
  mov    %ebp,%eax
  test   %ecx,%ecx
  je     L342
  movslq %ebp,%rbp
  add    $0x1,%eax
  movb   $0x5c,(%r12,%rbp,1)
L342:
  lea    0x1(%rax),%ebp
  cltq
  add    $0x1,%rbx
  xor    %edx,%edx
  movb   $0x2d,(%r12,%rax,1)
  jmp    L279
  nopw   0x0(%rax,%rax,1)
L525:
  movsbl %dl,%edi
  sub    $0x30,%edi
  cmp    $0x9,%edi
  ja     L634
L503:
  movzbl 0x2(%rbx),%edi
L652:
  lea    0x10(%rax,%rax,4),%eax
  lea    -0x30(%rdx,%rax,2),%eax
  movsbl %dil,%edx
  sub    $0x30,%edx
  cmp    $0x9,%edx
  ja     L250
  lea    (%rax,%rax,4),%eax
  add    $0x3,%rbx
  lea    -0x30(%rdi,%rax,2),%eax
L481:
  test   %al,%al
  je     L348
  movslq %ebp,%rdx
  add    $0x1,%ebp
  mov    %al,(%r12,%rdx,1)
  xor    %edx,%edx
  jmp    L279
  nop
L54:
  cmp    $0x5c,%al
  je     L55
  cmp    $0x1,%r14d
  je     L98
L636:
  movslq %ebp,%rdi
  add    $0x1,%rbx
  add    $0x1,%ebp
  mov    %al,(%r12,%rdi,1)
  jmp    L279
  nopl   (%rax)
L55:
  add    $0x1,%rbx
  mov    $0x1,%edx
  jmp    L279
  xchg   %ax,%ax
L98:
  cmp    $0x7d,%al
  je     L138
  cmp    $0x7b,%al
  jne    L636
  test   %ecx,%ecx
  jne    L636
  cmp    $0x1,%ebp
  jle    L489
  movslq %ebp,%rax
  cmpb   $0x5c,-0x2(%r12,%rax,1)
  je     L118
L489:
  sub    $0x2,%esi
  js     L348
  lea    0x1(%rbp),%eax
  movslq %ebp,%rcx
  add    $0x2,%ebp
  cltq
  movb   $0x5c,(%r12,%rcx,1)
  movb   $0x30,(%r12,%rax,1)
  movslq %ebp,%rax
L40:
  movzbl (%rbx),%ecx
  add    $0x1,%ebp
  mov    $0x1,%r8d
  add    $0x1,%rbx
  mov    %cl,(%r12,%rax,1)
  mov    $0x1,%ecx
  jmp    L279
  nop
L138:
  movslq %ebp,%rax
  lea    0x1(%rbp),%edi
  add    %r12,%rax
  cmpb   $0x7b,0x1(%rbx)
  jne    L483
  test   %r8d,%r8d
  jne    L82
L483:
  movb   $0x7d,(%rax)
  add    $0x1,%rbx
  mov    %edi,%ebp
  xor    %ecx,%ecx
  jmp    L279
L434:
  movsbl %dl,%edi
  sub    $0x30,%edi
  cmp    $0x9,%edi
  jbe    L503
L162:
  test   %r14d,%r14d
  je     L348
L634:
  cmp    $0x2,%r14d
  je     L535
  movslq %ebp,%rdx
  lea    0x1(%rbp),%eax
  add    $0x2,%ebp
  movb   $0x5c,(%r12,%rdx,1)
  jmp    L87
L250:
  add    $0x2,%rbx
  jmp    L481
L535:
  test   %r9b,%r9b
  je     L348
  movslq %ebp,%rax
  add    $0x1,%rbx
  add    $0x1,%ebp
  xor    %edx,%edx
  mov    %r9b,(%r12,%rax,1)
  jmp    L279
L118:
  movzbl -0x1(%r12,%rax,1),%ecx
  sub    $0x30,%ecx
  cmp    $0x9,%cl
  jbe    L40
  jmp    L489
L82:
  movb   $0x7d,(%rax)
  movzbl 0x1(%rbx),%eax
  movslq %edi,%rdi
  add    $0x2,%ebp
  xor    %r8d,%r8d
  add    $0x2,%rbx
  mov    %al,(%r12,%rdi,1)
  jmp    L279
L171:
  movzbl 0x2(%rbx),%edi
  lea    -0x30(%rdi),%r11d
  cmp    $0x7,%r11b
  ja     L652
  mov    %r9d,%eax
  shl    $0x6,%eax
  add    %r11d,%eax
  lea    (%rax,%r10,8),%r10d
  test   %r10b,%r10b
  je     L348
  movslq %ebp,%rax
  add    $0x3,%rbx
  add    $0x1,%ebp
  xor    %edx,%edx
  mov    %r10b,(%r12,%rax,1)
  jmp    L279
L86:
  mov    %edx,%ebp
  call   <strlen@plt>
  mov    %ebp,%edi
  lea    0x65(%rax),%rsi
  xor    %eax,%eax
  call   <mem@plt>
  movslq %eax,%r12
  test   %eax,%eax
  jne    L70
L348:
  xor    %r12d,%r12d
  jmp    L655
L67:
  add    $0x3,%rbx
L622:
  test   %r15b,%r15b
  je     L348
  movslq %ebp,%rax
  xor    %edx,%edx
  add    $0x1,%ebp
  mov    %r15b,(%r12,%rax,1)
  jmp    L279
L295:
  mov    %esi,0x14(%rsp)
  mov    %r8d,0x10(%rsp)
  mov    %ecx,0xc(%rsp)
  call   <islower@plt>
  mov    0x14(%rsp),%esi
  mov    0x10(%rsp),%r8d
  mov    %eax,%r9d
  lea    -0x57(%r15),%eax
  sub    $0x37,%r15d
  mov    0xc(%rsp),%ecx
  test   %r9d,%r9d
  cmovne %eax,%r15d
  jmp    L125
L419:
  sub    $0x30,%edx
  jmp    L427
L353:
  mov    %r12,%rax
  jmp    L119
```

assistant: ```c
char *backslash_eliminate(str, type, who)
char *str;
int type;
int who;
{
  char *new_str;
  int extra = 100;
  int seenlb = 0;
  register int i = 0;
  register int seenbs = 0;
  int first_half = 0;
  if (type == 1) {
    if (!(new_str = mem(who, strlen(str) + 1 + extra))) {
      return 0;
    }
  } else {
    new_str = str;
  }
  while (*str) {
    if (seenbs) {
      seenbs = 0;
      switch (*str) {
      case '\\': {
        new_str[i++] = '\\';
        str++;
        break;
      }
      case '-': {
        if (seenlb) {
          new_str[i++] = '\\';
        }
        new_str[i++] = '-';
        str++;
        break;
      }
      case '}': {
        if (seenlb) {
          new_str[i++] = '\\';
        }
        new_str[i++] = '}';
        str++;
        break;
      }
      case 'n': {
        new_str[i++] = '\n';
        str++;
        break;
      }
      case 't': {
        new_str[i++] = '\t';
        str++;
        break;
      }
      case 's': {
        new_str[i++] = ' ';
        str++;
        break;
      }
      case 'r': {
        new_str[i++] = '\r';
        str++;
        break;
      }
      case 'f': {
        new_str[i++] = '\f';
        str++;
        break;
      }
      case 'b': {
        new_str[i++] = '\b';
        str++;
        break;
      }
      case 'v': {
        new_str[i++] = '\13';
        str++;
        break;
      }
      case 'z': {
        str++;
        break;
      }
      case '0':
      case '1':
      case '2':
      case '3':
      case '4':
      case '5':
      case '6':
      case '7':
      case '8':
      case '9': {
        char val;
        if (*str >= '0' && *str <= '3' && *(str + 1) >= '0' && *(str + 1) <= '7' && *(str + 2) >= '0' && *(str + 2) <= '7') {
          val = ((isdigit(*str) ? (*str) - '0' : islower(*str) ? (*str) + 10 - 'a' : (*str) + 10 - 'A') << 6) + ((isdigit(*(str + 1)) ? (*(str + 1)) - '0' : islower(*(str + 1)) ? (*(str + 1)) + 10 - 'a' : (*(str + 1)) + 10 - 'A') << 3) + (isdigit(*(str + 2)) ? (*(str + 2)) - '0' : islower(*(str + 2)) ? (*(str + 2)) + 10 - 'a' : (*(str + 2)) + 10 - 'A');
          if (!val) {
            return 0;
          }
          new_str[i++] = val;
          str += 3;
          break;
        }
        if (*str == '0' && (*(str + 1) == 'x' || *(str + 1) == 'X') && isxdigit(*(str + 2))) {
          val = (isdigit(*(str + 2)) ? (*(str + 2)) - '0' : islower(*(str + 2)) ? (*(str + 2)) + 10 - 'a' : (*(str + 2)) + 10 - 'A');
          if (isxdigit(*(str + 3))) {
            val = (val << 4) + (isdigit(*(str + 3)) ? (*(str + 3)) - '0' : islower(*(str + 3)) ? (*(str + 3)) + 10 - 'a' : (*(str + 3)) + 10 - 'A');
            str += 4;
          } else {
            str += 3;
          }
          if (!val) {
            return 0;
          }
          new_str[i++] = val;
          break;
        }
        if (isdigit(*(str + 1))) {
          val = (isdigit(*str) ? (*str) - '0' : islower(*str) ? (*str) + 10 - 'a' : (*str) + 10 - 'A') * 10 + (isdigit(*(str + 1)) ? (*(str + 1)) - '0' : islower(*(str + 1)) ? (*(str + 1)) + 10 - 'a' : (*(str + 1)) + 10 - 'A');
          if (isdigit(*(str + 2))) {
            val = 10 * val + (isdigit(*(str + 2)) ? (*(str + 2)) - '0' : islower(*(str + 2)) ? (*(str + 2)) + 10 - 'a' : (*(str + 2)) + 10 - 'A');
            str += 3;
          } else {
            str += 2;
          }
          if (!val) {
            return 0;
          }
          new_str[i++] = val;
          break;
        }
        if (*str == '0' && type == 0) {
          return 0;
        }
        if (type == 2) {
          if (!(val = (isdigit(*str) ? (*str) - '0' : islower(*str) ? (*str) + 10 - 'a' : (*str) + 10 - 'A'))) {
            return 0;
          }
          new_str[i++] = val;
          str++;
        } else {
          new_str[i++] = '\\';
          new_str[i++] = *str++;
        }
        break;
      }
      default: {
        if (type == 0) {
          new_str[i++] = '\\';
        }
        new_str[i++] = *str++;
        break;
      }
      }
    } else {
      if (*str == '\\') {
        seenbs = 1;
        str++;
      } else if (type == 1 && *str == '}') {
        if (*(str + 1) == '{' && first_half) {
          new_str[i++] = *str++;
          new_str[i++] = *str++;
          first_half = 0;
        } else {
          seenlb = 0;
          new_str[i++] = *str++;
        }
      } else if (type == 1 && !seenlb && *str == '{') {
        seenlb = 1;
        first_half = 1;
        if (i < 2 || new_str[i - 2] != '\\' || !(new_str[i - 1] >= '0' && new_str[i - 1] <= '9')) {
          if ((extra -= 2) < 0) {
            return 0;
          }
          new_str[i++] = '\\';
          new_str[i++] = '0';
        }
        new_str[i++] = *str++;
      } else {
        new_str[i++] = *str++;
      }
    }
  }
  if (seenbs) {
    new_str[i++] = '\\';
  }
  new_str[i] = '\0';
  return new_str;
}
```