user: 请显示与下面列出的汇编代码相匹配的C语言实现:

```asm
<main>:
  endbr64
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0xa0,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x98(%rsp)
  xor    %eax,%eax
  lea    0x30(%rsp),%rbx
  lea    0x60(%rsp),%rbp
L1:
  mov    $0x64,%edi
  call   <malloc@plt>
  mov    %rax,(%rbx)
  test   %rax,%rax
  je     L50
  add    $0x8,%rbx
  cmp    %rbp,%rbx
  jne    L1
  lea    0x60(%rsp),%rbx
  lea    0x90(%rsp),%r12
  mov    %rbx,%rbp
L0:
  mov    $0x64,%edi
  call   <malloc@plt>
  mov    %rax,0x0(%rbp)
  test   %rax,%rax
  je     L36
  add    $0x8,%rbp
  cmp    %r12,%rbp
  jne    L0
  lea    D0(%rip),%rdi
  call   <puts@plt>
  lea    0x10(%rsp),%rbp
  sub    $0x8,%rsp
  lea    0x2c(%rsp),%rax
  push   %rax
  push   0x68(%rsp)
  lea    0x38(%rsp),%rax
  push   %rax
  push   0x70(%rsp)
  lea    0x44(%rsp),%rax
  push   %rax
  push   0x78(%rsp)
  lea    0x50(%rsp),%rax
  push   %rax
  mov    0x80(%rsp),%r9
  lea    0x54(%rsp),%r8
  mov    0x78(%rsp),%rcx
  mov    %rbp,%rdx
  mov    0x70(%rsp),%rsi
  lea    D26(%rip),%rdi
  call   <scanf@plt>
  add    $0x40,%rsp
  lea    0x30(%rsp),%r12
  mov    $0x6,%edx
  mov    %r12,%rsi
  mov    %rbp,%rdi
  call   <validateData@plt>
  mov    %eax,%edx
  lea    0x60(%rsp),%rcx
  lea    0x4(%rsp),%r9
  lea    0x8(%rsp),%r8
  mov    %r12,%rsi
  mov    %rbp,%rdi
  call   <findFaiures@plt>
  mov    %eax,%ebp
  movsd  0x8(%rsp),%xmm0
  lea    D41(%rip),%rdi
  mov    $0x1,%eax
  call   <printf@plt>
  mov    0x4(%rsp),%esi
  lea    D28(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    %ebp,%esi
  lea    D67(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  test   %ebp,%ebp
  jle    L44
  lea    -0x1(%rbp),%eax
  lea    0x8(%rbx,%rax,8),%rbp
L15:
  mov    (%rbx),%rdi
  call   <puts@plt>
  add    $0x8,%rbx
  cmp    %rbp,%rbx
  jne    L15
  mov    $0x0,%eax
L40:
  mov    0x98(%rsp),%rdx
  sub    %fs:0x28,%rdx
  jne    L54
  add    $0xa0,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  ret
L50:
  lea    D38(%rip),%rdi
  call   <puts@plt>
  mov    $0x1,%eax
  jmp    L40
L36:
  lea    D38(%rip),%rdi
  call   <puts@plt>
  mov    $0x1,%eax
  jmp    L40
L44:
  mov    $0x0,%eax
  jmp    L40
L54:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: parse_data
arguments: tag: D0
type_guessed: string
name: parse_data
arguments: tag: D26
type_guessed: string
name: parse_data
arguments: tag: D41
type_guessed: string
name: parse_data
arguments: tag: D28
type_guessed: string
name: parse_data
arguments: tag: D67
type_guessed: string
name: parse_data
arguments: tag: D38
type_guessed: string

tool: D0: Please enter the names and grades of 6 students.

tool: D26: %s %d %s %d %s %d %s %d %s %d %s %d

tool: D41: 
Average grade : %lf


tool: D28: 
Maximal grade : %d


tool: D67: 
%d students failed:


tool: D38: Memory allocation failed.

assistant: ```c
int main(void) {
  int i, size = 6, number_of_failed_students = 0;
  char *names[size], *failed[size];
  int grades[size];
  double avg;
  double *average = &avg;
  int max;
  int *maximal = &max;
  for (i = 0; i < size; i++) {
    names[i] = (char *)malloc(100 * sizeof(char));
    if (names[i] == NULL) {
      printf("Memory allocation failed.\n");
      return 1;
    }
  }
  for (i = 0; i < size; i++) {
    failed[i] = (char *)malloc(100 * sizeof(char));
    if (failed[i] == NULL) {
      printf("Memory allocation failed.\n");
      return 1;
    }
  }
  printf("Please enter the names and grades of 6 students.\n");
  scanf("%s %d %s %d %s %d %s %d %s %d %s %d", names[0], &grades[0], names[1], &grades[1], names[2], &grades[2], names[3], &grades[3], names[4], &grades[4], names[5], &grades[5]);
  size = validateData(grades, names, size);
  number_of_failed_students = findFaiures(grades, names, size, failed, average, maximal);
  printf("\nAverage grade : %lf\n", avg);
  printf("\nMaximal grade : %d\n", max);
  printf("\n%d students failed:\n", number_of_failed_students);
  for (i = 0; i < number_of_failed_students; i++) {
    printf("%s\n", failed[i]);
  }
  return 0;
}
```