user: 请将这段汇编代码片段转换成等效的C代码：

```asm
<main>:
  endbr64
  push   %rbp
  lea    D57(%rip),%rdi
  lea    D1(%rip),%rbp
  sub    $0x10,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x8(%rsp)
  xor    %eax,%eax
  call   <puts@plt>
  lea    0x4(%rsp),%rsi
  mov    %rbp,%rdi
  call   <scanf@plt>
  lea    D86(%rip),%rdi
  call   <puts@plt>
  lea    0x8(%rsp),%rsi
  mov    %rbp,%rdi
  call   <scanf@plt>
  lea    D13(%rip),%rdi
  call   <puts@plt>
  lea    0xc(%rsp),%rsi
  mov    %rbp,%rdi
  call   <scanf@plt>
  lea    D79(%rip),%rdi
  call   <puts@plt>
  lea    0x10(%rsp),%rsi
  mov    %rbp,%rdi
  lea    D133(%rip),%rbp
  call   <scanf@plt>
  lea    D129(%rip),%rdi
  call   <puts@plt>
  mov    $0x1,%r8d
  mov    $0x1,%ecx
  xor    %eax,%eax
  mov    $0x1,%edx
  mov    $0x1,%esi
  lea    D38(%rip),%rdi
  call   <printf@plt>
  mov    0x4(%rsp),%esi
  mov    $0x5,%edx
  xor    %eax,%eax
  lea    D21(%rip),%rdi
  call   <printf@plt>
  mov    0x8(%rsp),%esi
  mov    $0xa,%edx
  xor    %eax,%eax
  mov    %rbp,%rdi
  call   <printf@plt>
  mov    0xc(%rsp),%esi
  mov    $0x5,%edx
  xor    %eax,%eax
  mov    %rbp,%rdi
  call   <printf@plt>
  mov    0x10(%rsp),%esi
  mov    $0x5,%edx
  xor    %eax,%eax
  lea    D28(%rip),%rdi
  call   <printf@plt>
  mov    $0x1d,%esi
  mov    $0x1e,%edx
  xor    %eax,%eax
  lea    D43(%rip),%rdi
  call   <printf@plt>
  movsd  D55(%rip),%xmm0
  mov    $0x1,%eax
  lea    D136(%rip),%rdi
  call   <printf@plt>
  xor    %eax,%eax
  mov    $0x41,%esi
  lea    D72(%rip),%rdi
  call   <printf@plt>
  mov    0x8(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L8
  add    $0x10,%rsp
  xor    %eax,%eax
  pop    %rbp
  ret
L8:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: extract_symbolic_data
arguments: label: D57
data_type: string
name: extract_symbolic_data
arguments: label: D1
data_type: string
name: extract_symbolic_data
arguments: label: D86
data_type: string
name: extract_symbolic_data
arguments: label: D13
data_type: string
name: extract_symbolic_data
arguments: label: D79
data_type: string
name: extract_symbolic_data
arguments: label: D133
data_type: string
name: extract_symbolic_data
arguments: label: D129
data_type: string
name: extract_symbolic_data
arguments: label: D38
data_type: string
name: extract_symbolic_data
arguments: label: D21
data_type: string
name: extract_symbolic_data
arguments: label: D28
data_type: string
name: extract_symbolic_data
arguments: label: D43
data_type: string
name: extract_symbolic_data
arguments: label: D55
data_type: f64
name: extract_symbolic_data
arguments: label: D136
data_type: string
name: extract_symbolic_data
arguments: label: D72
data_type: string

tool: D57: Assignment Grade

tool: D1: %d

tool: D86: Test Grade

tool: D13: Quiz Grade

tool: D79: worksheet Grade

tool: D133: %2d/%d	

tool: D129: Grade Report for: Donald A. Huskey


tool: D38: Assignment %d	Test %d	Quiz %d	Worksheet %d


tool: D21: %4d/%d		

tool: D28: %5d/%d


tool: D43: 
Total Points:	%d/%d


tool: D55: 96.67

tool: D136: Average:	%f


tool: D72: Letter Grade:	%c


assistant: ```c
int main() {
  int assingment = 01, test = 01, quiz = 01, worksheet = 01;
  int assingmentOut = 5, testOut = 10, quizout = 5, worksheetout = 10;
  int n = 0;
  int grade[n];
  for (; n < 4; n++) {
    if (n == 0) {
      printf("Assignment Grade\n");
      scanf("%d", &grade[n]);
    }
    if (n == 1) {
      printf("Test Grade\n");
      scanf("%d", &grade[n]);
    }
    if (n == 2) {
      printf("Quiz Grade\n");
      scanf("%d", &grade[n]);
    }
    if (n == 3) {
      printf("worksheet Grade\n");
      scanf("%d", &grade[n]);
    }
  }
  printf("Grade Report for: Donald A. Huskey\n\n");
  printf("Assignment %d\tTest %d\tQuiz %d\tWorksheet %d\n", assingment, test, quiz, worksheet);
  printf("%4d/%d\t\t", grade[0], assingmentOut);
  printf("%2d/%d\t", grade[1], testOut);
  printf("%2d/%d\t", grade[2], quizout);
  printf("%5d/%d\n", grade[3], quizout);
  printf("\nTotal Points:\t%d/%d\n", 29, 30);
  printf("Average:\t%f\n", 96.67);
  printf("Letter Grade:\t%c\n", 'A');
  return 0;
}
```