user: What would the C source look like for the assembly code provided here?

```asm
<read_line>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0xe50,%rsp
  mov    %rdi,-0xe38(%rbp)
  mov    %esi,-0xe3c(%rbp)
  mov    %edx,-0xe40(%rbp)
  mov    %ecx,-0xe44(%rbp)
  mov    %r8d,-0xe48(%rbp)
  mov    %fs:0x28,%rax
  mov    %rax,-0x8(%rbp)
  xor    %eax,%eax
  mov    -0xe48(%rbp),%eax
  sub    -0xe3c(%rbp),%eax
  mov    %eax,%edx
  shr    $0x1f,%edx
  add    %edx,%eax
  sar    %eax
  mov    %eax,-0xe24(%rbp)
  mov    -0xe3c(%rbp),%eax
  lea    0x1(%rax),%edx
  mov    %edx,%eax
  add    %eax,%eax
  add    %edx,%eax
  and    $0xfffffffc,%eax
  imul   -0xe40(%rbp),%eax
  mov    %eax,%edx
  mov    -0xe44(%rbp),%eax
  add    %eax,%edx
  mov    -0xe38(%rbp),%rax
  mov    $0x0,%ecx
  mov    $0x0,%esi
  mov    %rax,%rdi
  call   <OS_file_seek@plt>
  mov    %eax,-0xe28(%rbp)
  cmpl   $0x0,-0xe28(%rbp)
  jne    L59
  cmpl   $0x0,-0xe24(%rbp)
  jns    L54
  mov    -0xe24(%rbp),%eax
  mov    %eax,%edx
  shl    $0x2,%eax
  sub    %eax,%edx
  mov    -0xe38(%rbp),%rax
  mov    $0x1,%ecx
  mov    $0x0,%esi
  mov    %rax,%rdi
  call   <OS_file_seek@plt>
  mov    %eax,-0xe28(%rbp)
  cmpl   $0x0,-0xe28(%rbp)
  jne    L78
  mov    -0xe48(%rbp),%edx
  mov    %edx,%eax
  add    %eax,%eax
  add    %eax,%edx
  lea    -0x880(%rbp),%rcx
  mov    -0xe38(%rbp),%rax
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <OS_file_read@plt>
  mov    %eax,-0xe28(%rbp)
  jmp    L78
L54:
  lea    -0x880(%rbp),%rax
  mov    $0x870,%edx
  mov    $0x0,%esi
  mov    %rax,%rdi
  call   <OS_memset@plt>
  mov    -0xe3c(%rbp),%edx
  mov    %edx,%eax
  add    %eax,%eax
  add    %eax,%edx
  mov    -0xe24(%rbp),%ecx
  mov    %ecx,%eax
  add    %eax,%eax
  add    %ecx,%eax
  cltq
  lea    -0x880(%rbp),%rcx
  add    %rax,%rcx
  mov    -0xe38(%rbp),%rax
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <OS_file_read@plt>
  mov    %eax,-0xe28(%rbp)
L78:
  cmpl   $0x0,-0xe28(%rbp)
  jne    L59
  mov    -0xe48(%rbp),%edx
  lea    -0x880(%rbp),%rcx
  lea    -0xe20(%rbp),%rax
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <convert_bgr_to_yuv@plt>
  mov    -0xe48(%rbp),%eax
  lea    (%rax,%rax,1),%edx
  lea    -0xe20(%rbp),%rax
  mov    %edx,%esi
  mov    %rax,%rdi
  call   <FS460_image_set_start_write@plt>
  mov    %eax,-0xe28(%rbp)
  cmpl   $0x0,-0xe28(%rbp)
  jne    L59
  movl   $0x0,-0xe2c(%rbp)
  jmp    L70
L27:
  lea    -0xe2c(%rbp),%rax
  mov    %rax,%rdi
  call   <FS460_image_is_transfer_completed@plt>
  mov    %eax,-0xe28(%rbp)
L70:
  mov    -0xe2c(%rbp),%eax
  test   %eax,%eax
  jne    L59
  cmpl   $0x0,-0xe28(%rbp)
  je     L27
L59:
  mov    -0xe28(%rbp),%eax
  mov    -0x8(%rbp),%rdx
  sub    %fs:0x28,%rdx
  je     L86
  call   <__stack_chk_fail@plt>
L86:
  leave
  ret
```

assistant: ```c
int read_line(unsigned long file_handle, int width, int file_y, int header_size, int scaler_width) {
  int err;
  int completed;
  unsigned char line_yuv[720 * 2];
  unsigned char line_bgr[(((720 * 3) + 3) & ~3)];
  int h_offset;
  {}
  h_offset = (scaler_width - width) / 2;
  err = OS_file_seek(file_handle, 0, header_size + ((((width * 3) + 3) & ~3) * file_y), 0);
  if (!err) {
    if (h_offset < 0) {
      err = OS_file_seek(file_handle, 0, 3 * (-h_offset), 1);
      if (!err) {
        err = OS_file_read(file_handle, line_bgr, scaler_width * 3);
      }
    } else {
      OS_memset(line_bgr, 0, sizeof(line_bgr));
      err = OS_file_read(file_handle, line_bgr + (3 * h_offset), width * 3);
    }
    if (!err) {
      convert_bgr_to_yuv(line_yuv, line_bgr, scaler_width);
      err = FS460_image_set_start_write(line_yuv, scaler_width * 2);
      if (!err) {
        completed = 0;
        while (!completed && !err)
          err = FS460_image_is_transfer_completed(&completed);
      }
    }
  }
  return err;
}
```