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

```asm
<evmax>:
  endbr64
  push   %r15
  push   %r14
  mov    %rsi,%r14
  mov    $0x8,%esi
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  mov    %edx,%ebx
  sub    $0x68,%rsp
  mov    %rdi,0x10(%rsp)
  mov    %edx,%edi
  mov    %edx,0x2c(%rsp)
  call   <calloc@plt>
  mov    $0x8,%esi
  mov    %r14,%r11
  pxor   %xmm3,%xmm3
  mov    %rax,%rbp
  movslq %ebx,%rax
  movq   D4(%rip),%xmm7
  movl   $0xc8,0x8(%rsp)
  lea    0x0(%rbp,%rax,8),%rbx
  lea    0x1(%rbp),%rcx
  movapd %xmm3,%xmm4
  mov    %rbp,%r15
  mov    %rbx,%rdx
  mov    %rax,0x30(%rsp)
  neg    %r15
  movapd %xmm7,%xmm5
  mov    D30(%rip),%rax
  sub    %rbp,%rdx
  movsd  D14(%rip),%xmm6
  sub    $0x1,%rdx
  mov    %rax,-0x8(%rbx)
  mov    %rdx,%rax
  shr    $0x3,%rax
  add    $0x1,%rax
  cmp    %rcx,%rbx
  lea    0x0(,%rax,8),%r13
  cmovb  %rsi,%r13
  lea    0x8(%r14),%rsi
  cmp    %rsi,%rbp
  setne  %sil
  cmp    %rcx,%rbx
  setae  %dil
  and    %edi,%esi
  cmp    $0x7,%rdx
  seta   %dl
  and    %edx,%esi
  cmp    %rcx,%rbx
  mov    $0x1,%edx
  cmovae %rax,%rdx
  mov    %sil,0x2b(%rsp)
  sub    %rbp,%r11
  mov    %rdx,%r9
  mov    %rdx,%rax
  mov    %rdx,0x18(%rsp)
  shr    %r9
  and    $0xfffffffffffffffe,%rax
  shl    $0x4,%r9
  lea    0x0(,%rax,8),%r10
  mov    %rax,0x20(%rsp)
  mov    %r14,%rax
  add    %r14,%r9
  lea    (%r14,%r10,1),%r12
  add    %rbp,%r10
  mov    %r9,%r14
  mov    %rax,%r9
  cmp    %rbx,%rbp
  jae    L75
  nopl   0x0(%rax)
L68:
  mov    0x10(%rsp),%rdi
  mov    %rbp,%r8
  mov    %r9,%rcx
  movapd %xmm3,%xmm8
  movapd %xmm3,%xmm2
  nopl   0x0(%rax)
L56:
  movq   $0x0,(%rcx)
  mov    %rbp,%rax
  movapd %xmm3,%xmm1
  lea    (%rdi,%r15,1),%rsi
  nopw   0x0(%rax,%rax,1)
L12:
  mov    %rax,%rdx
  movsd  (%rax,%rsi,1),%xmm0
  add    $0x8,%rax
  mulsd  (%rdx),%xmm0
  addsd  %xmm0,%xmm1
  movsd  %xmm1,(%rcx)
  cmp    %rax,%rbx
  ja     L12
  movapd %xmm1,%xmm0
  lea    0x8(%r8),%rax
  add    %r13,%rdi
  add    $0x8,%rcx
  mulsd  %xmm1,%xmm0
  mulsd  (%r8),%xmm1
  addsd  %xmm0,%xmm2
  addsd  %xmm1,%xmm8
  cmp    %rax,%rbx
  jbe    L95
  mov    %rax,%r8
  jmp    L56
L95:
  ucomisd %xmm2,%xmm3
  movapd %xmm2,%xmm1
  divsd  %xmm8,%xmm1
  ja     L132
  sqrtsd %xmm2,%xmm2
L86:
  cmpb   $0x0,0x2b(%rsp)
  je     L48
  movapd %xmm2,%xmm8
  mov    %rbp,%rdx
  mov    %r9,%rax
  unpcklpd %xmm8,%xmm8
  sub    %r9,%rdx
  nopl   (%rax)
L155:
  movupd (%rax),%xmm0
  divpd  %xmm8,%xmm0
  movups %xmm0,(%rax)
  movups %xmm0,(%rdx,%rax,1)
  add    $0x10,%rax
  cmp    %rax,%r14
  jne    L155
  mov    0x20(%rsp),%rdi
  cmp    %rdi,0x18(%rsp)
  je     L33
  movsd  (%r12),%xmm0
  divsd  %xmm2,%xmm0
  movsd  %xmm0,(%r12)
  movsd  %xmm0,(%r10)
L33:
  movapd %xmm1,%xmm8
  subsd  %xmm4,%xmm8
  comisd %xmm8,%xmm3
  jbe    L98
  xorpd  %xmm7,%xmm8
L98:
  movapd %xmm1,%xmm2
  movapd %xmm1,%xmm0
  cmpltsd %xmm3,%xmm2
  xorpd  %xmm5,%xmm0
  andpd  %xmm2,%xmm0
  andnpd %xmm1,%xmm2
  orpd   %xmm2,%xmm0
  mulsd  %xmm6,%xmm0
  comisd %xmm8,%xmm0
  ja     L32
  subl   $0x1,0x8(%rsp)
  je     L139
  movapd %xmm1,%xmm4
  cmp    %rbx,%rbp
  jb     L68
L75:
  movapd %xmm3,%xmm1
  divsd  %xmm3,%xmm1
  jmp    L33
L48:
  mov    %rbp,%rax
  nopl   0x0(%rax)
L124:
  movsd  (%r11,%rax,1),%xmm0
  mov    %rax,%rdx
  divsd  %xmm2,%xmm0
  movsd  %xmm0,(%r11,%rax,1)
  add    $0x8,%rax
  movsd  %xmm0,(%rdx)
  cmp    %rax,%rbx
  ja     L124
  jmp    L33
L32:
  mov    %rbp,%rdi
  movsd  %xmm1,0x8(%rsp)
  call   <free@plt>
  movsd  0x8(%rsp),%xmm1
L19:
  add    $0x68,%rsp
  movapd %xmm1,%xmm0
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L139:
  mov    %rbp,%rdi
  mov    %r9,%r14
  call   <free@plt>
  mov    0x2c(%rsp),%eax
  pxor   %xmm3,%xmm3
  test   %eax,%eax
  jle    L116
  mov    0x30(%rsp),%rdx
  xor    %esi,%esi
  mov    %r14,%rdi
  shl    $0x3,%rdx
  call   <memset@plt>
  pxor   %xmm3,%xmm3
L116:
  movapd %xmm3,%xmm1
  jmp    L19
L132:
  movapd %xmm2,%xmm0
  mov    %r11,0x58(%rsp)
  mov    %r9,0x50(%rsp)
  mov    %r10,0x48(%rsp)
  movsd  %xmm1,0x40(%rsp)
  movsd  %xmm4,0x38(%rsp)
  call   <sqrt@plt>
  mov    D14(%rip),%rax
  mov    0x48(%rsp),%r10
  pxor   %xmm3,%xmm3
  movsd  0x38(%rsp),%xmm4
  movsd  0x40(%rsp),%xmm1
  movapd %xmm0,%xmm2
  mov    0x50(%rsp),%r9
  mov    0x58(%rsp),%r11
  movq   %rax,%xmm6
  movq   D4(%rip),%xmm7
  movapd %xmm7,%xmm5
  jmp    L86
```

tool_calls: name: unpack_data
arguments: tag: D4
data_type: f32[2]
name: unpack_data
arguments: tag: D30
data_type: f64
name: unpack_data
arguments: tag: D14
data_type: byte[8]

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

tool: D30: 1

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

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.;
}
```