user: 请从给定的汇编指令推导出C源代码：

```asm
<main>:
  endbr64
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x10,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x8(%rsp)
  xor    %eax,%eax
  mov    $0x0,%ebx
  lea    D17(%rip),%r14
  lea    D16(%rip),%rbp
  lea    D31(%rip),%r13
  lea    D23(%rip),%r12
  jmp    L59
L24:
  mov    %r12,%rdi
  call   <puts@plt>
  lea    0x4(%rsp),%rsi
  mov    %rbp,%rdi
  call   <scanf@plt>
L8:
  cmp    $0x3,%ebx
  je     L43
L30:
  add    $0x1,%ebx
  cmp    $0x4,%ebx
  je     L11
L59:
  test   %ebx,%ebx
  je     L24
  cmp    $0x1,%ebx
  je     L10
  cmp    $0x2,%ebx
  jne    L8
  mov    %r14,%rdi
  call   <puts@plt>
  lea    0xc(%rsp),%rsi
  mov    %rbp,%rdi
  call   <scanf@plt>
  add    $0x1,%ebx
  jmp    L59
L10:
  mov    %r13,%rdi
  call   <puts@plt>
  lea    0x8(%rsp),%rsi
  mov    %rbp,%rdi
  call   <scanf@plt>
  jmp    L30
L43:
  lea    D15(%rip),%rdi
  call   <puts@plt>
  lea    0x10(%rsp),%rsi
  lea    D16(%rip),%rdi
  call   <scanf@plt>
L11:
  lea    D143(%rip),%rdi
  call   <puts@plt>
  mov    $0x1,%r8d
  mov    $0x1,%ecx
  mov    $0x1,%edx
  mov    $0x1,%esi
  lea    D72(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    $0x5,%edx
  mov    0x4(%rsp),%esi
  lea    D6(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    $0xa,%edx
  mov    0x8(%rsp),%esi
  lea    D88(%rip),%rbx
  mov    %rbx,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    $0x5,%edx
  mov    0xc(%rsp),%esi
  mov    %rbx,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    $0x5,%edx
  mov    0x10(%rsp),%esi
  lea    D94(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    $0x1e,%edx
  mov    $0x1d,%esi
  lea    D4(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  movsd  D3(%rip),%xmm0
  lea    D27(%rip),%rdi
  mov    $0x1,%eax
  call   <printf@plt>
  mov    $0x41,%esi
  lea    D52(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    0x8(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L27
  mov    $0x0,%eax
  add    $0x10,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  ret
L27:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: unpack_data
arguments: label: D17
type_infered: string
name: unpack_data
arguments: label: D16
type_infered: string
name: unpack_data
arguments: label: D31
type_infered: string
name: unpack_data
arguments: label: D23
type_infered: string
name: unpack_data
arguments: label: D15
type_infered: string
name: unpack_data
arguments: label: D143
type_infered: string
name: unpack_data
arguments: label: D72
type_infered: string
name: unpack_data
arguments: label: D6
type_infered: string
name: unpack_data
arguments: label: D88
type_infered: string
name: unpack_data
arguments: label: D94
type_infered: string
name: unpack_data
arguments: label: D4
type_infered: string
name: unpack_data
arguments: label: D3
type_infered: f64
name: unpack_data
arguments: label: D27
type_infered: string
name: unpack_data
arguments: label: D52
type_infered: string

tool: D17: Quiz Grade

tool: D16: %d

tool: D31: Test Grade

tool: D23: Assignment Grade

tool: D15: worksheet Grade

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


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


tool: D6: %4d/%d		

tool: D88: %2d/%d	

tool: D94: %5d/%d


tool: D4: 
Total Points:	%d/%d


tool: D3: 96.67

tool: D27: Average:	%f


tool: D52: 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;
}
```