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

```asm
<main>:
  endbr64
  sub    $0x38,%rsp
  lea    D24(%rip),%rdi
  mov    %fs:0x28,%rax
  mov    %rax,0x28(%rsp)
  xor    %eax,%eax
  call   <printf@plt>
  lea    D38(%rip),%rdi
  call   <printf@plt>
  lea    0x18(%rsp),%rcx
  lea    0x10(%rsp),%rdx
  lea    0x8(%rsp),%rsi
  lea    0x20(%rsp),%r8
  lea    D12(%rip),%rdi
  call   <scanf@plt>
  movsd  0x8(%rsp),%xmm0
  addsd  0x10(%rsp),%xmm0
  addsd  0x18(%rsp),%xmm0
  addsd  0x20(%rsp),%xmm0
  mulsd  D81(%rip),%xmm0
  movsd  D41(%rip),%xmm1
  comisd %xmm0,%xmm1
  ja     L76
  comisd %xmm1,%xmm0
  movsd  D56(%rip),%xmm1
  jb     L39
  comisd %xmm0,%xmm1
  ja     L46
L39:
  comisd %xmm1,%xmm0
  movsd  D58(%rip),%xmm1
  jae    L2
L61:
  comisd %xmm1,%xmm0
  jae    L25
L28:
  mov    0x28(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L33
  xor    %eax,%eax
  add    $0x38,%rsp
  ret
L2:
  comisd %xmm0,%xmm1
  jbe    L61
L76:
  lea    D40(%rip),%rdi
  call   <printf@plt>
  jmp    L28
L46:
  lea    D17(%rip),%rdi
  call   <printf@plt>
  jmp    L28
L25:
  lea    D29(%rip),%rdi
  call   <printf@plt>
  jmp    L28
L33:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: extract_symbolic_data
arguments: data_tag: D24
type_infered: string
name: extract_symbolic_data
arguments: data_tag: D38
type_infered: string
name: extract_symbolic_data
arguments: data_tag: D12
type_infered: string
name: extract_symbolic_data
arguments: data_tag: D81
type_infered: byte[8]
name: extract_symbolic_data
arguments: data_tag: D41
type_infered: byte[8]
name: extract_symbolic_data
arguments: data_tag: D56
type_infered: byte[8]
name: extract_symbolic_data
arguments: data_tag: D58
type_infered: byte[8]
name: extract_symbolic_data
arguments: data_tag: D40
type_infered: string
name: extract_symbolic_data
arguments: data_tag: D17
type_infered: string
name: extract_symbolic_data
arguments: data_tag: D29
type_infered: string

tool: D24: Enter thresholds for A, B, C, D


tool: D38: in that order, decreasing percentages > 

tool: D12: %lf%lf%lf%lf

tool: {"D81": [0x00,0x00,0x00,0x00,0x00,0x00,0xd0,0x3f]}

tool: {"D41": [0x00,0x00,0x00,0x00,0x00,0x00,0x4e,0x40]}

tool: {"D56": [0x00,0x00,0x00,0x00,0x00,0x80,0x51,0x40]}

tool: {"D58": [0x00,0x00,0x00,0x00,0x00,0x00,0x54,0x40]}

tool: D40: Thank you. Now enter student score (percent) >Student has an B grade


tool: D17: Thank you. Now enter student score (percent) >Studnet has an B grade


tool: D29: Thank you. Now enter student score (percent) >Student ahs an B grade


assistant: ```c
int main() {
  double a, b, c, d;
  double per;
  printf("Enter thresholds for A, B, C, D\n");
  printf("in that order, decreasing percentages > ");
  scanf("%lf"
        "%lf"
        "%lf"
        "%lf",
        &a, &b, &c, &d);
  per = (a + b + c + d) / 4;
  if (per < 60)
    printf("Thank you. Now enter student score (percent) >Student has an B grade\n");
  else if (per >= 60 && per < 70)
    printf("Thank you. Now enter student score (percent) >Studnet has an B grade\n");
  else if (per >= 70 && per < 80)
    printf("Thank you. Now enter student score (percent) >Student has an B grade\n");
  else if (per >= 80)
    printf("Thank you. Now enter student score (percent) >Student ahs an B grade\n");
  return (0);
}
```