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    D47(%rip),%rax
  mov    %rax,%rdi
  call   <printf@plt>
  lea    D18(%rip),%rax
  mov    %rax,%rdi
  call   <printf@plt>
  lea    -0xc(%rbp),%rsi
  lea    -0x10(%rbp),%rcx
  lea    -0x14(%rbp),%rdx
  lea    -0x18(%rbp),%rax
  mov    %rsi,%r8
  mov    %rax,%rsi
  lea    D48(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <scanf@plt>
  lea    D11(%rip),%rax
  mov    %rax,%rdi
  call   <printf@plt>
  lea    -0x1c(%rbp),%rax
  mov    %rax,%rsi
  lea    D74(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <scanf@plt>
  movss  -0x1c(%rbp),%xmm0
  movss  -0x18(%rbp),%xmm1
  comiss %xmm1,%xmm0
  jb     L82
  lea    D69(%rip),%rax
  mov    %rax,%rdi
  call   <printf@plt>
  jmp    L87
L82:
  movss  -0x1c(%rbp),%xmm0
  movss  -0x14(%rbp),%xmm1
  comiss %xmm1,%xmm0
  jb     L64
  lea    D15(%rip),%rax
  mov    %rax,%rdi
  call   <printf@plt>
  jmp    L87
L64:
  movss  -0x1c(%rbp),%xmm0
  movss  -0x10(%rbp),%xmm1
  comiss %xmm1,%xmm0
  jb     L51
  lea    D76(%rip),%rax
  mov    %rax,%rdi
  call   <printf@plt>
  jmp    L87
L51:
  movss  -0x1c(%rbp),%xmm0
  movss  -0xc(%rbp),%xmm1
  comiss %xmm1,%xmm0
  jb     L18
  lea    D25(%rip),%rax
  mov    %rax,%rdi
  call   <printf@plt>
  jmp    L87
L18:
  lea    D42(%rip),%rax
  mov    %rax,%rdi
  call   <printf@plt>
L87:
  mov    $0x0,%eax
  mov    -0x8(%rbp),%rdx
  sub    %fs:0x28,%rdx
  je     L53
  call   <__stack_chk_fail@plt>
L53:
  leave
  ret
```

tool_calls: name: parse_data
arguments: label: D47
data_type: string
name: parse_data
arguments: label: D18
data_type: string
name: parse_data
arguments: label: D48
data_type: string
name: parse_data
arguments: label: D11
data_type: string
name: parse_data
arguments: label: D74
data_type: string
name: parse_data
arguments: label: D69
data_type: string
name: parse_data
arguments: label: D15
data_type: string
name: parse_data
arguments: label: D76
data_type: string
name: parse_data
arguments: label: D25
data_type: string
name: parse_data
arguments: label: D42
data_type: string

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


tool: D18: in that order, decreasing percentages > 

tool: D48: %f%f%f%f

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

tool: D74: %f

tool: D69: Student has an A grade


tool: D15: Student has an B grade


tool: D76: Studnet has an C grade


tool: D25: Student has an D grade


tool: D42: Studnet has failed the course


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