user: 请将这段汇编代码片段转换成等效的C代码：

```asm
<jacobi>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0xa8,%rsp
  mov    %rdi,%r13
  mov    %rsi,%rbx
  mov    %rsi,0x68(%rsp)
  mov    %rdx,%r12
  mov    %rdx,0x18(%rsp)
  mov    %rcx,%rbp
  mov    %rcx,0x60(%rsp)
  mov    %fs:0x28,%rax
  mov    %rax,0x98(%rsp)
  xor    %eax,%eax
  mov    $0x1,%edi
  call   <dvector@plt>
  mov    %rax,%r14
  mov    %rax,0x70(%rsp)
  mov    %rbx,%rsi
  mov    $0x1,%edi
  call   <dvector@plt>
  mov    %rax,%r15
  mov    %rax,0x58(%rsp)
  mov    %rbx,%rsi
  mov    %rbp,%rdi
  call   <identity_matrix@plt>
  test   %rbx,%rbx
  jle    L187
  lea    0x8(,%rbx,8),%rcx
  mov    $0x8,%eax
  mov    %r14,%rsi
  mov    %r15,%rdi
  mov    %r12,%r8
L277:
  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    L277
L187:
  mov    0x68(%rsp),%rsi
  mov    %rsi,%rax
  imul   %rsi,%rax
  mov    %rax,0x78(%rsp)
  movq   $0x1,0x20(%rsp)
  mov    %r13,%r14
  jmp    L41
L268:
  mov    %rsi,%rdi
L304:
  lea    0x1(%rdi),%rsi
  cmp    %rsi,%r8
  jl     L268
  mov    -0x8(%r14,%rsi,8),%rdx
  lea    (%rdx,%rsi,8),%rax
  add    %rcx,%rdx
L30:
  movsd  (%rax),%xmm0
  andpd  D134(%rip),%xmm0
  addsd  %xmm0,%xmm1
  add    $0x8,%rax
  cmp    %rdx,%rax
  jne    L30
  cmp    %rsi,%r8
  jne    L268
  mov    %rsi,0x30(%rsp)
  mov    %rdi,0x10(%rsp)
  movsd  D57(%rip),%xmm0
  comisd %xmm1,%xmm0
  ja     L177
  pxor   %xmm7,%xmm7
  movsd  %xmm7,0x28(%rsp)
  cmpq   $0x3,0x20(%rsp)
  jle    L337
L266:
  movq   $0x1,0x48(%rsp)
  mov    %r14,%r15
  jmp    L86
L177:
  mov    0x68(%rsp),%rbx
  mov    %rbx,%rdx
  mov    $0x1,%esi
  mov    0x58(%rsp),%rdi
  call   <free_dvector@plt>
  mov    %rbx,%rdx
  mov    $0x1,%esi
  mov    0x70(%rsp),%rdi
  call   <free_dvector@plt>
  mov    %rbx,%rdx
  mov    0x60(%rsp),%rsi
  mov    0x18(%rsp),%rdi
  call   <eigsrt@plt>
L209:
  mov    0x98(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L320
  add    $0xa8,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L337:
  mulsd  D86(%rip),%xmm1
  pxor   %xmm0,%xmm0
  cvtsi2sdq 0x78(%rsp),%xmm0
  divsd  %xmm0,%xmm1
  movsd  %xmm1,0x28(%rsp)
  jmp    L266
L296:
  movsd  (%rax),%xmm1
  andpd  D134(%rip),%xmm1
  comisd 0x28(%rsp),%xmm1
  ja     L140
L71:
  lea    0x1(%rbx),%rax
  cmp    0x10(%rsp),%rbx
  jg     L316
  mov    %rax,%rbx
L332:
  mov    %rbx,%r14
  lea    0x0(,%rbx,8),%rbp
  mov    %rbp,%rax
  add    (%r15,%r13,8),%rax
  movsd  (%rax),%xmm0
  andpd  D134(%rip),%xmm0
  mulsd  D121(%rip),%xmm0
  movsd  %xmm0,0x90(%rsp)
  cmpq   $0x4,0x20(%rsp)
  jle    L296
  mov    0x18(%rsp),%rcx
  movsd  (%rcx,%r13,8),%xmm1
  andpd  D134(%rip),%xmm1
  movapd %xmm0,%xmm2
  addsd  %xmm1,%xmm2
  ucomisd %xmm2,%xmm1
  jp     L296
  jne    L296
  movsd  (%rcx,%rbx,8),%xmm1
  andpd  D134(%rip),%xmm1
  movapd %xmm0,%xmm2
  addsd  %xmm1,%xmm2
  ucomisd %xmm2,%xmm1
  jp     L296
  jne    L296
  movq   $0x0,(%rax)
  jmp    L71
L140:
  mov    0x18(%rsp),%rdx
  movsd  (%rdx,%r14,8),%xmm1
  subsd  (%rdx,%r13,8),%xmm1
  movsd  %xmm1,0x88(%rsp)
  movapd %xmm1,%xmm2
  andpd  D134(%rip),%xmm2
  addsd  %xmm2,%xmm0
  ucomisd %xmm0,%xmm2
  jp     L25
  jne    L25
  movsd  (%rax),%xmm0
  divsd  %xmm1,%xmm0
  movsd  %xmm0,(%rsp)
L55:
  movsd  (%rsp),%xmm3
  movapd %xmm3,%xmm0
  mulsd  %xmm3,%xmm0
  addsd  D162(%rip),%xmm0
  cvttsd2si %xmm0,%edi
  call   <sqrt@plt>
  movapd %xmm0,%xmm1
  movsd  D162(%rip),%xmm0
  divsd  %xmm1,%xmm0
  movsd  (%rsp),%xmm3
  movapd %xmm3,%xmm4
  mulsd  %xmm0,%xmm4
  movsd  %xmm4,(%rsp)
  addsd  D162(%rip),%xmm0
  divsd  %xmm0,%xmm4
  movsd  %xmm4,0x8(%rsp)
  mov    (%r15,%r13,8),%rax
  mulsd  (%rax,%rbp,1),%xmm3
  movsd  %xmm3,0x88(%rsp)
  mov    0x58(%rsp),%rax
  movsd  (%rax,%r13,8),%xmm1
  subsd  %xmm3,%xmm1
  movsd  %xmm1,(%rax,%r13,8)
  movsd  (%rax,%r14,8),%xmm0
  addsd  0x88(%rsp),%xmm0
  movsd  %xmm0,(%rax,%r14,8)
  movsd  0x88(%rsp),%xmm0
  mov    0x18(%rsp),%rax
  movsd  (%rax,%r13,8),%xmm1
  subsd  %xmm0,%xmm1
  movsd  %xmm1,(%rax,%r13,8)
  addsd  (%rax,%r14,8),%xmm0
  movsd  %xmm0,(%rax,%r14,8)
  mov    (%r15,%r13,8),%rax
  movq   $0x0,(%rax,%rbp,1)
  cmp    $0x1,%r12
  jle    L326
  mov    $0x1,%ebp
  lea    0x90(%rsp),%rax
  mov    %r14,0x38(%rsp)
  mov    %rax,%r14
L156:
  sub    $0x8,%rsp
  lea    0x90(%rsp),%rax
  push   %rax
  movsd  0x18(%rsp),%xmm1
  movsd  0x10(%rsp),%xmm0
  mov    %r14,%r9
  mov    %rbx,%r8
  mov    %rbp,%rcx
  mov    %r12,%rdx
  mov    %rbp,%rsi
  mov    %r15,%rdi
  call   <rotate@plt>
  add    $0x1,%rbp
  add    $0x10,%rsp
  cmp    %r12,%rbp
  jne    L156
  mov    0x38(%rsp),%r14
L326:
  mov    0x50(%rsp),%rax
  cmp    %rbx,%rax
  jge    L56
  mov    %rax,%rbp
  lea    0x90(%rsp),%rax
  mov    %r14,0x38(%rsp)
  mov    %rax,%r14
L194:
  sub    $0x8,%rsp
  lea    0x90(%rsp),%rax
  push   %rax
  movsd  0x18(%rsp),%xmm1
  movsd  0x10(%rsp),%xmm0
  mov    %r14,%r9
  mov    %rbx,%r8
  mov    %rbp,%rcx
  mov    %rbp,%rdx
  mov    %r12,%rsi
  mov    %r15,%rdi
  call   <rotate@plt>
  add    $0x1,%rbp
  add    $0x10,%rsp
  cmp    %rbx,%rbp
  jne    L194
  mov    0x38(%rsp),%r14
L56:
  lea    0x1(%r14),%rbp
  cmp    0x30(%rsp),%rbp
  jg     L387
  lea    0x90(%rsp),%r14
  mov    %r13,0x38(%rsp)
  mov    0x10(%rsp),%r13
L302:
  sub    $0x8,%rsp
  lea    0x90(%rsp),%rax
  push   %rax
  movsd  0x18(%rsp),%xmm1
  movsd  0x10(%rsp),%xmm0
  mov    %r14,%r9
  mov    %rbp,%r8
  mov    %rbx,%rcx
  mov    %rbp,%rdx
  mov    %r12,%rsi
  mov    %r15,%rdi
  call   <rotate@plt>
  mov    %rbp,%rax
  add    $0x1,%rbp
  add    $0x10,%rsp
  cmp    %r13,%rax
  jle    L302
  mov    0x38(%rsp),%r13
L387:
  mov    $0x1,%ebp
  lea    0x90(%rsp),%r14
  mov    %r13,0x38(%rsp)
  mov    0x10(%rsp),%r13
  mov    %r15,0x40(%rsp)
  mov    0x60(%rsp),%r15
L256:
  sub    $0x8,%rsp
  lea    0x90(%rsp),%rax
  push   %rax
  movsd  0x18(%rsp),%xmm1
  movsd  0x10(%rsp),%xmm0
  mov    %r14,%r9
  mov    %rbx,%r8
  mov    %rbp,%rcx
  mov    %r12,%rdx
  mov    %rbp,%rsi
  mov    %r15,%rdi
  call   <rotate@plt>
  mov    %rbp,%rax
  add    $0x1,%rbp
  add    $0x10,%rsp
  cmp    %r13,%rax
  jle    L256
  mov    0x38(%rsp),%r13
  mov    0x40(%rsp),%r15
  jmp    L71
L25:
  mulsd  D161(%rip),%xmm1
  divsd  (%rax),%xmm1
  movapd %xmm1,%xmm0
  movsd  %xmm1,(%rsp)
  mulsd  %xmm1,%xmm0
  addsd  D162(%rip),%xmm0
  cvttsd2si %xmm0,%edi
  call   <sqrt@plt>
  movapd %xmm0,%xmm1
  movsd  (%rsp),%xmm6
  movapd %xmm6,%xmm0
  andpd  D134(%rip),%xmm0
  addsd  %xmm1,%xmm0
  movsd  D162(%rip),%xmm7
  divsd  %xmm0,%xmm7
  movsd  %xmm7,(%rsp)
  pxor   %xmm0,%xmm0
  comisd %xmm6,%xmm0
  jbe    L55
  xorpd  D11(%rip),%xmm7
  movsd  %xmm7,(%rsp)
  jmp    L55
L316:
  mov    0x30(%rsp),%rdi
  cmp    %rdi,0x48(%rsp)
  je     L269
L86:
  mov    0x48(%rsp),%rax
  mov    %rax,%r12
  add    $0x1,%rax
  mov    %rax,0x48(%rsp)
  mov    %rax,0x50(%rsp)
  cmp    %rax,0x30(%rsp)
  jl     L316
  mov    %rax,%rbx
  mov    %r12,%r13
  jmp    L332
L269:
  mov    %r15,%r14
  mov    0x10(%rsp),%rax
  add    $0x2,%rax
  mov    $0x1,%edx
  mov    0x70(%rsp),%rcx
  mov    0x58(%rsp),%rsi
  mov    0x18(%rsp),%rdi
L84:
  movsd  (%rcx,%rdx,8),%xmm0
  addsd  (%rsi,%rdx,8),%xmm0
  movsd  %xmm0,(%rcx,%rdx,8)
  movsd  %xmm0,(%rdi,%rdx,8)
  movq   $0x0,(%rsi,%rdx,8)
  add    $0x1,%rdx
  cmp    %rdx,%rax
  jne    L84
  addq   $0x1,0x20(%rsp)
  mov    0x20(%rsp),%rax
  cmp    $0x65,%rax
  je     L123
L41:
  cmpq   $0x1,0x68(%rsp)
  jle    L177
  pxor   %xmm1,%xmm1
  mov    $0x1,%edi
  mov    0x68(%rsp),%r8
  lea    0x8(,%r8,8),%rcx
  jmp    L304
L123:
  lea    D147(%rip),%rdi
  call   <nrerror@plt>
  jmp    L209
L320:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: extract_symbolic_data
arguments: label: D134
data_type: qword[2]
name: extract_symbolic_data
arguments: label: D57
data_type: byte[8]
name: extract_symbolic_data
arguments: label: D86
data_type: f64
name: extract_symbolic_data
arguments: label: D121
data_type: f64
name: extract_symbolic_data
arguments: label: D162
data_type: f64
name: extract_symbolic_data
arguments: label: D161
data_type: f64
name: extract_symbolic_data
arguments: label: D11
data_type: f32[4]
name: extract_symbolic_data
arguments: label: D147
data_type: string

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

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

tool: D86: 0.2

tool: D121: 100

tool: D162: 1

tool: D161: 0.5

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

tool: D147: too many iterations

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");
}
```