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    D92(%rip),%rax
  mov    %rax,%rdi
  call   <printf@plt>
  lea    -0x1c(%rbp),%rax
  mov    %rax,%rsi
  lea    D27(%rip),%rax
  mov    %rax,%rdi
  call   <scanf@plt>
  lea    -0x18(%rbp),%rax
  mov    %rax,%rsi
  lea    D27(%rip),%rax
  mov    %rax,%rdi
  call   <scanf@plt>
  lea    -0x14(%rbp),%rax
  mov    %rax,%rsi
  lea    D27(%rip),%rax
  mov    %rax,%rdi
  call   <scanf@plt>
  lea    -0x10(%rbp),%rax
  mov    %rax,%rsi
  lea    D27(%rip),%rax
  mov    %rax,%rdi
  call   <scanf@plt>
  lea    D91(%rip),%rax
  mov    %rax,%rdi
  call   <printf@plt>
  lea    -0xc(%rbp),%rax
  mov    %rax,%rsi
  lea    D27(%rip),%rax
  mov    %rax,%rdi
  call   <scanf@plt>
  movss  -0xc(%rbp),%xmm0
  movss  -0x1c(%rbp),%xmm1
  comiss %xmm1,%xmm0
  jb     L13
  lea    D31(%rip),%rax
  mov    %rax,%rdi
  call   <printf@plt>
L13:
  movss  -0xc(%rbp),%xmm0
  movss  -0x18(%rbp),%xmm1
  comiss %xmm1,%xmm0
  jb     L78
  movss  -0xc(%rbp),%xmm1
  movss  -0x1c(%rbp),%xmm0
  comiss %xmm1,%xmm0
  jbe    L78
  lea    D98(%rip),%rax
  mov    %rax,%rdi
  call   <printf@plt>
L78:
  movss  -0xc(%rbp),%xmm0
  movss  -0x14(%rbp),%xmm1
  comiss %xmm1,%xmm0
  jb     L65
  movss  -0xc(%rbp),%xmm1
  movss  -0x18(%rbp),%xmm0
  comiss %xmm1,%xmm0
  jbe    L65
  lea    D71(%rip),%rax
  mov    %rax,%rdi
  call   <printf@plt>
L65:
  movss  -0xc(%rbp),%xmm0
  movss  -0x10(%rbp),%xmm1
  comiss %xmm1,%xmm0
  jb     L41
  movss  -0xc(%rbp),%xmm1
  movss  -0x14(%rbp),%xmm0
  comiss %xmm1,%xmm0
  jbe    L41
  lea    D72(%rip),%rax
  mov    %rax,%rdi
  call   <printf@plt>
L41:
  movss  -0xc(%rbp),%xmm1
  movss  -0x10(%rbp),%xmm0
  comiss %xmm1,%xmm0
  jbe    L50
  lea    D18(%rip),%rax
  mov    %rax,%rdi
  call   <printf@plt>
L50:
  mov    $0x0,%eax
  mov    -0x8(%rbp),%rdx
  sub    %fs:0x28,%rdx
  je     L3
  call   <__stack_chk_fail@plt>
L3:
  leave
  ret
```

tool_calls: name: read_data
arguments: data_tag: D92
datatype: string
name: read_data
arguments: data_tag: D27
datatype: string
name: read_data
arguments: data_tag: D91
datatype: string
name: read_data
arguments: data_tag: D31
datatype: string
name: read_data
arguments: data_tag: D98
datatype: string
name: read_data
arguments: data_tag: D71
datatype: string
name: read_data
arguments: data_tag: D72
datatype: string
name: read_data
arguments: data_tag: D18
datatype: string

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

tool: D27: %f

tool: D91: Thank you. Now enter student score (perrcent) >

tool: D31: Student has an A grade


tool: D98: Student has an B grade


tool: D71: Student has an C grade


tool: D72: Student has an D grade


tool: D18: Student has an F grade


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