user: 请将这段汇编代码片段转换成等效的C代码：

```asm
<atovm>:
  endbr64
  mov    %rdi,%rdx
  movslq %esi,%rdi
  push   %r15
  movsd  D2(%rip),%xmm6
  mov    %edi,%eax
  push   %r14
  lea    0x0(,%rdi,8),%rcx
  imul   %edi,%eax
  push   %r13
  push   %r12
  push   %rbp
  mov    $0xfffffffffffffff8,%rbp
  cltq
  sub    %rcx,%rbp
  push   %rbx
  lea    -0x8(%rdx,%rax,8),%rsi
  sub    %rdi,%rax
  sub    %rdi,%rax
  movsd  %xmm6,(%rsi)
  add    %rbp,%rsi
  shl    $0x3,%rax
  lea    -0x8(%rdx,%rax,1),%r8
  cmp    $0x1,%edi
  jle    L33
  lea    -0x1(%rdi),%r14d
  lea    0x8(%rsi),%r10
  pxor   %xmm4,%xmm4
  mov    %rdi,%r12
  movq   D5(%rip),%xmm5
  lea    0x10(%rsi),%r9
  mov    %r14d,%r11d
  lea    (%rdx,%rax,1),%rsi
  lea    -0x8(%rcx),%r13
  nop
L56:
  lea    -0x8(%r10),%r15
  lea    0x0(%r13,%r10,1),%rax
  mov    %r11d,%ebx
  sub    $0x1,%r11d
  je     L87
  movsd  -0x8(%r8),%xmm3
  ucomisd %xmm4,%xmm3
  jp     L66
  je     L87
L66:
  movapd %xmm6,%xmm0
  movapd %xmm3,%xmm1
  mov    %r10,%rdi
  mov    %r8,%rdx
  subsd  %xmm3,%xmm0
  xorpd  %xmm5,%xmm1
  movsd  %xmm0,-0x8(%r10)
  nopl   0x0(%rax)
L19:
  movsd  (%rdx),%xmm0
  add    $0x8,%rdx
  mulsd  %xmm1,%xmm0
  movsd  %xmm0,(%rax)
  add    %rcx,%rax
  cmp    %rsi,%rdx
  jne    L19
  cmp    %ebx,%r12d
  jle    L112
  mov    %r14d,%eax
  sub    %ebx,%eax
  lea    0x10(%r15,%rax,8),%rbx
  nop
L102:
  lea    (%rdi,%rcx,1),%rax
  mov    %r8,%rdx
  movapd %xmm4,%xmm1
  mov    %rax,%r15
  xchg   %ax,%ax
L115:
  add    $0x8,%rdx
  movsd  (%r15),%xmm0
  add    %rcx,%r15
  mulsd  -0x8(%rdx),%xmm0
  addsd  %xmm0,%xmm1
  cmp    %rsi,%rdx
  jne    L115
  mulsd  %xmm3,%xmm1
  mov    %r8,%rdx
  nopl   0x0(%rax)
L110:
  movsd  (%rdx),%xmm2
  movsd  (%rax),%xmm0
  add    $0x8,%rdx
  mulsd  %xmm1,%xmm2
  subsd  %xmm2,%xmm0
  movsd  %xmm0,(%rax)
  add    %rcx,%rax
  cmp    %rsi,%rdx
  jne    L110
  add    $0x8,%rdi
  xorpd  %xmm5,%xmm1
  movsd  %xmm1,-0x8(%rdi)
  cmp    %rdi,%rbx
  jne    L102
L112:
  add    %rbp,%r8
  add    %rbp,%r10
  sub    %rcx,%r9
  sub    %rcx,%rsi
  test   %r11d,%r11d
  jne    L56
L33:
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nopw   0x0(%rax,%rax,1)
L87:
  mov    %r10,%rdx
  movsd  %xmm6,-0x8(%r10)
  nopl   0x0(%rax)
L95:
  add    $0x8,%rdx
  movq   $0x0,-0x8(%rdx)
  movq   $0x0,(%rax)
  add    %rcx,%rax
  cmp    %r9,%rdx
  jne    L95
  jmp    L112
```

tool_calls: name: disassemble_data
arguments: tag: D2
data_type: f64
name: disassemble_data
arguments: tag: D5
data_type: f32[2]

tool: D2: 1

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

assistant: ```c
void atovm(double *v, int n) {
  double *p0, *q0, *p, *q, *qq;
  double h, s;
  int i, j, k, mm;
  q0 = v + n * n - 1;
  *q0 = 1.;
  q0 -= n + 1;
  p0 = v + n * n - n - n - 1;
  for (i = n - 2, mm = 1; i >= 0; --i, p0 -= n + 1, q0 -= n + 1, ++mm) {
    if (i && *(p0 - 1) != 0.) {
      for (j = 0, p = p0, h = 1.; j < mm; ++j, ++p)
        h += *p * *p;
      h = *(p0 - 1);
      *q0 = 1. - h;
      for (j = 0, q = q0 + n, p = p0; j < mm; ++j, q += n)
        *q = -h * *p++;
      for (k = i + 1, q = q0 + 1; k < n; ++k) {
        for (j = 0, qq = q + n, p = p0, s = 0.; j < mm; ++j, qq += n)
          s += *qq * *p++;
        s *= h;
        for (j = 0, qq = q + n, p = p0; j < mm; ++j, qq += n)
          *qq -= s * *p++;
        *q++ = -s;
      }
    } else {
      *q0 = 1.;
      for (j = 0, p = q0 + 1, q = q0 + n; j < mm; ++j, q += n)
        *q = *p++ = 0.;
    }
  }
}
```