user: What would the C source look like for the assembly code provided here:

```asm
<d1updt>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x48,%rsp
  mov    %edi,%r15d
  mov    %esi,%edi
  mov    %esi,0x2c(%rsp)
  mov    %rdx,%rbx
  mov    %rdx,0x18(%rsp)
  mov    %rcx,0x38(%rsp)
  mov    %r8,0x8(%rsp)
  mov    %r9,%rbp
  lea    -0x1(%rsi),%esi
  mov    %esi,0x28(%rsp)
  lea    (%r15,%r15,1),%eax
  sub    %edi,%eax
  add    $0x1,%eax
  imul   %edi,%eax
  mov    %eax,%ecx
  shr    $0x1f,%ecx
  mov    %ecx,%edx
  add    %eax,%edx
  sar    %edx
  mov    %r15d,%eax
  sub    %edi,%eax
  sub    %eax,%edx
  lea    -0x1(%rdx),%r13d
  cmp    %r15d,%esi
  jge    L358
  movslq %esi,%rax
  movslq %edi,%rcx
  movslq %edx,%rdx
  sub    %rcx,%rdx
  lea    (%rbx,%rdx,8),%rdx
L8:
  movsd  (%rdx,%rax,8),%xmm0
  movsd  %xmm0,0x0(%rbp,%rax,8)
  add    $0x1,%rax
  cmp    %eax,%r15d
  jg     L8
L358:
  mov    0x28(%rsp),%eax
  test   %eax,%eax
  jle    L36
  cltq
  mov    0x8(%rsp),%rdi
  lea    (%rdi,%rax,8),%rax
  mov    %rax,0x20(%rsp)
  mov    0x2c(%rsp),%esi
  lea    -0x2(%rsi),%eax
  mov    %r15d,%ebx
  sub    %eax,%ebx
  movslq %esi,%rax
  lea    -0x10(,%rax,8),%r12
  mov    %rbp,%rax
  mov    %r13d,%ebp
  mov    %rax,%r13
  jmp    L74
L326:
  xorpd  D9(%rip),%xmm0
  jmp    L363
L300:
  xorpd  D9(%rip),%xmm1
  jmp    L403
L180:
  call   <sqrt@plt>
  jmp    L381
L362:
  xorpd  D9(%rip),%xmm0
  jmp    L172
L118:
  movsd  (%rsp),%xmm0
  divsd  0x10(%rsp),%xmm0
  movsd  %xmm0,0x30(%rsp)
  mulsd  %xmm0,%xmm0
  movsd  D91(%rip),%xmm1
  mulsd  %xmm1,%xmm0
  addsd  %xmm1,%xmm0
  pxor   %xmm1,%xmm1
  ucomisd %xmm0,%xmm1
  ja     L194
  sqrtsd %xmm0,%xmm0
L138:
  movsd  D149(%rip),%xmm3
  divsd  %xmm0,%xmm3
  movsd  0x30(%rsp),%xmm4
  mulsd  %xmm3,%xmm4
  movapd %xmm4,%xmm2
L182:
  movsd  (%rsp),%xmm0
  mulsd  %xmm4,%xmm0
  movsd  0x10(%rsp),%xmm1
  mulsd  %xmm3,%xmm1
  addsd  %xmm1,%xmm0
  mov    0x20(%rsp),%rax
  movsd  %xmm0,(%rax)
  mov    0x8(%rsp),%rax
  movsd  %xmm2,(%rax,%r12,1)
  cmp    %r14d,%r15d
  jle    L337
  movslq %ebp,%rsi
  mov    0x18(%rsp),%rdi
  lea    (%rdi,%rsi,8),%rax
  movslq %r14d,%r14
  lea    0x0(%r13,%r14,8),%rdx
  lea    -0x1(%rbx),%ecx
  add    %rsi,%rcx
  lea    0x8(%rdi,%rcx,8),%rcx
L210:
  movsd  (%rax),%xmm0
  movsd  (%rdx),%xmm1
  movapd %xmm0,%xmm2
  mulsd  %xmm4,%xmm2
  movapd %xmm1,%xmm5
  mulsd  %xmm3,%xmm5
  addsd  %xmm5,%xmm2
  movsd  %xmm2,(%rdx)
  mulsd  %xmm3,%xmm0
  mulsd  %xmm4,%xmm1
  subsd  %xmm1,%xmm0
  movsd  %xmm0,(%rax)
  add    $0x8,%rax
  add    $0x8,%rdx
  cmp    %rcx,%rax
  jne    L210
L337:
  lea    0x1(%rbx),%eax
  sub    $0x8,%r12
  cmp    %r15d,%ebx
  je     L242
  mov    %eax,%ebx
L74:
  mov    %r15d,%r14d
  sub    %ebx,%r14d
  sub    %ebx,%ebp
  movq   $0x0,0x0(%r13,%r12,1)
  mov    0x8(%rsp),%rax
  movsd  (%rax,%r12,1),%xmm7
  movsd  %xmm7,(%rsp)
  pxor   %xmm6,%xmm6
  ucomisd %xmm6,%xmm7
  jp     L72
  je     L337
L72:
  mov    0x20(%rsp),%rax
  movsd  (%rax),%xmm6
  movsd  %xmm6,0x10(%rsp)
  movapd %xmm6,%xmm0
  comisd D259(%rip),%xmm6
  jb     L326
L363:
  movsd  (%rsp),%xmm1
  comisd D259(%rip),%xmm1
  jb     L300
L403:
  comisd %xmm0,%xmm1
  jbe    L118
  movsd  0x10(%rsp),%xmm0
  divsd  (%rsp),%xmm0
  movsd  %xmm0,0x30(%rsp)
  mulsd  %xmm0,%xmm0
  movsd  D91(%rip),%xmm1
  mulsd  %xmm1,%xmm0
  addsd  %xmm1,%xmm0
  pxor   %xmm1,%xmm1
  ucomisd %xmm0,%xmm1
  ja     L180
  sqrtsd %xmm0,%xmm0
L381:
  movsd  D149(%rip),%xmm4
  divsd  %xmm0,%xmm4
  movsd  0x30(%rsp),%xmm3
  mulsd  %xmm4,%xmm3
  movapd %xmm3,%xmm0
  comisd D259(%rip),%xmm3
  jb     L362
L172:
  mulsd  D247(%rip),%xmm0
  movsd  D147(%rip),%xmm2
  comisd D147(%rip),%xmm0
  jbe    L182
  movsd  D147(%rip),%xmm2
  divsd  %xmm3,%xmm2
  jmp    L182
L194:
  call   <sqrt@plt>
  jmp    L138
L67:
  xorpd  D9(%rip),%xmm0
  jmp    L261
L177:
  xorpd  D9(%rip),%xmm1
  jmp    L22
L320:
  call   <sqrt@plt>
  jmp    L457
L465:
  xorpd  D9(%rip),%xmm0
  jmp    L207
L149:
  divsd  %xmm3,%xmm5
  movsd  %xmm5,0x10(%rsp)
  movapd %xmm5,%xmm0
  mulsd  %xmm5,%xmm0
  movsd  D91(%rip),%xmm1
  mulsd  %xmm1,%xmm0
  addsd  %xmm1,%xmm0
  pxor   %xmm1,%xmm1
  ucomisd %xmm0,%xmm1
  ja     L332
  sqrtsd %xmm0,%xmm0
L257:
  movsd  D149(%rip),%xmm3
  divsd  %xmm0,%xmm3
  movsd  0x10(%rsp),%xmm5
  mulsd  %xmm3,%xmm5
  movapd %xmm5,%xmm7
L246:
  cmp    %r12d,%r15d
  jle    L436
  lea    0x0(%rbp,%r12,8),%rax
  lea    -0x1(%r15),%edx
  sub    (%rsp),%edx
  add    0x8(%rsp),%rdx
  mov    0x18(%rsp),%rsi
  lea    0x8(%rsi,%rdx,8),%rdx
  movapd %xmm5,%xmm6
  xorpd  D9(%rip),%xmm6
L11:
  movsd  (%rbx),%xmm0
  movsd  (%rax),%xmm1
  movapd %xmm6,%xmm2
  mulsd  %xmm0,%xmm2
  movapd %xmm1,%xmm4
  mulsd  %xmm3,%xmm4
  addsd  %xmm4,%xmm2
  movsd  %xmm2,(%rax)
  mulsd  %xmm3,%xmm0
  mulsd  %xmm5,%xmm1
  addsd  %xmm1,%xmm0
  movsd  %xmm0,(%rbx)
  add    $0x8,%rbx
  add    $0x8,%rax
  cmp    %rdx,%rbx
  jne    L11
L436:
  movsd  %xmm7,0x0(%rbp,%r12,8)
L423:
  mov    %r15d,%eax
  sub    (%rsp),%eax
  add    %eax,%r13d
  lea    0x1(%r12),%rax
  cmp    %r14,%r12
  je     L330
  mov    %rax,%r12
L439:
  mov    %r12d,(%rsp)
  movsd  0x0(%rbp,%r12,8),%xmm5
  ucomisd D259(%rip),%xmm5
  jp     L409
  je     L423
L409:
  movslq %r13d,%rax
  mov    %rax,0x8(%rsp)
  mov    0x18(%rsp),%rsi
  lea    (%rsi,%rax,8),%rbx
  movsd  (%rbx),%xmm3
  movapd %xmm3,%xmm0
  comisd D259(%rip),%xmm3
  jb     L67
L261:
  movapd %xmm5,%xmm1
  comisd D259(%rip),%xmm5
  jb     L177
L22:
  comisd %xmm0,%xmm1
  jbe    L149
  divsd  %xmm5,%xmm3
  movsd  %xmm3,0x10(%rsp)
  movapd %xmm3,%xmm0
  mulsd  %xmm3,%xmm0
  movsd  D91(%rip),%xmm1
  mulsd  %xmm1,%xmm0
  addsd  %xmm1,%xmm0
  pxor   %xmm1,%xmm1
  ucomisd %xmm0,%xmm1
  ja     L320
  sqrtsd %xmm0,%xmm0
L457:
  movsd  D149(%rip),%xmm5
  divsd  %xmm0,%xmm5
  movsd  0x10(%rsp),%xmm3
  mulsd  %xmm5,%xmm3
  movapd %xmm3,%xmm0
  comisd D259(%rip),%xmm3
  jb     L465
L207:
  mulsd  D247(%rip),%xmm0
  movsd  D147(%rip),%xmm7
  comisd D147(%rip),%xmm0
  jbe    L246
  movsd  D147(%rip),%xmm7
  divsd  %xmm3,%xmm7
  jmp    L246
L332:
  call   <sqrt@plt>
  jmp    L257
L242:
  mov    %r13,%rax
  mov    %ebp,%r13d
  mov    %rax,%rbp
  test   %r15d,%r15d
  jle    L82
L101:
  movslq 0x28(%rsp),%rax
  mov    0x8(%rsp),%rdi
  lea    (%rdi,%rax,8),%rcx
  mov    %r15d,%edx
  mov    $0x0,%eax
  mov    0x38(%rsp),%rsi
L397:
  movsd  (%rcx),%xmm0
  mulsd  (%rsi,%rax,8),%xmm0
  addsd  0x0(%rbp,%rax,8),%xmm0
  movsd  %xmm0,0x0(%rbp,%rax,8)
  add    $0x1,%rax
  cmp    %rdx,%rax
  jne    L397
  cmpl   $0x0,0x28(%rsp)
  jle    L330
L82:
  mov    0x2c(%rsp),%eax
  lea    -0x2(%rax),%r14d
  mov    $0x0,%r12d
  jmp    L439
L36:
  test   %r15d,%r15d
  jg     L101
L330:
  mov    0x28(%rsp),%eax
  cmp    %r15d,%eax
  jge    L147
  cltq
  movslq %r13d,%rdx
  movslq 0x2c(%rsp),%rcx
  sub    %rcx,%rdx
  mov    0x18(%rsp),%rdi
  lea    (%rdi,%rdx,8),%rdx
L54:
  movsd  0x0(%rbp,%rax,8),%xmm0
  movsd  %xmm0,0x8(%rdx,%rax,8)
  add    $0x1,%rax
  cmp    %eax,%r15d
  jg     L54
L147:
  mov    $0x0,%eax
  add    $0x48,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
```

tool_calls: name: parse_data
arguments: label: D9
type: f32[4]
name: parse_data
arguments: label: D91
type: f64
name: parse_data
arguments: label: D149
type: f64
name: parse_data
arguments: label: D259
type: f32
name: parse_data
arguments: label: D247
type: byte[8]
name: parse_data
arguments: label: D147
type: f64[2]

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

tool: D91: 0.25

tool: D149: 0.5

tool: D259: 0

tool: {"D247": [0x99,0xbb,0xad,0x58,0xf1,0xdc,0xef,0x7f]}

tool: {"D147": [1.0,0.25]}

assistant: ```c
int d1updt(int m, int n, double *s, double *u, double *v, double *w) {
  int i, j, l;
  int jj;
  int nm1 = n - 1;
  int nmj;
  double temp;
  double giant, cotan;
  double tan_;
  double cos_, sin_, tau;
  giant = 1.79e+308;
  jj = n * ((m << 1) - n + 1) / 2 - (m - n) - 1;
  l = jj;
  for (i = nm1; i < m; ++i) {
    w[i] = s[l];
    ++l;
  }
  if (nm1 >= 1) {
    for (nmj = 1; nmj <= nm1; ++nmj) {
      j = n - nmj - 1;
      jj -= m - j;
      w[j] = 0.0;
      if (v[j] == 0.0)
        continue;
      if (((v[nm1]) >= 0.0 ? (v[nm1]) : -(v[nm1])) < ((v[j]) >= 0.0 ? (v[j]) : -(v[j]))) {
        cotan = v[nm1] / v[j];
        sin_ = 0.5 / sqrt(0.25 + 0.25 * (cotan * cotan));
        cos_ = sin_ * cotan;
        tau = 1.0;
        if (((cos_) >= 0.0 ? (cos_) : -(cos_)) * giant > 1.0) {
          tau = 1.0 / cos_;
        }
      } else {
        tan_ = v[j] / v[nm1];
        cos_ = 0.5 / sqrt(0.25 + 0.25 * (tan_ * tan_));
        sin_ = cos_ * tan_;
        tau = sin_;
      }
      v[nm1] = sin_ * v[j] + cos_ * v[nm1];
      v[j] = tau;
      l = jj;
      for (i = j; i < m; ++i) {
        temp = cos_ * s[l] - sin_ * w[i];
        w[i] = sin_ * s[l] + cos_ * w[i];
        s[l] = temp;
        ++l;
      }
    }
  }
  for (i = 0; i < m; ++i)
    w[i] += v[nm1] * u[i];
  if (nm1 >= 1) {
    for (j = 0; j < nm1; ++j) {
      if (w[j] != 0.0) {
        if (((s[jj]) >= 0.0 ? (s[jj]) : -(s[jj])) < ((w[j]) >= 0.0 ? (w[j]) : -(w[j]))) {
          cotan = s[jj] / w[j];
          sin_ = 0.5 / sqrt(0.25 + 0.25 * (cotan * cotan));
          cos_ = sin_ * cotan;
          tau = 1.0;
          if (((cos_) >= 0.0 ? (cos_) : -(cos_)) * giant > 1.0) {
            tau = 1.0 / cos_;
          }
        } else {
          tan_ = w[j] / s[jj];
          cos_ = 0.5 / sqrt(0.25 + 0.25 * (tan_ * tan_));
          sin_ = cos_ * tan_;
          tau = sin_;
        }
        l = jj;
        for (i = j; i < m; ++i) {
          temp = cos_ * s[l] + sin_ * w[i];
          w[i] = -sin_ * s[l] + cos_ * w[i];
          s[l] = temp;
          ++l;
        }
        w[j] = tau;
      }
      jj += m - j;
    }
  }
  l = jj;
  for (i = nm1; i < m; ++i) {
    s[l] = w[i];
    ++l;
  }
  return 0;
}
```