user: Converte this assembly snippet into its equivalent C code:

```asm
<jacobi>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  mov    %rsi,%r12
  push   %rbx
  mov    %rdi,%rbx
  sub    $0x78,%rsp
  mov    %rdx,-0x90(%rbp)
  mov    %fs:0x28,%rax
  mov    %rax,-0x38(%rbp)
  mov    %rsp,%rax
  cmp    %rax,%rsp
  je     L105
L34:
  sub    $0x1000,%rsp
  orq    $0x0,0xff8(%rsp)
  cmp    %rax,%rsp
  jne    L34
L105:
  sub    $0x320,%rsp
  orq    $0x0,0x318(%rsp)
  lea    0x7(%rsp),%rax
  mov    %rax,%rdx
  and    $0xfffffffffffffff8,%rax
  mov    %rax,-0x98(%rbp)
  mov    %rsp,%rax
  shr    $0x3,%rdx
  cmp    %rax,%rsp
  je     L236
L135:
  sub    $0x1000,%rsp
  orq    $0x0,0xff8(%rsp)
  cmp    %rax,%rsp
  jne    L135
L236:
  sub    $0x320,%rsp
  orq    $0x0,0x318(%rsp)
  mov    D13(%rip),%r8
  pxor   %xmm0,%xmm0
  mov    -0x90(%rbp),%rsi
  mov    0x8(%rsi),%rax
  movups %xmm0,0x8(%rax)
  lea    0x7(%rsp),%r15
  movq   $0x0,0x18(%rax)
  mov    %r15,%rcx
  mov    %r15,%rdi
  mov    %r8,0x8(%rax)
  mov    0x10(%rsi),%rax
  and    $0xfffffffffffffff8,%rdi
  shr    $0x3,%rcx
  mov    %rdi,-0x88(%rbp)
  movups %xmm0,0x8(%rax)
  movq   $0x0,0x18(%rax)
  mov    %r8,0x10(%rax)
  mov    0x18(%rsi),%rax
  movabs $0x3ff0000000000000,%rsi
  movl   $0x1,-0x64(%rbp)
  movups %xmm0,0x8(%rax)
  mov    %rsi,0x18(%rax)
  mov    0x8(%rbx),%rax
  movsd  0x8(%rax),%xmm0
  mov    0x10(%rbx),%rax
  movsd  %xmm0,0x8(%r12)
  movsd  0x10(%rax),%xmm1
  mov    0x18(%rbx),%rax
  unpcklpd %xmm1,%xmm0
  movsd  %xmm1,0x10(%r12)
  movups %xmm0,0x8(,%rdx,8)
  movsd  0x18(%rax),%xmm0
  movsd  %xmm0,0x18(%r12)
  movsd  %xmm0,0x18(,%rdx,8)
  pxor   %xmm0,%xmm0
  movups %xmm0,0x8(,%rcx,8)
  movq   $0x0,0x18(%rdi)
  nopw   0x0(%rax,%rax,1)
L233:
  mov    0x8(%rbx),%rax
  movsd  0x10(%rax),%xmm0
  call   <fabs@plt>
  pxor   %xmm7,%xmm7
  mov    0x8(%rbx),%rax
  cvtss2sd %xmm0,%xmm0
  addsd  %xmm7,%xmm0
  movsd  %xmm0,-0x50(%rbp)
  movsd  0x18(%rax),%xmm0
  call   <fabs@plt>
  movsd  -0x50(%rbp),%xmm6
  mov    0x10(%rbx),%rax
  cvtss2sd %xmm0,%xmm0
  addsd  %xmm0,%xmm6
  movsd  0x18(%rax),%xmm0
  movsd  %xmm6,-0x50(%rbp)
  call   <fabs@plt>
  pxor   %xmm7,%xmm7
  cvtss2sd %xmm0,%xmm0
  addsd  -0x50(%rbp),%xmm0
  ucomisd %xmm7,%xmm0
  jp     L48
  je     L203
L48:
  cmpl   $0x3,-0x64(%rbp)
  movq   $0x0,-0x70(%rbp)
  jle    L119
L100:
  mov    $0x2,%r14d
L40:
  lea    -0x8(,%r14,8),%rax
  mov    %r14d,-0x68(%rbp)
  mov    %r14,%r15
  mov    %rax,-0x78(%rbp)
L205:
  mov    -0x8(%rbx,%r14,8),%rcx
  lea    0x0(,%r15,8),%r13
  movsd  (%rcx,%r15,8),%xmm0
  call   <fabs@plt>
  pxor   %xmm6,%xmm6
  cmpl   $0x4,-0x64(%rbp)
  mulss  D73(%rip),%xmm0
  cvtss2sd %xmm0,%xmm6
  movsd  %xmm6,-0x50(%rbp)
  jle    L158
  movsd  -0x8(%r12,%r14,8),%xmm0
  call   <fabs@plt>
  pxor   %xmm1,%xmm1
  cvtss2sd %xmm0,%xmm1
  addsd  -0x50(%rbp),%xmm1
  movsd  -0x8(%r12,%r14,8),%xmm0
  movsd  %xmm1,-0x60(%rbp)
  call   <fabs@plt>
  movsd  -0x60(%rbp),%xmm1
  cvtss2sd %xmm0,%xmm0
  ucomisd %xmm0,%xmm1
  jp     L158
  je     L144
L158:
  mov    -0x8(%rbx,%r14,8),%rcx
  movsd  (%rcx,%r13,1),%xmm0
  call   <fabs@plt>
  cvtss2sd %xmm0,%xmm0
  comisd -0x70(%rbp),%xmm0
  ja     L49
L194:
  add    $0x1,%r15
  cmp    $0x4,%r15d
  jne    L205
  cmp    $0x3,%r14
  je     L103
  mov    $0x3,%r14d
  jmp    L40
  nopl   (%rax)
L144:
  movsd  (%r12,%r15,8),%xmm0
  call   <fabs@plt>
  pxor   %xmm1,%xmm1
  cvtss2sd %xmm0,%xmm1
  addsd  -0x50(%rbp),%xmm1
  movsd  (%r12,%r15,8),%xmm0
  movsd  %xmm1,-0x60(%rbp)
  call   <fabs@plt>
  movsd  -0x60(%rbp),%xmm1
  cvtss2sd %xmm0,%xmm0
  ucomisd %xmm0,%xmm1
  jp     L158
  jne    L158
  mov    -0x8(%rbx,%r14,8),%rcx
  movq   $0x0,(%rcx,%r13,1)
  jmp    L194
  nopl   0x0(%rax,%rax,1)
L49:
  movsd  (%r12,%r15,8),%xmm2
  subsd  -0x8(%r12,%r14,8),%xmm2
  movapd %xmm2,%xmm0
  movsd  %xmm2,-0x80(%rbp)
  call   <fabs@plt>
  movsd  -0x50(%rbp),%xmm1
  movsd  -0x80(%rbp),%xmm2
  cvtss2sd %xmm0,%xmm0
  addsd  %xmm0,%xmm1
  movapd %xmm2,%xmm0
  movsd  %xmm2,-0x50(%rbp)
  movsd  %xmm1,-0x60(%rbp)
  call   <fabs@plt>
  movsd  -0x60(%rbp),%xmm1
  movsd  -0x50(%rbp),%xmm2
  cvtss2sd %xmm0,%xmm0
  ucomisd %xmm0,%xmm1
  jp     L6
  jne    L6
  mov    -0x8(%rbx,%r14,8),%rcx
  movl   $0x3f800000,-0x60(%rbp)
  movsd  (%rcx,%r13,1),%xmm1
  divsd  %xmm2,%xmm1
L216:
  movapd %xmm1,%xmm0
  movsd  %xmm1,-0x50(%rbp)
  mulsd  %xmm1,%xmm0
  addsd  D13(%rip),%xmm0
  cvtsd2ss %xmm0,%xmm0
  call   <sqrt@plt>
  movsd  -0x50(%rbp),%xmm1
  mov    -0x8(%rbx,%r14,8),%rcx
  movaps %xmm0,%xmm2
  movss  -0x60(%rbp),%xmm0
  mov    -0x88(%rbp),%rax
  movapd %xmm1,%xmm4
  lea    (%rcx,%r13,1),%rsi
  cmpl   $0x3,-0x68(%rbp)
  mulsd  (%rsi),%xmm1
  divss  %xmm2,%xmm0
  cvtss2sd %xmm0,%xmm0
  mulsd  %xmm0,%xmm4
  addsd  D13(%rip),%xmm0
  movapd %xmm4,%xmm3
  divsd  %xmm0,%xmm3
  movsd  -0x8(%rax,%r14,8),%xmm0
  subsd  %xmm1,%xmm0
  movsd  %xmm0,-0x8(%rax,%r14,8)
  movsd  (%rax,%r15,8),%xmm0
  addsd  %xmm1,%xmm0
  movsd  %xmm0,(%rax,%r15,8)
  movsd  -0x8(%r12,%r14,8),%xmm0
  subsd  %xmm1,%xmm0
  movsd  %xmm0,-0x8(%r12,%r14,8)
  addsd  (%r12,%r15,8),%xmm1
  movsd  %xmm1,(%r12,%r15,8)
  movq   $0x0,(%rsi)
  jne    L190
  mov    0x8(%rbx),%rsi
  mov    -0x78(%rbp),%rax
  movapd %xmm3,%xmm1
  lea    (%rsi,%rax,1),%rdi
  add    %r13,%rsi
  movsd  (%rdi),%xmm0
  movsd  (%rsi),%xmm2
  mulsd  %xmm0,%xmm1
  movapd %xmm0,%xmm5
  addsd  %xmm2,%xmm1
  mulsd  %xmm4,%xmm1
  subsd  %xmm1,%xmm5
  movapd %xmm3,%xmm1
  mulsd  %xmm2,%xmm1
  movsd  %xmm5,(%rdi)
  subsd  %xmm1,%xmm0
  mulsd  %xmm4,%xmm0
  addsd  %xmm2,%xmm0
  movsd  %xmm0,(%rsi)
L190:
  mov    %r15d,%edi
  cmp    %r14d,%r15d
  jle    L37
  mov    0x10(%rbx),%rsi
  add    %r13,%rsi
  movsd  (%rsi),%xmm2
  cmp    $0x3,%r15d
  je     L94
  nopl   0x0(%rax,%rax,1)
L156:
  movsd  0x10(%rcx),%xmm0
  movapd %xmm3,%xmm1
  mulsd  %xmm0,%xmm1
  movapd %xmm0,%xmm5
  addsd  %xmm2,%xmm1
  mulsd  %xmm4,%xmm1
  subsd  %xmm1,%xmm5
  movapd %xmm3,%xmm1
  mulsd  %xmm2,%xmm1
  movsd  %xmm5,0x10(%rcx)
  subsd  %xmm1,%xmm0
  mulsd  %xmm4,%xmm0
  addsd  %xmm0,%xmm2
  movsd  %xmm2,(%rsi)
  jmp    L156
L94:
  movsd  0x10(%rcx),%xmm0
  movapd %xmm0,%xmm1
  movapd %xmm0,%xmm5
  mulsd  %xmm3,%xmm1
  addsd  %xmm2,%xmm1
  mulsd  %xmm4,%xmm1
  subsd  %xmm1,%xmm5
  movapd %xmm3,%xmm1
  mulsd  %xmm2,%xmm1
  movsd  %xmm5,0x10(%rcx)
  subsd  %xmm1,%xmm0
  mulsd  %xmm4,%xmm0
  addsd  %xmm2,%xmm0
  movsd  %xmm0,(%rsi)
L37:
  cmp    $0x3,%edi
  je     L104
  movsd  0x18(%rcx),%xmm0
  movapd %xmm3,%xmm1
  mov    (%rbx,%r15,8),%rsi
  mulsd  %xmm0,%xmm1
  movsd  0x18(%rsi),%xmm2
  movapd %xmm0,%xmm5
  addsd  %xmm2,%xmm1
  mulsd  %xmm4,%xmm1
  subsd  %xmm1,%xmm5
  movapd %xmm3,%xmm1
  mulsd  %xmm2,%xmm1
  movsd  %xmm5,0x18(%rcx)
  subsd  %xmm1,%xmm0
  mulsd  %xmm4,%xmm0
  addsd  %xmm2,%xmm0
  movsd  %xmm0,0x18(%rsi)
L104:
  mov    -0x90(%rbp),%rax
  mov    -0x78(%rbp),%rdi
  movapd %xmm3,%xmm1
  mov    0x8(%rax),%rcx
  lea    (%rcx,%rdi,1),%rsi
  add    %r13,%rcx
  movsd  (%rsi),%xmm0
  movsd  (%rcx),%xmm2
  mulsd  %xmm0,%xmm1
  movapd %xmm0,%xmm5
  addsd  %xmm2,%xmm1
  mulsd  %xmm4,%xmm1
  subsd  %xmm1,%xmm5
  movapd %xmm3,%xmm1
  mulsd  %xmm2,%xmm1
  movsd  %xmm5,(%rsi)
  subsd  %xmm1,%xmm0
  movapd %xmm3,%xmm1
  mulsd  %xmm4,%xmm0
  addsd  %xmm2,%xmm0
  movsd  %xmm0,(%rcx)
  mov    0x10(%rax),%rcx
  mov    0x18(%rax),%rax
  lea    (%rcx,%rdi,1),%rsi
  add    %r13,%rcx
  mov    %rax,-0x50(%rbp)
  movsd  (%rsi),%xmm0
  movsd  (%rcx),%xmm2
  mulsd  %xmm0,%xmm1
  movapd %xmm0,%xmm5
  addsd  %xmm2,%xmm1
  mulsd  %xmm4,%xmm1
  subsd  %xmm1,%xmm5
  movapd %xmm3,%xmm1
  mulsd  %xmm2,%xmm1
  movsd  %xmm5,(%rsi)
  mov    %rax,%rsi
  add    %rdi,%rsi
  subsd  %xmm1,%xmm0
  movapd %xmm3,%xmm1
  mulsd  %xmm4,%xmm0
  addsd  %xmm2,%xmm0
  movsd  %xmm0,(%rcx)
  lea    (%rax,%r13,1),%rcx
  movsd  (%rsi),%xmm0
  movsd  (%rcx),%xmm2
  mulsd  %xmm0,%xmm1
  movapd %xmm0,%xmm5
  mulsd  %xmm2,%xmm3
  addsd  %xmm2,%xmm1
  subsd  %xmm3,%xmm0
  mulsd  %xmm4,%xmm1
  mulsd  %xmm4,%xmm0
  subsd  %xmm1,%xmm5
  addsd  %xmm2,%xmm0
  movsd  %xmm5,(%rsi)
  movsd  %xmm0,(%rcx)
  jmp    L194
  nopw   0x0(%rax,%rax,1)
L103:
  mov    -0x88(%rbp),%rax
  mov    -0x98(%rbp),%rdx
  addl   $0x1,-0x64(%rbp)
  movupd 0x8(%rax),%xmm7
  movupd 0x8(%rdx),%xmm3
  movapd %xmm7,%xmm0
  movaps %xmm7,-0x50(%rbp)
  addpd  %xmm3,%xmm0
  movaps %xmm3,-0x60(%rbp)
  movups %xmm0,0x8(%rdx)
  movups %xmm0,0x8(%r12)
  pxor   %xmm0,%xmm0
  movups %xmm0,0x8(%rax)
  movsd  0x18(%rdx),%xmm0
  addsd  0x18(%rax),%xmm0
  movq   $0x0,0x18(%rax)
  mov    -0x64(%rbp),%eax
  movsd  %xmm0,0x18(%rdx)
  movsd  %xmm0,0x18(%r12)
  cmp    $0x33,%eax
  jne    L233
  xor    %edi,%edi
  call   <assert@plt>
  mov    $0x1,%eax
  nopl   0x0(%rax)
L258:
  mov    -0x38(%rbp),%rdx
  sub    %fs:0x28,%rdx
  jne    L297
  lea    -0x28(%rbp),%rsp
  pop    %rbx
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  pop    %rbp
  ret
  nopw   0x0(%rax,%rax,1)
L6:
  mov    -0x8(%rbx,%r14,8),%rcx
  mulsd  D27(%rip),%xmm2
  divsd  (%rcx,%r13,1),%xmm2
  movapd %xmm2,%xmm0
  movsd  %xmm2,-0x60(%rbp)
  call   <fabs@plt>
  movsd  -0x60(%rbp),%xmm2
  movss  %xmm0,-0x50(%rbp)
  movsd  D13(%rip),%xmm0
  movapd %xmm2,%xmm3
  movsd  %xmm2,-0x80(%rbp)
  mulsd  %xmm2,%xmm3
  addsd  %xmm3,%xmm0
  cvtsd2ss %xmm0,%xmm0
  call   <sqrt@plt>
  addss  -0x50(%rbp),%xmm0
  movss  D17(%rip),%xmm1
  movsd  -0x80(%rbp),%xmm2
  pxor   %xmm3,%xmm3
  movl   $0x3f800000,-0x60(%rbp)
  divss  %xmm0,%xmm1
  comisd %xmm2,%xmm3
  cvtss2sd %xmm1,%xmm1
  jbe    L216
  xorpd  D72(%rip),%xmm1
  jmp    L216
  nopl   0x0(%rax)
L203:
  xor    %eax,%eax
  jmp    L258
L119:
  mulsd  D56(%rip),%xmm0
  divsd  D87(%rip),%xmm0
  movsd  %xmm0,-0x70(%rbp)
  jmp    L100
L297:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: extract_symbolic_data
arguments: tag: D13
type_infered: byte[8]
name: extract_symbolic_data
arguments: tag: D73
type_infered: byte[4]
name: extract_symbolic_data
arguments: tag: D27
type_infered: byte[8]
name: extract_symbolic_data
arguments: tag: D17
type_infered: byte[4]
name: extract_symbolic_data
arguments: tag: D72
type_infered: byte[16]
name: extract_symbolic_data
arguments: tag: D56
type_infered: byte[8]
name: extract_symbolic_data
arguments: tag: D87
type_infered: byte[8]

tool: {"D13": [0x00,0x00,0x00,0x00,0x00,0x00,0xf0,0x3f]}

tool: {"D73": [0x00,0x00,0xc8,0x42]}

tool: {"D27": [0x00,0x00,0x00,0x00,0x00,0x00,0xe0,0x3f]}

tool: {"D17": [0x00,0x00,0x80,0x3f]}

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

tool: {"D56": [0x00,0x00,0x00,0xa0,0x99,0x99,0xc9,0x3f]}

tool: {"D87": [0x00,0x00,0x00,0x00,0x00,0x00,0x22,0x40]}

assistant: ```c
int jacobi(double **a, double *d, double **v) {
  int nrot = 0;
  const unsigned int nmax = 100, n = 3;
  double b[nmax], z[nmax], tresh, sm, g, h, t, theta, c, s, tau;
  int i, j, ip, iq;
  for (ip = 1; ip <= n; ip++) {
    for (iq = 1; iq <= n; iq++)
      v[ip][iq] = 0.0f;
    v[ip][ip] = 1.0f;
  }
  for (ip = 1; ip <= n; ip++) {
    b[ip] = d[ip] = a[ip][ip];
    z[ip] = 0.0f;
  }
  for (i = 1; i <= 50; i++) {
    sm = 0.0f;
    for (ip = 1; ip <= n - 1; ip++) {
      for (iq = ip + 1; iq <= n; iq++)
        sm += fabs(a[ip][iq]);
    }
    if (sm == 0.0f)
      return (0);
    if (i < 4) {
      tresh = 0.2f * sm / (n * n);
    } else {
      tresh = 0.0f;
    }
    for (ip = 1; ip <= n - 1; ip++) {
      for (iq = ip + 1; iq <= n; iq++) {
        g = 100.0f * fabs(a[ip][iq]);
        if ((i > 4) && (double)(fabs(d[ip]) + g) == (double)fabs(d[ip]) && (double)(fabs(d[iq]) + g) == (double)fabs(d[iq]))
          a[ip][iq] = 0.0f;
        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.5f * h / (a[ip][iq]);
            t = 1.0f / (fabs(theta) + sqrt(1.0f + theta * theta));
            if (theta < 0.0f)
              t *= -1.0f;
          }
          c = 1.0f / sqrt(1.0f + t * t);
          s = t * c;
          tau = s / (1.0f + c);
          h = t * a[ip][iq];
          z[ip] -= h;
          z[iq] += h;
          d[ip] -= h;
          d[iq] += h;
          a[ip][iq] = 0.0f;
          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.0f;
    }
  }
  assert(i < 50);
  return 1;
}
```