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

```asm
<print_aft_stats_linear>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  add    $0xffffffffffffff80,%rsp
  mov    %rdi,-0x68(%rbp)
  mov    %esi,-0x6c(%rbp)
  mov    %rdx,-0x78(%rbp)
  mov    %fs:0x28,%rax
  mov    %rax,-0x8(%rbp)
  xor    %eax,%eax
  cmpl   $0x0,-0x6c(%rbp)
  jg     L143
  mov    $0x0,%eax
  jmp    L19
L143:
  movl   $0x0,-0x5c(%rbp)
  jmp    L137
L91:
  mov    -0x5c(%rbp),%eax
  cltq
  movl   $0x0,-0x40(%rbp,%rax,4)
  addl   $0x1,-0x5c(%rbp)
L137:
  cmpl   $0xa,-0x5c(%rbp)
  jle    L91
  movsd  D87(%rip),%xmm0
  movsd  %xmm0,-0x58(%rbp)
  pxor   %xmm0,%xmm0
  movsd  %xmm0,-0x50(%rbp)
  movl   $0x0,-0x5c(%rbp)
  jmp    L5
L55:
  mov    -0x5c(%rbp),%eax
  shl    $0x2,%eax
  cltq
  add    $0x3,%rax
  lea    0x0(,%rax,4),%rdx
  mov    -0x78(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%edi
  mov    -0x5c(%rbp),%eax
  shl    $0x2,%eax
  cltq
  add    $0x2,%rax
  lea    0x0(,%rax,4),%rdx
  mov    -0x78(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%ecx
  mov    -0x5c(%rbp),%eax
  shl    $0x2,%eax
  cltq
  add    $0x1,%rax
  lea    0x0(,%rax,4),%rdx
  mov    -0x78(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%edx
  mov    -0x5c(%rbp),%eax
  shl    $0x2,%eax
  cltq
  lea    0x0(,%rax,4),%rsi
  mov    -0x78(%rbp),%rax
  add    %rsi,%rax
  mov    (%rax),%esi
  mov    -0x68(%rbp),%rax
  mov    %edi,%r8d
  mov    %rax,%rdi
  call   <aft_tetra_qual@plt>
  movq   %xmm0,%rax
  mov    %rax,-0x48(%rbp)
  movsd  -0x58(%rbp),%xmm0
  comisd -0x48(%rbp),%xmm0
  jbe    L158
  movsd  -0x48(%rbp),%xmm0
  movsd  %xmm0,-0x58(%rbp)
L158:
  pxor   %xmm0,%xmm0
  comisd -0x48(%rbp),%xmm0
  jb     L106
  mov    -0x18(%rbp),%eax
  add    $0x1,%eax
  mov    %eax,-0x18(%rbp)
  jmp    L117
L106:
  movsd  -0x48(%rbp),%xmm0
  movsd  D87(%rip),%xmm1
  comisd %xmm1,%xmm0
  jbe    L128
  mov    -0x1c(%rbp),%eax
  add    $0x1,%eax
  mov    %eax,-0x1c(%rbp)
  jmp    L117
L128:
  movsd  -0x48(%rbp),%xmm1
  movsd  D25(%rip),%xmm0
  mulsd  %xmm0,%xmm1
  movq   %xmm1,%rax
  movq   %rax,%xmm0
  call   <ceil@plt>
  sub    $0x1,%eax
  movslq %eax,%rdx
  mov    -0x40(%rbp,%rdx,4),%edx
  add    $0x1,%edx
  cltq
  mov    %edx,-0x40(%rbp,%rax,4)
L117:
  movsd  -0x50(%rbp),%xmm0
  addsd  -0x48(%rbp),%xmm0
  movsd  %xmm0,-0x50(%rbp)
  addl   $0x1,-0x5c(%rbp)
L5:
  mov    -0x5c(%rbp),%eax
  cmp    -0x6c(%rbp),%eax
  jl     L55
  pxor   %xmm1,%xmm1
  cvtsi2sdl -0x6c(%rbp),%xmm1
  movsd  -0x50(%rbp),%xmm0
  divsd  %xmm1,%xmm0
  movsd  %xmm0,-0x50(%rbp)
  mov    -0x50(%rbp),%rax
  movq   %rax,%xmm0
  lea    D57(%rip),%rax
  mov    %rax,%rdi
  mov    $0x1,%eax
  call   <printf@plt>
  mov    -0x18(%rbp),%eax
  mov    %eax,%esi
  lea    D53(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  movl   $0x0,-0x5c(%rbp)
  jmp    L12
L48:
  mov    -0x5c(%rbp),%eax
  cltq
  mov    -0x40(%rbp,%rax,4),%eax
  mov    %eax,%esi
  lea    D93(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  addl   $0x1,-0x5c(%rbp)
L12:
  cmpl   $0x9,-0x5c(%rbp)
  jle    L48
  mov    $0xa,%edi
  call   <putchar@plt>
  mov    -0x58(%rbp),%rax
  movq   %rax,%xmm0
  lea    D0(%rip),%rax
  mov    %rax,%rdi
  mov    $0x1,%eax
  call   <printf@plt>
  mov    -0x18(%rbp),%eax
  pxor   %xmm1,%xmm1
  cvtsi2sd %eax,%xmm1
  movsd  D3(%rip),%xmm0
  mulsd  %xmm1,%xmm0
  pxor   %xmm1,%xmm1
  cvtsi2sdl -0x6c(%rbp),%xmm1
  divsd  %xmm1,%xmm0
  movq   %xmm0,%rax
  movq   %rax,%xmm0
  lea    D41(%rip),%rax
  mov    %rax,%rdi
  mov    $0x1,%eax
  call   <printf@plt>
  movl   $0x0,-0x5c(%rbp)
  jmp    L139
L41:
  mov    -0x5c(%rbp),%eax
  cltq
  mov    -0x40(%rbp,%rax,4),%eax
  pxor   %xmm1,%xmm1
  cvtsi2sd %eax,%xmm1
  movsd  D3(%rip),%xmm0
  mulsd  %xmm1,%xmm0
  pxor   %xmm1,%xmm1
  cvtsi2sdl -0x6c(%rbp),%xmm1
  divsd  %xmm1,%xmm0
  movq   %xmm0,%rax
  movq   %rax,%xmm0
  lea    D92(%rip),%rax
  mov    %rax,%rdi
  mov    $0x1,%eax
  call   <printf@plt>
  addl   $0x1,-0x5c(%rbp)
L139:
  cmpl   $0x9,-0x5c(%rbp)
  jle    L41
  mov    $0xa,%edi
  call   <putchar@plt>
  mov    $0x0,%eax
L19:
  mov    -0x8(%rbp),%rdx
  sub    %fs:0x28,%rdx
  je     L114
  call   <__stack_chk_fail@plt>
L114:
  leave
  ret
```

tool_calls: name: retrieve_data
arguments: data_tag: D87
type: f64
name: retrieve_data
arguments: data_tag: D25
type: f32[2]
name: retrieve_data
arguments: data_tag: D57
type: string
name: retrieve_data
arguments: data_tag: D53
type: string
name: retrieve_data
arguments: data_tag: D93
type: string
name: retrieve_data
arguments: data_tag: D0
type: string
name: retrieve_data
arguments: data_tag: D3
type: f64
name: retrieve_data
arguments: data_tag: D41
type: string
name: retrieve_data
arguments: data_tag: D92
type: string

tool: D87: 1

tool: {"D25": [0.0,2.5625]}

tool: D57: QS: q_avg: %12.8le  

tool: D53:  ## %6d # 

tool: D93:  %6d 

tool: D0:     q_min: %12.8le  

tool: D3: 100

tool: D41:  ## %6.2lf # 

tool: D92:  %6.2lf 

assistant: ```c
int print_aft_stats_linear(double *vertex, int nt, int *tetra) {
  double q, worst, qs;
  int stat[11], i;
  if (nt < 1)
    return 0;
  for (i = 0; i < 11; i++)
    stat[i] = 0;
  worst = 1.0, qs = 0.0;
  for (i = 0; i < nt; i++) {
    q = aft_tetra_qual(vertex, tetra[4 * i + 0], tetra[4 * i + 1], tetra[4 * i + 2], tetra[4 * i + 3]);
    if (q < worst)
      worst = q;
    if (q <= 0.0)
      stat[10]++;
    else if (q > 1.0)
      stat[9]++;
    else
      stat[(int)ceil(q * 10) - 1]++;
    qs += q;
  }
  qs /= nt;
  printf("QS: q_avg: %12.8le  ", qs);
  printf(" ## %6d # ", stat[10]);
  for (i = 0; i < 10; i++)
    printf(" %6d ", stat[i]);
  printf("\n");
  printf("    q_min: %12.8le  ", worst);
  printf(" ## %6.2lf # ", 100.0 * stat[10] / nt);
  for (i = 0; i < 10; i++)
    printf(" %6.2lf ", 100.0 * stat[i] / nt);
  printf("\n");
  return 0;
}
```