user: Please show me the C implementation that matches the assembly code listed below:

```asm
<main>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x20,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,-0x8(%rbp)
  xor    %eax,%eax
  lea    D81(%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    D71(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <scanf@plt>
  lea    D75(%rip),%rax
  mov    %rax,%rdi
  call   <printf@plt>
  lea    -0xc(%rbp),%rax
  mov    %rax,%rsi
  lea    D47(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <scanf@plt>
  movss  -0xc(%rbp),%xmm0
  movss  -0x1c(%rbp),%xmm1
  comiss %xmm1,%xmm0
  jbe    L18
  lea    D83(%rip),%rax
  mov    %rax,%rdi
  call   <printf@plt>
L18:
  movss  -0xc(%rbp),%xmm1
  movss  -0x1c(%rbp),%xmm0
  comiss %xmm1,%xmm0
  jbe    L14
  movss  -0xc(%rbp),%xmm0
  movss  -0x18(%rbp),%xmm1
  comiss %xmm1,%xmm0
  jb     L14
  lea    D22(%rip),%rax
  mov    %rax,%rdi
  call   <printf@plt>
L14:
  movss  -0xc(%rbp),%xmm1
  movss  -0x18(%rbp),%xmm0
  comiss %xmm1,%xmm0
  jbe    L50
  movss  -0xc(%rbp),%xmm0
  movss  -0x14(%rbp),%xmm1
  comiss %xmm1,%xmm0
  jb     L50
  lea    D86(%rip),%rax
  mov    %rax,%rdi
  call   <printf@plt>
L50:
  movss  -0xc(%rbp),%xmm1
  movss  -0x14(%rbp),%xmm0
  comiss %xmm1,%xmm0
  jbe    L45
  movss  -0xc(%rbp),%xmm0
  movss  -0x10(%rbp),%xmm1
  comiss %xmm1,%xmm0
  jb     L45
  lea    D53(%rip),%rax
  mov    %rax,%rdi
  call   <printf@plt>
L45:
  movss  -0xc(%rbp),%xmm1
  movss  -0x10(%rbp),%xmm0
  comiss %xmm1,%xmm0
  jbe    L13
  lea    D14(%rip),%rax
  mov    %rax,%rdi
  call   <printf@plt>
L13:
  mov    $0x0,%eax
  mov    -0x8(%rbp),%rdx
  sub    %fs:0x28,%rdx
  je     L87
  call   <__stack_chk_fail@plt>
L87:
  leave
  ret
```

tool_calls: name: disassemble_data
arguments: data_label: D81
type: string
name: disassemble_data
arguments: data_label: D71
type: string
name: disassemble_data
arguments: data_label: D75
type: string
name: disassemble_data
arguments: data_label: D47
type: string
name: disassemble_data
arguments: data_label: D83
type: string
name: disassemble_data
arguments: data_label: D22
type: string
name: disassemble_data
arguments: data_label: D86
type: string
name: disassemble_data
arguments: data_label: D53
type: string
name: disassemble_data
arguments: data_label: D14
type: string

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

tool: D71: %f%f%f%f

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

tool: D47: %f

tool: D83: Student has an A grade


tool: D22: Student has an B grade


tool: D86: Student has an C grade


tool: D53: Student has an D grade


tool: D14: Student has failed the course


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