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    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    D92(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <scanf@plt>
  lea    D27(%rip),%rax
  mov    %rax,%rdi
  call   <printf@plt>
  lea    -0xc(%rbp),%rax
  mov    %rax,%rsi
  lea    D4(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <scanf@plt>
  movss  -0xc(%rbp),%xmm0
  movss  -0x1c(%rbp),%xmm1
  comiss %xmm1,%xmm0
  jb     L10
  lea    D14(%rip),%rax
  mov    %rax,%rdi
  call   <printf@plt>
  jmp    L74
L10:
  movss  -0xc(%rbp),%xmm1
  movss  -0x1c(%rbp),%xmm0
  comiss %xmm1,%xmm0
  jbe    L66
  movss  -0xc(%rbp),%xmm0
  movss  -0x18(%rbp),%xmm1
  comiss %xmm1,%xmm0
  jb     L66
  lea    D6(%rip),%rax
  mov    %rax,%rdi
  call   <printf@plt>
  jmp    L74
L66:
  movss  -0xc(%rbp),%xmm1
  movss  -0x18(%rbp),%xmm0
  comiss %xmm1,%xmm0
  jbe    L7
  movss  -0xc(%rbp),%xmm0
  movss  -0x14(%rbp),%xmm1
  comiss %xmm1,%xmm0
  jb     L7
  lea    D36(%rip),%rax
  mov    %rax,%rdi
  call   <printf@plt>
  jmp    L74
L7:
  movss  -0xc(%rbp),%xmm1
  movss  -0x14(%rbp),%xmm0
  comiss %xmm1,%xmm0
  jbe    L61
  movss  -0xc(%rbp),%xmm0
  movss  -0x10(%rbp),%xmm1
  comiss %xmm1,%xmm0
  jb     L61
  lea    D44(%rip),%rax
  mov    %rax,%rdi
  call   <printf@plt>
  jmp    L74
L61:
  lea    D87(%rip),%rax
  mov    %rax,%rdi
  call   <printf@plt>
L74:
  mov    $0x0,%eax
  mov    -0x8(%rbp),%rdx
  sub    %fs:0x28,%rdx
  je     L41
  call   <__stack_chk_fail@plt>
L41:
  leave
  ret
```

tool_calls: name: disassemble_data
arguments: data_label: D81
data_type: string
name: disassemble_data
arguments: data_label: D76
data_type: string
name: disassemble_data
arguments: data_label: D92
data_type: string
name: disassemble_data
arguments: data_label: D27
data_type: string
name: disassemble_data
arguments: data_label: D4
data_type: string
name: disassemble_data
arguments: data_label: D14
data_type: string
name: disassemble_data
arguments: data_label: D6
data_type: string
name: disassemble_data
arguments: data_label: D36
data_type: string
name: disassemble_data
arguments: data_label: D44
data_type: string
name: disassemble_data
arguments: data_label: D87
data_type: string

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


tool: D76: in that order, decreasing percentages > 

tool: D92: %f%f%f%f

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

tool: D4: %f

tool: D14: Stdent has an A grade


tool: D6: Student has an B grade


tool: D36: Student has an C grade


tool: D44: Student has an D grade


tool: D87: Student has failed the course


assistant: ```c
int main() {
  float A, B, C, D, score;
  printf("Enter thresholds for A, B, C, D\n");
  printf("in 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("Stdent has an A grade\n");
  } else if (score < A && score >= B) {
    printf("Student has an B grade\n");
  } else if (score < B && score >= C) {
    printf("Student has an C grade\n");
  } else if (score < C && score >= D) {
    printf("Student has an D grade\n");
  } else {
    printf("Student has failed the course\n");
  }
  return 0;
}
```