user: 请显示与下面列出的汇编代码相匹配的C语言实现：

```asm
<main>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x2a8,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x298(%rsp)
  xor    %eax,%eax
  lea    0x2c(%rsp),%rsi
  lea    D69(%rip),%rdi
  call   <scanf@plt>
  mov    0x2c(%rsp),%eax
  lea    -0x1(%rax),%edx
  mov    %edx,0x2c(%rsp)
  lea    D6(%rip),%r15
  lea    D82(%rip),%r14
  test   %eax,%eax
  jne    L138
L36:
  mov    0x298(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L46
  mov    $0x0,%eax
  add    $0x2a8,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L21:
  movsd  %xmm0,0x0(%rbp)
  add    $0xa,%rbx
  add    $0x8,%rbp
  cmp    %r13,%rbx
  je     L34
L136:
  mov    %rbx,%rsi
  mov    %r15,%rdi
  mov    $0x0,%eax
  call   <scanf@plt>
  mov    %r14,%rsi
  mov    %rbx,%rdi
  call   <strcmp@plt>
  pxor   %xmm0,%xmm0
  test   %rax,%rax
  je     L21
  mov    %rbx,%rdi
  call   <atof@plt>
  jmp    L21
L34:
  add    $0x32,%r13
  addq   $0x28,0x8(%rsp)
  mov    0x8(%rsp),%rax
  cmp    0x18(%rsp),%rax
  je     L130
L135:
  lea    -0x32(%r13),%rbx
  mov    0x8(%rsp),%rbp
  jmp    L136
L130:
  lea    0x50(%rsp),%rbx
L121:
  mov    (%r12),%rbp
  movsd  0x8(%r12),%xmm0
  movsd  0x10(%r12),%xmm1
  movq   %rbp,%xmm2
  addsd  %xmm0,%xmm2
  addsd  %xmm1,%xmm2
  movq   %xmm2,%r13
  call   <min@plt>
  movapd %xmm0,%xmm1
  movq   %rbp,%xmm0
  call   <min@plt>
  movapd %xmm0,%xmm1
  movq   %r13,%xmm0
  subsd  %xmm1,%xmm0
  mulsd  D68(%rip),%xmm0
  divsd  D50(%rip),%xmm0
  movsd  D21(%rip),%xmm1
  mulsd  0x18(%r12),%xmm1
  addsd  %xmm1,%xmm0
  movsd  %xmm0,0x8(%rsp)
  movsd  0x20(%r12),%xmm0
  call   <att@plt>
  pxor   %xmm0,%xmm0
  cvtsi2sd %rax,%xmm0
  addsd  0x8(%rsp),%xmm0
  cvttsd2si %xmm0,%rdi
  call   <points@plt>
  mov    %eax,(%rbx)
  add    $0x28,%r12
  add    $0x4,%rbx
  cmp    0x18(%rsp),%r12
  jne    L121
  mov    $0x0,%eax
  pxor   %xmm0,%xmm0
  mov    $0x0,%ecx
  mov    $0x1,%edi
  lea    0x30(%rsp),%rsi
L68:
  mov    0x50(%rsp,%rax,1),%edx
  test   %edx,%edx
  cmove  %edi,%ecx
  imul   (%rax,%rsi,1),%edx
  pxor   %xmm1,%xmm1
  cvtsi2sd %edx,%xmm1
  addsd  %xmm1,%xmm0
  add    $0x4,%rax
  cmp    $0x18,%rax
  jne    L68
  divsd  0x10(%rsp),%xmm0
  cmp    $0x1,%ecx
  je     L66
  lea    D1(%rip),%rdi
  call   <printf@plt>
L81:
  mov    0x2c(%rsp),%eax
  lea    -0x1(%rax),%edx
  mov    %edx,0x2c(%rsp)
  test   %eax,%eax
  je     L36
L138:
  lea    0x30(%rsp),%rbx
  lea    0x48(%rsp),%rbp
  pxor   %xmm6,%xmm6
  movsd  %xmm6,0x10(%rsp)
L44:
  mov    %rbx,%rsi
  lea    D69(%rip),%rdi
  mov    $0x0,%eax
  call   <scanf@plt>
  pxor   %xmm0,%xmm0
  cvtsi2sdl (%rbx),%xmm0
  addsd  0x10(%rsp),%xmm0
  movsd  %xmm0,0x10(%rsp)
  add    $0x4,%rbx
  cmp    %rbp,%rbx
  jne    L44
  lea    0x192(%rsp),%r13
  lea    0x70(%rsp),%r12
  lea    0x160(%rsp),%rax
  mov    %rax,0x18(%rsp)
  mov    %r12,0x8(%rsp)
  jmp    L135
L66:
  lea    D37(%rip),%rdi
  call   <printf@plt>
  jmp    L81
L46:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: read_data
arguments: data_label: D69
data_type: string
name: read_data
arguments: data_label: D6
data_type: string
name: read_data
arguments: data_label: D82
data_type: string
name: read_data
arguments: data_label: D68
data_type: f32[2]
name: read_data
arguments: data_label: D50
data_type: f32[2]
name: read_data
arguments: data_label: D21
data_type: f64
name: read_data
arguments: data_label: D1
data_type: string
name: read_data
arguments: data_label: D37
data_type: string

tool: D69: %d

tool: D6: %s

tool: D82: ab

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

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

tool: D21: 0.5

tool: D1: PASSED, %.2lf


tool: D37: 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;
}
```