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

```asm
<get_input_line>:
  endbr64
  push   %r15
  xor    %eax,%eax
  mov    %rdi,%r15
  push   %r14
  mov    %rcx,%r14
  push   %r13
  mov    %rsi,%r13
  xor    %esi,%esi
  push   %r12
  mov    %r9d,%r12d
  push   %rbp
  mov    %rdx,%rbp
  push   %rbx
  xor    %ebx,%ebx
  sub    $0x18,%rsp
  mov    %r8d,0x4(%rsp)
  call   <message@plt>
  mov    %r15,%rdi
  call   <strlen@plt>
  cmpb   $0x0,0x0(%r13)
  mov    %eax,%r15d
  je     L118
  jmp    L158
  nopl   0x0(%rax,%rax,1)
L176:
  cmp    $0x1b,%ebx
  jg     L203
  cmp    $0x20,%eax
  jne    L40
  test   %ebx,%ebx
  jg     L40
  xchg   %ax,%ax
L203:
  xor    %eax,%eax
  call   <refresh@plt>
L118:
  xor    %eax,%eax
  call   <rgetchar@plt>
  cmp    $0xd,%eax
  je     L225
  cmp    $0xa,%eax
  je     L60
  cmp    $0x1b,%eax
  je     L60
  lea    -0x20(%rax),%edx
  cmp    $0x5e,%edx
  jbe    L176
  cmp    $0x8,%eax
  jne    L203
  test   %ebx,%ebx
  jle    L203
  test   %r12d,%r12d
  jne    L217
L185:
  sub    $0x1,%ebx
  jmp    L203
L217:
  lea    (%rbx,%r15,1),%r13d
  xor    %edi,%edi
  mov    $0x20,%edx
  xor    %eax,%eax
  mov    %r13d,%esi
  call   <mvaddch@plt>
  mov    %r13d,%esi
  xor    %edi,%edi
  xor    %eax,%eax
  call   <move@plt>
  jmp    L185
  nopl   0x0(%rax,%rax,1)
L40:
  movslq %ebx,%rdx
  add    $0x1,%ebx
  mov    %al,0x0(%rbp,%rdx,1)
  test   %r12d,%r12d
  je     L203
  mov    %eax,%edi
  xor    %eax,%eax
  call   <addch@plt>
  jmp    L203
  nopl   (%rax)
L225:
  xor    %r15d,%r15d
L244:
  xor    %eax,%eax
  call   <check_message@plt>
  mov    0x4(%rsp),%edx
  movslq %ebx,%rax
  test   %edx,%edx
  jne    L177
  mov    %ebx,%r12d
  test   %ebx,%ebx
  jg     L181
  nopl   0x0(%rax)
L206:
  movb   $0x0,0x0(%rbp,%rax,1)
  test   %r12d,%r12d
  je     L61
L9:
  test   %r15b,%r15b
  jne    L61
L183:
  add    $0x18,%rsp
  mov    %r12d,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nopl   0x0(%rax)
L237:
  lea    -0x1(%rax),%r12d
  sub    $0x1,%rax
  je     L208
L181:
  cmpb   $0x20,-0x1(%rbp,%rax,1)
  mov    %eax,%r12d
  je     L237
  jmp    L206
  nopw   0x0(%rax,%rax,1)
L177:
  lea    0x1(%rbx),%r12d
  movb   $0x20,0x0(%rbp,%rax,1)
  movslq %r12d,%rax
  movb   $0x0,0x0(%rbp,%rax,1)
  cmp    $0x1,%r12d
  ja     L9
L61:
  xor    %r12d,%r12d
  test   %r14,%r14
  je     L183
  xor    %esi,%esi
  mov    %r14,%rdi
  xor    %eax,%eax
  call   <message@plt>
  jmp    L183
  nopl   (%rax)
L60:
  cmp    $0x1b,%eax
  sete   %r15b
  jmp    L244
  nopl   0x0(%rax)
L158:
  mov    %r13,%rdx
  mov    %rax,0x8(%rsp)
  lea    0x1(%rax),%esi
  xor    %edi,%edi
  xor    %eax,%eax
  call   <mvaddstr@plt>
  mov    %r13,%rsi
  mov    %rbp,%rdi
  call   <strcpy@plt>
  mov    %r13,%rdi
  call   <strlen@plt>
  mov    0x8(%rsp),%rcx
  xor    %edi,%edi
  mov    %eax,%ebx
  lea    0x1(%rcx,%rax,1),%esi
  xor    %eax,%eax
  call   <move@plt>
  xor    %eax,%eax
  call   <refresh@plt>
  jmp    L118
  nopw   0x0(%rax,%rax,1)
L208:
  movslq %r12d,%rax
  movb   $0x0,0x0(%rbp,%rax,1)
  test   %r12d,%r12d
  jne    L9
  jmp    L61
```

assistant: ```c
int get_input_line(prompt, insert, buf, if_cancelled, add_blank, do_echo)
char *prompt, *buf, *insert;
char *if_cancelled;
int add_blank;
int do_echo;
{
  int ch;
  int i = 0, n;
  message(prompt, 0);
  n = strlen(prompt);
  if (insert[0]) {
    mvaddstr(0, n + 1, insert);
    (void)strcpy(buf, insert);
    i = strlen(insert);
    move(0, (n + i + 1));
    refresh();
  }
  while (((ch = rgetchar()) != '\r') && (ch != '\n') && (ch != '\033')) {
    if ((ch >= ' ') && (ch <= '~') && (i < 30 - 2)) {
      if ((ch != ' ') || (i > 0)) {
        buf[i++] = ch;
        if (do_echo) {
          addch(ch);
        }
      }
    }
    if ((ch == '\b') && (i > 0)) {
      if (do_echo) {
        mvaddch(0, i + n, ' ');
        move(1 - 1, i + n);
      }
      i--;
    }
    refresh();
  }
  check_message();
  if (add_blank) {
    buf[i++] = ' ';
  } else {
    while ((i > 0) && (buf[i - 1] == ' ')) {
      i--;
    }
  }
  buf[i] = 0;
  if ((ch == '\033') || (i == 0) || ((i == 1) && add_blank)) {
    if (if_cancelled) {
      message(if_cancelled, 0);
    }
    return (0);
  }
  return (i);
}
```