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

```asm
<Check_Eigen>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x58,%rsp
  mov    %rcx,0x38(%rsp)
  test   %edi,%edi
  jle    L111
  mov    %edi,%r15d
  mov    $0x0,%r13d
  movl   $0x0,0x4c(%rsp)
  mov    %r15,%rbx
  mov    %rsi,%r12
  mov    %r13,%r14
  mov    %rdx,%r13
  jmp    L59
L24:
  mov    %rbp,0x28(%rsp)
  mov    0x0(%rbp),%rax
  mov    0x20(%rsp),%rsi
  mov    %rsi,0x10(%rsp)
L91:
  mov    0x10(%rsp),%rsi
  movsd  (%rsp),%xmm0
  subsd  (%rax,%rsi,1),%xmm0
  call   <fabs@plt>
  mov    %eax,0x18(%rsp)
  mov    0x0(%rbp),%rdx
  mov    (%r12,%r14,8),%rax
  movsd  (%rdx,%r15,8),%xmm0
  mov    0x20(%rsp),%rdi
  mulsd  (%rax,%rdi,1),%xmm0
  call   <sqrt@plt>
  mov    %eax,%ecx
  mov    0x18(%rsp),%eax
  cltd
  idiv   %ecx
  test   %eax,%eax
  jg     L107
L47:
  movsd  D80(%rip),%xmm0
  mov    0x30(%rsp),%edi
  cmp    %edi,0x1c(%rsp)
  je     L16
  pxor   %xmm0,%xmm0
L16:
  movsd  0x8(%rsp),%xmm1
  subsd  %xmm0,%xmm1
  movapd %xmm1,%xmm0
  call   <fabs@plt>
  test   %eax,%eax
  jg     L19
L85:
  add    $0x1,%r15
  add    $0x8,%rbp
  cmp    %rbx,%r15
  je     L49
L101:
  mov    %r15d,0x34(%rsp)
  mov    0x38(%rsp),%rax
  mov    (%rax,%r14,8),%rcx
  mov    (%rax,%r15,8),%rdx
  mov    $0x0,%eax
  pxor   %xmm5,%xmm5
  movsd  %xmm5,0x8(%rsp)
  movsd  %xmm5,(%rsp)
L82:
  movsd  (%rcx,%rax,8),%xmm0
  movsd  (%rdx,%rax,8),%xmm2
  movapd %xmm0,%xmm1
  mulsd  0x0(%r13,%rax,8),%xmm1
  mulsd  %xmm2,%xmm1
  addsd  (%rsp),%xmm1
  movsd  %xmm1,(%rsp)
  mulsd  %xmm2,%xmm0
  addsd  0x8(%rsp),%xmm0
  movsd  %xmm0,0x8(%rsp)
  add    $0x1,%rax
  cmp    %rbx,%rax
  jne    L82
  mov    %r15d,0x1c(%rsp)
  mov    %r14d,0x30(%rsp)
  cmp    %r14d,%r15d
  jge    L24
  mov    (%r12,%r14,8),%rax
  lea    0x0(,%r15,8),%rsi
  mov    %rsi,0x10(%rsp)
  mov    0x40(%rsp),%rdi
  mov    %rdi,0x28(%rsp)
  jmp    L91
L107:
  mov    0x28(%rsp),%rax
  mov    (%rax),%rax
  mov    0x10(%rsp),%rsi
  movsd  (%rsp),%xmm0
  subsd  (%rax,%rsi,1),%xmm0
  call   <fabs@plt>
  test   %eax,%eax
  jle    L47
  mov    0x28(%rsp),%rax
  mov    (%rax),%rax
  mov    0x10(%rsp),%rsi
  movsd  (%rax,%rsi,1),%xmm1
  movsd  (%rsp),%xmm0
  movapd %xmm0,%xmm2
  subsd  %xmm1,%xmm2
  mov    0x34(%rsp),%ecx
  mov    0x48(%rsp),%edx
  lea    D46(%rip),%rsi
  lea    D16(%rip),%rdi
  mov    $0x3,%eax
  call   <sprintf@plt>
  mov    $0x0,%ecx
  mov    $0x0,%edx
  lea    D16(%rip),%rsi
  lea    D63(%rip),%rdi
  call   <ERRORMESSAGE@plt>
  addl   $0x1,0x4c(%rsp)
  jmp    L47
L19:
  movsd  0x8(%rsp),%xmm0
  mov    0x34(%rsp),%ecx
  mov    0x48(%rsp),%edx
  lea    D62(%rip),%rsi
  lea    D16(%rip),%rdi
  mov    $0x1,%eax
  call   <sprintf@plt>
  mov    $0x0,%ecx
  mov    $0x0,%edx
  lea    D16(%rip),%rsi
  lea    D48(%rip),%rdi
  call   <ERRORMESSAGE@plt>
  addl   $0x1,0x4c(%rsp)
  jmp    L85
L49:
  add    $0x1,%r14
  cmp    %rbx,%r14
  je     L33
L59:
  mov    %r14d,0x48(%rsp)
  lea    0x0(,%r14,8),%rax
  mov    %rax,0x20(%rsp)
  mov    %r12,%rbp
  add    %r12,%rax
  mov    %rax,0x40(%rsp)
  mov    $0x0,%r15d
  jmp    L101
L111:
  movl   $0x0,0x4c(%rsp)
L33:
  mov    0x4c(%rsp),%eax
  add    $0x58,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
```

tool_calls: name: retrieve_data
arguments: tag: D80
data_type: f32[2]
name: retrieve_data
arguments: tag: D46
data_type: string
name: retrieve_data
arguments: tag: D63
data_type: string
name: retrieve_data
arguments: tag: D62
data_type: string
name: retrieve_data
arguments: tag: D48
data_type: string

tool: {"D80": [0.0,1.875]}

tool: D46: %d %d: %.17e %.17e, %e

tool: D63: cmaes_t:Eigen(): imprecise result detected 

tool: D62: %d %d %.17e 

tool: D48: cmaes_t:Eigen(): imprecise result detected (Q not orthog.)

assistant: ```c
int Check_Eigen(int N, double **C, double *diag, double **Q) {
  int i, j, k, res = 0;
  double cc, dd;
  static char s[324];
  for (i = 0; i < N; ++i)
    for (j = 0; j < N; ++j) {
      for (cc = 0., dd = 0., k = 0; k < N; ++k) {
        cc += diag[k] * Q[i][k] * Q[j][k];
        dd += Q[i][k] * Q[j][k];
      }
      if (fabs(cc - C[i > j ? i : j][i > j ? j : i]) / sqrt(C[i][i] * C[j][j]) > 1e-10 && fabs(cc - C[i > j ? i : j][i > j ? j : i]) > 3e-14) {
        sprintf(s, "%d %d: %.17e %.17e, %e", i, j, cc, C[i > j ? i : j][i > j ? j : i], cc - C[i > j ? i : j][i > j ? j : i]);
        ERRORMESSAGE("cmaes_t:Eigen(): imprecise result detected ", s, 0, 0);
        ++res;
      }
      if (fabs(dd - (i == j)) > 1e-10) {
        sprintf(s, "%d %d %.17e ", i, j, dd);
        ERRORMESSAGE("cmaes_t:Eigen(): imprecise result detected (Q not orthog.)", s, 0, 0);
        ++res;
      }
    }
  return res;
}
```