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

```asm
<main>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x20,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,-0x8(%rbp)
  xor    %eax,%eax
  lea    D76(%rip),%rax
  mov    %rax,%rdi
  call   <printf@plt>
  lea    -0x10(%rbp),%rsi
  lea    -0x14(%rbp),%rcx
  lea    -0x18(%rbp),%rdx
  lea    -0x1c(%rbp),%rax
  mov    %rsi,%r8
  mov    %rax,%rsi
  lea    D69(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <scanf@plt>
  lea    D20(%rip),%rax
  mov    %rax,%rdi
  call   <printf@plt>
  lea    -0xc(%rbp),%rax
  mov    %rax,%rsi
  lea    D48(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <scanf@plt>
  movss  -0xc(%rbp),%xmm0
  movss  -0x1c(%rbp),%xmm1
  comiss %xmm1,%xmm0
  jb     L46
  lea    D44(%rip),%rax
  mov    %rax,%rdi
  call   <printf@plt>
L46:
  movss  -0xc(%rbp),%xmm1
  movss  -0x1c(%rbp),%xmm0
  comiss %xmm1,%xmm0
  jbe    L15
  movss  -0xc(%rbp),%xmm0
  movss  -0x18(%rbp),%xmm1
  comiss %xmm1,%xmm0
  jb     L15
  lea    D60(%rip),%rax
  mov    %rax,%rdi
  call   <printf@plt>
L15:
  movss  -0xc(%rbp),%xmm1
  movss  -0x18(%rbp),%xmm0
  comiss %xmm1,%xmm0
  jbe    L57
  movss  -0xc(%rbp),%xmm0
  movss  -0x14(%rbp),%xmm1
  comiss %xmm1,%xmm0
  jb     L57
  lea    D46(%rip),%rax
  mov    %rax,%rdi
  call   <printf@plt>
L57:
  movss  -0xc(%rbp),%xmm1
  movss  -0x14(%rbp),%xmm0
  comiss %xmm1,%xmm0
  jbe    L50
  movss  -0xc(%rbp),%xmm0
  movss  -0x10(%rbp),%xmm1
  comiss %xmm1,%xmm0
  jb     L50
  lea    D32(%rip),%rax
  mov    %rax,%rdi
  call   <printf@plt>
L50:
  movss  -0xc(%rbp),%xmm1
  movss  -0x10(%rbp),%xmm0
  comiss %xmm1,%xmm0
  jbe    L52
  lea    D7(%rip),%rax
  mov    %rax,%rdi
  call   <printf@plt>
L52:
  mov    $0x0,%eax
  mov    -0x8(%rbp),%rdx
  sub    %fs:0x28,%rdx
  je     L48
  call   <__stack_chk_fail@plt>
L48:
  leave
  ret
```

tool_calls: name: read_data
arguments: data_label: D76
type_guessed: string
name: read_data
arguments: data_label: D69
type_guessed: string
name: read_data
arguments: data_label: D20
type_guessed: string
name: read_data
arguments: data_label: D48
type_guessed: string
name: read_data
arguments: data_label: D44
type_guessed: string
name: read_data
arguments: data_label: D60
type_guessed: string
name: read_data
arguments: data_label: D46
type_guessed: string
name: read_data
arguments: data_label: D32
type_guessed: string
name: read_data
arguments: data_label: D7
type_guessed: string

tool: D76: Enter thresholds for A, B, C, D
in that order, decreasing percentages > 

tool: D69: %f%f%f%f

tool: D20: Thank you. Now enter student score (percent) > 

tool: D48: %f

tool: D44: Student has an A grade


tool: D60: Student has a B grade


tool: D46: Student has a C grade


tool: D32: Student has a D grade


tool: D7: Student has failed the course


assistant: ```c
int main() {
  float A, B, C, D, score;
  printf("Enter thresholds for A, B, C, D\nin that order, decreasing percentages > ");
  scanf("%f%f%f%f", &A, &B, &C, &D);
  printf("Thank you. Now enter student score (percent) > ");
  scanf("%f", &score);
  if (score >= A)
    printf("Student has an A grade\n");
  if ((score < A) && (score >= B))
    printf("Student has a B grade\n");
  if ((score < B) && (score >= C))
    printf("Student has a C grade\n");
  if ((score < C) && (score >= D))
    printf("Student has a D grade\n");
  if (score < D)
    printf("Student has failed the course\n");
  return 0;
}
```