user: 请将以下的汇编代码转换成C语言代码：

```asm
<accelerate>:
  endbr64
  push   %r13
  mov    %ecx,%r13d
  push   %r12
  mov    %rsi,%r12
  push   %rbp
  mov    %rdi,%rbp
  push   %rbx
  mov    %rdx,%rbx
  sub    $0x18,%rsp
  test   %ecx,%ecx
  jle    L54
  cmp    $0x1,%ecx
  je     L68
  mov    %ecx,%edx
  pxor   %xmm3,%xmm3
  xor    %eax,%eax
  shr    %edx
  movapd %xmm3,%xmm1
  movapd %xmm3,%xmm4
  shl    $0x4,%rdx
  nopl   0x0(%rax)
L89:
  movupd (%r12,%rax,1),%xmm2
  movupd 0x0(%rbp,%rax,1),%xmm7
  movupd (%rbx,%rax,1),%xmm0
  movupd (%r12,%rax,1),%xmm6
  add    $0x10,%rax
  subpd  %xmm7,%xmm2
  subpd  %xmm6,%xmm0
  subpd  %xmm2,%xmm0
  mulpd  %xmm2,%xmm2
  mulpd  %xmm0,%xmm0
  movapd %xmm2,%xmm5
  unpckhpd %xmm2,%xmm2
  addsd  %xmm4,%xmm5
  movapd %xmm2,%xmm4
  movapd %xmm0,%xmm2
  unpckhpd %xmm0,%xmm0
  addsd  %xmm1,%xmm2
  movapd %xmm0,%xmm1
  addsd  %xmm5,%xmm4
  addsd  %xmm2,%xmm1
  cmp    %rdx,%rax
  jne    L89
  mov    %r13d,%eax
  and    $0xfffffffe,%eax
  test   $0x1,%r13b
  je     L62
L116:
  cltq
  movsd  (%r12,%rax,8),%xmm5
  movsd  (%rbx,%rax,8),%xmm0
  movapd %xmm5,%xmm2
  subsd  %xmm5,%xmm0
  subsd  0x0(%rbp,%rax,8),%xmm2
  subsd  %xmm2,%xmm0
  mulsd  %xmm2,%xmm2
  mulsd  %xmm0,%xmm0
  addsd  %xmm2,%xmm4
  addsd  %xmm0,%xmm1
L62:
  movapd %xmm4,%xmm0
  movsd  %xmm3,0x8(%rsp)
  call   <calc_gamma2@plt>
  movsd  0x8(%rsp),%xmm3
  movapd %xmm0,%xmm6
  ucomisd %xmm0,%xmm3
  ja     L42
  sqrtsd %xmm0,%xmm0
L64:
  xorpd  D19(%rip),%xmm0
  test   %r13d,%r13d
  jle    L118
  addsd  %xmm0,%xmm0
  movsd  D26(%rip),%xmm7
  movslq %r13d,%rdx
  xor    %eax,%eax
  movsd  D17(%rip),%xmm8
  nopl   (%rax)
L56:
  movsd  (%r12,%rax,8),%xmm5
  movsd  (%rbx,%rax,8),%xmm4
  movsd  0x0(%rbp,%rax,8),%xmm2
  movapd %xmm5,%xmm3
  movapd %xmm4,%xmm1
  subsd  %xmm2,%xmm3
  subsd  %xmm5,%xmm1
  subsd  %xmm3,%xmm1
  mulsd  %xmm0,%xmm3
  mulsd  %xmm6,%xmm1
  subsd  %xmm3,%xmm2
  addsd  %xmm2,%xmm1
  comisd %xmm1,%xmm7
  jb     L115
  divsd  %xmm8,%xmm4
  movsd  %xmm4,(%rbx,%rax,8)
  add    $0x1,%rax
  cmp    %rax,%rdx
  jne    L56
L118:
  add    $0x18,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  ret
  nopl   0x0(%rax)
L115:
  movsd  %xmm1,(%rbx,%rax,8)
  add    $0x1,%rax
  cmp    %rax,%rdx
  jne    L56
  add    $0x18,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  ret
  nopl   0x0(%rax)
L54:
  pxor   %xmm3,%xmm3
  movapd %xmm3,%xmm1
  movapd %xmm3,%xmm4
  jmp    L62
L68:
  pxor   %xmm3,%xmm3
  xor    %eax,%eax
  movapd %xmm3,%xmm1
  movapd %xmm3,%xmm4
  jmp    L116
L42:
  movsd  %xmm0,0x8(%rsp)
  call   <sqrt@plt>
  movsd  0x8(%rsp),%xmm6
  jmp    L64
```

tool_calls: name: parse_data
arguments: data_tag: D19
type_infered: f32[4]
name: parse_data
arguments: data_tag: D26
type_infered: byte[8]
name: parse_data
arguments: data_tag: D17
type_infered: f32[2]

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

tool: {"D26": [0x59,0xf3,0xf8,0xc2,0x1f,0x6e,0xa5,0x01]}

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

assistant: ```c
void accelerate(const double *a, const double *b, double *c, int n) {
  int i;
  double r_norm2 = 0;
  double v_norm2 = 0;
  for (i = 0; i < n; i++) {
    double r = b[i] - a[i];
    double v = c[i] - b[i] - r;
    r_norm2 += r * r;
    v_norm2 += v * v;
  }
  double gamma2 = calc_gamma2(r_norm2, v_norm2);
  double gamma = -sqrt(gamma2);
  int zeroing = 0;
  for (i = 0; i < n; i++) {
    double r = b[i] - a[i];
    double v = c[i] - b[i] - r;
    double new_val = a[i] - 2 * gamma * r + gamma2 * v;
    if (new_val <= 1e-300) {
      zeroing += (c[i] > 1e-300);
      new_val = c[i] / 10;
    }
    c[i] = new_val;
  }
}
```