user: 请显示与下面列出的汇编代码相匹配的C语言实现:

```asm
<get_line>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x40,%rsp
  mov    %rdi,-0x28(%rbp)
  mov    %rsi,-0x30(%rbp)
  mov    %rdx,-0x38(%rbp)
  mov    %rcx,-0x40(%rbp)
L104:
  movq   $0x0,-0x18(%rbp)
L58:
  mov    -0x30(%rbp),%rax
  mov    (%rax),%rax
  sub    -0x18(%rbp),%rax
  cmp    $0x9,%rax
  ja     L191
  mov    -0x30(%rbp),%rax
  mov    (%rax),%rax
  add    $0x28,%rax
  lea    (%rax,%rax,1),%rdx
  mov    -0x28(%rbp),%rax
  mov    (%rax),%rax
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <realloc@plt>
  mov    %rax,-0x10(%rbp)
  cmpq   $0x0,-0x10(%rbp)
  jne    L113
  mov    $0x0,%eax
  jmp    L338
L113:
  mov    -0x28(%rbp),%rax
  mov    -0x10(%rbp),%rdx
  mov    %rdx,(%rax)
  mov    -0x30(%rbp),%rax
  mov    (%rax),%rax
  add    $0x28,%rax
  lea    (%rax,%rax,1),%rdx
  mov    -0x30(%rbp),%rax
  mov    %rdx,(%rax)
L191:
  mov    -0x30(%rbp),%rax
  mov    (%rax),%rax
  sub    -0x18(%rbp),%rax
  mov    -0x28(%rbp),%rdx
  mov    (%rdx),%rcx
  mov    -0x18(%rbp),%rdx
  add    %rdx,%rcx
  mov    -0x38(%rbp),%rdx
  mov    %rax,%rsi
  mov    %rcx,%rdi
  call   <fgets@plt>
  test   %eax,%eax
  jne    L199
  mov    -0x38(%rbp),%rax
  mov    %rax,%rdi
  call   <ferror@plt>
  test   %rax,%rax
  jne    L329
  cmpq   $0x0,-0x18(%rbp)
  jne    L329
  mov    $0x0,%eax
  jmp    L338
L329:
  mov    -0x38(%rbp),%rax
  mov    %rax,%rdi
  call   <ferror@plt>
  test   %rax,%rax
  je     L199
  mov    $0x0,%eax
  jmp    L338
L199:
  mov    -0x28(%rbp),%rax
  mov    (%rax),%rdx
  mov    -0x18(%rbp),%rax
  add    %rdx,%rax
  mov    %rax,%rdi
  call   <strlen@plt>
  add    %rax,-0x18(%rbp)
  mov    -0x30(%rbp),%rax
  mov    (%rax),%rax
  sub    $0x1,%rax
  cmp    %rax,-0x18(%rbp)
  jne    L269
  mov    -0x28(%rbp),%rax
  mov    (%rax),%rdx
  mov    -0x18(%rbp),%rax
  sub    $0x1,%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  cmp    $0xa,%al
  jne    L58
L269:
  cmpq   $0x0,-0x18(%rbp)
  je     L253
  mov    -0x28(%rbp),%rax
  mov    (%rax),%rdx
  mov    -0x18(%rbp),%rax
  sub    $0x1,%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  cmp    $0xa,%al
  jne    L253
  mov    -0x28(%rbp),%rax
  mov    (%rax),%rdx
  subq   $0x1,-0x18(%rbp)
  mov    -0x18(%rbp),%rax
  add    %rdx,%rax
  movb   $0x0,(%rax)
L253:
  mov    -0x40(%rbp),%rax
  mov    (%rax),%eax
  lea    0x1(%rax),%edx
  mov    -0x40(%rbp),%rax
  mov    %edx,(%rax)
  mov    -0x28(%rbp),%rax
  mov    (%rax),%rdx
  mov    -0x18(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  test   %al,%al
  sete   %al
  movzbl %al,%eax
  mov    %eax,%edi
  call   <assert@plt>
  movl   $0x0,-0x1c(%rbp)
  jmp    L114
L176:
  addl   $0x1,-0x1c(%rbp)
L114:
  mov    -0x28(%rbp),%rax
  mov    (%rax),%rdx
  mov    -0x1c(%rbp),%eax
  cltq
  add    %rdx,%rax
  movzbl (%rax),%eax
  movsbl %al,%eax
  mov    %eax,%edi
  call   <isspace@plt>
  test   %rax,%rax
  je     L171
  mov    -0x28(%rbp),%rax
  mov    (%rax),%rdx
  mov    -0x1c(%rbp),%eax
  cltq
  add    %rdx,%rax
  movzbl (%rax),%eax
  test   %al,%al
  jne    L176
L171:
  mov    -0x1c(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x18(%rbp),%rax
  sub    %rdx,%rax
  lea    0x1(%rax),%rdx
  mov    -0x28(%rbp),%rax
  mov    (%rax),%rcx
  mov    -0x1c(%rbp),%eax
  cltq
  add    %rax,%rcx
  mov    -0x28(%rbp),%rax
  mov    (%rax),%rax
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <memmove@plt>
  mov    -0x1c(%rbp),%eax
  cltq
  sub    %rax,-0x18(%rbp)
  mov    -0x28(%rbp),%rax
  mov    (%rax),%rax
  movzbl (%rax),%eax
  cmp    $0x23,%al
  je     L104
  jmp    L288
L197:
  mov    -0x28(%rbp),%rax
  mov    (%rax),%rdx
  subq   $0x1,-0x18(%rbp)
  mov    -0x18(%rbp),%rax
  add    %rdx,%rax
  movb   $0x0,(%rax)
L320:
  mov    -0x30(%rbp),%rax
  mov    (%rax),%rax
  sub    -0x18(%rbp),%rax
  cmp    $0x9,%rax
  ja     L74
  mov    -0x30(%rbp),%rax
  mov    (%rax),%rax
  add    $0x28,%rax
  lea    (%rax,%rax,1),%rdx
  mov    -0x28(%rbp),%rax
  mov    (%rax),%rax
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <realloc@plt>
  mov    %rax,-0x8(%rbp)
  cmpq   $0x0,-0x8(%rbp)
  jne    L15
  mov    $0x0,%eax
  jmp    L338
L15:
  mov    -0x28(%rbp),%rax
  mov    -0x8(%rbp),%rdx
  mov    %rdx,(%rax)
  mov    -0x30(%rbp),%rax
  mov    (%rax),%rax
  add    $0x28,%rax
  lea    (%rax,%rax,1),%rdx
  mov    -0x30(%rbp),%rax
  mov    %rdx,(%rax)
L74:
  mov    -0x30(%rbp),%rax
  mov    (%rax),%rax
  sub    -0x18(%rbp),%rax
  mov    -0x28(%rbp),%rdx
  mov    (%rdx),%rcx
  mov    -0x18(%rbp),%rdx
  add    %rdx,%rcx
  mov    -0x38(%rbp),%rdx
  mov    %rax,%rsi
  mov    %rcx,%rdi
  call   <fgets@plt>
  test   %eax,%eax
  jne    L27
  mov    -0x38(%rbp),%rax
  mov    %rax,%rdi
  call   <ferror@plt>
  test   %rax,%rax
  jne    L7
  cmpq   $0x0,-0x18(%rbp)
  jne    L7
  mov    $0x0,%eax
  jmp    L338
L7:
  mov    -0x38(%rbp),%rax
  mov    %rax,%rdi
  call   <ferror@plt>
  test   %rax,%rax
  je     L27
  mov    $0x0,%eax
  jmp    L338
L27:
  mov    -0x28(%rbp),%rax
  mov    (%rax),%rdx
  mov    -0x18(%rbp),%rax
  add    %rdx,%rax
  mov    %rax,%rdi
  call   <strlen@plt>
  add    %rax,-0x18(%rbp)
  mov    -0x30(%rbp),%rax
  mov    (%rax),%rax
  sub    $0x1,%rax
  cmp    %rax,-0x18(%rbp)
  jne    L247
  mov    -0x28(%rbp),%rax
  mov    (%rax),%rdx
  mov    -0x18(%rbp),%rax
  sub    $0x1,%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  cmp    $0xa,%al
  jne    L320
L247:
  cmpq   $0x0,-0x18(%rbp)
  je     L267
  mov    -0x28(%rbp),%rax
  mov    (%rax),%rdx
  mov    -0x18(%rbp),%rax
  sub    $0x1,%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  cmp    $0xa,%al
  jne    L267
  mov    -0x28(%rbp),%rax
  mov    (%rax),%rdx
  subq   $0x1,-0x18(%rbp)
  mov    -0x18(%rbp),%rax
  add    %rdx,%rax
  movb   $0x0,(%rax)
L267:
  mov    -0x40(%rbp),%rax
  mov    (%rax),%eax
  lea    0x1(%rax),%edx
  mov    -0x40(%rbp),%rax
  mov    %edx,(%rax)
  mov    -0x28(%rbp),%rax
  mov    (%rax),%rdx
  mov    -0x18(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  test   %al,%al
  sete   %al
  movzbl %al,%eax
  mov    %eax,%edi
  call   <assert@plt>
L288:
  mov    -0x28(%rbp),%rax
  mov    (%rax),%rdx
  mov    -0x18(%rbp),%rax
  sub    $0x1,%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  cmp    $0x5c,%al
  je     L197
  jmp    L291
L319:
  subq   $0x1,-0x18(%rbp)
L291:
  mov    -0x28(%rbp),%rax
  mov    (%rax),%rdx
  mov    -0x18(%rbp),%rax
  sub    $0x1,%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  movsbl %al,%eax
  mov    %eax,%edi
  call   <isspace@plt>
  test   %rax,%rax
  jne    L319
  mov    -0x28(%rbp),%rax
  mov    (%rax),%rdx
  mov    -0x18(%rbp),%rax
  add    %rdx,%rax
  movb   $0x0,(%rax)
  mov    $0x1,%eax
L338:
  leave
  ret
```

assistant: ```c
int get_line(char **result, size_t *result_len, FILE *f, int *line) {
  size_t pos;
  do {
    pos = 0;
    do {
      if (*result_len - pos < 10) {
        char *newstr = realloc(*result, *result_len * 2 + 80);
        if (newstr == NULL) {
          return 0;
        }
        *result = newstr;
        *result_len = *result_len * 2 + 80;
      }
      if (!fgets(*result + pos, *result_len - pos, f)) {
        if (ferror(f) == 0 && pos == 0)
          return 0;
        if (ferror(f) != 0)
          return 0;
      }
      pos += strlen(*result + pos);
    } while (pos == *result_len - 1 && (*result)[pos - 1] != '\n');
    if (pos != 0 && (*result)[pos - 1] == '\n') {
      (*result)[--pos] = '\0';
    }
    (*line)++;
    assert((*result)[pos] == '\0');
    {
      int first = 0;
      while (isspace((*result)[first]) && (*result)[first]) {
        first++;
      }
      memmove(*result, *result + first, pos - first + 1);
      pos -= first;
    }
  } while ((*result)[0] == '#');
  while ((*result)[pos - 1] == '\\') {
    (*result)[--pos] = '\0';
    do {
      if (*result_len - pos < 10) {
        char *newstr = realloc(*result, *result_len * 2 + 80);
        if (newstr == NULL) {
          return 0;
        }
        *result = newstr;
        *result_len = *result_len * 2 + 80;
      }
      if (!fgets(*result + pos, *result_len - pos, f)) {
        if (ferror(f) == 0 && pos == 0)
          return 0;
        if (ferror(f) != 0)
          return 0;
      }
      pos += strlen(*result + pos);
    } while (pos == *result_len - 1 && (*result)[pos - 1] != '\n');
    if (pos != 0 && (*result)[pos - 1] == '\n') {
      (*result)[--pos] = '\0';
    }
    (*line)++;
    assert((*result)[pos] == '\0');
  }
  while (isspace((*result)[pos - 1])) {
    pos--;
  }
  (*result)[pos] = '\0';
  return 1;
}
```