user: What is the c source code of the assembly code below:

```asm
<main>:
  endbr64
  push   %r15
  push   %r14
  lea    D144(%rip),%r14
  push   %r13
  lea    D5(%rip),%r13
  push   %r12
  xor    %r12d,%r12d
  push   %rbp
  push   %rbx
  sub    $0x88,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x78(%rsp)
  xor    %eax,%eax
  lea    0x10(%rsp),%rax
  movq   $0x0,(%rsp)
  mov    %rax,0x8(%rsp)
L40:
  add    $0x1,%r12d
  lea    D108(%rip),%rdi
  xor    %eax,%eax
  xor    %r15d,%r15d
  mov    %r12d,%esi
  call   <printf@plt>
  mov    0x8(%rsp),%rax
  mov    (%rsp),%rdx
  mov    %rax,%rbp
  lea    (%rax,%rdx,8),%rbx
L58:
  add    $0x1,%r15d
  mov    %r14,%rdi
  xor    %eax,%eax
  mov    %r15d,%esi
  call   <printf@plt>
  mov    %rbx,%rsi
  mov    %r13,%rdi
  add    $0x8,%rbx
  call   <scanf@plt>
  cmp    $0x3,%r15d
  jne    L58
  addq   $0x3,(%rsp)
  cmp    $0x4,%r12d
  jne    L40
  lea    D102(%rip),%rdi
  xor    %r12d,%r12d
  lea    D111(%rip),%r14
  call   <puts@plt>
  lea    D118(%rip),%rdi
  lea    D34(%rip),%r13
  call   <puts@plt>
  lea    D68(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
  mov    0x8(%rsp),%rbx
L12:
  mov    %r12d,%esi
  mov    %r14,%rdi
  xor    %eax,%eax
  add    $0x1,%r12d
  call   <printf@plt>
  movsd  (%rbx),%xmm0
  mov    %r13,%rdi
  add    $0x18,%rbx
  mov    $0x1,%eax
  call   <printf@plt>
  movsd  -0x10(%rbx),%xmm0
  mov    %r13,%rdi
  mov    $0x1,%eax
  call   <printf@plt>
  movsd  -0x8(%rbx),%xmm0
  mov    %r13,%rdi
  mov    $0x1,%eax
  call   <printf@plt>
  cmp    $0x4,%r12d
  jne    L12
  lea    D3(%rip),%rdi
  xor    %r14d,%r14d
  lea    D166(%rip),%r13
  call   <puts@plt>
  lea    D74(%rip),%rdi
  lea    D6(%rip),%rbx
  call   <puts@plt>
  lea    D145(%rip),%rdi
  call   <puts@plt>
  mov    0x8(%rsp),%r12
L14:
  pxor   %xmm0,%xmm0
  addsd  (%r12),%xmm0
  mov    %r14d,%esi
  mov    %r13,%rdi
  addsd  0x18(%r12),%xmm0
  xor    %eax,%eax
  add    $0x1,%r14d
  add    $0x8,%r12
  addsd  0x28(%r12),%xmm0
  addsd  0x40(%r12),%xmm0
  movsd  %xmm0,(%rsp)
  call   <printf@plt>
  movsd  (%rsp),%xmm0
  mov    %rbx,%rdi
  mov    $0x1,%eax
  mulsd  D18(%rip),%xmm0
  call   <printf@plt>
  cmp    $0x3,%r14d
  jne    L14
  lea    D123(%rip),%rdi
  xor    %r13d,%r13d
  lea    D179(%rip),%r12
  call   <puts@plt>
  lea    D93(%rip),%rdi
  call   <puts@plt>
  lea    D64(%rip),%rdi
  call   <puts@plt>
L26:
  pxor   %xmm0,%xmm0
  addsd  0x0(%rbp),%xmm0
  addsd  0x8(%rbp),%xmm0
  xor    %eax,%eax
  addsd  0x10(%rbp),%xmm0
  mov    %r13d,%esi
  mov    %r12,%rdi
  add    $0x1,%r13d
  add    $0x18,%rbp
  movsd  %xmm0,(%rsp)
  call   <printf@plt>
  mov    %rbx,%rdi
  mov    $0x1,%eax
  movsd  (%rsp),%xmm0
  divsd  D187(%rip),%xmm0
  call   <printf@plt>
  cmp    $0x4,%r13d
  jne    L26
  mov    0x78(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L20
  add    $0x88,%rsp
  xor    %eax,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L20:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: retrieve_data
arguments: label: D144
type: string
name: retrieve_data
arguments: label: D5
type: string
name: retrieve_data
arguments: label: D108
type: string
name: retrieve_data
arguments: label: D102
type: string
name: retrieve_data
arguments: label: D111
type: string
name: retrieve_data
arguments: label: D118
type: string
name: retrieve_data
arguments: label: D34
type: string
name: retrieve_data
arguments: label: D68
type: string
name: retrieve_data
arguments: label: D3
type: string
name: retrieve_data
arguments: label: D166
type: string
name: retrieve_data
arguments: label: D74
type: string
name: retrieve_data
arguments: label: D6
type: string
name: retrieve_data
arguments: label: D145
type: string
name: retrieve_data
arguments: label: D18
type: byte[8]
name: retrieve_data
arguments: label: D123
type: string
name: retrieve_data
arguments: label: D179
type: string
name: retrieve_data
arguments: label: D93
type: string
name: retrieve_data
arguments: label: D64
type: string
name: retrieve_data
arguments: label: D187
type: byte[8]

tool: D144:    - Enter score for exam # %d -- 

tool: D5: %lf

tool: D108: 
Processing student # %d


tool: D102: 
-----------------------------------

tool: D111: 
Student number # %d - 	

tool: D118: Scores for all students, all exams.

tool: D34: %5.2lf	

tool: D68: -----------------------------------

tool: D3: 

-----------------------

tool: D166: Average for exam %d = 

tool: D74: Averages for all exams.

tool: D6: %5.2lf


tool: D145: -----------------------

tool: {"D18": [0x00,0x00,0x00,0x00,0x00,0x00,0xd0,0x3f]}

tool: D123: 
--------------------------

tool: D179: Average for student %d = 

tool: D93: Averages for all students.

tool: D64: --------------------------

tool: {"D187": [0x00,0x00,0x00,0x00,0x00,0x00,0x08,0x40]}

assistant: ```c
int main() {
  double scores[4][3];
  double total;
  int student, exam;
  for (student = 0; student < 4; student++) {
    printf("\nProcessing student # %d\n", student + 1);
    ;
    for (exam = 0; exam < 3; exam++) {
      printf("   - Enter score for exam # %d -- ", exam + 1);
      scanf("%lf", &scores[student][exam]);
    }
  }
  printf("\n-----------------------------------\n");
  printf("Scores for all students, all exams.\n");
  printf("-----------------------------------");
  for (student = 0; student < 4; student++) {
    printf("\nStudent number # %d - \t", student);
    for (exam = 0; exam < 3; exam++)
      printf("%5.2lf\t", scores[student][exam]);
  }
  printf("\n\n-----------------------\n");
  printf("Averages for all exams.\n");
  printf("-----------------------\n");
  for (exam = 0; exam < 3; exam++) {
    total = 0;
    for (student = 0; student < 4; student++)
      total = total + scores[student][exam];
    printf("Average for exam %d = ", exam);
    printf("%5.2lf\n", total / (double)4);
  }
  printf("\n--------------------------\n");
  printf("Averages for all students.\n");
  printf("--------------------------\n");
  for (student = 0; student < 4; student++) {
    total = 0;
    for (exam = 0; exam < 3; exam++)
      total = total + scores[student][exam];
    printf("Average for student %d = ", student);
    printf("%5.2lf\n", total / (double)3);
  }
  return 0;
}
```