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    D24(%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    D8(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <scanf@plt>
  lea    D6(%rip),%rax
  mov    %rax,%rdi
  call   <printf@plt>
  lea    -0x1c(%rbp),%rax
  mov    %rax,%rsi
  lea    D60(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <scanf@plt>
  movss  -0x1c(%rbp),%xmm0
  movss  -0x18(%rbp),%xmm1
  comiss %xmm1,%xmm0
  jb     L96
  lea    D49(%rip),%rax
  mov    %rax,%rdi
  call   <printf@plt>
  jmp    L28
L96:
  movss  -0x1c(%rbp),%xmm1
  movss  -0x18(%rbp),%xmm0
  comiss %xmm1,%xmm0
  jbe    L82
  movss  -0x1c(%rbp),%xmm0
  movss  -0x14(%rbp),%xmm1
  comiss %xmm1,%xmm0
  jb     L82
  lea    D73(%rip),%rax
  mov    %rax,%rdi
  call   <printf@plt>
  jmp    L28
L82:
  movss  -0x1c(%rbp),%xmm1
  movss  -0x14(%rbp),%xmm0
  comiss %xmm1,%xmm0
  jbe    L57
  movss  -0x1c(%rbp),%xmm0
  movss  -0x10(%rbp),%xmm1
  comiss %xmm1,%xmm0
  jb     L57
  lea    D38(%rip),%rax
  mov    %rax,%rdi
  call   <printf@plt>
  jmp    L28
L57:
  movss  -0x1c(%rbp),%xmm1
  movss  -0x10(%rbp),%xmm0
  comiss %xmm1,%xmm0
  jbe    L111
  movss  -0x1c(%rbp),%xmm0
  movss  -0xc(%rbp),%xmm1
  comiss %xmm1,%xmm0
  jb     L111
  lea    D85(%rip),%rax
  mov    %rax,%rdi
  call   <printf@plt>
  jmp    L28
L111:
  lea    D44(%rip),%rax
  mov    %rax,%rdi
  call   <printf@plt>
L28:
  mov    $0x0,%eax
  mov    -0x8(%rbp),%rdx
  sub    %fs:0x28,%rdx
  je     L39
  call   <__stack_chk_fail@plt>
L39:
  leave
  ret
```

tool_calls: name: extract_symbolic_data
arguments: label: D24
datatype: string
name: extract_symbolic_data
arguments: label: D8
datatype: string
name: extract_symbolic_data
arguments: label: D6
datatype: string
name: extract_symbolic_data
arguments: label: D60
datatype: string
name: extract_symbolic_data
arguments: label: D49
datatype: string
name: extract_symbolic_data
arguments: label: D73
datatype: string
name: extract_symbolic_data
arguments: label: D38
datatype: string
name: extract_symbolic_data
arguments: label: D85
datatype: string
name: extract_symbolic_data
arguments: label: D44
datatype: string

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

tool: D8: %f%f%f%f

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

tool: D60: %f

tool: D49: Student has an A grade


tool: D73: Student has an B grade


tool: D38: Student has and C grade


tool: D85: Student has an D grade


tool: D44: Student has an F grade


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