user: 请将以下的汇编代码转换成C语言代码:

```asm
<buffered_line_reader>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  mov    %r8,%r13
  push   %r12
  mov    %esi,%r12d
  push   %rbp
  mov    %rcx,%rbp
  push   %rbx
  sub    $0x98,%rsp
  mov    %rdi,0x20(%rsp)
  lea    0x30(%rsp),%rbx
  mov    %edx,(%rsp)
  mov    %fs:0x28,%rax
  mov    %rax,0x88(%rsp)
  xor    %eax,%eax
  lea    0x2f(%rsp),%rax
  mov    %rax,0x28(%rsp)
L113:
  mov    $0x1,%r14d
  mov    %rbp,0x8(%rsp)
  mov    (%rsp),%r15d
  movabs $0x2020202020202020,%rax
  movabs $0x2020202020202020,%rdx
  mov    %rax,(%rbx)
  mov    %r14,%rbp
  mov    0x20(%rsp),%r14
  mov    %rdx,0x8(%rbx)
  mov    %rax,0x10(%rbx)
  mov    %rdx,0x18(%rbx)
  mov    %rax,0x20(%rbx)
  mov    %rdx,0x28(%rbx)
  mov    %rax,0x30(%rbx)
  mov    %rdx,0x38(%rbx)
  mov    %rax,0x40(%rbx)
  mov    %rdx,0x48(%rbx)
  mov    %rbx,0x18(%rsp)
  mov    0x28(%rsp),%rbx
  mov    %r13,0x10(%rsp)
  jmp    L61
  nopl   0x0(%rax,%rax,1)
L123:
  xor    %esi,%esi
  cmp    $0xa,%al
  mov    %al,(%rbx,%rbp,1)
  mov    %ebp,%r13d
  sete   %sil
  add    %esi,%r12d
  cmp    $0x4f,%ebp
  setle  %dil
  cmp    %r15d,%r12d
  setl   %al
  add    $0x1,%rbp
  test   %al,%dil
  je     L48
L61:
  mov    %r14,%rdi
  lea    -0x1(%rbp),%r13d
  call   <fgetc@plt>
  mov    D3(%rip),%rcx
  cmp    %eax,(%rcx)
  jne    L123
L48:
  mov    0x8(%rsp),%rbp
  mov    %r13d,%r15d
  mov    $0x1,%esi
  mov    0x10(%rsp),%r13
  mov    0x18(%rsp),%rbx
  mov    0x0(%rbp),%edi
  add    %r15d,%edi
  add    $0x1,%edi
  call   <calloc@plt>
  movslq 0x0(%rbp),%rsi
  mov    %rax,%r10
  mov    %r15d,%eax
  add    %esi,%eax
  js     L63
  xor    %eax,%eax
  nopl   0x0(%rax,%rax,1)
L45:
  movb   $0x20,(%r10,%rax,1)
  movslq 0x0(%rbp),%rsi
  add    $0x1,%rax
  lea    (%rsi,%r15,1),%edx
  cmp    %eax,%edx
  jge    L45
L63:
  test   %esi,%esi
  jle    L126
  xor    %eax,%eax
  nopl   0x0(%rax,%rax,1)
L15:
  movzbl 0x0(%r13,%rax,1),%edx
  mov    %dl,(%r10,%rax,1)
  movslq 0x0(%rbp),%rsi
  add    $0x1,%rax
  cmp    %eax,%esi
  jg     L15
L126:
  test   %r15d,%r15d
  je     L74
  movzbl 0x30(%rsp),%eax
  movslq %r15d,%r9
  mov    %al,(%r10,%rsi,1)
  mov    $0x1,%eax
  cmp    $0x1,%r15d
  je     L121
  nopw   0x0(%rax,%rax,1)
L43:
  mov    0x0(%rbp),%edx
  movzbl (%rbx,%rax,1),%ecx
  add    %eax,%edx
  add    $0x1,%rax
  movslq %edx,%rdx
  mov    %cl,(%r10,%rdx,1)
  cmp    %rax,%r9
  jne    L43
L121:
  mov    0x0(%rbp),%esi
L74:
  lea    (%r15,%rsi,1),%edx
  mov    %edx,0x0(%rbp)
  movslq %edx,%rdx
  movb   $0x0,(%r10,%rdx,1)
  cmp    (%rsp),%r12d
  jl     L82
  mov    %r13,%rdi
  mov    %r10,(%rsp)
  call   <free@plt>
  mov    (%rsp),%r10
  mov    0x88(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L50
  add    $0x98,%rsp
  mov    %r10,%rax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nopl   0x0(%rax)
L82:
  mov    %r10,%r13
  jmp    L113
L50:
  call   <__stack_chk_fail@plt>
```

assistant: ```c
char *buffered_line_reader(FILE *fp, int k, int n, int *len, char *accu) {
  const int SIZE = 80;
  char *result;
  char buffer[SIZE];
  char c;
  int i;
  int go_on = 1;
  int idx = 0;
  int cnt = k;
  for (i = 0; i < SIZE; i++)
    buffer[i] = ' ';
  do {
    int rc = fgetc(fp);
    if (rc == EOF)
      break;
    c = (char)rc;
    if (c == '\n')
      cnt = cnt + 1;
    buffer[idx++] = (char)rc;
  } while ((idx < SIZE) && (cnt < n));
  result = (char *)calloc(*len + idx + 1, sizeof(char));
  for (i = 0; i < *len + idx + 1; i++)
    result[i] = ' ';
  for (i = 0; i < *len; i++)
    result[i] = accu[i];
  for (i = 0; i < idx; i++)
    result[*len + i] = buffer[i];
  *len = *len + idx;
  result[*len] = '\0';
  if (cnt < n)
    return buffered_line_reader(fp, cnt, n, len, result);
  else {
    free(accu);
    return result;
  }
}
```