user: 请显示与下面列出的汇编代码相匹配的C语言实现:

```asm
<jacobi>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0xb8,%rsp
  mov    %rdi,%r14
  mov    %esi,%ebx
  mov    %esi,0x20(%rsp)
  mov    %rdx,0x28(%rsp)
  mov    %rcx,%r15
  mov    %rcx,0x80(%rsp)
  mov    %r8,0x88(%rsp)
  mov    $0x1,%edi
  call   <vector@plt>
  mov    %rax,0x98(%rsp)
  mov    %ebx,%esi
  mov    $0x1,%edi
  call   <vector@plt>
  mov    %rax,0x68(%rsp)
  test   %ebx,%ebx
  jle    L202
  lea    0x8(%r15),%rcx
  lea    0x1(%rbx),%esi
  shl    $0x2,%rsi
  mov    $0x4,%edi
  movss  D82(%rip),%xmm0
L25:
  mov    $0x4,%eax
  mov    %rcx,%r8
L287:
  mov    (%rcx),%rdx
  movl   $0x0,(%rdx,%rax,1)
  add    $0x4,%rax
  cmp    %rsi,%rax
  jne    L287
  mov    (%r8),%rax
  movss  %xmm0,(%rax,%rdi,1)
  add    $0x8,%rcx
  add    $0x4,%rdi
  cmp    %rsi,%rdi
  jne    L25
  mov    $0x4,%eax
  mov    0x98(%rsp),%rcx
  mov    0x68(%rsp),%rdi
  mov    0x28(%rsp),%r8
L303:
  mov    (%r14,%rax,2),%rdx
  movss  (%rdx,%rax,1),%xmm0
  movss  %xmm0,(%r8,%rax,1)
  movss  %xmm0,(%rcx,%rax,1)
  movl   $0x0,(%rdi,%rax,1)
  add    $0x4,%rax
  cmp    %rsi,%rax
  jne    L303
L202:
  mov    0x88(%rsp),%rax
  movl   $0x0,(%rax)
  mov    0x20(%rsp),%ecx
  mov    %ecx,%eax
  imul   %ecx,%eax
  mov    %eax,0xac(%rsp)
  lea    -0x1(%rcx),%eax
  mov    %rax,0xa0(%rsp)
  mov    0x80(%rsp),%rcx
  lea    0x10(%rcx,%rax,8),%rax
  mov    %rax,0x90(%rsp)
  movl   $0x1,0x24(%rsp)
  mov    %r14,%r15
  jmp    L335
L368:
  mov    0x20(%rsp),%ebx
  mov    %ebx,%edx
  mov    $0x1,%esi
  mov    0x68(%rsp),%rdi
  call   <free_vector@plt>
  mov    %ebx,%edx
  mov    $0x1,%esi
  mov    0x98(%rsp),%rdi
  call   <free_vector@plt>
L37:
  add    $0xb8,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L125:
  pxor   %xmm0,%xmm0
  cvtss2sd (%rsp),%xmm0
  mulsd  D43(%rip),%xmm0
  pxor   %xmm1,%xmm1
  cvtsi2sdl 0xac(%rsp),%xmm1
  divsd  %xmm1,%xmm0
  pxor   %xmm6,%xmm6
  cvtsd2ss %xmm0,%xmm6
  movss  %xmm6,0x50(%rsp)
  jmp    L246
L338:
  mov    0x0(%r13),%rax
  movss  (%rax,%rbp,1),%xmm0
  call   <fabs@plt>
  movapd %xmm0,%xmm1
  pxor   %xmm0,%xmm0
  cvtss2sd 0x50(%rsp),%xmm0
  comisd %xmm0,%xmm1
  ja     L14
L387:
  addq   $0x1,0x18(%rsp)
  add    $0x1,%rbx
  cmp    %ebx,0x20(%rsp)
  jl     L388
L151:
  mov    %r14,%r13
  lea    0x0(,%rbx,4),%rbp
  mov    (%r14),%rax
  movss  (%rax,%rbx,4),%xmm0
  call   <fabs@plt>
  mulsd  D94(%rip),%xmm0
  pxor   %xmm6,%xmm6
  cvtsd2ss %xmm0,%xmm6
  movss  %xmm6,0x8(%rsp)
  cmpl   $0x4,0x24(%rsp)
  jle    L338
  movss  (%r12),%xmm0
  call   <fabs@plt>
  movsd  %xmm0,0x10(%rsp)
  pxor   %xmm7,%xmm7
  cvtss2sd 0x8(%rsp),%xmm7
  movsd  %xmm7,(%rsp)
  movss  (%r12),%xmm0
  call   <fabs@plt>
  movapd %xmm0,%xmm1
  movsd  0x10(%rsp),%xmm0
  addsd  (%rsp),%xmm0
  cvtsd2ss %xmm0,%xmm0
  cvtsd2ss %xmm1,%xmm1
  ucomiss %xmm1,%xmm0
  jp     L338
  jne    L338
  mov    0x28(%rsp),%rax
  movss  (%rax,%rbx,4),%xmm0
  call   <fabs@plt>
  movsd  %xmm0,0x10(%rsp)
  mov    0x28(%rsp),%rax
  movss  (%rax,%rbx,4),%xmm0
  call   <fabs@plt>
  movapd %xmm0,%xmm1
  movsd  (%rsp),%xmm0
  addsd  0x10(%rsp),%xmm0
  cvtsd2ss %xmm0,%xmm0
  cvtsd2ss %xmm1,%xmm1
  ucomiss %xmm1,%xmm0
  jp     L338
  jne    L338
  mov    (%r14),%rax
  movl   $0x0,(%rax,%rbp,1)
  jmp    L387
L14:
  mov    %r12,0x48(%rsp)
  mov    0x28(%rsp),%rax
  movss  (%rax,%rbx,4),%xmm0
  subss  (%r12),%xmm0
  movss  %xmm0,(%rsp)
  call   <fabs@plt>
  movsd  %xmm0,0x10(%rsp)
  movss  (%rsp),%xmm0
  call   <fabs@plt>
  movapd %xmm0,%xmm1
  pxor   %xmm0,%xmm0
  cvtss2sd 0x8(%rsp),%xmm0
  addsd  0x10(%rsp),%xmm0
  cvtsd2ss %xmm0,%xmm0
  cvtsd2ss %xmm1,%xmm1
  ucomiss %xmm1,%xmm0
  jp     L386
  jne    L386
  mov    0x0(%r13),%rax
  movss  (%rax,%rbp,1),%xmm0
  movaps %xmm0,%xmm7
  divss  (%rsp),%xmm7
  movss  %xmm7,(%rsp)
L305:
  movss  (%rsp),%xmm7
  movaps %xmm7,%xmm0
  mulss  %xmm7,%xmm0
  addss  D82(%rip),%xmm0
  cvttss2si %xmm0,%edi
  call   <sqrt@plt>
  movapd %xmm0,%xmm1
  movsd  D87(%rip),%xmm0
  divsd  %xmm1,%xmm0
  cvtsd2ss %xmm0,%xmm0
  movss  (%rsp),%xmm7
  movaps %xmm7,%xmm2
  mulss  %xmm0,%xmm2
  pxor   %xmm1,%xmm1
  cvtss2sd %xmm2,%xmm1
  cvtss2sd %xmm0,%xmm0
  addsd  D87(%rip),%xmm0
  divsd  %xmm0,%xmm1
  cvtsd2ss %xmm1,%xmm1
  mov    0x0(%r13),%rax
  mulss  (%rax,%rbp,1),%xmm7
  movaps %xmm7,%xmm0
  mov    0x68(%rsp),%rax
  mov    0x38(%rsp),%rdi
  movss  (%rax,%rdi,4),%xmm3
  subss  %xmm7,%xmm3
  movss  %xmm3,(%rax,%rdi,4)
  movaps %xmm7,%xmm3
  addss  (%rax,%rbx,4),%xmm3
  movss  %xmm3,(%rax,%rbx,4)
  mov    0x48(%rsp),%rax
  movss  (%rax),%xmm3
  subss  %xmm7,%xmm3
  movss  %xmm3,(%rax)
  mov    0x28(%rsp),%rax
  addss  (%rax,%rbx,4),%xmm0
  movss  %xmm0,(%rax,%rbx,4)
  mov    0x0(%r13),%rax
  movl   $0x0,(%rax,%rbp,1)
  cmp    $0x1,%edi
  jle    L167
  mov    0x70(%rsp),%rax
  mov    0x58(%rsp),%rdx
  mov    0x40(%rsp),%rcx
L102:
  mov    (%rax),%rdi
  lea    (%rdi,%rcx,1),%rsi
  movss  (%rsi),%xmm0
  movss  (%rdi,%rbp,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,%rbp,1)
  add    $0x8,%rax
  cmp    %rdx,%rax
  jne    L102
L167:
  cmp    %ebx,0x54(%rsp)
  jge    L375
  mov    %ebx,%eax
  sub    0xa8(%rsp),%eax
  lea    -0x1(%rax),%eax
  mov    0x38(%rsp),%rcx
  lea    0x2(%rcx,%rax,1),%rcx
  shl    $0x2,%rcx
  mov    0x60(%rsp),%rax
L261:
  mov    %rax,%rdx
  add    0x0(%r13),%rdx
  movss  (%rdx),%xmm0
  mov    (%r15,%rax,2),%rsi
  movss  (%rsi,%rbp,1),%xmm4
  movaps %xmm1,%xmm3
  mulss  %xmm0,%xmm3
  addss  %xmm4,%xmm3
  mulss  %xmm2,%xmm3
  movaps %xmm0,%xmm5
  subss  %xmm3,%xmm5
  movss  %xmm5,(%rdx)
  mov    (%r15,%rax,2),%rdx
  movaps %xmm1,%xmm3
  mulss  %xmm4,%xmm3
  subss  %xmm3,%xmm0
  mulss  %xmm2,%xmm0
  addss  %xmm4,%xmm0
  movss  %xmm0,(%rdx,%rbp,1)
  add    $0x4,%rax
  cmp    %rcx,%rax
  jne    L261
L375:
  mov    0x20(%rsp),%ecx
  mov    0x18(%rsp),%rdi
  cmp    %edi,%ecx
  jl     L104
  movslq %edi,%rax
  shl    $0x2,%rax
  mov    %ecx,%edx
  sub    %edi,%edx
  lea    0x2(%rbx,%rdx,1),%rcx
  shl    $0x2,%rcx
L81:
  mov    %rax,%rdx
  add    0x0(%r13),%rdx
  movss  (%rdx),%xmm0
  mov    (%r15,%rbx,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    (%r15,%rbx,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    L81
L104:
  mov    0x80(%rsp),%rax
  add    $0x8,%rax
  mov    0x90(%rsp),%rcx
  mov    0x40(%rsp),%rsi
L297:
  mov    (%rax),%rdi
  lea    (%rdi,%rsi,1),%rdx
  movss  (%rdx),%xmm0
  movss  (%rdi,%rbp,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,%rbp,1)
  add    $0x8,%rax
  cmp    %rax,%rcx
  jne    L297
  mov    0x88(%rsp),%rax
  addl   $0x1,(%rax)
  jmp    L387
L386:
  pxor   %xmm0,%xmm0
  cvtss2sd (%rsp),%xmm0
  mulsd  D80(%rip),%xmm0
  mov    0x0(%r13),%rax
  pxor   %xmm1,%xmm1
  cvtss2sd (%rax,%rbp,1),%xmm1
  divsd  %xmm1,%xmm0
  cvtsd2ss %xmm0,%xmm0
  movss  %xmm0,0x8(%rsp)
  call   <fabs@plt>
  movsd  %xmm0,(%rsp)
  movss  0x8(%rsp),%xmm6
  movaps %xmm6,%xmm0
  mulss  %xmm6,%xmm0
  cvtss2sd %xmm0,%xmm0
  addsd  D87(%rip),%xmm0
  cvttsd2si %xmm0,%edi
  call   <sqrt@plt>
  movsd  (%rsp),%xmm1
  addsd  %xmm0,%xmm1
  movsd  D87(%rip),%xmm0
  divsd  %xmm1,%xmm0
  pxor   %xmm7,%xmm7
  cvtsd2ss %xmm0,%xmm7
  movss  %xmm7,(%rsp)
  pxor   %xmm0,%xmm0
  comiss 0x8(%rsp),%xmm0
  jbe    L305
  xorps  D100(%rip),%xmm7
  movss  %xmm7,(%rsp)
  jmp    L305
L388:
  mov    %r12,%r13
L168:
  addq   $0x1,0x30(%rsp)
  mov    0x30(%rsp),%rax
  addq   $0x1,0x38(%rsp)
  add    $0x8,%r14
  add    $0x4,%r13
  cmp    0x78(%rsp),%rax
  je     L120
L48:
  mov    0x30(%rsp),%rcx
  mov    %ecx,0xa8(%rsp)
  mov    %ecx,0x54(%rsp)
  cmp    %ecx,0x20(%rsp)
  jl     L168
  mov    0x38(%rsp),%rax
  shl    $0x2,%rax
  mov    %rax,0x40(%rsp)
  mov    %ecx,%eax
  add    $0x1,%eax
  cltq
  mov    %rax,0x18(%rsp)
  lea    -0x3(%rcx),%eax
  lea    0x10(%r15,%rax,8),%rax
  mov    %rax,0x58(%rsp)
  lea    0x0(,%rcx,4),%rax
  mov    %rax,0x60(%rsp)
  mov    %rcx,%rbx
  mov    %r13,%r12
  jmp    L151
L120:
  mov    0xa0(%rsp),%rax
  lea    0x2(%rax),%rdx
  mov    $0x1,%eax
  mov    0x98(%rsp),%rcx
  mov    0x68(%rsp),%rsi
  mov    0x28(%rsp),%rdi
L152:
  movss  (%rcx,%rax,4),%xmm0
  addss  (%rsi,%rax,4),%xmm0
  movss  %xmm0,(%rcx,%rax,4)
  movss  %xmm0,(%rdi,%rax,4)
  movl   $0x0,(%rsi,%rax,4)
  add    $0x1,%rax
  cmp    %rdx,%rax
  jne    L152
  addl   $0x1,0x24(%rsp)
  mov    0x24(%rsp),%eax
  cmp    $0x33,%eax
  je     L370
L335:
  cmpl   $0x1,0x20(%rsp)
  jle    L368
  lea    0x8(%r15),%r12
  mov    %r12,0x70(%rsp)
  mov    0x20(%rsp),%r14d
  lea    0x1(%r14),%eax
  mov    %rax,0x78(%rsp)
  mov    $0x2,%r13d
  pxor   %xmm6,%xmm6
  movss  %xmm6,(%rsp)
  mov    %r15,0x8(%rsp)
  mov    %rax,%r15
L96:
  mov    %r13d,%ebx
  cmp    %r13d,%r14d
  jl     L374
  lea    0x0(,%r13,4),%rbp
L396:
  mov    (%r12),%rax
  movss  (%rax,%rbp,1),%xmm0
  call   <fabs@plt>
  movapd %xmm0,%xmm1
  pxor   %xmm0,%xmm0
  cvtss2sd (%rsp),%xmm0
  addsd  %xmm1,%xmm0
  pxor   %xmm6,%xmm6
  cvtsd2ss %xmm0,%xmm6
  movss  %xmm6,(%rsp)
  add    $0x1,%ebx
  add    $0x4,%rbp
  cmp    %ebx,%r14d
  jge    L396
L374:
  add    $0x1,%r13
  add    $0x8,%r12
  cmp    %r15,%r13
  jne    L96
  mov    0x8(%rsp),%r15
  movss  (%rsp),%xmm6
  ucomiss D91(%rip),%xmm6
  jp     L19
  je     L368
L19:
  pxor   %xmm6,%xmm6
  movss  %xmm6,0x50(%rsp)
  cmpl   $0x3,0x24(%rsp)
  jle    L125
L246:
  mov    0x28(%rsp),%rax
  lea    0x4(%rax),%r14
  mov    0x70(%rsp),%r12
  movq   $0x1,0x38(%rsp)
  movq   $0x2,0x30(%rsp)
  mov    %r14,%r13
  mov    %r12,%r14
  jmp    L48
L370:
  mov    0x20(%rsp),%ebx
  mov    %ebx,%edx
  mov    $0x1,%esi
  mov    0x68(%rsp),%rdi
  call   <free_vector@plt>
  mov    %ebx,%edx
  mov    $0x1,%esi
  mov    0x98(%rsp),%rdi
  call   <free_vector@plt>
  lea    D115(%rip),%rdi
  call   <printf@plt>
  jmp    L37
```

tool_calls: name: read_data
arguments: label: D82
data_type: f32
name: read_data
arguments: label: D43
data_type: f64
name: read_data
arguments: label: D94
data_type: f64
name: read_data
arguments: label: D87
data_type: f32[2]
name: read_data
arguments: label: D80
data_type: f64
name: read_data
arguments: label: D100
data_type: byte[16]
name: read_data
arguments: label: D91
data_type: f32
name: read_data
arguments: label: D115
data_type: string

tool: D82: 1

tool: D43: 0.2

tool: D94: 100

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

tool: D80: 0.5

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

tool: D91: 0

tool: D115: Error(jacobi): too many iterations


assistant: ```c
void jacobi(float **a, int n, float d[], float **v, int *nrot) {
  int j, iq, ip, i;
  float tresh, theta, tau, t, sm, s, h, g, c, *b, *z;
  b = vector(1, n);
  z = vector(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_vector(z, 1, n);
      free_vector(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 && (float)(fabs(d[ip]) + g) == (float)fabs(d[ip]) && (float)(fabs(d[iq]) + g) == (float)fabs(d[iq]))
          a[ip][iq] = 0.0;
        else if (fabs(a[ip][iq]) > tresh) {
          h = d[iq] - d[ip];
          if ((float)(fabs(h) + g) == (float)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;
    }
  }
  free_vector(z, 1, n);
  free_vector(b, 1, n);
  printf("Error(jacobi): too many iterations\n");
}
```