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

```asm
<qrlsq>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x48,%rsp
  mov    %rdi,0x18(%rsp)
  mov    %rsi,0x28(%rsp)
  mov    %edx,0x30(%rsp)
  mov    %ecx,0x34(%rsp)
  mov    %r8,0x38(%rsp)
  mov    D7(%rip),%rbx
  cmp    %ecx,%edx
  jge    L119
L27:
  movq   %rbx,%xmm0
  add    $0x48,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L119:
  mov    %rsi,%r15
  mov    %ecx,%ebp
  mov    $0x8,%esi
  mov    %edx,%ebx
  mov    %edx,%edi
  call   <calloc@plt>
  mov    %rax,%r14
  mov    %ebp,%eax
  test   %ebp,%ebp
  jle    L3
  movslq %ebp,%rbp
  shl    $0x3,%rbp
  lea    0x8(%rbp),%rsi
  mov    %rsi,0x10(%rsp)
  lea    -0x1(%rbx),%r12d
  mov    %r14,%r13
  sub    %r15,%r13
  mov    %eax,0xc(%rsp)
  mov    0x18(%rsp),%r15
  jmp    L138
L159:
  movsd  (%rsp),%xmm0
  call   <sqrt@plt>
  movapd %xmm0,%xmm4
  jmp    L180
L23:
  mulsd  %xmm4,%xmm0
  addsd  (%rsp),%xmm0
  movsd  D0(%rip),%xmm3
  divsd  %xmm0,%xmm3
  movapd %xmm4,%xmm0
  addsd  (%r14),%xmm0
  movsd  %xmm0,(%r14)
  mov    0xc(%rsp),%eax
  cmp    $0x1,%eax
  jle    L13
  lea    0x8(%r15),%rsi
  lea    -0x2(%rax),%eax
  lea    0x10(%r15,%rax,8),%rdi
L201:
  mov    %rsi,%rdx
  mov    %r14,%rax
  mov    %rsi,%rcx
  pxor   %xmm1,%xmm1
L195:
  movsd  (%rax),%xmm0
  mulsd  (%rcx),%xmm0
  addsd  %xmm0,%xmm1
  add    %rbp,%rcx
  add    $0x8,%rax
  cmp    %rbx,%rax
  jne    L195
  mulsd  %xmm3,%xmm1
  mov    %r14,%rax
L114:
  movapd %xmm1,%xmm2
  mulsd  (%rax),%xmm2
  movsd  (%rdx),%xmm0
  subsd  %xmm2,%xmm0
  movsd  %xmm0,(%rdx)
  add    %rbp,%rdx
  add    $0x8,%rax
  cmp    %rbx,%rax
  jne    L114
  add    $0x8,%rsi
  cmp    %rdi,%rsi
  jne    L201
L13:
  xorpd  D16(%rip),%xmm4
  movsd  %xmm4,(%r15)
  mov    %r13,%rcx
  neg    %rcx
  mov    %r14,%rax
  sub    %r13,%rax
  mov    %r14,%rdx
  pxor   %xmm1,%xmm1
L29:
  movsd  (%rdx),%xmm0
  mulsd  (%rcx,%rdx,1),%xmm0
  addsd  %xmm0,%xmm1
  add    $0x8,%rdx
  cmp    %rbx,%rdx
  jne    L29
  mulsd  %xmm1,%xmm3
  mov    0x20(%rsp),%rdi
  lea    0x8(%rax,%rdi,8),%rdx
L125:
  movapd %xmm3,%xmm1
  mulsd  (%rax,%r13,1),%xmm1
  add    $0x8,%rax
  movsd  -0x8(%rax),%xmm0
  subsd  %xmm1,%xmm0
  movsd  %xmm0,-0x8(%rax)
  cmp    %rax,%rdx
  jne    L125
L43:
  add    0x10(%rsp),%r15
  sub    $0x1,%r12d
  sub    $0x8,%r13
  subl   $0x1,0xc(%rsp)
  je     L3
L138:
  lea    0x1(%r12),%eax
  cmp    $0x1,%eax
  jle    L43
  mov    %r12d,%eax
  mov    %rax,0x20(%rsp)
  lea    0x8(%r14,%rax,8),%rbx
  mov    %r14,%rax
  mov    %r15,%rdx
  pxor   %xmm6,%xmm6
  movsd  %xmm6,(%rsp)
L182:
  movsd  (%rdx),%xmm0
  movsd  %xmm0,(%rax)
  mulsd  %xmm0,%xmm0
  addsd  (%rsp),%xmm0
  movsd  %xmm0,(%rsp)
  add    %rbp,%rdx
  add    $0x8,%rax
  cmp    %rbx,%rax
  jne    L182
  comisd D26(%rip),%xmm0
  jbe    L43
  pxor   %xmm6,%xmm6
  movapd %xmm0,%xmm4
  ucomisd %xmm0,%xmm6
  ja     L159
  sqrtsd %xmm4,%xmm4
L180:
  movsd  (%r15),%xmm0
  pxor   %xmm1,%xmm1
  comisd %xmm0,%xmm1
  jbe    L23
  xorpd  D16(%rip),%xmm4
  jmp    L23
L3:
  mov    0x34(%rsp),%ebx
  mov    %ebx,%edx
  mov    0x28(%rsp),%r15
  mov    %r15,%rsi
  mov    0x18(%rsp),%rdi
  call   <solvru@plt>
  mov    0x38(%rsp),%rdi
  mov    %eax,(%rdi)
  movslq %ebx,%rax
  lea    (%r15,%rax,8),%rax
  mov    0x30(%rsp),%esi
  cmp    %ebx,%esi
  jle    L139
  sub    %ebx,%esi
  lea    -0x1(%rsi),%edx
  lea    0x8(%rax,%rdx,8),%rdx
  mov    D26(%rip),%rbx
  movq   %rbx,%xmm1
L152:
  movsd  (%rax),%xmm0
  mulsd  %xmm0,%xmm0
  addsd  %xmm0,%xmm1
  add    $0x8,%rax
  cmp    %rdx,%rax
  jne    L152
  movq   %xmm1,%rbx
L45:
  mov    %r14,%rdi
  call   <free@plt>
  jmp    L27
L139:
  mov    D26(%rip),%rbx
  jmp    L45
```

tool_calls: name: extract_symbolic_data
arguments: label: D7
type: f32[2]
name: extract_symbolic_data
arguments: label: D0
type: f64
name: extract_symbolic_data
arguments: label: D16
type: f32[4]
name: extract_symbolic_data
arguments: label: D26
type: f32

tool: {"D7": [0.0,-1.875]}

tool: D0: 1

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

tool: D26: 0

assistant: ```c
double qrlsq(double *a, double *b, int m, int n, int *f) {
  double *p, *q, *w;
  double s, h, r;
  int i, j, k, mm, ms;
  if (m < n)
    return -1;
  w = (double *)calloc(m, sizeof(double));
  for (i = 0, mm = m, p = a; i < n; ++i, --mm, p += n + 1) {
    if (mm > 1) {
      for (j = 0, q = p, s = 0.; j < mm; ++j, q += n) {
        w[j] = *q;
        s += *q * *q;
      }
      if (s > 0.) {
        h = sqrt(s);
        if (*p < 0.)
          h = -h;
        s += *p * h;
        s = 1. / s;
        w[0] += h;
        for (k = 1, ms = n - i; k < ms; ++k) {
          for (j = 0, q = p + k, r = 0.; j < mm; q += n)
            r += w[j++] * *q;
          r = r * s;
          for (j = 0, q = p + k; j < mm; q += n)
            *q -= r * w[j++];
        }
        *p = -h;
        for (j = 0, q = b + i, r = 0.; j < mm;)
          r += w[j++] * *q++;
        for (j = 0, q = b + i, r *= s; j < mm;)
          *q++ -= r * w[j++];
      }
    }
  }
  *f = solvru(a, b, n);
  for (j = n, q = b + j, s = 0.; j < m; ++j, ++q)
    s += *q * *q;
  free(w);
  return s;
}
```