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

```asm
<main>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x480,%rsp
  mov    %edi,-0x474(%rbp)
  mov    %rsi,-0x480(%rbp)
  mov    %fs:0x28,%rax
  mov    %rax,-0x8(%rbp)
  xor    %eax,%eax
  lea    -0x470(%rbp),%rax
  lea    D28(%rip),%rdx
  mov    $0x2580,%esi
  mov    %rax,%rdi
  call   <initSerial@plt>
  movq   $0x0,-0x440(%rbp)
  movq   $0x5,-0x438(%rbp)
  movq   $0xff0,-0x430(%rbp)
  movq   $0x0,-0x428(%rbp)
  movq   $0x80,-0x420(%rbp)
  movq   $0xff0,-0x418(%rbp)
  movl   $0xa3,-0x46c(%rbp)
  mov    -0x470(%rbp),%eax
  lea    -0x46c(%rbp),%rcx
  mov    $0x1,%edx
  mov    %rcx,%rsi
  mov    %eax,%edi
  mov    $0x0,%eax
  call   <write@plt>
  movl   $0x0,-0x468(%rbp)
  movl   $0x0,-0x468(%rbp)
  jmp    L45
L33:
  lea    -0x440(%rbp),%rdx
  mov    -0x468(%rbp),%eax
  cltq
  shl    $0x3,%rax
  lea    (%rdx,%rax,1),%rcx
  mov    -0x470(%rbp),%eax
  mov    $0x2,%edx
  mov    %rcx,%rsi
  mov    %eax,%edi
  mov    $0x0,%eax
  call   <write@plt>
  addl   $0x1,-0x468(%rbp)
L45:
  cmpl   $0x5,-0x468(%rbp)
  jle    L33
  movl   $0x0,-0x468(%rbp)
  movq   $0x0,-0x460(%rbp)
  mov    -0x470(%rbp),%eax
  lea    -0x460(%rbp),%rcx
  mov    $0x2,%edx
  mov    %rcx,%rsi
  mov    %eax,%edi
  call   <myReadfull@plt>
  jmp    L1
L51:
  mov    -0x460(%rbp),%rax
  mov    %eax,%edx
  mov    -0x470(%rbp),%eax
  lea    -0x410(%rbp),%rcx
  mov    %rcx,%rsi
  mov    %eax,%edi
  call   <myReadfull@plt>
  movl   $0x0,-0x464(%rbp)
  movl   $0x0,-0x464(%rbp)
  jmp    L27
L21:
  pxor   %xmm0,%xmm0
  movsd  %xmm0,-0x458(%rbp)
  pxor   %xmm0,%xmm0
  movsd  %xmm0,-0x450(%rbp)
  pxor   %xmm0,%xmm0
  movsd  %xmm0,-0x448(%rbp)
  mov    -0x464(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x438(%rbp),%rax
  imul   %rdx,%rax
  sar    %rax
  pxor   %xmm1,%xmm1
  cvtsi2sd %rax,%xmm1
  movsd  D44(%rip),%xmm0
  mulsd  %xmm1,%xmm0
  movsd  %xmm0,-0x458(%rbp)
  mov    -0x468(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x420(%rbp),%rax
  imul   %rdx,%rax
  pxor   %xmm1,%xmm1
  cvtsi2sd %rax,%xmm1
  movsd  D35(%rip),%xmm0
  mulsd  %xmm1,%xmm0
  movsd  %xmm0,-0x448(%rbp)
  mov    -0x464(%rbp),%eax
  add    $0x1,%eax
  cltq
  mov    -0x410(%rbp,%rax,4),%eax
  shl    $0x8,%eax
  mov    %eax,%edx
  mov    -0x464(%rbp),%eax
  cltq
  mov    -0x410(%rbp,%rax,4),%eax
  or     %edx,%eax
  pxor   %xmm1,%xmm1
  cvtsi2sd %eax,%xmm1
  movsd  D56(%rip),%xmm0
  mulsd  %xmm1,%xmm0
  movsd  %xmm0,-0x450(%rbp)
  movsd  -0x450(%rbp),%xmm1
  movsd  -0x458(%rbp),%xmm0
  mov    -0x448(%rbp),%rax
  movapd %xmm1,%xmm2
  movapd %xmm0,%xmm1
  movq   %rax,%xmm0
  lea    D23(%rip),%rax
  mov    %rax,%rdi
  mov    $0x3,%eax
  call   <printf@plt>
  addl   $0x2,-0x464(%rbp)
L27:
  mov    -0x464(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x460(%rbp),%rax
  cmp    %rax,%rdx
  jl     L21
  lea    D50(%rip),%rax
  mov    %rax,%rdi
  call   <puts@plt>
  mov    -0x470(%rbp),%eax
  lea    -0x460(%rbp),%rcx
  mov    $0x2,%edx
  mov    %rcx,%rsi
  mov    %eax,%edi
  call   <myReadfull@plt>
  addl   $0x1,-0x468(%rbp)
L1:
  mov    -0x460(%rbp),%rax
  test   %rax,%rax
  jg     L51
  mov    $0x0,%eax
  mov    -0x8(%rbp),%rdx
  sub    %fs:0x28,%rdx
  je     L28
  call   <__stack_chk_fail@plt>
L28:
  leave
  ret
```

tool_calls: name: extract_symbolic_data
arguments: tag: D28
type_guessed: string
name: extract_symbolic_data
arguments: tag: D44
type_guessed: f64
name: extract_symbolic_data
arguments: tag: D35
type_guessed: f64
name: extract_symbolic_data
arguments: tag: D56
type_guessed: byte[8]
name: extract_symbolic_data
arguments: tag: D23
type_guessed: string
name: extract_symbolic_data
arguments: tag: D50
type_guessed: string

tool: D28: /dev/ttyUSB0

tool: D44: 0.0007326007326007326

tool: D35: 0.0014716888142523364

tool: {"D56": [0x62,0xec,0x14,0x3b,0x76,0xb2,0xd3,0x3e]}

tool: D23: %e	%e	%e


tool: D50: 


assistant: ```c
int main(int argc, char **argv) {
  volatile int fd;
  initSerial(&fd, 9600, "/dev/ttyUSB0");
  uint16_t out[6];
  out[0] = 0x0000;
  out[1] = 0x0005;
  out[2] = 0x1000 - 0x0010;
  out[3] = 0x0000;
  out[4] = 0x0080;
  out[5] = 0x1000 - 0x0010;
  uint8_t magic = 0xA3;
  write(fd, &magic, 1);
  int i = 0;
  for (i = 0; i < 6; i++) {
    write(fd, &(out[i]), 2);
  }
  i = 0;
  uint16_t nBytes = 0;
  myReadfull(fd, (void *)&nBytes, 2);
  while (nBytes > 0) {
    uint8_t returnValues[129 * 2];
    myReadfull(fd, (void *)returnValues, nBytes);
    int j = 0;
    for (j = 0; j < nBytes; j += 2) {
      double VDS = 0.0, IDS = 0.0, VGS = 0.0;
      VDS = (double)(j * out[1] >> 1) * 0.0007326007326007326;
      VGS = (double)(i * out[4]) * 0.00147168881425233645;
      IDS = (double)((returnValues[j + 1] << 8) | (returnValues[j])) * 4.69615854231238846623e-6;
      printf("%e\t%e\t%e\n", VGS, VDS, IDS);
    }
    printf("\n\n");
    myReadfull(fd, (void *)&nBytes, 2);
    i++;
  }
  return 0;
}
```