user: 请将以下的汇编代码转换成C语言代码：

```asm
<main>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x20,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,-0x8(%rbp)
  xor    %eax,%eax
  lea    D46(%rip),%rax
  mov    %rax,%rdi
  call   <printf@plt>
  lea    D6(%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    D34(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <scanf@plt>
  lea    D72(%rip),%rax
  mov    %rax,%rdi
  call   <printf@plt>
  lea    -0xc(%rbp),%rax
  mov    %rax,%rsi
  lea    D56(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <scanf@plt>
  movss  -0xc(%rbp),%xmm0
  movss  -0x1c(%rbp),%xmm1
  comiss %xmm1,%xmm0
  jb     L50
  lea    D59(%rip),%rax
  mov    %rax,%rdi
  call   <printf@plt>
  jmp    L15
L50:
  movss  -0xc(%rbp),%xmm0
  movss  -0x18(%rbp),%xmm1
  comiss %xmm1,%xmm0
  jb     L76
  movss  -0xc(%rbp),%xmm1
  movss  -0x1c(%rbp),%xmm0
  comiss %xmm1,%xmm0
  jbe    L76
  lea    D76(%rip),%rax
  mov    %rax,%rdi
  call   <printf@plt>
  jmp    L15
L76:
  movss  -0xc(%rbp),%xmm0
  movss  -0x14(%rbp),%xmm1
  comiss %xmm1,%xmm0
  jb     L37
  movss  -0xc(%rbp),%xmm1
  movss  -0x18(%rbp),%xmm0
  comiss %xmm1,%xmm0
  jbe    L37
  lea    D16(%rip),%rax
  mov    %rax,%rdi
  call   <printf@plt>
  jmp    L15
L37:
  movss  -0xc(%rbp),%xmm0
  movss  -0x10(%rbp),%xmm1
  comiss %xmm1,%xmm0
  jb     L114
  movss  -0xc(%rbp),%xmm1
  movss  -0x14(%rbp),%xmm0
  comiss %xmm1,%xmm0
  jbe    L114
  lea    D75(%rip),%rax
  mov    %rax,%rdi
  call   <printf@plt>
  jmp    L15
L114:
  movss  -0xc(%rbp),%xmm1
  movss  -0x10(%rbp),%xmm0
  comiss %xmm1,%xmm0
  jbe    L15
  lea    D60(%rip),%rax
  mov    %rax,%rdi
  call   <printf@plt>
L15:
  mov    $0x0,%eax
  mov    -0x8(%rbp),%rdx
  sub    %fs:0x28,%rdx
  je     L123
  call   <__stack_chk_fail@plt>
L123:
  leave
  ret
```

tool_calls: name: parse_data
arguments: data_tag: D46
type_guessed: string
name: parse_data
arguments: data_tag: D6
type_guessed: string
name: parse_data
arguments: data_tag: D34
type_guessed: string
name: parse_data
arguments: data_tag: D72
type_guessed: string
name: parse_data
arguments: data_tag: D56
type_guessed: string
name: parse_data
arguments: data_tag: D59
type_guessed: string
name: parse_data
arguments: data_tag: D76
type_guessed: string
name: parse_data
arguments: data_tag: D16
type_guessed: string
name: parse_data
arguments: data_tag: D75
type_guessed: string
name: parse_data
arguments: data_tag: D60
type_guessed: string

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

tool: D6: 
in that order, decreasing percentages > 

tool: D34: %f%f%f%f

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

tool: D56: %f

tool: D59: Student has an A grade


tool: D76: Student has a B grade


tool: D16: Student has a C grade


tool: D75: Student has a D grade


tool: D60: Student has failed the course


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