user: Please show me the C implementation that matches the assembly code listed below:

```asm
<svduv>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0xa0,%rsp
  mov    %rdi,-0x78(%rbp)
  mov    %rsi,-0x80(%rbp)
  mov    %rdx,-0x88(%rbp)
  mov    %ecx,-0x8c(%rbp)
  mov    %r8,-0x98(%rbp)
  mov    %r9d,-0x90(%rbp)
  mov    -0x8c(%rbp),%eax
  cmp    -0x90(%rbp),%eax
  jge    L86
  mov    $0xffffffff,%eax
  jmp    L14
L86:
  mov    -0x8c(%rbp),%edx
  mov    -0x90(%rbp),%eax
  add    %edx,%eax
  mov    $0x8,%esi
  mov    %eax,%edi
  call   <calloc@plt>
  mov    %rax,-0x20(%rbp)
  mov    -0x8c(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x20(%rbp),%rax
  add    %rdx,%rax
  mov    %rax,-0x18(%rbp)
  movl   $0x0,-0x70(%rbp)
  mov    -0x8c(%rbp),%eax
  mov    %eax,-0x64(%rbp)
  mov    -0x90(%rbp),%eax
  sub    $0x1,%eax
  mov    %eax,-0x60(%rbp)
  mov    -0x80(%rbp),%rax
  mov    %rax,-0x58(%rbp)
  jmp    L272
L161:
  cmpl   $0x1,-0x64(%rbp)
  jle    L328
  pxor   %xmm0,%xmm0
  movsd  %xmm0,-0x38(%rbp)
  movsd  -0x38(%rbp),%xmm0
  movsd  %xmm0,-0x28(%rbp)
  movl   $0x0,-0x6c(%rbp)
  mov    -0x58(%rbp),%rax
  mov    %rax,-0x50(%rbp)
  pxor   %xmm0,%xmm0
  movsd  %xmm0,-0x40(%rbp)
  jmp    L56
L35:
  mov    -0x6c(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x20(%rbp),%rax
  add    %rax,%rdx
  mov    -0x50(%rbp),%rax
  movsd  (%rax),%xmm0
  movsd  %xmm0,(%rdx)
  mov    -0x50(%rbp),%rax
  movsd  (%rax),%xmm1
  mov    -0x50(%rbp),%rax
  movsd  (%rax),%xmm0
  mulsd  %xmm1,%xmm0
  movsd  -0x40(%rbp),%xmm1
  addsd  %xmm1,%xmm0
  movsd  %xmm0,-0x40(%rbp)
  addl   $0x1,-0x6c(%rbp)
  mov    -0x90(%rbp),%eax
  cltq
  shl    $0x3,%rax
  add    %rax,-0x50(%rbp)
L56:
  mov    -0x6c(%rbp),%eax
  cmp    -0x64(%rbp),%eax
  jl     L35
  movsd  -0x40(%rbp),%xmm0
  pxor   %xmm1,%xmm1
  comisd %xmm1,%xmm0
  jbe    L46
  mov    -0x40(%rbp),%rax
  movq   %rax,%xmm0
  call   <sqrt@plt>
  movq   %xmm0,%rax
  mov    %rax,-0x38(%rbp)
  mov    -0x58(%rbp),%rax
  movsd  (%rax),%xmm1
  pxor   %xmm0,%xmm0
  comisd %xmm1,%xmm0
  jbe    L319
  movsd  -0x38(%rbp),%xmm0
  movq   D60(%rip),%xmm1
  xorpd  %xmm1,%xmm0
  movsd  %xmm0,-0x38(%rbp)
L319:
  mov    -0x58(%rbp),%rax
  movsd  (%rax),%xmm0
  mulsd  -0x38(%rbp),%xmm0
  movsd  -0x40(%rbp),%xmm1
  addsd  %xmm1,%xmm0
  movsd  %xmm0,-0x40(%rbp)
  movsd  D25(%rip),%xmm0
  divsd  -0x40(%rbp),%xmm0
  movsd  %xmm0,-0x40(%rbp)
  mov    -0x20(%rbp),%rax
  movsd  (%rax),%xmm0
  addsd  -0x38(%rbp),%xmm0
  mov    -0x20(%rbp),%rax
  movsd  %xmm0,(%rax)
  mov    -0x20(%rbp),%rax
  movsd  (%rax),%xmm1
  movsd  D25(%rip),%xmm0
  divsd  %xmm1,%xmm0
  movsd  %xmm0,-0x10(%rbp)
  mov    -0x58(%rbp),%rax
  movsd  (%rax),%xmm0
  divsd  -0x38(%rbp),%xmm0
  movq   %xmm0,%rax
  movq   %rax,%xmm0
  call   <fabs@plt>
  pxor   %xmm1,%xmm1
  cvtsi2sd %eax,%xmm1
  movsd  D25(%rip),%xmm0
  addsd  %xmm1,%xmm0
  movsd  %xmm0,-0x28(%rbp)
  movl   $0x1,-0x68(%rbp)
  mov    -0x90(%rbp),%eax
  sub    -0x70(%rbp),%eax
  mov    %eax,-0x5c(%rbp)
  jmp    L153
L129:
  movl   $0x0,-0x6c(%rbp)
  mov    -0x68(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x58(%rbp),%rax
  add    %rdx,%rax
  mov    %rax,-0x50(%rbp)
  pxor   %xmm0,%xmm0
  movsd  %xmm0,-0x30(%rbp)
  jmp    L41
L239:
  mov    -0x6c(%rbp),%eax
  lea    0x1(%rax),%edx
  mov    %edx,-0x6c(%rbp)
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x20(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm1
  mov    -0x50(%rbp),%rax
  movsd  (%rax),%xmm0
  mulsd  %xmm1,%xmm0
  movsd  -0x30(%rbp),%xmm1
  addsd  %xmm1,%xmm0
  movsd  %xmm0,-0x30(%rbp)
  mov    -0x90(%rbp),%eax
  cltq
  shl    $0x3,%rax
  add    %rax,-0x50(%rbp)
L41:
  mov    -0x6c(%rbp),%eax
  cmp    -0x64(%rbp),%eax
  jl     L239
  movsd  -0x30(%rbp),%xmm0
  mulsd  -0x40(%rbp),%xmm0
  movsd  %xmm0,-0x30(%rbp)
  movl   $0x0,-0x6c(%rbp)
  mov    -0x68(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x58(%rbp),%rax
  add    %rdx,%rax
  mov    %rax,-0x50(%rbp)
  jmp    L201
L192:
  mov    -0x6c(%rbp),%eax
  lea    0x1(%rax),%edx
  mov    %edx,-0x6c(%rbp)
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x20(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm0
  movapd %xmm0,%xmm1
  mulsd  -0x30(%rbp),%xmm1
  mov    -0x50(%rbp),%rax
  movsd  (%rax),%xmm0
  subsd  %xmm1,%xmm0
  mov    -0x50(%rbp),%rax
  movsd  %xmm0,(%rax)
  mov    -0x90(%rbp),%eax
  cltq
  shl    $0x3,%rax
  add    %rax,-0x50(%rbp)
L201:
  mov    -0x6c(%rbp),%eax
  cmp    -0x64(%rbp),%eax
  jl     L192
  addl   $0x1,-0x68(%rbp)
L153:
  mov    -0x68(%rbp),%eax
  cmp    -0x5c(%rbp),%eax
  jl     L129
  movl   $0x1,-0x6c(%rbp)
  mov    -0x58(%rbp),%rax
  mov    %rax,-0x50(%rbp)
  jmp    L168
L230:
  mov    -0x6c(%rbp),%eax
  lea    0x1(%rax),%edx
  mov    %edx,-0x6c(%rbp)
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x20(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm0
  mov    -0x90(%rbp),%eax
  cltq
  shl    $0x3,%rax
  add    %rax,-0x50(%rbp)
  mulsd  -0x10(%rbp),%xmm0
  mov    -0x50(%rbp),%rax
  movsd  %xmm0,(%rax)
L168:
  mov    -0x6c(%rbp),%eax
  cmp    -0x64(%rbp),%eax
  jl     L230
L46:
  mov    -0x58(%rbp),%rax
  movsd  -0x28(%rbp),%xmm0
  movsd  %xmm0,(%rax)
  mov    -0x70(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x78(%rbp),%rax
  add    %rdx,%rax
  movsd  -0x38(%rbp),%xmm0
  movq   D60(%rip),%xmm1
  xorpd  %xmm1,%xmm0
  movsd  %xmm0,(%rax)
L328:
  cmpl   $0x1,-0x64(%rbp)
  jne    L84
  mov    -0x70(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x78(%rbp),%rax
  add    %rax,%rdx
  mov    -0x58(%rbp),%rax
  movsd  (%rax),%xmm0
  movsd  %xmm0,(%rdx)
L84:
  mov    -0x58(%rbp),%rax
  add    $0x8,%rax
  mov    %rax,-0x8(%rbp)
  pxor   %xmm0,%xmm0
  movsd  %xmm0,-0x38(%rbp)
  movsd  -0x38(%rbp),%xmm0
  movsd  %xmm0,-0x28(%rbp)
  cmpl   $0x1,-0x60(%rbp)
  jle    L249
  movl   $0x0,-0x6c(%rbp)
  mov    -0x8(%rbp),%rax
  mov    %rax,-0x50(%rbp)
  pxor   %xmm0,%xmm0
  movsd  %xmm0,-0x40(%rbp)
  jmp    L355
L347:
  mov    -0x50(%rbp),%rax
  movsd  (%rax),%xmm1
  mov    -0x50(%rbp),%rax
  movsd  (%rax),%xmm0
  mulsd  %xmm1,%xmm0
  movsd  -0x40(%rbp),%xmm1
  addsd  %xmm1,%xmm0
  movsd  %xmm0,-0x40(%rbp)
  addl   $0x1,-0x6c(%rbp)
  addq   $0x8,-0x50(%rbp)
L355:
  mov    -0x6c(%rbp),%eax
  cmp    -0x60(%rbp),%eax
  jl     L347
  movsd  -0x40(%rbp),%xmm0
  pxor   %xmm1,%xmm1
  comisd %xmm1,%xmm0
  jbe    L209
  mov    -0x40(%rbp),%rax
  movq   %rax,%xmm0
  call   <sqrt@plt>
  movq   %xmm0,%rax
  mov    %rax,-0x38(%rbp)
  mov    -0x8(%rbp),%rax
  movsd  (%rax),%xmm1
  pxor   %xmm0,%xmm0
  comisd %xmm1,%xmm0
  jbe    L305
  movsd  -0x38(%rbp),%xmm0
  movq   D60(%rip),%xmm1
  xorpd  %xmm1,%xmm0
  movsd  %xmm0,-0x38(%rbp)
L305:
  mov    -0x8(%rbp),%rax
  movsd  (%rax),%xmm0
  divsd  -0x38(%rbp),%xmm0
  movq   %xmm0,%rax
  movq   %rax,%xmm0
  call   <fabs@plt>
  pxor   %xmm1,%xmm1
  cvtsi2sd %eax,%xmm1
  movsd  D25(%rip),%xmm0
  addsd  %xmm1,%xmm0
  movsd  %xmm0,-0x28(%rbp)
  mov    -0x8(%rbp),%rax
  movsd  (%rax),%xmm0
  mulsd  -0x38(%rbp),%xmm0
  movsd  -0x40(%rbp),%xmm1
  addsd  %xmm1,%xmm0
  movsd  %xmm0,-0x40(%rbp)
  movsd  D25(%rip),%xmm0
  divsd  -0x40(%rbp),%xmm0
  movsd  %xmm0,-0x40(%rbp)
  mov    -0x8(%rbp),%rax
  movsd  (%rax),%xmm0
  addsd  -0x38(%rbp),%xmm0
  mov    -0x8(%rbp),%rax
  movsd  %xmm0,(%rax)
  mov    -0x8(%rbp),%rax
  movsd  (%rax),%xmm1
  movsd  D25(%rip),%xmm0
  divsd  %xmm1,%xmm0
  movsd  %xmm0,-0x10(%rbp)
  mov    -0x90(%rbp),%eax
  mov    %eax,-0x68(%rbp)
  mov    -0x8c(%rbp),%eax
  sub    -0x70(%rbp),%eax
  mov    -0x90(%rbp),%edx
  imul   %edx,%eax
  mov    %eax,-0x5c(%rbp)
  jmp    L89
L369:
  movl   $0x0,-0x6c(%rbp)
  mov    -0x8(%rbp),%rax
  mov    %rax,-0x50(%rbp)
  mov    -0x68(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x8(%rbp),%rax
  add    %rdx,%rax
  mov    %rax,-0x48(%rbp)
  pxor   %xmm0,%xmm0
  movsd  %xmm0,-0x30(%rbp)
  jmp    L297
L182:
  mov    -0x50(%rbp),%rax
  lea    0x8(%rax),%rdx
  mov    %rdx,-0x50(%rbp)
  movsd  (%rax),%xmm1
  mov    -0x48(%rbp),%rax
  lea    0x8(%rax),%rdx
  mov    %rdx,-0x48(%rbp)
  movsd  (%rax),%xmm0
  mulsd  %xmm1,%xmm0
  movsd  -0x30(%rbp),%xmm1
  addsd  %xmm1,%xmm0
  movsd  %xmm0,-0x30(%rbp)
  addl   $0x1,-0x6c(%rbp)
L297:
  mov    -0x6c(%rbp),%eax
  cmp    -0x60(%rbp),%eax
  jl     L182
  movsd  -0x30(%rbp),%xmm0
  mulsd  -0x40(%rbp),%xmm0
  movsd  %xmm0,-0x30(%rbp)
  movl   $0x0,-0x6c(%rbp)
  mov    -0x8(%rbp),%rax
  mov    %rax,-0x50(%rbp)
  mov    -0x68(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x8(%rbp),%rax
  add    %rdx,%rax
  mov    %rax,-0x48(%rbp)
  jmp    L346
L71:
  mov    -0x50(%rbp),%rax
  lea    0x8(%rax),%rdx
  mov    %rdx,-0x50(%rbp)
  movsd  (%rax),%xmm0
  movapd %xmm0,%xmm1
  mulsd  -0x30(%rbp),%xmm1
  mov    -0x48(%rbp),%rax
  lea    0x8(%rax),%rdx
  mov    %rdx,-0x48(%rbp)
  movsd  (%rax),%xmm0
  subsd  %xmm1,%xmm0
  movsd  %xmm0,(%rax)
  addl   $0x1,-0x6c(%rbp)
L346:
  mov    -0x6c(%rbp),%eax
  cmp    -0x60(%rbp),%eax
  jl     L71
  mov    -0x90(%rbp),%eax
  add    %eax,-0x68(%rbp)
L89:
  mov    -0x68(%rbp),%eax
  cmp    -0x5c(%rbp),%eax
  jl     L369
  movl   $0x1,-0x6c(%rbp)
  mov    -0x8(%rbp),%rax
  add    $0x8,%rax
  mov    %rax,-0x50(%rbp)
  jmp    L28
L196:
  mov    -0x50(%rbp),%rax
  lea    0x8(%rax),%rdx
  mov    %rdx,-0x50(%rbp)
  movsd  (%rax),%xmm0
  mulsd  -0x10(%rbp),%xmm0
  movsd  %xmm0,(%rax)
  addl   $0x1,-0x6c(%rbp)
L28:
  mov    -0x6c(%rbp),%eax
  cmp    -0x60(%rbp),%eax
  jl     L196
L209:
  mov    -0x8(%rbp),%rax
  movsd  -0x28(%rbp),%xmm0
  movsd  %xmm0,(%rax)
  mov    -0x70(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x18(%rbp),%rax
  add    %rdx,%rax
  movsd  -0x38(%rbp),%xmm0
  movq   D60(%rip),%xmm1
  xorpd  %xmm1,%xmm0
  movsd  %xmm0,(%rax)
L249:
  cmpl   $0x1,-0x60(%rbp)
  jne    L299
  mov    -0x70(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x18(%rbp),%rax
  add    %rax,%rdx
  mov    -0x8(%rbp),%rax
  movsd  (%rax),%xmm0
  movsd  %xmm0,(%rdx)
L299:
  addl   $0x1,-0x70(%rbp)
  subl   $0x1,-0x64(%rbp)
  subl   $0x1,-0x60(%rbp)
  mov    -0x90(%rbp),%eax
  cltq
  add    $0x1,%rax
  shl    $0x3,%rax
  add    %rax,-0x58(%rbp)
L272:
  mov    -0x70(%rbp),%eax
  cmp    -0x90(%rbp),%eax
  jl     L161
  mov    -0x90(%rbp),%edx
  mov    -0x98(%rbp),%rcx
  mov    -0x80(%rbp),%rax
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <ldvmat@plt>
  mov    -0x90(%rbp),%ecx
  mov    -0x8c(%rbp),%edx
  mov    -0x88(%rbp),%rsi
  mov    -0x80(%rbp),%rax
  mov    %rax,%rdi
  call   <ldumat@plt>
  mov    -0x90(%rbp),%r8d
  mov    -0x98(%rbp),%rdi
  mov    -0x8c(%rbp),%ecx
  mov    -0x88(%rbp),%rdx
  mov    -0x18(%rbp),%rsi
  mov    -0x78(%rbp),%rax
  mov    %r8d,%r9d
  mov    %rdi,%r8
  mov    %rax,%rdi
  call   <qrbdv@plt>
  movl   $0x0,-0x70(%rbp)
  jmp    L323
L21:
  mov    -0x70(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x78(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm1
  pxor   %xmm0,%xmm0
  comisd %xmm1,%xmm0
  jbe    L211
  mov    -0x70(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x78(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm0
  mov    -0x70(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x78(%rbp),%rax
  add    %rdx,%rax
  movq   D60(%rip),%xmm1
  xorpd  %xmm1,%xmm0
  movsd  %xmm0,(%rax)
  movl   $0x0,-0x6c(%rbp)
  mov    -0x70(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x98(%rbp),%rax
  add    %rdx,%rax
  mov    %rax,-0x58(%rbp)
  jmp    L332
L242:
  mov    -0x58(%rbp),%rax
  movsd  (%rax),%xmm0
  movq   D60(%rip),%xmm1
  xorpd  %xmm1,%xmm0
  mov    -0x58(%rbp),%rax
  movsd  %xmm0,(%rax)
  addl   $0x1,-0x6c(%rbp)
  mov    -0x90(%rbp),%eax
  cltq
  shl    $0x3,%rax
  add    %rax,-0x58(%rbp)
L332:
  mov    -0x6c(%rbp),%eax
  cmp    -0x90(%rbp),%eax
  jl     L242
L211:
  addl   $0x1,-0x70(%rbp)
L323:
  mov    -0x70(%rbp),%eax
  cmp    -0x90(%rbp),%eax
  jl     L21
  mov    -0x20(%rbp),%rax
  mov    %rax,%rdi
  call   <free@plt>
  mov    $0x0,%eax
L14:
  leave
  ret
```

tool_calls: name: retrieve_data
arguments: tag: D60
type_guessed: f32[2]
name: retrieve_data
arguments: tag: D25
type_guessed: f64

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

tool: D25: 1

assistant: ```c
int svduv(double *d, double *a, double *u, int m, double *v, int n) {
  double *p, *p1, *q, *pp, *w, *e;
  double s, h, r, t, 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, nm = n - 1, p = a; i < n; ++i, --mm, --nm, 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 *= s;
          for (j = 0, q = p + k; j < mm; q += n)
            *q -= r * w[j++];
        }
        for (j = 1, q = p; j < mm;)
          *(q += n) = t * w[j++];
      }
      *p = sv;
      d[i] = -h;
    }
    if (mm == 1)
      d[i] = *p;
    p1 = p + 1;
    sv = h = 0.;
    if (nm > 1) {
      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 * (m - i); k < ms; k += n) {
          for (j = 0, q = p1, pp = p1 + k, r = 0.; j < nm; ++j)
            r += *q++ * *pp++;
          r *= s;
          for (j = 0, q = p1, pp = p1 + k; 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;
  }
  ldvmat(a, v, n);
  ldumat(a, u, m, n);
  qrbdv(d, e, u, 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;
}
```