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

```asm
<atou1>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  mov    %rdi,%r12
  push   %rbp
  mov    %edx,%ebp
  push   %rbx
  mov    %esi,%ebx
  mov    $0x8,%esi
  mov    %ebx,%edi
  sub    $0x18,%rsp
  call   <calloc@plt>
  mov    %rax,%r9
  mov    %ebp,%eax
  imul   %ebp,%eax
  cltq
  lea    -0x8(%r12,%rax,8),%r11
  sub    %ebp,%ebx
  je     L149
  mov    %ebx,%r10d
  lea    -0x1(%rbp),%ebx
L105:
  test   %ebx,%ebx
  js     L128
  lea    -0x1(%rbp),%eax
  movslq %ebp,%rsi
  mov    $0xfffffffffffffff8,%r13
  add    $0x1,%ebx
  mov    %eax,0xc(%rsp)
  shl    $0x3,%rsi
  lea    -0x1(%r10),%r12d
  pxor   %xmm4,%xmm4
  movq   D21(%rip),%xmm5
  movsd  D15(%rip),%xmm6
  sub    %rsi,%r13
  lea    0x8(%r9),%r14
  movapd %xmm5,%xmm7
  nopl   (%rax)
L4:
  movsd  (%r11),%xmm3
  lea    (%rsi,%r11,1),%rax
  lea    0x8(%r11),%r8
  ucomisd %xmm4,%xmm3
  jp     L37
  je     L28
L37:
  test   %r10d,%r10d
  jle    L90
  mov    %r12d,%ecx
  mov    %r9,%rdx
  mov    %rax,%rdi
  lea    (%r14,%rcx,8),%r15
  mov    %r9,%rcx
  nopw   0x0(%rax,%rax,1)
L188:
  movsd  (%rdi),%xmm0
  add    $0x8,%rcx
  add    %rsi,%rdi
  movsd  %xmm0,-0x8(%rcx)
  cmp    %r15,%rcx
  jne    L188
  movsd  (%r11),%xmm3
  movapd %xmm6,%xmm0
  subsd  %xmm3,%xmm0
  movapd %xmm3,%xmm1
  xorpd  %xmm7,%xmm1
  movsd  %xmm0,(%r11)
  nop
L3:
  movsd  (%rdx),%xmm0
  add    $0x8,%rdx
  mulsd  %xmm1,%xmm0
  movsd  %xmm0,(%rax)
  add    %rsi,%rax
  cmp    %r15,%rdx
  jne    L3
L82:
  cmp    %ebx,%ebp
  jle    L112
  mov    0xc(%rsp),%eax
  sub    %ebx,%eax
  lea    0x10(%r11,%rax,8),%r15
  mov    %r12d,%eax
  lea    (%r14,%rax,8),%rdi
  nopw   0x0(%rax,%rax,1)
L99:
  lea    (%r8,%rsi,1),%rax
  test   %r10d,%r10d
  jle    L81
  mov    %r9,%rdx
  mov    %rax,%rcx
  movapd %xmm4,%xmm1
  nop
L16:
  movsd  (%rdx),%xmm0
  mulsd  (%rcx),%xmm0
  add    $0x8,%rdx
  add    %rsi,%rcx
  addsd  %xmm0,%xmm1
  cmp    %rdx,%rdi
  jne    L16
  mulsd  %xmm3,%xmm1
  mov    %r9,%rdx
  nop
L38:
  movsd  (%rdx),%xmm2
  movsd  (%rax),%xmm0
  add    $0x8,%rdx
  mulsd  %xmm1,%xmm2
  subsd  %xmm2,%xmm0
  movsd  %xmm0,(%rax)
  add    %rsi,%rax
  cmp    %rdx,%rdi
  jne    L38
L98:
  add    $0x8,%r8
  xorpd  %xmm5,%xmm1
  movsd  %xmm1,-0x8(%r8)
  cmp    %r8,%r15
  jne    L99
L112:
  add    $0x1,%r10d
  add    %r13,%r11
  add    $0x1,%r12d
  sub    $0x1,%ebx
  jne    L4
L128:
  add    $0x18,%rsp
  mov    %r9,%rdi
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  jmp    1060 <free@plt>
  nopl   (%rax)
L28:
  movsd  %xmm6,(%r11)
  test   %r10d,%r10d
  jle    L112
  mov    %r12d,%edx
  lea    0x10(%r11,%rdx,8),%rdx
  nopw   0x0(%rax,%rax,1)
L79:
  add    $0x8,%r8
  movq   $0x0,-0x8(%r8)
  movq   $0x0,(%rax)
  add    %rsi,%rax
  cmp    %rdx,%r8
  jne    L79
  add    $0x1,%r10d
  add    %r13,%r11
  add    $0x1,%r12d
  sub    $0x1,%ebx
  jne    L4
  jmp    L128
  nopl   0x0(%rax)
L81:
  movapd %xmm3,%xmm1
  mulsd  %xmm4,%xmm1
  jmp    L98
L149:
  mov    D15(%rip),%rax
  lea    -0x2(%rbp),%ebx
  mov    $0x1,%r10d
  mov    %rax,(%r11)
  movslq %ebp,%rax
  shl    $0x3,%rax
  sub    %rax,%r11
  sub    $0x8,%r11
  jmp    L105
L90:
  movapd %xmm6,%xmm0
  subsd  %xmm3,%xmm0
  movsd  %xmm0,(%r11)
  jmp    L82
```

tool_calls: name: extract_symbolic_data
arguments: data_tag: D21
type_guessed: f32[2]
name: extract_symbolic_data
arguments: data_tag: D15
type_guessed: f64

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

tool: D15: 1

assistant: ```c
void atou1(double *a, int m, int n) {
  double *p0, *p, *q, *w;
  int i, j, k, mm;
  double s, h;
  w = (double *)calloc(m, sizeof(double));
  p0 = a + n * n - 1;
  i = n - 1;
  mm = m - n;
  if (mm == 0) {
    *p0 = 1.;
    p0 -= n + 1;
    --i;
    ++mm;
  }
  for (; i >= 0; --i, ++mm, p0 -= n + 1) {
    if (*p0 != 0.) {
      for (j = 0, p = p0 + n; j < mm; p += n)
        w[j++] = *p;
      h = *p0;
      *p0 = 1. - h;
      for (j = 0, p = p0 + n; j < mm; p += n)
        *p = -h * w[j++];
      for (k = i + 1, q = p0 + 1; k < n; ++k) {
        for (j = 0, p = q + n, s = 0.; j < mm; p += n)
          s += w[j++] * *p;
        s *= h;
        for (j = 0, p = q + n; j < mm; p += n)
          *p -= s * w[j++];
        *q++ = -s;
      }
    } else {
      *p0 = 1.;
      for (j = 0, p = p0 + n, q = p0 + 1; j < mm; ++j, p += n)
        *p = *q++ = 0.;
    }
  }
  free(w);
}
```