user: Translate the below assembly code into C programming language:

```asm
<print_aft_stats_log_mba>:
  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     L114
  mov    $0x0,%eax
  jmp    L26
L114:
  movl   $0x0,-0x60(%rbp)
  jmp    L0
L166:
  mov    -0x60(%rbp),%eax
  cltq
  movl   $0x0,-0x40(%rbp,%rax,4)
  addl   $0x1,-0x60(%rbp)
L0:
  cmpl   $0xa,-0x60(%rbp)
  jle    L166
  movsd  D103(%rip),%xmm0
  movsd  %xmm0,-0x50(%rbp)
  pxor   %xmm0,%xmm0
  movsd  %xmm0,-0x48(%rbp)
  movl   $0x0,-0x60(%rbp)
  jmp    L48
L25:
  mov    -0x60(%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    -0x60(%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    -0x60(%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    -0x60(%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_mba@plt>
  movq   %xmm0,%rax
  mov    %rax,-0x58(%rbp)
  movsd  -0x58(%rbp),%xmm0
  movsd  -0x48(%rbp),%xmm1
  addsd  %xmm1,%xmm0
  movsd  %xmm0,-0x48(%rbp)
  movsd  -0x50(%rbp),%xmm0
  comisd -0x58(%rbp),%xmm0
  jbe    L134
  movsd  -0x58(%rbp),%xmm0
  movsd  %xmm0,-0x50(%rbp)
L134:
  pxor   %xmm0,%xmm0
  comisd -0x58(%rbp),%xmm0
  jb     L165
  mov    -0x18(%rbp),%eax
  add    $0x1,%eax
  mov    %eax,-0x18(%rbp)
  jmp    L8
L165:
  movl   $0x0,-0x5c(%rbp)
  jmp    L175
L85:
  movsd  -0x58(%rbp),%xmm0
  comisd D41(%rip),%xmm0
  ja     L71
  movsd  -0x58(%rbp),%xmm1
  movsd  D15(%rip),%xmm0
  mulsd  %xmm1,%xmm0
  movsd  %xmm0,-0x58(%rbp)
  addl   $0x1,-0x5c(%rbp)
L175:
  cmpl   $0x8,-0x5c(%rbp)
  jle    L85
  jmp    L50
L71:
  nop
L50:
  mov    -0x5c(%rbp),%eax
  cltq
  mov    -0x40(%rbp,%rax,4),%eax
  lea    0x1(%rax),%edx
  mov    -0x5c(%rbp),%eax
  cltq
  mov    %edx,-0x40(%rbp,%rax,4)
L8:
  addl   $0x1,-0x60(%rbp)
L48:
  mov    -0x60(%rbp),%eax
  cmp    -0x6c(%rbp),%eax
  jl     L25
  pxor   %xmm1,%xmm1
  cvtsi2sdl -0x6c(%rbp),%xmm1
  movsd  -0x48(%rbp),%xmm0
  divsd  %xmm1,%xmm0
  movsd  %xmm0,-0x48(%rbp)
  mov    -0x48(%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    D55(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  movl   $0x0,-0x60(%rbp)
  jmp    L33
L133:
  mov    -0x60(%rbp),%eax
  cltq
  mov    -0x40(%rbp,%rax,4),%eax
  mov    %eax,%esi
  lea    D60(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  addl   $0x1,-0x60(%rbp)
L33:
  cmpl   $0x9,-0x60(%rbp)
  jle    L133
  mov    $0xa,%edi
  call   <putchar@plt>
  mov    -0x50(%rbp),%rax
  movq   %rax,%xmm0
  lea    D101(%rip),%rax
  mov    %rax,%rdi
  mov    $0x1,%eax
  call   <printf@plt>
  mov    -0x18(%rbp),%eax
  pxor   %xmm1,%xmm1
  cvtsi2sd %eax,%xmm1
  movsd  D45(%rip),%xmm0
  mulsd  %xmm1,%xmm0
  pxor   %xmm1,%xmm1
  cvtsi2sdl -0x6c(%rbp),%xmm1
  divsd  %xmm1,%xmm0
  movq   %xmm0,%rax
  movq   %rax,%xmm0
  lea    D25(%rip),%rax
  mov    %rax,%rdi
  mov    $0x1,%eax
  call   <printf@plt>
  movl   $0x0,-0x60(%rbp)
  jmp    L129
L64:
  mov    -0x60(%rbp),%eax
  cltq
  mov    -0x40(%rbp,%rax,4),%eax
  pxor   %xmm1,%xmm1
  cvtsi2sd %eax,%xmm1
  movsd  D45(%rip),%xmm0
  mulsd  %xmm1,%xmm0
  pxor   %xmm1,%xmm1
  cvtsi2sdl -0x6c(%rbp),%xmm1
  divsd  %xmm1,%xmm0
  movq   %xmm0,%rax
  movq   %rax,%xmm0
  lea    D71(%rip),%rax
  mov    %rax,%rdi
  mov    $0x1,%eax
  call   <printf@plt>
  addl   $0x1,-0x60(%rbp)
L129:
  cmpl   $0x9,-0x60(%rbp)
  jle    L64
  mov    $0xa,%edi
  call   <putchar@plt>
  mov    $0x0,%eax
L26:
  mov    -0x8(%rbp),%rdx
  sub    %fs:0x28,%rdx
  je     L123
  call   <__stack_chk_fail@plt>
L123:
  leave
  ret
```

tool_calls: name: parse_data
arguments: data_label: D103
type: f64
name: parse_data
arguments: data_label: D41
type: f64[2]
name: parse_data
arguments: data_label: D15
type: f64
name: parse_data
arguments: data_label: D57
type: string
name: parse_data
arguments: data_label: D55
type: string
name: parse_data
arguments: data_label: D60
type: string
name: parse_data
arguments: data_label: D101
type: string
name: parse_data
arguments: data_label: D45
type: f64
name: parse_data
arguments: data_label: D25
type: string
name: parse_data
arguments: data_label: D71
type: string

tool: D103: 1

tool: {"D41": [0.1,10.0]}

tool: D15: 10

tool: D57: [mba] QS: q_avg: %15.8le  

tool: D55:  ## %6d # 

tool: D60:  %6d 

tool: D101: [mba] ln  q_min: %15.8le  

tool: D45: 100

tool: D25:  ## %6.2lf # 

tool: D71:  %6.2lf 

assistant: ```c
int print_aft_stats_log_mba(double *vertex, int nt, int *tetra) {
  double q, worst, qs;
  int stat[11], i, j;
  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++) {
    qs += q = aft_tetra_qual_mba(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 {
      for (j = 0; j < 9; j++) {
        if (q > 0.1)
          break;
        q *= 10.0;
      }
      stat[j]++;
    }
  }
  qs /= nt;
  printf("[mba] QS: q_avg: %15.8le  ", qs);
  printf(" ## %6d # ", stat[10]);
  for (i = 0; i < 10; i++)
    printf(" %6d ", stat[i]);
  printf("\n");
  printf("[mba] ln  q_min: %15.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;
}
```