user: 请从给定的汇编指令推导出C源代码：

```asm
<evmax>:
  endbr64
  push   %r15
  push   %r14
  mov    %rdi,%r14
  mov    %edx,%edi
  push   %r13
  mov    %rsi,%r13
  mov    $0x8,%esi
  push   %r12
  mov    %r13,%r12
  push   %rbp
  mov    %edx,%ebp
  push   %rbx
  sub    $0x38,%rsp
  call   <calloc@plt>
  mov    $0xc8,%r11d
  mov    %r13,%rdi
  movq   D23(%rip),%xmm8
  mov    %rax,%r15
  movslq %ebp,%rax
  pxor   %xmm4,%xmm4
  movsd  D28(%rip),%xmm7
  lea    (%r15,%rax,8),%rbx
  mov    %rax,(%rsp)
  mov    %r15,%r10
  movapd %xmm4,%xmm5
  mov    D18(%rip),%rax
  neg    %r10
  movapd %xmm8,%xmm6
  mov    %r10,%r13
  mov    %rdi,%r10
  mov    %rax,-0x8(%rbx)
  mov    %rbx,%rax
  sub    %r15,%rax
  sub    $0x1,%rax
  shr    $0x3,%rax
  lea    0x8(,%rax,8),%r9
  lea    0x1(%r15),%rax
  cmp    %rax,%rbx
  mov    $0x8,%eax
  cmovb  %rax,%r9
  mov    %ebp,%eax
  sub    %r15,%r12
  mov    %r9,%rbp
  mov    %r14,%r9
  mov    %r11d,%r14d
  mov    %eax,%r11d
  cmp    %rbx,%r15
  jae    L14
  nopl   (%rax)
L123:
  mov    %r15,%r8
  mov    %r9,%rdi
  movapd %xmm4,%xmm3
  mov    %r10,%rcx
  movapd %xmm4,%xmm2
  nopl   0x0(%rax)
L100:
  movq   $0x0,(%rcx)
  mov    %r15,%rax
  movapd %xmm4,%xmm1
  lea    (%rdi,%r13,1),%rsi
  nopw   0x0(%rax,%rax,1)
L26:
  mov    %rax,%rdx
  movsd  (%rax,%rsi,1),%xmm0
  add    $0x8,%rax
  mulsd  (%rdx),%xmm0
  addsd  %xmm0,%xmm1
  movsd  %xmm1,(%rcx)
  cmp    %rax,%rbx
  ja     L26
  movapd %xmm1,%xmm0
  lea    0x8(%r8),%rax
  add    %rbp,%rdi
  add    $0x8,%rcx
  mulsd  %xmm1,%xmm0
  mulsd  (%r8),%xmm1
  addsd  %xmm0,%xmm2
  addsd  %xmm1,%xmm3
  cmp    %rax,%rbx
  jbe    L89
  mov    %rax,%r8
  jmp    L100
  nop
L89:
  ucomisd %xmm2,%xmm4
  movapd %xmm2,%xmm1
  divsd  %xmm3,%xmm1
  ja     L52
  sqrtsd %xmm2,%xmm2
L7:
  mov    %r15,%rax
  nopl   0x0(%rax)
L121:
  movsd  (%r12,%rax,1),%xmm0
  mov    %rax,%rdx
  divsd  %xmm2,%xmm0
  movsd  %xmm0,(%r12,%rax,1)
  add    $0x8,%rax
  movsd  %xmm0,(%rdx)
  cmp    %rax,%rbx
  ja     L121
L127:
  movapd %xmm1,%xmm3
  subsd  %xmm5,%xmm3
  comisd %xmm3,%xmm4
  jbe    L3
  xorpd  %xmm8,%xmm3
L3:
  movapd %xmm1,%xmm2
  movapd %xmm1,%xmm0
  cmpltsd %xmm4,%xmm2
  xorpd  %xmm6,%xmm0
  andpd  %xmm2,%xmm0
  andnpd %xmm1,%xmm2
  orpd   %xmm2,%xmm0
  mulsd  %xmm7,%xmm0
  comisd %xmm3,%xmm0
  ja     L71
  sub    $0x1,%r14d
  je     L110
  movapd %xmm1,%xmm5
  cmp    %rbx,%r15
  jb     L123
L14:
  movapd %xmm4,%xmm1
  divsd  %xmm4,%xmm1
  jmp    L127
L71:
  mov    %r15,%rdi
  movsd  %xmm1,(%rsp)
  call   <free@plt>
  movsd  (%rsp),%xmm1
L120:
  add    $0x38,%rsp
  movapd %xmm1,%xmm0
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L110:
  mov    %r11d,%ebp
  mov    %r15,%rdi
  mov    %r10,%r13
  call   <free@plt>
  test   %ebp,%ebp
  pxor   %xmm4,%xmm4
  jle    L12
  mov    (%rsp),%rdx
  xor    %esi,%esi
  mov    %r13,%rdi
  shl    $0x3,%rdx
  call   <memset@plt>
  pxor   %xmm4,%xmm4
L12:
  movapd %xmm4,%xmm1
  jmp    L120
L52:
  movapd %xmm2,%xmm0
  mov    %r11d,0x2c(%rsp)
  mov    %r10,0x20(%rsp)
  mov    %r9,0x18(%rsp)
  movsd  %xmm1,0x10(%rsp)
  movsd  %xmm5,0x8(%rsp)
  call   <sqrt@plt>
  mov    D28(%rip),%rax
  movsd  0x8(%rsp),%xmm5
  pxor   %xmm4,%xmm4
  movsd  0x10(%rsp),%xmm1
  mov    0x18(%rsp),%r9
  movapd %xmm0,%xmm2
  mov    0x20(%rsp),%r10
  mov    0x2c(%rsp),%r11d
  movq   %rax,%xmm7
  movq   D23(%rip),%xmm8
  movapd %xmm8,%xmm6
  jmp    L7
```

tool_calls: name: parse_data
arguments: data_label: D23
data_type: f32[2]
name: parse_data
arguments: data_label: D28
data_type: byte[8]
name: parse_data
arguments: data_label: D18
data_type: f64

tool: {"D23": [0.0,-0.0]}

tool: {"D28": [0xbc,0x89,0xd8,0x97,0xb2,0xd2,0x9c,0x3c]}

tool: D18: 1

assistant: ```c
double evmax(double *a, double *u, int n) {
  double *p, *q, *qm, *r, *s, *t;
  double ev, evm, c, h;
  int kc;
  q = (double *)calloc(n, sizeof(double));
  qm = q + n;
  *(qm - 1) = 1.;
  ev = 0.;
  for (kc = 0; kc < 200; ++kc) {
    h = c = 0.;
    evm = ev;
    for (p = u, r = a, s = q; s < qm;) {
      *p = 0.;
      for (t = q; t < qm;)
        *p += *r++ * *t++;
      c += *p * *p;
      h += *p++ * *s++;
    }
    ev = c / h;
    c = sqrt(c);
    for (p = u, s = q; s < qm;) {
      *p /= c;
      *s++ = *p++;
    }
    if (((c = ev - evm) < 0. ? -c : c) < 1.e-16 * (ev < 0. ? -ev : ev)) {
      free(q);
      return ev;
    }
  }
  free(q);
  for (kc = 0; kc < n;)
    u[kc++] = 0.;
  return 0.;
}
```