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

```asm
<sv2u1v>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x68,%rsp
  mov    %rdi,0x20(%rsp)
  mov    %rsi,0x30(%rsp)
  mov    %edx,0x4c(%rsp)
  mov    %rcx,0x40(%rsp)
  mov    %r8d,0x8(%rsp)
  cmp    %r8d,%edx
  jl     L601
  mov    %rdi,%r13
  mov    %edx,%ebx
  mov    %r8d,%r14d
  mov    %edx,%eax
  add    %r8d,%eax
  movslq %eax,%rdi
  mov    $0x8,%esi
  call   <calloc@plt>
  mov    %rax,%rbp
  movslq %ebx,%rax
  lea    0x0(%rbp,%rax,8),%rax
  mov    %rax,0x28(%rsp)
  mov    %r14d,%ecx
  test   %r14d,%r14d
  jle    L122
  movslq %r14d,%rax
  lea    0x0(,%rax,8),%r15
  lea    0x8(%r15),%rax
  mov    %rax,0x10(%rsp)
  lea    -0x1(%rbx),%r12d
  mov    %r13,%r14
  mov    %r13,0x50(%rsp)
  mov    %ecx,0xc(%rsp)
  mov    0x30(%rsp),%r13
  jmp    L97
L59:
  mov    %r12d,%eax
  lea    0x8(%rbp,%rax,8),%rbx
  mov    %rbp,%rax
  mov    %r13,%rdx
  pxor   %xmm6,%xmm6
  movsd  %xmm6,(%rsp)
L120:
  movsd  (%rdx),%xmm0
  movsd  %xmm0,(%rax)
  mulsd  %xmm0,%xmm0
  addsd  (%rsp),%xmm0
  movsd  %xmm0,(%rsp)
  add    %r15,%rdx
  add    $0x8,%rax
  cmp    %rbx,%rax
  jne    L120
  movapd %xmm0,%xmm6
  pxor   %xmm4,%xmm4
  movapd %xmm4,%xmm3
  comisd D117(%rip),%xmm0
  ja     L247
L51:
  movsd  %xmm4,0x0(%r13)
  xorpd  D130(%rip),%xmm3
  movsd  %xmm3,(%r14)
L402:
  add    0x10(%rsp),%r13
  sub    $0x1,%r12d
  add    $0x8,%r14
  subl   $0x1,0xc(%rsp)
  je     L184
L97:
  lea    0x1(%r12),%eax
  cmp    $0x1,%eax
  jg     L59
  jne    L402
  movsd  0x0(%r13),%xmm0
  movsd  %xmm0,(%r14)
  jmp    L402
L247:
  pxor   %xmm0,%xmm0
  ucomisd %xmm6,%xmm0
  ja     L164
  sqrtsd %xmm6,%xmm6
  movapd %xmm6,%xmm3
L158:
  movsd  0x0(%r13),%xmm4
  pxor   %xmm0,%xmm0
  comisd %xmm4,%xmm0
  ja     L483
L222:
  movapd %xmm4,%xmm1
  mulsd  %xmm3,%xmm1
  addsd  (%rsp),%xmm1
  movsd  D149(%rip),%xmm0
  movapd %xmm0,%xmm6
  divsd  %xmm1,%xmm6
  movapd %xmm3,%xmm1
  addsd  0x0(%rbp),%xmm1
  movsd  %xmm1,0x0(%rbp)
  movapd %xmm0,%xmm5
  divsd  %xmm1,%xmm5
  divsd  %xmm3,%xmm4
  andpd  D169(%rip),%xmm4
  addsd  %xmm0,%xmm4
  mov    0xc(%rsp),%eax
  cmp    $0x1,%eax
  jle    L561
  lea    0x8(%r13),%rsi
  lea    -0x2(%rax),%eax
  lea    0x10(%r13,%rax,8),%rdi
L529:
  mov    %rsi,%rdx
  mov    %rbp,%rax
  mov    %rsi,%rcx
  pxor   %xmm1,%xmm1
L387:
  movsd  (%rax),%xmm0
  mulsd  (%rcx),%xmm0
  addsd  %xmm0,%xmm1
  add    %r15,%rcx
  add    $0x8,%rax
  cmp    %rbx,%rax
  jne    L387
  mulsd  %xmm6,%xmm1
  mov    %rbp,%rax
L666:
  movapd %xmm1,%xmm2
  mulsd  (%rax),%xmm2
  movsd  (%rdx),%xmm0
  subsd  %xmm2,%xmm0
  movsd  %xmm0,(%rdx)
  add    %r15,%rdx
  add    $0x8,%rax
  cmp    %rbx,%rax
  jne    L666
  add    $0x8,%rsi
  cmp    %rdi,%rsi
  jne    L529
L561:
  lea    0x8(%rbp),%rax
  lea    -0x1(%r12),%edx
  lea    0x10(%rbp,%rdx,8),%rcx
  mov    %r13,%rdx
L84:
  add    %r15,%rdx
  movapd %xmm5,%xmm0
  mulsd  (%rax),%xmm0
  movsd  %xmm0,(%rdx)
  add    $0x8,%rax
  cmp    %rax,%rcx
  jne    L84
  jmp    L51
L164:
  movsd  (%rsp),%xmm0
  call   <sqrt@plt>
  movapd %xmm0,%xmm3
  jmp    L158
L483:
  xorpd  D130(%rip),%xmm3
  jmp    L222
L184:
  mov    0x8(%rsp),%eax
  lea    -0x1(%rax),%r14d
  lea    0x8(,%r14,8),%r8
  mov    0x40(%rsp),%rsi
  mov    0x30(%rsp),%rdi
  mov    $0x0,%edx
  mov    $0x0,%r9d
  pxor   %xmm1,%xmm1
  mov    0x20(%rsp),%r10
  jmp    L172
L362:
  movsd  (%r10,%rdx,8),%xmm0
L685:
  movsd  %xmm0,(%rsi,%rax,8)
  lea    0x1(%rax),%rcx
  cmp    %rax,%r14
  je     L325
  mov    %rcx,%rax
L294:
  movapd %xmm1,%xmm0
  cmp    %eax,%edx
  jg     L685
  je     L362
  movsd  (%rdi,%rax,8),%xmm0
  jmp    L685
L325:
  add    %r8,%rsi
  add    %r8,%rdi
  lea    0x1(%rdx),%rax
  cmp    %rdx,%r14
  je     L479
  mov    %rax,%rdx
L172:
  mov    %r9,%rax
  jmp    L294
L25:
  pxor   %xmm0,%xmm0
  movapd %xmm7,%xmm6
  ucomisd %xmm7,%xmm0
  ja     L503
  sqrtsd %xmm6,%xmm6
  movapd %xmm6,%xmm3
L124:
  movsd  (%r12),%xmm4
  pxor   %xmm0,%xmm0
  comisd %xmm4,%xmm0
  ja     L417
L574:
  movapd %xmm4,%xmm0
  mulsd  %xmm3,%xmm0
  addsd  (%rsp),%xmm0
  movsd  D149(%rip),%xmm1
  movapd %xmm1,%xmm5
  divsd  %xmm0,%xmm5
  movapd %xmm3,%xmm0
  addsd  0x0(%rbp),%xmm0
  movsd  %xmm0,0x0(%rbp)
  divsd  %xmm3,%xmm4
  andpd  D169(%rip),%xmm4
  addsd  %xmm1,%xmm4
  lea    0x8(%r12),%rsi
  mov    0x10(%rsp),%eax
  lea    0x10(%r12,%rax,8),%rdi
L165:
  mov    %rsi,%rdx
  mov    %rsi,%rcx
  mov    $0x0,%eax
  pxor   %xmm1,%xmm1
L352:
  movsd  0x0(%rbp,%rax,8),%xmm0
  mulsd  (%rcx),%xmm0
  addsd  %xmm0,%xmm1
  add    %r15,%rcx
  add    $0x1,%rax
  cmp    %eax,%ebx
  jg     L352
  mulsd  %xmm5,%xmm1
  mov    $0x0,%eax
L221:
  movapd %xmm1,%xmm2
  mulsd  0x0(%rbp,%rax,8),%xmm2
  movsd  (%rdx),%xmm0
  subsd  %xmm2,%xmm0
  movsd  %xmm0,(%rdx)
  add    %r15,%rdx
  add    $0x1,%rax
  cmp    %eax,%ebx
  jg     L221
  add    $0x8,%rsi
  cmp    %rsi,%rdi
  jne    L165
  mov    0x30(%rsp),%rax
  lea    (%rax,%r14,1),%rdx
  mov    $0x0,%ecx
  mov    0x4c(%rsp),%esi
  cmpl   $0x0,0x4c(%rsp)
  jle    L114
L255:
  mov    $0x0,%eax
  pxor   %xmm1,%xmm1
L38:
  movsd  0x0(%rbp,%rax,8),%xmm0
  mulsd  (%rdx,%rax,8),%xmm0
  addsd  %xmm0,%xmm1
  add    $0x1,%rax
  cmp    %eax,%ebx
  jg     L38
  mulsd  %xmm5,%xmm1
  mov    $0x0,%eax
L64:
  movapd %xmm1,%xmm2
  mulsd  0x0(%rbp,%rax,8),%xmm2
  movsd  (%rdx,%rax,8),%xmm0
  subsd  %xmm2,%xmm0
  movsd  %xmm0,(%rdx,%rax,8)
  add    $0x1,%rax
  cmp    %eax,%ebx
  jg     L64
  add    $0x1,%ecx
  add    %r15,%rdx
  cmp    %ecx,%esi
  jne    L255
  jmp    L114
L503:
  movsd  (%rsp),%xmm0
  call   <sqrt@plt>
  movapd %xmm0,%xmm3
  jmp    L124
L417:
  xorpd  D130(%rip),%xmm3
  jmp    L574
L153:
  cmp    $0x1,%ebx
  je     L201
L588:
  mov    0xc(%rsp),%eax
  sub    $0x1,%eax
  cmp    $0x1,%eax
  jg     L190
L383:
  cmp    $0x1,%eax
  je     L88
L674:
  add    0x18(%rsp),%r12
  subl   $0x1,0x10(%rsp)
  mov    0x8(%rsp),%edi
  sub    %edi,0x48(%rsp)
  add    $0x8,%r14
  sub    $0x1,%ebx
  je     L181
L517:
  mov    %ebx,0xc(%rsp)
  cmp    0x8(%rsp),%ebx
  je     L153
  cmp    $0x1,%ebx
  jle    L153
  mov    %r12,%rdx
  mov    $0x0,%eax
  pxor   %xmm6,%xmm6
  movsd  %xmm6,(%rsp)
L327:
  movsd  (%rdx),%xmm0
  movsd  %xmm0,0x0(%rbp,%rax,8)
  mulsd  %xmm0,%xmm0
  addsd  (%rsp),%xmm0
  movsd  %xmm0,(%rsp)
  add    %r15,%rdx
  add    $0x1,%rax
  cmp    %eax,%ebx
  jg     L327
  movapd %xmm0,%xmm7
  pxor   %xmm4,%xmm4
  movapd %xmm4,%xmm3
  comisd D117(%rip),%xmm0
  ja     L25
L114:
  movsd  %xmm4,(%r12)
  xorpd  D130(%rip),%xmm3
  mov    0x20(%rsp),%rax
  movsd  %xmm3,(%rax,%r14,1)
  jmp    L588
L201:
  movsd  (%r12),%xmm0
  mov    0x20(%rsp),%rax
  movsd  %xmm0,(%rax,%r14,1)
  mov    0xc(%rsp),%eax
  sub    $0x1,%eax
  jmp    L383
L190:
  mov    %r12,0x38(%rsp)
  lea    0x8(%r12),%rax
  mov    0x10(%rsp),%r13d
  lea    0x10(%r12,%r13,8),%rdx
  pxor   %xmm6,%xmm6
  movsd  %xmm6,(%rsp)
L562:
  movsd  (%rax),%xmm0
  mulsd  %xmm0,%xmm0
  addsd  (%rsp),%xmm0
  movsd  %xmm0,(%rsp)
  add    $0x8,%rax
  cmp    %rax,%rdx
  jne    L562
  movapd %xmm0,%xmm6
  pxor   %xmm4,%xmm4
  movapd %xmm4,%xmm3
  comisd D117(%rip),%xmm0
  ja     L526
L416:
  movsd  %xmm4,0x8(%r12)
  xorpd  D130(%rip),%xmm3
  mov    0x28(%rsp),%rax
  movsd  %xmm3,(%rax,%r14,1)
  jmp    L674
L526:
  pxor   %xmm0,%xmm0
  movapd %xmm6,%xmm7
  ucomisd %xmm6,%xmm0
  ja     L237
  sqrtsd %xmm7,%xmm7
  movapd %xmm7,%xmm3
L185:
  movsd  0x8(%r12),%xmm0
  pxor   %xmm1,%xmm1
  comisd %xmm0,%xmm1
  ja     L377
L265:
  movapd %xmm0,%xmm4
  divsd  %xmm3,%xmm4
  andpd  D169(%rip),%xmm4
  movsd  D149(%rip),%xmm5
  addsd  %xmm5,%xmm4
  movapd %xmm0,%xmm1
  mulsd  %xmm3,%xmm1
  addsd  (%rsp),%xmm1
  movapd %xmm5,%xmm6
  divsd  %xmm1,%xmm6
  addsd  %xmm3,%xmm0
  movsd  %xmm0,0x8(%r12)
  divsd  %xmm0,%xmm5
  mov    0x48(%rsp),%eax
  mov    %eax,%r8d
  mov    0x8(%rsp),%esi
  cmp    %eax,%esi
  jge    L63
  mov    0x38(%rsp),%rax
  lea    0x8(%rax,%r15,1),%rdi
L328:
  mov    %rdi,%rdx
  mov    $0x0,%eax
  pxor   %xmm1,%xmm1
L508:
  movsd  0x8(%r12,%rax,8),%xmm0
  mulsd  (%rdx,%rax,8),%xmm0
  addsd  %xmm0,%xmm1
  mov    %rax,%rcx
  add    $0x1,%rax
  cmp    %rcx,%r13
  jne    L508
  mulsd  %xmm6,%xmm1
  mov    $0x0,%eax
L401:
  movapd %xmm1,%xmm2
  mulsd  0x8(%r12,%rax,8),%xmm2
  movsd  (%rdx,%rax,8),%xmm0
  subsd  %xmm2,%xmm0
  movsd  %xmm0,(%rdx,%rax,8)
  mov    %rax,%rcx
  add    $0x1,%rax
  cmp    %r13,%rcx
  jne    L401
  add    0x8(%rsp),%esi
  add    %r15,%rdi
  cmp    %r8d,%esi
  jl     L328
L63:
  mov    0x38(%rsp),%rax
  add    $0x10,%rax
  mov    0xc(%rsp),%edi
  lea    -0x3(%rdi),%edx
  lea    0x18(%r12,%rdx,8),%rdx
L659:
  add    $0x8,%rax
  movapd %xmm5,%xmm0
  mulsd  -0x8(%rax),%xmm0
  movsd  %xmm0,-0x8(%rax)
  cmp    %rax,%rdx
  jne    L659
  jmp    L416
L237:
  movsd  (%rsp),%xmm0
  call   <sqrt@plt>
  movapd %xmm0,%xmm3
  jmp    L185
L377:
  xorpd  D130(%rip),%xmm3
  jmp    L265
L88:
  movsd  0x8(%r12),%xmm0
  mov    0x28(%rsp),%rax
  movsd  %xmm0,(%rax,%r14,1)
  sub    $0x1,%ebx
  add    0x18(%rsp),%r12
  subl   $0x1,0x10(%rsp)
  mov    0x8(%rsp),%edi
  sub    %edi,0x48(%rsp)
  add    $0x8,%r14
  jmp    L517
L181:
  mov    0x58(%rsp),%r14
  mov    %edi,%r12d
  mov    %edi,%esi
  mov    0x40(%rsp),%r13
  mov    %r13,%rdi
  mov    $0x0,%eax
  call   <atovm@plt>
  mov    %r12d,%r9d
  mov    %r13,%r8
  mov    0x4c(%rsp),%ecx
  mov    0x30(%rsp),%rdx
  mov    0x28(%rsp),%rsi
  mov    0x20(%rsp),%rdi
  mov    $0x0,%eax
  call   <qrbdu1@plt>
  mov    %r13,%rcx
  mov    0x20(%rsp),%rax
  lea    0x8(%rax,%r14,8),%rsi
  pxor   %xmm2,%xmm2
  movq   D130(%rip),%xmm1
  mov    0x50(%rsp),%rdi
  mov    %r12d,%r8d
  jmp    L617
L228:
  add    $0x8,%rdi
  add    $0x8,%rcx
  cmp    %rsi,%rdi
  je     L394
L617:
  movsd  (%rdi),%xmm0
  comisd %xmm0,%xmm2
  jbe    L228
  xorpd  D130(%rip),%xmm0
  movsd  %xmm0,(%rdi)
  mov    %rcx,%rax
  mov    %ebx,%edx
L422:
  movsd  (%rax),%xmm0
  xorpd  %xmm1,%xmm0
  movsd  %xmm0,(%rax)
  add    $0x1,%edx
  add    %r15,%rax
  cmp    %edx,%r8d
  jne    L422
  jmp    L228
L601:
  mov    $0xffffffff,%eax
  jmp    L504
L479:
  mov    0x8(%rsp),%ebx
  mov    %ebx,%edx
  mov    0x4c(%rsp),%esi
  mov    0x30(%rsp),%rdi
  mov    $0x0,%eax
  call   <atou1@plt>
  lea    0x8(%r15),%rax
  mov    %rax,0x18(%rsp)
  lea    -0x2(%rbx),%edi
  mov    %edi,0x10(%rsp)
  mov    %ebx,%edi
  imul   %ebx,%edi
  mov    %edi,0x48(%rsp)
  mov    0x40(%rsp),%r12
  mov    $0x0,%eax
  mov    %r14,0x58(%rsp)
  mov    %rax,%r14
  jmp    L517
L122:
  mov    0x8(%rsp),%ebx
  mov    %ebx,%edx
  mov    0x4c(%rsp),%r13d
  mov    %r13d,%esi
  mov    0x30(%rsp),%r15
  mov    %r15,%rdi
  mov    $0x0,%eax
  call   <atou1@plt>
  mov    %ebx,%esi
  mov    0x40(%rsp),%r14
  mov    %r14,%rdi
  mov    $0x0,%eax
  call   <atovm@plt>
  mov    %ebx,%r9d
  mov    %r14,%r8
  mov    %r13d,%ecx
  mov    %r15,%rdx
  mov    0x28(%rsp),%rsi
  mov    0x20(%rsp),%rdi
  mov    $0x0,%eax
  call   <qrbdu1@plt>
L394:
  mov    %rbp,%rdi
  call   <free@plt>
  mov    $0x0,%eax
L504:
  add    $0x68,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
```

tool_calls: name: disassemble_data
arguments: data_label: D117
datatype: f64[2]
name: disassemble_data
arguments: data_label: D130
datatype: byte[16]
name: disassemble_data
arguments: data_label: D149
datatype: f64
name: disassemble_data
arguments: data_label: D169
datatype: qword[2]

tool: {"D117": [0.0,null]}

tool: {"D130": [0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x80,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00]}

tool: D149: 1

tool: {"D169": [0x7fffffffffffffff,0x0000000000000000]}

assistant: ```c
int sv2u1v(double *d, double *a, int m, double *v, int n) {
  double *p, *p1, *q, *pp, *w, *e;
  double s, t, h, r, sv;
  int i, j, k, mm, nm, ms;
  if (m < n)
    return -1;
  w = (double *)calloc(m + n, sizeof(double));
  e = w + m;
  for (i = 0, mm = m, p = a; i < n; ++i, --mm, p += n + 1) {
    if (mm > 1) {
      sv = h = 0.;
      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;
        t = 1. / (w[0] += h);
        sv = 1. + fabs(*p / 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++];
        }
        for (j = 1, q = p; j < mm;)
          *(q += n) = w[j++] * t;
      }
      *p = sv;
      d[i] = -h;
    }
    if (mm == 1)
      d[i] = *p;
  }
  for (i = 0, q = v, p = a; i < n; ++i) {
    for (j = 0; j < n; ++j, ++q, ++p) {
      if (j < i)
        *q = 0.;
      else if (j == i)
        *q = d[i];
      else
        *q = *p;
    }
  }
  atou1(a, m, n);
  for (i = 0, mm = n, nm = n - 1, p = v; i < n; ++i, --mm, --nm, p += n + 1) {
    if (i && mm > 1) {
      sv = h = 0.;
      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;
        t = 1. / (w[0] += h);
        sv = 1. + fabs(*p / 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;
          for (j = 0, q = p + k, r *= s; j < mm; q += n)
            *q -= r * w[j++];
        }
        for (k = 0, p1 = a + i; k < m; ++k, p1 += n) {
          for (j = 0, q = p1, r = 0.; j < mm;)
            r += w[j++] * *q++;
          for (j = 0, q = p1, r *= s; j < mm;)
            *q++ -= r * w[j++];
        }
      }
      *p = sv;
      d[i] = -h;
    }
    if (mm == 1)
      d[i] = *p;
    p1 = p + 1;
    if (nm > 1) {
      sv = h = 0.;
      for (j = 0, q = p1, s = 0.; j < nm; ++j, ++q)
        s += *q * *q;
      if (s > 0.) {
        h = sqrt(s);
        if (*p1 < 0.)
          h = -h;
        sv = 1. + fabs(*p1 / h);
        s += *p1 * h;
        s = 1. / s;
        t = 1. / (*p1 += h);
        for (k = n, ms = n * (n - i); k < ms; k += n) {
          for (j = 0, q = p1, pp = p1 + k, r = 0.; j < nm; ++j)
            r += *q++ * *pp++;
          for (j = 0, q = p1, pp = p1 + k, r *= s; j < nm; ++j)
            *pp++ -= r * *q++;
        }
        for (j = 1, q = p1 + 1; j < nm; ++j)
          *q++ *= t;
      }
      *p1 = sv;
      e[i] = -h;
    }
    if (nm == 1)
      e[i] = *p1;
  }
  atovm(v, n);
  qrbdu1(d, e, a, m, v, n);
  for (i = 0; i < n; ++i) {
    if (d[i] < 0.) {
      d[i] = -d[i];
      for (j = 0, p = v + i; j < n; ++j, p += n)
        *p = -*p;
    }
  }
  free(w);
  return 0;
}
```