user: What would the C source look like for the assembly code provided here:

```asm
<main>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x20,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,-0x8(%rbp)
  xor    %eax,%eax
  lea    D59(%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    D53(%rip),%rax
  mov    %rax,%rdi
  call   <printf@plt>
  lea    -0xc(%rbp),%rax
  mov    %rax,%rsi
  lea    D98(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <scanf@plt>
  movss  -0xc(%rbp),%xmm0
  movss  -0x1c(%rbp),%xmm1
  comiss %xmm1,%xmm0
  jb     L105
  lea    D39(%rip),%rax
  mov    %rax,%rdi
  call   <printf@plt>
  jmp    L4
L105:
  movss  -0xc(%rbp),%xmm0
  movss  -0x18(%rbp),%xmm1
  comiss %xmm1,%xmm0
  jb     L75
  movss  -0xc(%rbp),%xmm1
  movss  -0x1c(%rbp),%xmm0
  comiss %xmm1,%xmm0
  jbe    L75
  lea    D78(%rip),%rax
  mov    %rax,%rdi
  call   <printf@plt>
  jmp    L4
L75:
  movss  -0xc(%rbp),%xmm0
  movss  -0x14(%rbp),%xmm1
  comiss %xmm1,%xmm0
  jb     L20
  movss  -0xc(%rbp),%xmm1
  movss  -0x18(%rbp),%xmm0
  comiss %xmm1,%xmm0
  jbe    L20
  lea    D70(%rip),%rax
  mov    %rax,%rdi
  call   <printf@plt>
  jmp    L4
L20:
  movss  -0xc(%rbp),%xmm0
  movss  -0x10(%rbp),%xmm1
  comiss %xmm1,%xmm0
  jb     L6
  movss  -0xc(%rbp),%xmm1
  movss  -0x14(%rbp),%xmm0
  comiss %xmm1,%xmm0
  jbe    L6
  lea    D68(%rip),%rax
  mov    %rax,%rdi
  call   <printf@plt>
  jmp    L4
L6:
  lea    D33(%rip),%rax
  mov    %rax,%rdi
  call   <printf@plt>
L4:
  mov    $0x0,%eax
  mov    -0x8(%rbp),%rdx
  sub    %fs:0x28,%rdx
  je     L60
  call   <__stack_chk_fail@plt>
L60:
  leave
  ret
```

tool_calls: name: retrieve_data
arguments: data_tag: D59
datatype: string
name: retrieve_data
arguments: data_tag: D6
datatype: string
name: retrieve_data
arguments: data_tag: D34
datatype: string
name: retrieve_data
arguments: data_tag: D53
datatype: string
name: retrieve_data
arguments: data_tag: D98
datatype: string
name: retrieve_data
arguments: data_tag: D39
datatype: string
name: retrieve_data
arguments: data_tag: D78
datatype: string
name: retrieve_data
arguments: data_tag: D70
datatype: string
name: retrieve_data
arguments: data_tag: D68
datatype: string
name: retrieve_data
arguments: data_tag: D33
datatype: string

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


tool: D6: in that order, decreasing percentages > 

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

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

tool: D98: %f

tool: D39: Student has an A grade


tool: D78: Student has a B grade


tool: D70: Student has a C grade


tool: D68: Student has a D grade


tool: D33: 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 a B grade\n");
  else if (score >= grade3 && score < grade2)
    printf("Student has a C grade\n");
  else if (score >= grade4 && score < grade3)
    printf("Student has a D grade\n");
  else
    printf("Student has failed the course\n");
  return 0;
}
```