user: Demonstrate the C code that generates the assembly output below:

```asm
<jacobi_d>:
  endbr64
  push   %r15
  xor    %eax,%eax
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0xc8,%rsp
  mov    %rdi,0x10(%rsp)
  mov    $0x1,%edi
  mov    %rdx,0x30(%rsp)
  mov    %rcx,0x38(%rsp)
  mov    %r8,0x40(%rsp)
  mov    %esi,0x8(%rsp)
  call   <dvector@plt>
  mov    0x8(%rsp),%esi
  mov    $0x1,%edi
  cltq
  mov    %rax,0x50(%rsp)
  xor    %eax,%eax
  call   <dvector@plt>
  mov    0x8(%rsp),%r9d
  mov    0x10(%rsp),%r10
  cltq
  test   %r9d,%r9d
  mov    %rax,0x20(%rsp)
  lea    -0x1(%r9),%ebp
  jle    L113
  lea    -0x1(%r9),%eax
  mov    %r9d,%r12d
  mov    %r9d,0x10(%rsp)
  mov    %r10,%r15
  movsd  D60(%rip),%xmm7
  mov    %eax,0x18(%rsp)
  shl    $0x3,%r12
  lea    0x10(,%rax,8),%rbx
  mov    0x38(%rsp),%r14
  mov    $0x8,%r13d
  mov    %r12,%rbp
  movsd  %xmm7,0x8(%rsp)
L134:
  mov    (%r14,%r13,1),%r12
  mov    %rbp,%rdx
  xor    %esi,%esi
  lea    0x8(%r12),%rdi
  call   <memset@plt>
  movsd  0x8(%rsp),%xmm7
  movsd  %xmm7,(%r12,%r13,1)
  add    $0x8,%r13
  cmp    %r13,%rbx
  jne    L134
  mov    0x10(%rsp),%r9d
  mov    0x18(%rsp),%ebp
  mov    %r15,%r10
  mov    $0x8,%eax
  mov    0x30(%rsp),%rcx
  mov    0x50(%rsp),%rsi
  mov    0x20(%rsp),%rdi
L288:
  mov    (%r10,%rax,1),%rdx
  movsd  (%rdx,%rax,1),%xmm0
  movsd  %xmm0,(%rcx,%rax,1)
  movsd  %xmm0,(%rsi,%rax,1)
  movq   $0x0,(%rdi,%rax,1)
  add    $0x8,%rax
  cmp    %rax,%rbx
  jne    L288
L113:
  mov    0x40(%rsp),%rax
  mov    0x38(%rsp),%rdi
  movl   $0x1,0x8(%rsp)
  movq   D62(%rip),%xmm3
  movq   D64(%rip),%xmm8
  movl   $0x0,(%rax)
  mov    %r9d,%eax
  imul   %r9d,%eax
  mov    %eax,0x64(%rsp)
  mov    %ebp,%eax
  shl    $0x3,%rax
  lea    0x10(%rdi,%rax,1),%r8
  mov    0x50(%rsp),%rdi
  lea    0x10(%rax,%rdi,1),%rax
  mov    %rax,0x58(%rsp)
L0:
  cmp    $0x1,%r9d
  jle    L243
  lea    -0x2(%r9),%eax
  pxor   %xmm7,%xmm7
  mov    $0x2,%ecx
  add    $0x3,%rax
  movapd %xmm7,%xmm1
  mov    %rax,0x48(%rsp)
  mov    %rax,%rsi
  nopw   0x0(%rax,%rax,1)
L110:
  cmp    %ecx,%r9d
  jl     L59
  mov    -0x8(%r10,%rcx,8),%rdx
  mov    %rcx,%rax
  nopl   (%rax)
L257:
  movsd  (%rdx,%rax,8),%xmm0
  add    $0x1,%rax
  andpd  %xmm3,%xmm0
  addsd  %xmm0,%xmm1
  cmp    %eax,%r9d
  jge    L257
L59:
  add    $0x1,%rcx
  cmp    %rcx,%rsi
  jne    L110
  ucomisd %xmm7,%xmm1
  jp     L138
  je     L243
L138:
  cmpl   $0x3,0x8(%rsp)
  movapd %xmm7,%xmm5
  jle    L318
L342:
  mov    0x30(%rsp),%rax
  movq   D62(%rip),%xmm2
  movq   $0x1,0x10(%rsp)
  mov    $0x2,%edi
  movsd  D166(%rip),%xmm4
  lea    0x10(%rax),%rcx
  nopl   0x0(%rax)
L102:
  mov    %edi,0x60(%rsp)
  cmp    %edi,%r9d
  jl     L151
  mov    0x10(%rsp),%rax
  mov    0x20(%rsp),%rsi
  mov    %rdi,%r12
  mov    %rcx,%r15
  mov    %rdi,0x18(%rsp)
  movsd  D60(%rip),%xmm6
  lea    0x0(,%rax,8),%r14
  mov    (%r10,%rax,8),%rbp
  add    %r14,%rsi
  mov    %rsi,0x28(%rsp)
  mov    %rax,%rsi
  mov    %r9d,%eax
  sub    %edi,%eax
  lea    0x2(%rsi,%rax,1),%rbx
  lea    -0x3(%rdi),%eax
  lea    0x10(%r10,%rax,8),%rsi
  mov    %rbx,%rdi
  jmp    L293
L25:
  movsd  (%r15),%xmm0
  andpd  %xmm2,%xmm0
  movapd %xmm0,%xmm11
  addsd  %xmm1,%xmm11
  ucomisd %xmm11,%xmm0
  jp     L112
  jne    L112
  movq   $0x0,0x0(%rbp,%r12,8)
L111:
  add    $0x1,%r12
  add    $0x8,%r15
  cmp    %r12,%rdi
  je     L247
L293:
  movsd  0x0(%rbp,%r12,8),%xmm10
  cmpl   $0x4,0x8(%rsp)
  lea    0x1(%r12),%ebx
  lea    0x0(,%r12,8),%r13
  movapd %xmm10,%xmm9
  andpd  %xmm2,%xmm9
  movapd %xmm9,%xmm1
  mulsd  %xmm4,%xmm1
  jle    L112
  movsd  -0x8(%rcx),%xmm0
  andpd  %xmm2,%xmm0
  movapd %xmm0,%xmm11
  addsd  %xmm1,%xmm11
  ucomisd %xmm11,%xmm0
  jp     L112
  je     L25
L112:
  comisd %xmm5,%xmm9
  jbe    L111
  movsd  (%r15),%xmm0
  subsd  -0x8(%rcx),%xmm0
  movapd %xmm0,%xmm9
  andpd  %xmm2,%xmm9
  addsd  %xmm9,%xmm1
  ucomisd %xmm1,%xmm9
  jp     L294
  jne    L294
  movapd %xmm10,%xmm11
  movapd %xmm6,%xmm9
  divsd  %xmm0,%xmm11
L319:
  movapd %xmm11,%xmm0
  mulsd  %xmm11,%xmm0
  addsd  %xmm9,%xmm0
  ucomisd %xmm0,%xmm7
  ja     L316
  sqrtsd %xmm0,%xmm0
L35:
  movapd %xmm9,%xmm12
  mov    0x28(%rsp),%rax
  movapd %xmm11,%xmm1
  lea    0x8(%r10),%rdx
  mulsd  %xmm11,%xmm10
  divsd  %xmm0,%xmm12
  movsd  (%rax),%xmm0
  subsd  %xmm10,%xmm0
  movsd  %xmm0,(%rax)
  mov    0x20(%rsp),%rax
  sub    0x30(%rsp),%rax
  add    %r15,%rax
  cmpq   $0x1,0x10(%rsp)
  movsd  (%rax),%xmm0
  addsd  %xmm10,%xmm0
  movsd  %xmm0,(%rax)
  movsd  -0x8(%rcx),%xmm0
  subsd  %xmm10,%xmm0
  movsd  %xmm0,-0x8(%rcx)
  addsd  (%r15),%xmm10
  movsd  %xmm10,(%r15)
  movq   $0x0,0x0(%rbp,%r12,8)
  mulsd  %xmm12,%xmm1
  addsd  %xmm9,%xmm12
  movapd %xmm1,%xmm9
  divsd  %xmm12,%xmm9
  je     L9
  nop
L55:
  mov    (%rdx),%rax
  movapd %xmm9,%xmm10
  add    $0x8,%rdx
  lea    (%rax,%r14,1),%r11
  add    %r13,%rax
  movsd  (%r11),%xmm0
  movsd  (%rax),%xmm11
  mulsd  %xmm0,%xmm10
  movapd %xmm0,%xmm12
  addsd  %xmm11,%xmm10
  mulsd  %xmm1,%xmm10
  subsd  %xmm10,%xmm12
  movapd %xmm9,%xmm10
  mulsd  %xmm11,%xmm10
  movsd  %xmm12,(%r11)
  subsd  %xmm10,%xmm0
  mulsd  %xmm1,%xmm0
  addsd  %xmm11,%xmm0
  movsd  %xmm0,(%rax)
  cmp    %rdx,%rsi
  jne    L55
L9:
  mov    0x18(%rsp),%rax
  mov    %r12d,%r11d
  cmp    %r12d,0x60(%rsp)
  jge    L206
  nopl   0x0(%rax,%rax,1)
L148:
  movsd  0x0(%rbp,%rax,8),%xmm0
  movapd %xmm9,%xmm10
  mov    (%r10,%rax,8),%rdx
  mulsd  %xmm0,%xmm10
  add    %r13,%rdx
  movapd %xmm0,%xmm12
  movsd  (%rdx),%xmm11
  addsd  %xmm11,%xmm10
  mulsd  %xmm1,%xmm10
  subsd  %xmm10,%xmm12
  movapd %xmm9,%xmm10
  mulsd  %xmm11,%xmm10
  movsd  %xmm12,0x0(%rbp,%rax,8)
  add    $0x1,%rax
  subsd  %xmm10,%xmm0
  mulsd  %xmm1,%xmm0
  addsd  %xmm11,%xmm0
  movsd  %xmm0,(%rdx)
  cmp    %eax,%r11d
  jg     L148
L206:
  cmp    %ebx,%r9d
  jl     L302
  mov    (%r10,%r12,8),%rax
  movslq %ebx,%rbx
  nopl   0x0(%rax,%rax,1)
L194:
  movsd  0x0(%rbp,%rbx,8),%xmm0
  movapd %xmm9,%xmm10
  movsd  (%rax,%rbx,8),%xmm11
  mulsd  %xmm0,%xmm10
  movapd %xmm0,%xmm12
  addsd  %xmm11,%xmm10
  mulsd  %xmm1,%xmm10
  subsd  %xmm10,%xmm12
  movapd %xmm9,%xmm10
  mulsd  %xmm11,%xmm10
  movsd  %xmm12,0x0(%rbp,%rbx,8)
  subsd  %xmm10,%xmm0
  mulsd  %xmm1,%xmm0
  addsd  %xmm11,%xmm0
  movsd  %xmm0,(%rax,%rbx,8)
  add    $0x1,%rbx
  cmp    %ebx,%r9d
  jge    L194
L302:
  mov    0x38(%rsp),%rax
  lea    0x8(%rax),%rdx
L343:
  mov    (%rdx),%rax
  movapd %xmm9,%xmm10
  add    $0x8,%rdx
  lea    (%rax,%r14,1),%r11
  add    %r13,%rax
  movsd  (%r11),%xmm0
  movsd  (%rax),%xmm11
  mulsd  %xmm0,%xmm10
  movapd %xmm0,%xmm12
  addsd  %xmm11,%xmm10
  mulsd  %xmm1,%xmm10
  subsd  %xmm10,%xmm12
  movapd %xmm9,%xmm10
  mulsd  %xmm11,%xmm10
  movsd  %xmm12,(%r11)
  subsd  %xmm10,%xmm0
  mulsd  %xmm1,%xmm0
  addsd  %xmm11,%xmm0
  movsd  %xmm0,(%rax)
  cmp    %rdx,%r8
  jne    L343
  mov    0x40(%rsp),%rax
  add    $0x1,%r12
  add    $0x8,%r15
  addl   $0x1,(%rax)
  cmp    %r12,%rdi
  jne    L293
L247:
  mov    0x18(%rsp),%rdi
L151:
  addq   $0x1,0x10(%rsp)
  add    $0x1,%rdi
  add    $0x8,%rcx
  cmp    %rdi,0x48(%rsp)
  jne    L102
  mov    0x50(%rsp),%rdi
  mov    0x20(%rsp),%rsi
  mov    0x30(%rsp),%rcx
  lea    0x8(%rdi),%rax
  sub    %rdi,%rsi
  sub    %rdi,%rcx
  mov    0x58(%rsp),%rdi
  nopl   0x0(%rax)
L341:
  lea    (%rsi,%rax,1),%rdx
  movsd  (%rax),%xmm0
  addsd  (%rdx),%xmm0
  movsd  %xmm0,(%rax)
  movsd  %xmm0,(%rcx,%rax,1)
  add    $0x8,%rax
  movq   $0x0,(%rdx)
  cmp    %rdi,%rax
  jne    L341
  addl   $0x1,0x8(%rsp)
  mov    0x8(%rsp),%eax
  cmp    $0x33,%eax
  jne    L0
  add    $0xc8,%rsp
  lea    D94(%rip),%rdi
  xor    %eax,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  jmp    1090 <nrerror@plt>
  xchg   %ax,%ax
L294:
  mulsd  D85(%rip),%xmm0
  movapd %xmm6,%xmm9
  movapd %xmm0,%xmm1
  divsd  %xmm10,%xmm1
  movapd %xmm1,%xmm0
  movapd %xmm1,%xmm11
  mulsd  %xmm1,%xmm0
  andpd  %xmm2,%xmm11
  addsd  %xmm6,%xmm0
  ucomisd %xmm0,%xmm7
  ja     L240
  sqrtsd %xmm0,%xmm0
L266:
  addsd  %xmm11,%xmm0
  comisd %xmm1,%xmm7
  movapd %xmm6,%xmm11
  divsd  %xmm0,%xmm11
  jbe    L319
  xorpd  %xmm8,%xmm11
  jmp    L319
L243:
  mov    0x20(%rsp),%rdi
  mov    %r9d,%edx
  mov    $0x1,%esi
  xor    %eax,%eax
  mov    %r9d,0x8(%rsp)
  call   <free_dvector@plt>
  mov    0x8(%rsp),%edx
  mov    0x50(%rsp),%rdi
  xor    %eax,%eax
  add    $0xc8,%rsp
  mov    $0x1,%esi
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  jmp    10c0 <free_dvector@plt>
L318:
  mulsd  D12(%rip),%xmm1
  pxor   %xmm0,%xmm0
  cvtsi2sdl 0x64(%rsp),%xmm0
  movapd %xmm1,%xmm5
  divsd  %xmm0,%xmm5
  jmp    L342
L316:
  mov    %r9d,0xa8(%rsp)
  mov    %r10,0xa0(%rsp)
  mov    %r8,0x98(%rsp)
  mov    %rsi,0x90(%rsp)
  mov    %rdi,0x88(%rsp)
  mov    %rcx,0x80(%rsp)
  movsd  %xmm9,0xb0(%rsp)
  movsd  %xmm11,0x78(%rsp)
  movsd  %xmm5,0x70(%rsp)
  movsd  %xmm10,0x68(%rsp)
  call   <sqrt@plt>
  mov    D166(%rip),%rax
  movq   D62(%rip),%xmm3
  pxor   %xmm7,%xmm7
  movsd  0xb0(%rsp),%xmm9
  mov    0xa8(%rsp),%r9d
  movq   %rax,%xmm4
  mov    D60(%rip),%rax
  mov    0xa0(%rsp),%r10
  movapd %xmm3,%xmm2
  mov    0x98(%rsp),%r8
  mov    0x90(%rsp),%rsi
  mov    0x88(%rsp),%rdi
  mov    0x80(%rsp),%rcx
  movq   %rax,%xmm6
  movq   D64(%rip),%xmm8
  movsd  0x78(%rsp),%xmm11
  movsd  0x70(%rsp),%xmm5
  movsd  0x68(%rsp),%xmm10
  jmp    L35
L240:
  mov    %r9d,0xb0(%rsp)
  mov    %r10,0xa8(%rsp)
  mov    %r8,0xa0(%rsp)
  mov    %rsi,0x98(%rsp)
  mov    %rdi,0x90(%rsp)
  mov    %rcx,0x88(%rsp)
  movsd  %xmm6,0xb8(%rsp)
  movsd  %xmm1,0x80(%rsp)
  movsd  %xmm5,0x78(%rsp)
  movsd  %xmm11,0x70(%rsp)
  movsd  %xmm10,0x68(%rsp)
  call   <sqrt@plt>
  mov    D166(%rip),%rax
  movq   D62(%rip),%xmm3
  pxor   %xmm7,%xmm7
  movsd  0xb8(%rsp),%xmm9
  mov    0xb0(%rsp),%r9d
  movq   %rax,%xmm4
  mov    D60(%rip),%rax
  mov    0xa8(%rsp),%r10
  movapd %xmm3,%xmm2
  mov    0xa0(%rsp),%r8
  mov    0x98(%rsp),%rsi
  mov    0x90(%rsp),%rdi
  movsd  0x78(%rsp),%xmm5
  movq   %rax,%xmm6
  mov    0x88(%rsp),%rcx
  movsd  0x70(%rsp),%xmm11
  movq   D64(%rip),%xmm8
  movsd  0x68(%rsp),%xmm10
  movsd  0x80(%rsp),%xmm1
  jmp    L266
```

tool_calls: name: parse_data
arguments: data_label: D60
type_infered: f64
name: parse_data
arguments: data_label: D62
type_infered: qword
name: parse_data
arguments: data_label: D64
type_infered: f32[2]
name: parse_data
arguments: data_label: D166
type_infered: f64
name: parse_data
arguments: data_label: D94
type_infered: string
name: parse_data
arguments: data_label: D85
type_infered: f64
name: parse_data
arguments: data_label: D12
type_infered: f64

tool: D60: 1

tool: D62: 9223372036854775807

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

tool: D166: 100

tool: D94: Too many iterations in routine JACOBI_D

tool: D85: 0.5

tool: D12: 0.2

assistant: ```c
void jacobi_d(a, n, d, v, nrot) double **a, d[], **v;
int n, *nrot;
{
  int j, iq, ip, i;
  double tresh, theta, tau, t, sm, s, h, g, c, *b, *z;
  b = dvector(1, n);
  z = dvector(1, n);
  for (ip = 1; ip <= n; ip++) {
    for (iq = 1; iq <= n; iq++)
      v[ip][iq] = 0.0;
    v[ip][ip] = 1.0;
  }
  for (ip = 1; ip <= n; ip++) {
    b[ip] = d[ip] = a[ip][ip];
    z[ip] = 0.0;
  }
  *nrot = 0;
  for (i = 1; i <= 50; i++) {
    sm = 0.0;
    for (ip = 1; ip <= n - 1; ip++) {
      for (iq = ip + 1; iq <= n; iq++)
        sm += fabs(a[ip][iq]);
    }
    if (sm == 0.0) {
      free_dvector(z, 1, n);
      free_dvector(b, 1, n);
      return;
    }
    if (i < 4)
      tresh = 0.2 * sm / (n * n);
    else
      tresh = 0.0;
    for (ip = 1; ip <= n - 1; ip++) {
      for (iq = ip + 1; iq <= n; iq++) {
        g = 100.0 * fabs(a[ip][iq]);
        if (i > 4 && fabs(d[ip]) + g == fabs(d[ip]) && fabs(d[iq]) + g == fabs(d[iq]))
          a[ip][iq] = 0.0;
        else if (fabs(a[ip][iq]) > tresh) {
          h = d[iq] - d[ip];
          if (fabs(h) + g == fabs(h))
            t = (a[ip][iq]) / h;
          else {
            theta = 0.5 * h / (a[ip][iq]);
            t = 1.0 / (fabs(theta) + sqrt(1.0 + theta * theta));
            if (theta < 0.0)
              t = -t;
          }
          c = 1.0 / sqrt(1 + t * t);
          s = t * c;
          tau = s / (1.0 + c);
          h = t * a[ip][iq];
          z[ip] -= h;
          z[iq] += h;
          d[ip] -= h;
          d[iq] += h;
          a[ip][iq] = 0.0;
          for (j = 1; j <= ip - 1; j++) {
            g = a[j][ip];
            h = a[j][iq];
            a[j][ip] = g - s * (h + g * tau);
            a[j][iq] = h + s * (g - h * tau);
          }
          for (j = ip + 1; j <= iq - 1; j++) {
            g = a[ip][j];
            h = a[j][iq];
            a[ip][j] = g - s * (h + g * tau);
            a[j][iq] = h + s * (g - h * tau);
          }
          for (j = iq + 1; j <= n; j++) {
            g = a[ip][j];
            h = a[iq][j];
            a[ip][j] = g - s * (h + g * tau);
            a[iq][j] = h + s * (g - h * tau);
          }
          for (j = 1; j <= n; j++) {
            g = v[j][ip];
            h = v[j][iq];
            v[j][ip] = g - s * (h + g * tau);
            v[j][iq] = h + s * (g - h * tau);
          }
          ++(*nrot);
        }
      }
    }
    for (ip = 1; ip <= n; ip++) {
      b[ip] += z[ip];
      d[ip] = b[ip];
      z[ip] = 0.0;
    }
  }
  nrerror("Too many iterations in routine JACOBI_D");
}
```