user: 请从给定的汇编指令推导出C源代码：

```asm
<jacobi>:
  endbr64
  push   %r15
  mov    %rcx,%r15
  push   %r14
  push   %r13
  mov    %rdi,%r13
  mov    $0x1,%edi
  push   %r12
  push   %rbp
  push   %rbx
  mov    %rsi,%rbx
  sub    $0xb8,%rsp
  mov    %rsi,0x70(%rsp)
  mov    %rdx,0x28(%rsp)
  mov    %rcx,0x68(%rsp)
  mov    %fs:0x28,%rax
  mov    %rax,0xa8(%rsp)
  xor    %eax,%eax
  call   <dvector@plt>
  mov    %rbx,%rsi
  mov    $0x1,%edi
  mov    %rax,0x80(%rsp)
  call   <dvector@plt>
  mov    %rbx,%rsi
  mov    %r15,%rdi
  mov    %rax,0x58(%rsp)
  call   <identity_matrix@plt>
  test   %rbx,%rbx
  jle    L234
  mov    0x58(%rsp),%rdi
  mov    0x80(%rsp),%rsi
  lea    0x8(,%rbx,8),%rcx
  mov    $0x8,%eax
  mov    0x28(%rsp),%r8
L77:
  mov    0x0(%r13,%rax,1),%rdx
  movsd  (%rdx,%rax,1),%xmm0
  movsd  %xmm0,(%r8,%rax,1)
  movsd  %xmm0,(%rsi,%rax,1)
  movq   $0x0,(%rdi,%rax,1)
  add    $0x8,%rax
  cmp    %rcx,%rax
  jne    L77
L234:
  movq   $0x1,0x30(%rsp)
  mov    0x70(%rsp),%rdi
  mov    %rdi,%rax
  imul   %rdi,%rax
  mov    %rax,0x88(%rsp)
L130:
  cmpq   $0x1,0x70(%rsp)
  jle    L96
  mov    0x70(%rsp),%r8
  pxor   %xmm1,%xmm1
  mov    $0x1,%edi
  lea    0x1(%r8),%rax
  mov    %rax,0x10(%rsp)
  lea    0x0(,%rax,8),%rcx
  nopl   0x0(%rax)
L132:
  lea    0x1(%rdi),%rsi
  cmp    %rsi,%r8
  jl     L35
  mov    -0x8(%r13,%rsi,8),%rdx
  lea    (%rdx,%rsi,8),%rax
  add    %rcx,%rdx
  nopl   (%rax)
L140:
  movsd  (%rax),%xmm0
  andpd  D58(%rip),%xmm0
  add    $0x8,%rax
  addsd  %xmm0,%xmm1
  cmp    %rdx,%rax
  jne    L140
  cmp    %rsi,%r8
  je     L5
L35:
  mov    %rsi,%rdi
  jmp    L132
L5:
  movsd  D153(%rip),%xmm0
  mov    %rsi,0x78(%rsp)
  mov    %rdi,0x60(%rsp)
  comisd %xmm1,%xmm0
  ja     L96
  movq   $0x0,0x38(%rsp)
  cmpq   $0x3,0x30(%rsp)
  jle    L269
L104:
  movq   $0x1,0x40(%rsp)
  nopl   (%rax)
L150:
  mov    0x40(%rsp),%rax
  mov    %rax,0x20(%rsp)
  mov    %rax,%rbx
  add    $0x1,%rax
  mov    %rax,0x40(%rsp)
  mov    %rax,%rbp
  cmp    0x78(%rsp),%rax
  jle    L44
  jmp    L326
  nopl   (%rax)
L14:
  movsd  -0x8(%rcx,%rbp,8),%xmm1
  andpd  D58(%rip),%xmm1
  movapd %xmm0,%xmm2
  addsd  %xmm1,%xmm2
  ucomisd %xmm2,%xmm1
  jp     L233
  jne    L233
  movq   $0x0,(%rax)
L91:
  cmp    %rbp,0x10(%rsp)
  je     L326
L44:
  mov    0x20(%rsp),%rsi
  lea    0x0(,%rbp,8),%r12
  mov    %rbp,%r15
  add    $0x1,%rbp
  mov    0x0(%r13,%rsi,8),%rax
  add    %r12,%rax
  cmpq   $0x4,0x30(%rsp)
  movsd  (%rax),%xmm0
  andpd  D58(%rip),%xmm0
  mulsd  D103(%rip),%xmm0
  movsd  %xmm0,0xa0(%rsp)
  jle    L233
  mov    0x28(%rsp),%rcx
  movapd %xmm0,%xmm2
  movsd  (%rcx,%rsi,8),%xmm1
  andpd  D58(%rip),%xmm1
  addsd  %xmm1,%xmm2
  ucomisd %xmm2,%xmm1
  jp     L233
  je     L14
L233:
  movsd  (%rax),%xmm1
  andpd  D58(%rip),%xmm1
  comisd 0x38(%rsp),%xmm1
  jbe    L91
  mov    0x28(%rsp),%rdx
  mov    0x20(%rsp),%rcx
  movsd  -0x8(%rdx,%rbp,8),%xmm1
  subsd  (%rdx,%rcx,8),%xmm1
  movsd  %xmm1,0x98(%rsp)
  movapd %xmm1,%xmm2
  andpd  D58(%rip),%xmm2
  addsd  %xmm2,%xmm0
  ucomisd %xmm0,%xmm2
  jp     L121
  jne    L121
  movsd  (%rax),%xmm2
  movsd  D17(%rip),%xmm3
  divsd  %xmm1,%xmm2
L320:
  movapd %xmm2,%xmm0
  movsd  %xmm2,0x18(%rsp)
  lea    0xa0(%rsp),%r14
  mulsd  %xmm2,%xmm0
  movsd  %xmm3,0x8(%rsp)
  addsd  %xmm3,%xmm0
  cvttsd2si %xmm0,%edi
  call   <sqrt@plt>
  movsd  0x8(%rsp),%xmm3
  movsd  0x18(%rsp),%xmm2
  mov    $0x1,%ecx
  movapd %xmm0,%xmm1
  mov    0x20(%rsp),%rax
  mov    0x58(%rsp),%rdx
  movapd %xmm3,%xmm0
  movapd %xmm2,%xmm5
  mov    0x28(%rsp),%rdi
  add    0x0(%r13,%rax,8),%r12
  mulsd  (%r12),%xmm2
  divsd  %xmm1,%xmm0
  movsd  %xmm2,0x98(%rsp)
  mulsd  %xmm0,%xmm5
  addsd  %xmm3,%xmm0
  movsd  %xmm5,0x8(%rsp)
  divsd  %xmm0,%xmm5
  movsd  (%rdx,%rax,8),%xmm0
  subsd  %xmm2,%xmm0
  movsd  %xmm0,(%rdx,%rax,8)
  movsd  -0x8(%rdx,%rbp,8),%xmm0
  addsd  0x98(%rsp),%xmm0
  movsd  %xmm0,-0x8(%rdx,%rbp,8)
  movsd  (%rdi,%rax,8),%xmm2
  movsd  0x98(%rsp),%xmm0
  subsd  %xmm0,%xmm2
  movsd  %xmm2,(%rdi,%rax,8)
  addsd  -0x8(%rdi,%rbp,8),%xmm0
  movsd  %xmm0,-0x8(%rdi,%rbp,8)
  movq   $0x0,(%r12)
  lea    0x98(%rsp),%r12
  movapd %xmm5,%xmm1
  cmp    $0x1,%rax
  je     L348
  mov    %rbp,0x48(%rsp)
  mov    %rbx,%rbp
  mov    %rcx,%rbx
  nop
L340:
  sub    $0x8,%rsp
  mov    %r14,%r9
  mov    %rbx,%rcx
  mov    %rbx,%rsi
  push   %r12
  movsd  0x18(%rsp),%xmm0
  mov    %r15,%r8
  mov    %rbp,%rdx
  mov    %r13,%rdi
  add    $0x1,%rbx
  movsd  %xmm1,0x28(%rsp)
  call   <rotate@plt>
  cmp    %rbp,%rbx
  pop    %r9
  pop    %r10
  movsd  0x18(%rsp),%xmm1
  jne    L340
  mov    %rbp,%rbx
  mov    0x48(%rsp),%rbp
L348:
  mov    0x40(%rsp),%rax
  cmp    %r15,%rax
  jge    L338
  mov    %rbp,0x48(%rsp)
  mov    %rbx,%rbp
  mov    %rax,%rbx
  mov    %r14,%rax
  mov    %r15,%r14
  mov    %rax,%r15
  nopw   0x0(%rax,%rax,1)
L311:
  sub    $0x8,%rsp
  mov    %r14,%r8
  mov    %rbx,%rcx
  mov    %rbx,%rdx
  push   %r12
  movsd  0x18(%rsp),%xmm0
  mov    %r13,%rdi
  mov    %r15,%r9
  mov    %rbp,%rsi
  add    $0x1,%rbx
  movsd  %xmm1,0x28(%rsp)
  call   <rotate@plt>
  cmp    %r14,%rbx
  pop    %rdi
  pop    %r8
  movsd  0x18(%rsp),%xmm1
  jne    L311
  mov    %r15,%rax
  mov    %rbp,%rbx
  mov    0x48(%rsp),%rbp
  mov    %r14,%r15
  mov    %rax,%r14
L338:
  cmp    0x60(%rsp),%r15
  jg     L292
  mov    %rbp,0x48(%rsp)
L105:
  sub    $0x8,%rsp
  mov    %rbp,%r8
  mov    %r15,%rcx
  mov    %rbp,%rdx
  push   %r12
  movsd  0x18(%rsp),%xmm0
  mov    %rbx,%rsi
  mov    %r14,%r9
  mov    %r13,%rdi
  add    $0x1,%rbp
  movsd  %xmm1,0x28(%rsp)
  call   <rotate@plt>
  pop    %rcx
  pop    %rsi
  cmp    0x10(%rsp),%rbp
  movsd  0x18(%rsp),%xmm1
  jne    L105
  mov    0x48(%rsp),%rbp
L292:
  mov    %rbp,0x48(%rsp)
  mov    $0x1,%ecx
  mov    0x68(%rsp),%rbp
  mov    %r13,0x50(%rsp)
  mov    %rcx,%r13
  nopl   0x0(%rax,%rax,1)
L186:
  sub    $0x8,%rsp
  mov    %r13,%rcx
  mov    %rbx,%rdx
  mov    %r13,%rsi
  push   %r12
  movsd  0x18(%rsp),%xmm0
  mov    %r14,%r9
  mov    %r15,%r8
  mov    %rbp,%rdi
  add    $0x1,%r13
  movsd  %xmm1,0x28(%rsp)
  call   <rotate@plt>
  pop    %rax
  pop    %rdx
  cmp    0x10(%rsp),%r13
  movsd  0x18(%rsp),%xmm1
  jne    L186
  mov    0x48(%rsp),%rbp
  mov    0x50(%rsp),%r13
  cmp    %rbp,0x10(%rsp)
  jne    L44
  nopl   0x0(%rax)
L326:
  mov    0x70(%rsp),%rcx
  cmp    %rcx,0x40(%rsp)
  jne    L150
  mov    0x58(%rsp),%rcx
  mov    0x28(%rsp),%rsi
  mov    $0x1,%eax
  mov    0x80(%rsp),%rdx
  mov    0x10(%rsp),%rdi
  nopl   0x0(%rax)
L351:
  movsd  (%rdx,%rax,8),%xmm0
  addsd  (%rcx,%rax,8),%xmm0
  movsd  %xmm0,(%rdx,%rax,8)
  movsd  %xmm0,(%rsi,%rax,8)
  movq   $0x0,(%rcx,%rax,8)
  add    $0x1,%rax
  cmp    %rdi,%rax
  jne    L351
  addq   $0x1,0x30(%rsp)
  mov    0x30(%rsp),%rax
  cmp    $0x65,%rax
  jne    L130
  lea    D132(%rip),%rdi
  call   <nrerror@plt>
  jmp    L323
  nopl   0x0(%rax,%rax,1)
L121:
  mulsd  D94(%rip),%xmm1
  movsd  D17(%rip),%xmm3
  divsd  (%rax),%xmm1
  movapd %xmm1,%xmm0
  movsd  %xmm1,0x18(%rsp)
  mulsd  %xmm1,%xmm0
  movsd  %xmm3,0x8(%rsp)
  addsd  %xmm3,%xmm0
  cvttsd2si %xmm0,%edi
  call   <sqrt@plt>
  movsd  0x18(%rsp),%xmm1
  pxor   %xmm6,%xmm6
  movsd  0x8(%rsp),%xmm3
  movapd %xmm0,%xmm2
  movapd %xmm1,%xmm0
  comisd %xmm1,%xmm6
  andpd  D58(%rip),%xmm0
  addsd  %xmm2,%xmm0
  movsd  D17(%rip),%xmm2
  divsd  %xmm0,%xmm2
  jbe    L320
  xorpd  D1(%rip),%xmm2
  jmp    L320
L96:
  mov    0x70(%rsp),%rbx
  mov    0x58(%rsp),%rdi
  mov    $0x1,%esi
  mov    %rbx,%rdx
  call   <free_dvector@plt>
  mov    0x80(%rsp),%rdi
  mov    %rbx,%rdx
  mov    $0x1,%esi
  call   <free_dvector@plt>
  mov    0x68(%rsp),%rsi
  mov    0x28(%rsp),%rdi
  mov    %rbx,%rdx
  call   <eigsrt@plt>
L323:
  mov    0xa8(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L188
  add    $0xb8,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L269:
  mulsd  D65(%rip),%xmm1
  pxor   %xmm0,%xmm0
  cvtsi2sdq 0x88(%rsp),%xmm0
  divsd  %xmm0,%xmm1
  movsd  %xmm1,0x38(%rsp)
  jmp    L104
L188:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: read_data
arguments: data_label: D58
type_guessed: qword[2]
name: read_data
arguments: data_label: D153
type_guessed: byte[8]
name: read_data
arguments: data_label: D103
type_guessed: f64
name: read_data
arguments: data_label: D17
type_guessed: f64
name: read_data
arguments: data_label: D132
type_guessed: string
name: read_data
arguments: data_label: D94
type_guessed: f64
name: read_data
arguments: data_label: D1
type_guessed: f32[4]
name: read_data
arguments: data_label: D65
type_guessed: f64

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

tool: {"D153": [0x48,0xaf,0xbc,0x9a,0xf2,0xd7,0x7a,0x3e]}

tool: D103: 100

tool: D17: 1

tool: D132: too many iterations

tool: D94: 0.5

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

tool: D65: 0.2

assistant: ```c
void jacobi(double **a, long n, double *d, double **v) {
  long i, j, iq, ip;
  double tresh, theta, tau, t, sm, s, h, g, c, *b, *z;
  b = dvector(1, n);
  z = dvector(1, n);
  identity_matrix(v, n);
  for (ip = 1; ip <= n; ip++) {
    b[ip] = d[ip] = a[ip][ip];
    z[ip] = 0.0;
  }
  for (i = 1; i <= 100; 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 < 1.0e-7) {
      free_dvector(z, 1, n);
      free_dvector(b, 1, n);
      eigsrt(d, v, 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++)
            rotate(a, j, ip, j, iq, &g, &h, s, tau);
          for (j = ip + 1; j <= iq - 1; j++)
            rotate(a, ip, j, j, iq, &g, &h, s, tau);
          for (j = iq + 1; j <= n; j++)
            rotate(a, ip, j, iq, j, &g, &h, s, tau);
          for (j = 1; j <= n; j++)
            rotate(v, j, ip, j, iq, &g, &h, s, tau);
        }
      }
    }
    for (ip = 1; ip <= n; ip++) {
      b[ip] += z[ip];
      d[ip] = b[ip];
      z[ip] = 0.0;
    }
  }
  nrerror("too many iterations");
}
```