user: What is the c source code of the assembly code below:

```asm
<readfeats_file>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x50,%rsp
  mov    %rdi,-0x28(%rbp)
  mov    %esi,-0x2c(%rbp)
  mov    %rdx,-0x38(%rbp)
  mov    %rcx,-0x40(%rbp)
  mov    %r8,-0x48(%rbp)
  mov    %fs:0x28,%rax
  mov    %rax,-0x8(%rbp)
  xor    %eax,%eax
  mov    -0x28(%rbp),%rax
  mov    %rax,%rdi
  call   <lenchars_file@plt>
  mov    %eax,-0x14(%rbp)
  mov    -0x14(%rbp),%eax
  cltq
  shr    $0x2,%rax
  mov    %eax,-0x10(%rbp)
  mov    -0x10(%rbp),%eax
  cltd
  idivl  -0x2c(%rbp)
  mov    %edx,%eax
  test   %eax,%eax
  je     L74
  lea    D16(%rip),%rax
  mov    %rax,%rdi
  call   <fatal@plt>
L74:
  mov    -0x10(%rbp),%eax
  cltd
  idivl  -0x2c(%rbp)
  mov    %eax,-0xc(%rbp)
  mov    -0x38(%rbp),%rax
  mov    (%rax),%eax
  cmp    $0xffffffff,%eax
  je     L25
  mov    -0x38(%rbp),%rax
  mov    (%rax),%eax
  test   %eax,%eax
  jns    L73
L25:
  mov    -0x38(%rbp),%rax
  movl   $0x0,(%rax)
L73:
  mov    -0x38(%rbp),%rax
  mov    (%rax),%eax
  cmp    %eax,-0xc(%rbp)
  jg     L21
  lea    D18(%rip),%rax
  mov    %rax,%rdi
  call   <fatal@plt>
L21:
  mov    -0x40(%rbp),%rax
  mov    (%rax),%eax
  cmp    $0xffffffff,%eax
  je     L29
  mov    -0x40(%rbp),%rax
  mov    (%rax),%eax
  cmp    %eax,-0xc(%rbp)
  jg     L47
L29:
  mov    -0xc(%rbp),%eax
  lea    -0x1(%rax),%edx
  mov    -0x40(%rbp),%rax
  mov    %edx,(%rax)
L47:
  mov    -0x40(%rbp),%rax
  mov    (%rax),%edx
  mov    -0x38(%rbp),%rax
  mov    (%rax),%eax
  cmp    %eax,%edx
  jge    L24
  lea    D19(%rip),%rax
  mov    %rax,%rdi
  call   <fatal@plt>
L24:
  mov    -0x40(%rbp),%rax
  mov    (%rax),%edx
  mov    -0x38(%rbp),%rax
  mov    (%rax),%ecx
  mov    %edx,%eax
  sub    %ecx,%eax
  lea    0x1(%rax),%edx
  mov    -0x48(%rbp),%rax
  mov    %edx,(%rax)
  mov    -0x48(%rbp),%rax
  mov    (%rax),%eax
  imul   -0x2c(%rbp),%eax
  cltq
  shl    $0x2,%eax
  mov    %eax,-0x18(%rbp)
  mov    -0x38(%rbp),%rax
  mov    (%rax),%eax
  imul   -0x2c(%rbp),%eax
  cltq
  shl    $0x2,%eax
  mov    %eax,%ecx
  lea    -0x18(%rbp),%rdx
  mov    -0x28(%rbp),%rax
  mov    %ecx,%esi
  mov    %rax,%rdi
  call   <readchars_file@plt>
  mov    -0x8(%rbp),%rdx
  sub    %fs:0x28,%rdx
  je     L51
  call   <__stack_chk_fail@plt>
L51:
  leave
  ret
```

tool_calls: name: parse_data
arguments: tag: D16
datatype: string
name: parse_data
arguments: tag: D18
datatype: string
name: parse_data
arguments: tag: D19
datatype: string

tool: D16: ERROR: Feature dimension inconsistent with file


tool: D18: ERROR: fA is larger than total number of frames


tool: D19: ERROR: fB is less than fA


assistant: ```c
float *readfeats_file(char *fn, int D, int *fA, int *fB, int *N) {
  int nbytes = lenchars_file(fn);
  int nfloats = nbytes / sizeof(float);
  if (nfloats % D != 0)
    fatal("ERROR: Feature dimension inconsistent with file\n");
  int nframes = nfloats / D;
  if (*fA == -1 || *fA < 0)
    *fA = 0;
  if (*fA >= nframes) {
    fatal("ERROR: fA is larger than total number of frames\n");
  }
  if (*fB == -1 || *fB > nframes - 1)
    *fB = nframes - 1;
  if (*fB < *fA) {
    fatal("ERROR: fB is less than fA\n");
  }
  *N = *fB - *fA + 1;
  int nbytesread = (*N) * D * sizeof(float);
  return (float *)readchars_file(fn, (*fA) * D * sizeof(float), &nbytesread);
}
```