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

```asm
<main>:
  endbr64
  push   %r15
  lea    D48(%rip),%rdi
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x2c8,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x2b8(%rsp)
  xor    %eax,%eax
  lea    0x4c(%rsp),%rsi
  call   <scanf@plt>
  mov    0x4c(%rsp),%eax
  lea    -0x1(%rax),%edx
  mov    %edx,0x4c(%rsp)
  test   %eax,%eax
  je     L162
  lea    0x50(%rsp),%rax
  lea    D58(%rip),%r13
  mov    %rax,0x20(%rsp)
  lea    0x68(%rsp),%rax
  lea    D5(%rip),%r12
  mov    %rax,0x30(%rsp)
  lea    0x1b2(%rsp),%rax
  mov    %rax,0x28(%rsp)
  lea    0x90(%rsp),%rax
  mov    %rax,0x18(%rsp)
  lea    0x180(%rsp),%rax
  mov    %rax,0x10(%rsp)
  lea    0x70(%rsp),%rax
  mov    %rax,0x38(%rsp)
  nop
L50:
  movq   $0x0,(%rsp)
  mov    0x20(%rsp),%rbx
  mov    0x30(%rsp),%rbp
  nopw   0x0(%rax,%rax,1)
L116:
  mov    %rbx,%rsi
  lea    D48(%rip),%rdi
  xor    %eax,%eax
  add    $0x4,%rbx
  call   <scanf@plt>
  pxor   %xmm0,%xmm0
  cvtsi2sdl -0x4(%rbx),%xmm0
  addsd  (%rsp),%xmm0
  movsd  %xmm0,(%rsp)
  cmp    %rbp,%rbx
  jne    L116
  mov    0x18(%rsp),%r14
  mov    0x28(%rsp),%rbx
  mov    %r14,0x8(%rsp)
  nopl   0x0(%rax)
L68:
  lea    -0x32(%rbx),%r15
  mov    %r14,%rbp
L11:
  mov    %r15,%rsi
  mov    %r13,%rdi
  xor    %eax,%eax
  call   <scanf@plt>
  mov    %r12,%rsi
  mov    %r15,%rdi
  call   <strcmp@plt>
  test   %rax,%rax
  jne    L179
  add    $0xa,%r15
  movq   $0x0,0x0(%rbp)
  add    $0x8,%rbp
  cmp    %rbx,%r15
  jne    L11
  add    $0x32,%rbx
  add    $0x28,%r14
  cmp    0x10(%rsp),%r14
  jne    L68
L147:
  mov    0x8(%rsp),%rbp
  mov    0x38(%rsp),%r14
  mov    0x10(%rsp),%r15
  nopl   0x0(%rax,%rax,1)
L163:
  movsd  0x0(%rbp),%xmm2
  movsd  0x8(%rbp),%xmm3
  add    $0x28,%rbp
  add    $0x4,%r14
  movsd  -0x18(%rbp),%xmm1
  movapd %xmm2,%xmm0
  movsd  %xmm2,0x8(%rsp)
  addsd  %xmm3,%xmm0
  addsd  %xmm1,%xmm0
  movq   %xmm0,%rbx
  movapd %xmm3,%xmm0
  call   <min@plt>
  movsd  0x8(%rsp),%xmm2
  movapd %xmm0,%xmm1
  movapd %xmm2,%xmm0
  call   <min@plt>
  movapd %xmm0,%xmm1
  movq   %rbx,%xmm0
  subsd  %xmm1,%xmm0
  movsd  D23(%rip),%xmm1
  mulsd  -0x10(%rbp),%xmm1
  mulsd  D33(%rip),%xmm0
  divsd  D49(%rip),%xmm0
  addsd  %xmm1,%xmm0
  movsd  %xmm0,0x8(%rsp)
  movsd  -0x8(%rbp),%xmm0
  call   <att@plt>
  pxor   %xmm0,%xmm0
  cvtsi2sd %rax,%xmm0
  addsd  0x8(%rsp),%xmm0
  cvttsd2si %xmm0,%rdi
  call   <points@plt>
  mov    %eax,-0x4(%r14)
  cmp    %r15,%rbp
  jne    L163
  mov    0x70(%rsp),%ecx
  mov    0x50(%rsp),%eax
  pxor   %xmm1,%xmm1
  pxor   %xmm6,%xmm6
  mov    0x74(%rsp),%edx
  imul   %ecx,%eax
  cvtsi2sd %eax,%xmm1
  mov    $0x1,%eax
  addsd  %xmm6,%xmm1
  test   %edx,%edx
  je     L75
  xor    %eax,%eax
  test   %ecx,%ecx
  sete   %al
L75:
  imul   0x54(%rsp),%edx
  pxor   %xmm0,%xmm0
  mov    $0x1,%ecx
  cvtsi2sd %edx,%xmm0
  mov    0x78(%rsp),%edx
  test   %edx,%edx
  cmove  %ecx,%eax
  imul   0x58(%rsp),%edx
  addsd  %xmm1,%xmm0
  pxor   %xmm1,%xmm1
  cvtsi2sd %edx,%xmm1
  mov    0x7c(%rsp),%edx
  test   %edx,%edx
  cmove  %ecx,%eax
  imul   0x5c(%rsp),%edx
  mov    0x80(%rsp),%ecx
  addsd  %xmm0,%xmm1
  pxor   %xmm0,%xmm0
  cvtsi2sd %edx,%xmm0
  mov    0x60(%rsp),%edx
  imul   %ecx,%edx
  addsd  %xmm1,%xmm0
  pxor   %xmm1,%xmm1
  cvtsi2sd %edx,%xmm1
  mov    0x84(%rsp),%edx
  addsd  %xmm1,%xmm0
  test   %ecx,%ecx
  je     L132
  test   %edx,%edx
  je     L36
  imul   0x64(%rsp),%edx
  pxor   %xmm1,%xmm1
  cvtsi2sd %edx,%xmm1
  addsd  %xmm1,%xmm0
  divsd  (%rsp),%xmm0
  cmp    $0x1,%eax
  je     L153
  lea    D77(%rip),%rdi
  call   <printf@plt>
L43:
  mov    0x4c(%rsp),%eax
  lea    -0x1(%rax),%edx
  mov    %edx,0x4c(%rsp)
  test   %eax,%eax
  jne    L50
L162:
  mov    0x2b8(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L123
  add    $0x2c8,%rsp
  xor    %eax,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nopl   0x0(%rax)
L179:
  mov    %r15,%rdi
  add    $0xa,%r15
  add    $0x8,%rbp
  call   <atof@plt>
  movsd  %xmm0,-0x8(%rbp)
  cmp    %rbx,%r15
  jne    L11
  add    $0x32,%rbx
  add    $0x28,%r14
  cmp    0x10(%rsp),%r14
  jne    L68
  jmp    L147
  cs nopw 0x0(%rax,%rax,1)
L132:
  test   %edx,%edx
  jne    L92
L36:
  pxor   %xmm7,%xmm7
  addsd  %xmm7,%xmm0
  divsd  (%rsp),%xmm0
L153:
  lea    D3(%rip),%rdi
  call   <printf@plt>
  jmp    L43
L92:
  imul   0x64(%rsp),%edx
  pxor   %xmm1,%xmm1
  cvtsi2sd %edx,%xmm1
  addsd  %xmm1,%xmm0
  divsd  (%rsp),%xmm0
  jmp    L153
L123:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: unpack_data
arguments: label: D48
type_guessed: string
name: unpack_data
arguments: label: D58
type_guessed: string
name: unpack_data
arguments: label: D5
type_guessed: string
name: unpack_data
arguments: label: D23
type_guessed: f64
name: unpack_data
arguments: label: D33
type_guessed: f32[2]
name: unpack_data
arguments: label: D49
type_guessed: f32[2]
name: unpack_data
arguments: label: D77
type_guessed: string
name: unpack_data
arguments: label: D3
type_guessed: string

tool: D48: %d

tool: D58: %s

tool: D5: ab

tool: D23: 0.5

tool: {"D33": [0.0,3.1015625]}

tool: {"D49": [0.0,3.0625]}

tool: D77: PASSED, %.2lf


tool: D3: FAILED, %.2lf


assistant: ```c
int main() {
  int n;
  int fail = 0;
  int grades[6];
  double sub[6][5];
  int i, j;
  char marks[6][5][10];
  int tot_points[6];
  double gpa;
  scanf("%d", &n);
  while (n--) {
    double total = 0;
    for (i = 0; i < 6; i++) {
      scanf("%d", &grades[i]);
      total += grades[i];
    }
    for (i = 0; i < 6; i++) {
      for (j = 0; j < 5; j++) {
        scanf("%s", marks[i][j]);
        if (strcmp(marks[i][j], "ab") == 0)
          sub[i][j] = 0;
        else
          sub[i][j] = atof(marks[i][j]);
      }
    }
    double sum = 0;
    for (i = 0; i < 6; i++) {
      tot_points[i] = points(((sub[i][0] + sub[i][1] + sub[i][2]) - min(sub[i][0], min(sub[i][1], sub[i][2]))) * 45 / 40 + sub[i][3] * 0.5 + att(sub[i][4]));
    }
    fail = 0;
    for (i = 0; i < 6; i++) {
      if (tot_points[i] == 0)
        fail = 1;
      sum += tot_points[i] * grades[i];
    }
    gpa = (sum * 1.0) / (total * 1.0);
    if (fail == 1)
      printf("FAILED, %.2lf\n", gpa);
    else
      printf("PASSED, %.2lf\n", gpa);
  }
  return 0;
}
```