user: 下面的汇编指令对应的C源代码是什么：

```asm
<getline>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x40,%rsp
  mov    %rdi,-0x28(%rbp)
  mov    %rsi,-0x30(%rbp)
  mov    %rdx,-0x38(%rbp)
  movl   $0x0,-0x1c(%rbp)
  movl   $0x0,-0x18(%rbp)
  cmpq   $0x0,-0x28(%rbp)
  je     L97
  cmpq   $0x0,-0x30(%rbp)
  jne    L113
L97:
  mov    D18(%rip),%rax
  mov    (%rax),%edx
  mov    D14(%rip),%rax
  mov    %edx,(%rax)
  mov    $0xffffffff,%eax
  jmp    L207
L113:
  mov    -0x28(%rbp),%rax
  mov    (%rax),%rax
  test   %rax,%rax
  je     L161
  mov    -0x30(%rbp),%rax
  mov    (%rax),%rax
  test   %rax,%rax
  jne    L94
L161:
  mov    -0x28(%rbp),%rax
  movq   $0x0,(%rax)
  mov    -0x30(%rbp),%rax
  movq   $0x0,(%rax)
  movl   $0x1,-0x18(%rbp)
L94:
  mov    -0x30(%rbp),%rax
  mov    (%rax),%rax
  cmp    $0x3c,%rax
  jbe    L162
L41:
  mov    -0x30(%rbp),%rax
  mov    (%rax),%rax
  mov    -0x1c(%rbp),%edx
  movslq %edx,%rdx
  sub    %rdx,%rax
  mov    %rax,%rsi
  mov    -0x28(%rbp),%rax
  mov    (%rax),%rdx
  mov    -0x1c(%rbp),%eax
  cltq
  lea    (%rdx,%rax,1),%rcx
  mov    -0x38(%rbp),%rax
  mov    %rax,%rdx
  mov    %rcx,%rdi
  call   <fgets@plt>
  test   %rax,%rax
  jne    L101
  mov    -0x38(%rbp),%rax
  mov    %rax,%rdi
  call   <feof@plt>
  test   %rax,%rax
  je     L181
  cmpl   $0x0,-0x1c(%rbp)
  je     L181
  mov    -0x1c(%rbp),%eax
  jmp    L207
L101:
  mov    -0x38(%rbp),%rax
  mov    %rax,%rdi
  call   <feof@plt>
  test   %rax,%rax
  je     L69
  mov    -0x28(%rbp),%rax
  mov    (%rax),%rdx
  mov    -0x1c(%rbp),%eax
  cltq
  add    %rdx,%rax
  mov    %rax,%rdi
  call   <strlen@plt>
  mov    -0x1c(%rbp),%edx
  add    %edx,%eax
  jmp    L207
L69:
  mov    -0x30(%rbp),%rax
  mov    (%rax),%rax
  mov    -0x1c(%rbp),%edx
  movslq %edx,%rdx
  sub    %rdx,%rax
  lea    -0x1(%rax),%rdx
  mov    -0x28(%rbp),%rax
  mov    (%rax),%rcx
  mov    -0x1c(%rbp),%eax
  cltq
  add    %rcx,%rax
  mov    $0xa,%esi
  mov    %rax,%rdi
  call   <memchr@plt>
  mov    %rax,-0x8(%rbp)
  cmpq   $0x0,-0x8(%rbp)
  jne    L100
  mov    -0x30(%rbp),%rax
  mov    (%rax),%rax
  sub    $0x1,%eax
  mov    %eax,-0x1c(%rbp)
  jmp    L167
L162:
  nop
L167:
  mov    -0x30(%rbp),%rax
  mov    (%rax),%rax
  cmp    $0x3b,%rax
  jbe    L15
  mov    -0x30(%rbp),%rax
  mov    (%rax),%rax
  add    %eax,%eax
  jmp    L144
L15:
  mov    $0x78,%eax
L144:
  mov    %eax,-0x14(%rbp)
  mov    -0x28(%rbp),%rax
  mov    (%rax),%rax
  mov    -0x14(%rbp),%edx
  mov    %edx,%esi
  mov    %rax,%rdi
  call   <realloc@plt>
  mov    %rax,-0x10(%rbp)
  cmpq   $0x0,-0x10(%rbp)
  je     L81
  mov    -0x28(%rbp),%rax
  mov    -0x10(%rbp),%rdx
  mov    %rdx,(%rax)
  mov    -0x14(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x30(%rbp),%rax
  mov    %rdx,(%rax)
  jmp    L41
L100:
  mov    -0x28(%rbp),%rax
  mov    (%rax),%rdx
  mov    -0x8(%rbp),%rax
  sub    %rdx,%rax
  add    $0x1,%eax
  jmp    L207
L181:
  nop
  jmp    L66
L81:
  nop
L66:
  cmpl   $0x0,-0x18(%rbp)
  je     L108
  mov    -0x28(%rbp),%rax
  mov    (%rax),%rax
  mov    %rax,%rdi
  call   <free@plt>
  mov    -0x28(%rbp),%rax
  movq   $0x0,(%rax)
  mov    -0x30(%rbp),%rax
  movq   $0x0,(%rax)
L108:
  mov    $0xffffffff,%eax
L207:
  leave
  ret
```

assistant: ```c
ssize_t getline(char **buf, size_t *len, FILE *stream) {
  int i = 0, new_len, my_malloc = 0;
  char *nl, *new_buf;
  if (buf == NULL || len == NULL) {
    errno = EINVAL;
    return -1;
  }
  if (*buf == NULL || *len == 0) {
    *buf = NULL;
    *len = 0;
    my_malloc = 1;
  }
  if (*len <= 60)
    goto alloc;
  while (1) {
    if (fgets(*buf + i, *len - i, stream) == NULL) {
      if (!feof(stream) || i == 0) {
        goto error;
      } else {
        return i;
      }
    }
    if (feof(stream)) {
      return i + strlen(*buf + i);
    }
    if ((nl = memchr(*buf + i, '\n', *len - i - 1)) == NULL) {
      i = *len - 1;
    alloc:
      new_len = *len < 60 ? 120 : *len * 2;
      if ((new_buf = realloc(*buf, new_len)) == NULL)
        goto error;
      *buf = new_buf;
      *len = new_len;
    } else {
      return nl - *buf + 1;
    }
  }
error:
  if (my_malloc) {
    free(*buf);
    *buf = NULL;
    *len = 0;
  }
  return -1;
}
```