user: Translate the below assembly code into C programming language:

```asm
<main>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x20,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,-0x8(%rbp)
  xor    %eax,%eax
  lea    D66(%rip),%rax
  mov    %rax,%rdi
  call   <printf@plt>
  lea    D42(%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    D2(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <scanf@plt>
  lea    D62(%rip),%rax
  mov    %rax,%rdi
  call   <printf@plt>
  lea    -0xc(%rbp),%rax
  mov    %rax,%rsi
  lea    D93(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <scanf@plt>
  movss  -0xc(%rbp),%xmm0
  movss  -0x1c(%rbp),%xmm1
  comiss %xmm1,%xmm0
  jb     L19
  lea    D29(%rip),%rax
  mov    %rax,%rdi
  call   <printf@plt>
  jmp    L65
L19:
  movss  -0xc(%rbp),%xmm0
  movss  -0x18(%rbp),%xmm1
  comiss %xmm1,%xmm0
  jb     L12
  movss  -0xc(%rbp),%xmm1
  movss  -0x1c(%rbp),%xmm0
  comiss %xmm1,%xmm0
  jbe    L12
  lea    D27(%rip),%rax
  mov    %rax,%rdi
  call   <printf@plt>
  jmp    L65
L12:
  movss  -0xc(%rbp),%xmm0
  movss  -0x14(%rbp),%xmm1
  comiss %xmm1,%xmm0
  jb     L26
  movss  -0xc(%rbp),%xmm1
  movss  -0x18(%rbp),%xmm0
  comiss %xmm1,%xmm0
  jbe    L26
  lea    D69(%rip),%rax
  mov    %rax,%rdi
  call   <printf@plt>
  jmp    L65
L26:
  movss  -0xc(%rbp),%xmm0
  movss  -0x10(%rbp),%xmm1
  comiss %xmm1,%xmm0
  jb     L61
  movss  -0xc(%rbp),%xmm1
  movss  -0x14(%rbp),%xmm0
  comiss %xmm1,%xmm0
  jbe    L61
  lea    D74(%rip),%rax
  mov    %rax,%rdi
  call   <printf@plt>
  jmp    L65
L61:
  lea    D70(%rip),%rax
  mov    %rax,%rdi
  call   <printf@plt>
L65:
  mov    $0x0,%eax
  mov    -0x8(%rbp),%rdx
  sub    %fs:0x28,%rdx
  je     L111
  call   <__stack_chk_fail@plt>
L111:
  leave
  ret
```

tool_calls: name: parse_data
arguments: data_tag: D66
type_guessed: string
name: parse_data
arguments: data_tag: D42
type_guessed: string
name: parse_data
arguments: data_tag: D2
type_guessed: string
name: parse_data
arguments: data_tag: D62
type_guessed: string
name: parse_data
arguments: data_tag: D93
type_guessed: string
name: parse_data
arguments: data_tag: D29
type_guessed: string
name: parse_data
arguments: data_tag: D27
type_guessed: string
name: parse_data
arguments: data_tag: D69
type_guessed: string
name: parse_data
arguments: data_tag: D74
type_guessed: string
name: parse_data
arguments: data_tag: D70
type_guessed: string

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


tool: D42: in that order, decreasing percentages > 

tool: D2: %f %f %f %f

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

tool: D93: %f

tool: D29: Student has an A grade


tool: D27: Student has an B grade


tool: D69: Student has an C grade


tool: D74: Student has an D grade


tool: D70: Student has failed the course


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