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

```asm
<jacobi>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0xe8,%rsp
  mov    %rdi,%r13
  mov    %esi,%r15d
  mov    %esi,0x58(%rsp)
  mov    %rdx,0x80(%rsp)
  mov    %rcx,%r14
  mov    %rcx,0x88(%rsp)
  mov    %r8,0x90(%rsp)
  mov    $0x1,%edi
  mov    $0x0,%eax
  call   <fvector@plt>
  mov    %eax,%ebx
  cltq
  mov    %rax,0xd0(%rsp)
  mov    %r15d,%esi
  mov    $0x1,%edi
  mov    $0x0,%eax
  call   <fvector@plt>
  mov    %eax,0xc8(%rsp)
  cltq
  mov    %rax,0xd8(%rsp)
  test   %r15d,%r15d
  jle    L243
  lea    0x8(%r14),%rcx
  lea    0x1(%r15),%esi
  shl    $0x2,%rsi
  mov    $0x4,%edi
  movss  D21(%rip),%xmm0
L307:
  mov    $0x4,%eax
  mov    %rcx,%r8
L309:
  mov    (%rcx),%rdx
  movl   $0x0,(%rdx,%rax,1)
  add    $0x4,%rax
  cmp    %rsi,%rax
  jne    L309
  mov    (%r8),%rax
  movss  %xmm0,(%rax,%rdi,1)
  add    $0x8,%rcx
  add    $0x4,%rdi
  cmp    %rsi,%rdi
  jne    L307
  mov    $0x4,%eax
  movslq %ebx,%rdi
  movslq 0xc8(%rsp),%rcx
  mov    0x80(%rsp),%r8
L275:
  mov    0x0(%r13,%rax,2),%rdx
  movss  (%rdx,%rax,1),%xmm0
  movss  %xmm0,(%r8,%rax,1)
  movss  %xmm0,(%rdi,%rax,1)
  movl   $0x0,(%rcx,%rax,1)
  add    $0x4,%rax
  cmp    %rsi,%rax
  jne    L275
L243:
  mov    0x90(%rsp),%rax
  movl   $0x0,(%rax)
  mov    0x58(%rsp),%edi
  mov    %edi,%eax
  imul   %edi,%eax
  mov    %eax,0xcc(%rsp)
  lea    -0x1(%rdi),%eax
  mov    0x88(%rsp),%rdi
  lea    0x10(%rdi,%rax,8),%rdi
  mov    %rdi,0x98(%rsp)
  movslq %ebx,%rdi
  mov    %rdi,0xc0(%rsp)
  lea    0x8(%rdi,%rax,4),%rax
  mov    %rax,0xb8(%rsp)
  movl   $0x1,0x20(%rsp)
  jmp    L236
L166:
  mov    0x58(%rsp),%ebx
  mov    %ebx,%edx
  mov    $0x1,%esi
  mov    0xd8(%rsp),%rdi
  mov    $0x0,%eax
  call   <free_fvector@plt>
  mov    %ebx,%edx
  mov    $0x1,%esi
  mov    0xd0(%rsp),%rdi
  mov    $0x0,%eax
  call   <free_fvector@plt>
L60:
  add    $0xe8,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L66:
  pxor   %xmm0,%xmm0
  cvtss2sd %xmm1,%xmm0
  mulsd  D131(%rip),%xmm0
  pxor   %xmm1,%xmm1
  cvtsi2sdl 0xcc(%rsp),%xmm1
  divsd  %xmm1,%xmm0
  pxor   %xmm7,%xmm7
  cvtsd2ss %xmm0,%xmm7
  movss  %xmm7,0x24(%rsp)
  jmp    L67
L393:
  comiss 0x24(%rsp),%xmm3
  ja     L406
L96:
  add    $0x1,%r13
  add    $0x4,%r12
  cmp    0x18(%rsp),%r13
  je     L135
L120:
  mov    0x10(%rsp),%rcx
  mov    %rcx,%rbp
  lea    0x0(,%r13,4),%rax
  mov    %rax,0x8(%rsp)
  lea    -0x4(%rax),%rbx
  mov    %rbx,%rax
  add    (%rcx),%rax
  movss  (%rax),%xmm6
  movss  %xmm6,0x4(%rsp)
  movaps %xmm6,%xmm3
  andps  D72(%rip),%xmm3
  movaps %xmm3,%xmm2
  mulss  D158(%rip),%xmm2
  cmpl   $0x4,0x20(%rsp)
  jle    L393
  movss  -0x4(%r15),%xmm0
  andps  D72(%rip),%xmm0
  cvtss2sd %xmm0,%xmm0
  pxor   %xmm1,%xmm1
  cvtss2sd %xmm2,%xmm1
  movapd %xmm0,%xmm4
  addsd  %xmm1,%xmm4
  ucomisd %xmm4,%xmm0
  jp     L393
  jne    L393
  movss  (%r12),%xmm0
  andps  D72(%rip),%xmm0
  cvtss2sd %xmm0,%xmm0
  addsd  %xmm0,%xmm1
  ucomisd %xmm1,%xmm0
  jp     L393
  jne    L393
  movl   $0x0,(%rax)
  jmp    L96
L406:
  mov    %r12,0x48(%rsp)
  mov    %r15,0x50(%rsp)
  movss  (%r12),%xmm0
  subss  -0x4(%r15),%xmm0
  movaps %xmm0,%xmm1
  andps  D72(%rip),%xmm1
  cvtss2sd %xmm1,%xmm1
  cvtss2sd %xmm2,%xmm2
  addsd  %xmm1,%xmm2
  ucomisd %xmm2,%xmm1
  jp     L390
  jne    L390
  movss  0x4(%rsp),%xmm7
  divss  %xmm0,%xmm7
  movss  %xmm7,0x28(%rsp)
L315:
  movss  0x28(%rsp),%xmm7
  movaps %xmm7,%xmm0
  mulss  %xmm7,%xmm0
  addss  D21(%rip),%xmm0
  cvtss2sd %xmm0,%xmm0
  pxor   %xmm1,%xmm1
  ucomisd %xmm0,%xmm1
  ja     L417
  sqrtsd %xmm0,%xmm0
L411:
  movsd  D41(%rip),%xmm3
  movapd %xmm3,%xmm1
  divsd  %xmm0,%xmm1
  pxor   %xmm0,%xmm0
  cvtsd2ss %xmm1,%xmm0
  movss  0x28(%rsp),%xmm7
  movaps %xmm7,%xmm2
  mulss  %xmm0,%xmm2
  pxor   %xmm1,%xmm1
  cvtss2sd %xmm2,%xmm1
  cvtss2sd %xmm0,%xmm0
  addsd  %xmm3,%xmm0
  divsd  %xmm0,%xmm1
  cvtsd2ss %xmm1,%xmm1
  movss  0x4(%rsp),%xmm0
  mulss  %xmm7,%xmm0
  mov    0x68(%rsp),%rax
  movss  (%rax),%xmm3
  subss  %xmm0,%xmm3
  movss  %xmm3,(%rax)
  mov    0x60(%rsp),%rax
  sub    0x80(%rsp),%rax
  add    %r12,%rax
  movaps %xmm0,%xmm3
  addss  (%rax),%xmm3
  movss  %xmm3,(%rax)
  mov    0x50(%rsp),%rax
  movss  -0x4(%rax),%xmm3
  subss  %xmm0,%xmm3
  movss  %xmm3,-0x4(%rax)
  mov    0x48(%rsp),%rax
  addss  (%rax),%xmm0
  movss  %xmm0,(%rax)
  mov    0x0(%rbp),%rax
  mov    0x8(%rsp),%rcx
  movl   $0x0,-0x4(%rax,%rcx,1)
  cmpl   $0x1,0x30(%rsp)
  jle    L95
  mov    0xa0(%rsp),%rax
  mov    0x70(%rsp),%rdx
  mov    0x40(%rsp),%rcx
L408:
  mov    (%rax),%rdi
  lea    (%rdi,%rcx,1),%rsi
  movss  (%rsi),%xmm0
  movss  (%rdi,%rbx,1),%xmm4
  movaps %xmm1,%xmm3
  mulss  %xmm0,%xmm3
  addss  %xmm4,%xmm3
  mulss  %xmm2,%xmm3
  movaps %xmm0,%xmm5
  subss  %xmm3,%xmm5
  movss  %xmm5,(%rsi)
  mov    (%rax),%rsi
  movaps %xmm1,%xmm3
  mulss  %xmm4,%xmm3
  subss  %xmm3,%xmm0
  mulss  %xmm2,%xmm0
  addss  %xmm4,%xmm0
  movss  %xmm0,(%rsi,%rbx,1)
  add    $0x8,%rax
  cmp    %rdx,%rax
  jne    L408
L95:
  mov    %r13d,%edx
  lea    -0x1(%r13),%eax
  cmp    0x5c(%rsp),%eax
  jle    L102
  mov    %r13d,%eax
  sub    0xa8(%rsp),%eax
  lea    -0x2(%rax),%eax
  mov    0x30(%rsp),%rcx
  lea    0x2(%rcx,%rax,1),%rcx
  shl    $0x2,%rcx
  mov    0x78(%rsp),%rax
L371:
  mov    %rax,%rsi
  add    0x0(%rbp),%rsi
  movss  (%rsi),%xmm0
  mov    (%r14,%rax,2),%rdi
  movss  (%rdi,%rbx,1),%xmm4
  movaps %xmm1,%xmm3
  mulss  %xmm0,%xmm3
  addss  %xmm4,%xmm3
  mulss  %xmm2,%xmm3
  movaps %xmm0,%xmm5
  subss  %xmm3,%xmm5
  movss  %xmm5,(%rsi)
  mov    (%r14,%rax,2),%rsi
  movaps %xmm1,%xmm3
  mulss  %xmm4,%xmm3
  subss  %xmm3,%xmm0
  mulss  %xmm2,%xmm0
  addss  %xmm4,%xmm0
  movss  %xmm0,(%rsi,%rbx,1)
  add    $0x4,%rax
  cmp    %rcx,%rax
  jne    L371
L102:
  mov    0x58(%rsp),%edi
  cmp    %r13d,%edi
  jl     L172
  movslq %r13d,%rax
  shl    $0x2,%rax
  mov    %edi,%ecx
  sub    %edx,%ecx
  lea    0x1(%r13,%rcx,1),%rcx
  shl    $0x2,%rcx
L75:
  mov    %rax,%rdx
  add    0x0(%rbp),%rdx
  movss  (%rdx),%xmm0
  mov    -0x8(%r14,%r13,8),%rsi
  movss  (%rsi,%rax,1),%xmm4
  movaps %xmm1,%xmm3
  mulss  %xmm0,%xmm3
  addss  %xmm4,%xmm3
  mulss  %xmm2,%xmm3
  movaps %xmm0,%xmm5
  subss  %xmm3,%xmm5
  movss  %xmm5,(%rdx)
  mov    -0x8(%r14,%r13,8),%rdx
  movaps %xmm1,%xmm3
  mulss  %xmm4,%xmm3
  subss  %xmm3,%xmm0
  mulss  %xmm2,%xmm0
  addss  %xmm4,%xmm0
  movss  %xmm0,(%rdx,%rax,1)
  add    $0x4,%rax
  cmp    %rax,%rcx
  jne    L75
L172:
  mov    0x88(%rsp),%rax
  add    $0x8,%rax
  mov    0x98(%rsp),%rcx
  mov    0x40(%rsp),%rsi
L140:
  mov    (%rax),%rdi
  lea    (%rdi,%rsi,1),%rdx
  movss  (%rdx),%xmm0
  movss  (%rdi,%rbx,1),%xmm4
  movaps %xmm1,%xmm3
  mulss  %xmm0,%xmm3
  addss  %xmm4,%xmm3
  mulss  %xmm2,%xmm3
  movaps %xmm0,%xmm5
  subss  %xmm3,%xmm5
  movss  %xmm5,(%rdx)
  mov    (%rax),%rdx
  movaps %xmm1,%xmm3
  mulss  %xmm4,%xmm3
  subss  %xmm3,%xmm0
  mulss  %xmm2,%xmm0
  addss  %xmm4,%xmm0
  movss  %xmm0,(%rdx,%rbx,1)
  add    $0x8,%rax
  cmp    %rax,%rcx
  jne    L140
  mov    0x90(%rsp),%rax
  addl   $0x1,(%rax)
  jmp    L96
L390:
  cvtss2sd %xmm0,%xmm0
  mulsd  D0(%rip),%xmm0
  pxor   %xmm1,%xmm1
  cvtss2sd 0x4(%rsp),%xmm1
  divsd  %xmm1,%xmm0
  pxor   %xmm7,%xmm7
  cvtsd2ss %xmm0,%xmm7
  movss  %xmm7,0xac(%rsp)
  movaps %xmm7,%xmm0
  andps  D72(%rip),%xmm0
  pxor   %xmm6,%xmm6
  cvtss2sd %xmm0,%xmm6
  movsd  %xmm6,0x28(%rsp)
  movaps %xmm7,%xmm0
  mulss  %xmm7,%xmm0
  cvtss2sd %xmm0,%xmm0
  addsd  D41(%rip),%xmm0
  pxor   %xmm1,%xmm1
  ucomisd %xmm0,%xmm1
  ja     L92
  sqrtsd %xmm0,%xmm0
L226:
  movsd  0x28(%rsp),%xmm1
  addsd  %xmm0,%xmm1
  movsd  D41(%rip),%xmm0
  divsd  %xmm1,%xmm0
  pxor   %xmm7,%xmm7
  cvtsd2ss %xmm0,%xmm7
  movss  %xmm7,0x28(%rsp)
  pxor   %xmm0,%xmm0
  comiss 0xac(%rsp),%xmm0
  jbe    L315
  xorps  D94(%rip),%xmm7
  movss  %xmm7,0x28(%rsp)
  jmp    L315
L92:
  call   <sqrt@plt>
  jmp    L226
L417:
  call   <sqrt@plt>
  jmp    L411
L135:
  addq   $0x1,0x38(%rsp)
  mov    0x38(%rsp),%rax
  addq   $0x1,0x30(%rsp)
  addq   $0x8,0x10(%rsp)
  add    $0x4,%r15
  cmp    0xb0(%rsp),%rax
  je     L264
L152:
  mov    0x38(%rsp),%rax
  mov    %eax,0xa8(%rsp)
  mov    %eax,0x5c(%rsp)
  mov    0x58(%rsp),%edi
  cmp    %eax,%edi
  jl     L135
  mov    0x30(%rsp),%rcx
  lea    0x0(,%rcx,4),%rbx
  mov    %rbx,0x40(%rsp)
  movslq 0xc8(%rsp),%rdx
  mov    %rdx,0x60(%rsp)
  add    %rdx,%rbx
  mov    %rbx,0x68(%rsp)
  mov    %rax,%rbx
  add    $0x1,%eax
  movslq %eax,%r13
  mov    %edi,%eax
  sub    %ebx,%eax
  lea    0x3(%rcx,%rax,1),%rax
  mov    %rax,0x18(%rsp)
  lea    -0x3(%rbx),%eax
  lea    0x10(%r14,%rax,8),%rax
  mov    %rax,0x70(%rsp)
  lea    0x0(,%rbx,4),%rax
  mov    %rax,0x78(%rsp)
  mov    %r15,%r12
  jmp    L120
L264:
  mov    %r14,%r13
  mov    0xc0(%rsp),%rdi
  lea    0x4(%rdi),%rax
  movslq 0xc8(%rsp),%rcx
  sub    %rdi,%rcx
  mov    0x80(%rsp),%rsi
  sub    %rdi,%rsi
  mov    0xb8(%rsp),%rdi
L233:
  lea    (%rcx,%rax,1),%rdx
  movss  (%rax),%xmm0
  addss  (%rdx),%xmm0
  movss  %xmm0,(%rax)
  movss  %xmm0,(%rsi,%rax,1)
  movl   $0x0,(%rdx)
  add    $0x4,%rax
  cmp    %rax,%rdi
  jne    L233
  addl   $0x1,0x20(%rsp)
  mov    0x20(%rsp),%eax
  cmp    $0x33,%eax
  je     L271
L236:
  cmpl   $0x1,0x58(%rsp)
  jle    L166
  mov    0x58(%rsp),%edx
  lea    0x1(%rdx),%edi
  mov    %rdi,0xb0(%rsp)
  mov    $0x2,%ecx
  pxor   %xmm1,%xmm1
L421:
  cmp    %ecx,%edx
  jl     L254
  mov    -0x8(%r13,%rcx,8),%rsi
  mov    %rcx,%rax
L229:
  movss  (%rsi,%rax,4),%xmm0
  andps  D72(%rip),%xmm0
  addss  %xmm0,%xmm1
  add    $0x1,%rax
  cmp    %eax,%edx
  jge    L229
L254:
  add    $0x1,%rcx
  cmp    %rdi,%rcx
  jne    L421
  ucomiss D91(%rip),%xmm1
  jp     L187
  je     L166
L187:
  pxor   %xmm6,%xmm6
  movss  %xmm6,0x24(%rsp)
  cmpl   $0x3,0x20(%rsp)
  jle    L66
L67:
  lea    0x8(%r13),%rax
  mov    %rax,0xa0(%rsp)
  mov    0x80(%rsp),%rbx
  lea    0x8(%rbx),%r15
  mov    %rax,0x10(%rsp)
  movq   $0x1,0x30(%rsp)
  movq   $0x2,0x38(%rsp)
  mov    %r13,%r14
  jmp    L152
L271:
  lea    D115(%rip),%rdi
  mov    $0x0,%eax
  call   <nrerror@plt>
  jmp    L60
```

tool_calls: name: retrieve_data
arguments: tag: D21
data_type: f32
name: retrieve_data
arguments: tag: D131
data_type: f64
name: retrieve_data
arguments: tag: D72
data_type: dword[4]
name: retrieve_data
arguments: tag: D158
data_type: f32
name: retrieve_data
arguments: tag: D41
data_type: f32[2]
name: retrieve_data
arguments: tag: D0
data_type: f64
name: retrieve_data
arguments: tag: D94
data_type: byte[16]
name: retrieve_data
arguments: tag: D91
data_type: f32
name: retrieve_data
arguments: tag: D115
data_type: string

tool: D21: 1

tool: D131: 0.2

tool: {"D72": [0x7fffffff,0x00000000,0x00000000,0x00000000]}

tool: D158: 100

tool: {"D41": [0.0,1.875]}

tool: D0: 0.5

tool: {"D94": [0x00,0x00,0x00,0x80,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00]}

tool: D91: 0

tool: D115: Too many iterations in routine JACOBI

assistant: ```c
void jacobi(a, n, d, v, nrot) float **a, d[], **v;
int n, *nrot;
{
  int j, iq, ip, i;
  float tresh, theta, tau, t, sm, s, h, g, c, *b, *z;
  b = fvector(1, n);
  z = fvector(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_fvector(z, 1, n);
      free_fvector(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");
}
```