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

```asm
<jacobi>:
  endbr64
  push   %r15
  lea    D84(%rip),%rdi
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x1b8,%rsp
  movsd  D131(%rip),%xmm0
  movsd  D35(%rip),%xmm1
  mov    %fs:0x28,%rax
  mov    %rax,0x1a8(%rsp)
  xor    %eax,%eax
  mov    D11(%rip),%rax
  movsd  %xmm0,0xd0(%rsp)
  mov    %rax,0xe8(%rsp)
  mov    D128(%rip),%rax
  movsd  %xmm0,0xd8(%rsp)
  movsd  D66(%rip),%xmm0
  mov    %rax,0x100(%rsp)
  mov    D86(%rip),%rax
  movsd  %xmm0,0xe0(%rsp)
  mov    %rax,0x20(%rsp)
  mov    D113(%rip),%rax
  movsd  %xmm0,0xf0(%rsp)
  mov    %rax,0x28(%rsp)
  mov    D31(%rip),%rax
  movsd  %xmm0,0xf8(%rsp)
  pxor   %xmm0,%xmm0
  movsd  %xmm1,0xc0(%rsp)
  movsd  %xmm1,0xc8(%rsp)
  mov    %rax,0x30(%rsp)
  movaps %xmm0,0x110(%rsp)
  movaps %xmm0,0x120(%rsp)
  movaps %xmm0,0x130(%rsp)
  movaps %xmm0,0x140(%rsp)
  movq   $0x0,0x150(%rsp)
  movq   $0x0,0x1a0(%rsp)
  movq   $0x0,0x40(%rsp)
  movq   $0x0,0x48(%rsp)
  movq   $0x0,0x50(%rsp)
  movq   $0x0,0x70(%rsp)
  movq   $0x0,0x90(%rsp)
  movq   $0x0,0xb0(%rsp)
  movaps %xmm0,0x160(%rsp)
  movaps %xmm0,0x170(%rsp)
  movaps %xmm0,0x180(%rsp)
  movaps %xmm0,0x190(%rsp)
  movaps %xmm0,0x60(%rsp)
  movaps %xmm0,0x80(%rsp)
  movaps %xmm0,0xa0(%rsp)
  call   <puts@plt>
  mov    D35(%rip),%rax
  xor    %esi,%esi
  xor    %ecx,%ecx
  lea    0x110(%rsp),%r9
  lea    0x160(%rsp),%r8
  mov    %r9,(%rsp)
  lea    0xc0(%rsp),%rdi
  movq   %rax,%xmm1
  mov    %r8,0x10(%rsp)
L61:
  mov    %rsi,%rdx
  xor    %eax,%eax
L71:
  movsd  (%rdi,%rdx,1),%xmm0
  cmp    %eax,%ecx
  je     L31
  movsd  %xmm0,(%rdx,%r8,1)
L107:
  add    $0x1,%eax
  add    $0x8,%rdx
  cmp    $0x3,%eax
  jne    L71
  add    $0x1,%ecx
  add    $0x18,%rsi
  cmp    $0x3,%ecx
  jne    L61
  lea    0xa0(%rsp),%rax
  mov    %rdi,0x18(%rsp)
  xor    %r15d,%r15d
  lea    0x40(%rsp),%r13
  lea    0x60(%rsp),%rbx
  lea    0x20(%rsp),%r14
  mov    %rax,0x8(%rsp)
  lea    0x80(%rsp),%r12
  lea    0x158(%rsp),%rbp
  mov    %r12,%rax
  mov    %r13,%r12
  mov    %rbx,%r13
  mov    %r15d,%ebx
  mov    %r14,%r15
  mov    %rax,%r14
  nopl   0x0(%rax)
L98:
  movq   $0x0,0x68(%rsp)
  xor    %eax,%eax
  mov    0x10(%rsp),%rdx
  pxor   %xmm1,%xmm1
  movq   $0x0,0x70(%rsp)
  movsd  0x40(%rsp),%xmm4
  movq   $0x0,0x80(%rsp)
  movsd  0x48(%rsp),%xmm3
  movq   $0x0,0x88(%rsp)
  movsd  0x50(%rsp),%xmm2
  movq   $0x0,0xa8(%rsp)
  movq   $0x0,0x90(%rsp)
  movq   $0x0,0xb0(%rsp)
L23:
  movsd  (%rdx),%xmm0
  add    $0x18,%rdx
  mulsd  %xmm4,%xmm0
  addsd  %xmm1,%xmm0
  movsd  -0x10(%rdx),%xmm1
  mulsd  %xmm3,%xmm1
  addsd  %xmm1,%xmm0
  movsd  -0x8(%rdx),%xmm1
  mulsd  %xmm2,%xmm1
  addsd  %xmm1,%xmm0
  movsd  (%r15,%rax,1),%xmm1
  subsd  %xmm0,%xmm1
  movsd  %xmm0,0x0(%r13,%rax,1)
  movsd  %xmm1,(%r14,%rax,1)
  add    $0x8,%rax
  cmp    $0x18,%rax
  je     L36
  movsd  0x0(%r13,%rax,1),%xmm1
  jmp    L23
  nopw   0x0(%rax,%rax,1)
L36:
  mov    (%rsp),%rax
  mov    0x8(%rsp),%rdx
  mov    %r12,%rdi
  pxor   %xmm1,%xmm1
  movsd  0x80(%rsp),%xmm4
  movsd  0x88(%rsp),%xmm3
  movsd  0x90(%rsp),%xmm2
L21:
  movsd  (%rax),%xmm0
  add    $0x18,%rax
  add    $0x8,%rdx
  add    $0x8,%rdi
  mulsd  %xmm4,%xmm0
  addsd  %xmm1,%xmm0
  movsd  -0x10(%rax),%xmm1
  mulsd  %xmm3,%xmm1
  addsd  %xmm1,%xmm0
  movsd  -0x8(%rax),%xmm1
  mulsd  %xmm2,%xmm1
  addsd  %xmm1,%xmm0
  movsd  %xmm0,-0x8(%rdx)
  movsd  %xmm0,-0x8(%rdi)
  cmp    %rbp,%rax
  je     L111
  movsd  (%rdx),%xmm1
  jmp    L21
  nopw   0x0(%rax,%rax,1)
L111:
  mov    0x18(%rsp),%rdi
  mov    %r15,%rdx
  mov    %r12,%rsi
  add    $0x1,%ebx
  call   <check_convergence@plt>
  test   %eax,%eax
  jne    L46
  cmp    $0xf9,%ebx
  jle    L98
L46:
  cmp    $0xfa,%ebx
  je     L27
  mov    %ebx,%esi
  lea    D42(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
  lea    D72(%rip),%rdi
  call   <puts@plt>
  mov    $0x3,%esi
  mov    %r12,%rdi
  call   <print_vector@plt>
L99:
  lea    D7(%rip),%rdi
  call   <puts@plt>
  mov    0x1a8(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L51
  add    $0x1b8,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nopl   (%rax)
L31:
  movapd %xmm1,%xmm2
  divsd  %xmm0,%xmm2
  movsd  %xmm2,(%rdx,%r9,1)
  jmp    L107
L27:
  lea    D43(%rip),%rdi
  call   <puts@plt>
  jmp    L99
L51:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: read_data
arguments: data_tag: D84
datatype: string
name: read_data
arguments: data_tag: D131
datatype: f64
name: read_data
arguments: data_tag: D35
datatype: f64
name: read_data
arguments: data_tag: D11
datatype: f64
name: read_data
arguments: data_tag: D128
datatype: f64
name: read_data
arguments: data_tag: D66
datatype: f64
name: read_data
arguments: data_tag: D86
datatype: f64
name: read_data
arguments: data_tag: D113
datatype: f64
name: read_data
arguments: data_tag: D31
datatype: f64
name: read_data
arguments: data_tag: D42
datatype: string
name: read_data
arguments: data_tag: D72
datatype: string
name: read_data
arguments: data_tag: D7
datatype: string
name: read_data
arguments: data_tag: D43
datatype: string

tool: D84: 
----------Question1_Jacobi : ----------


tool: D131: 2

tool: D35: 1

tool: D11: 5

tool: D128: 6

tool: D66: 3

tool: D86: 12

tool: D113: 27

tool: D31: 36

tool: D42: Jacobi Method is converged in %d iterations.

tool: D72: Solution,  x: 

tool: D7: 
----------EndOfJacobiMethod----------


tool: D43: Jacobi Method is failed! (Maximum number of iterations is reached)

assistant: ```c
void jacobi() {
  double A[3][3] = {{1.0, 1.0, 2.0}, {2.0, 3.0, 5.0}, {3.0, 3.0, 6.0}};
  double b[3] = {12.0, 27.0, 36.0};
  double D[3][3] = {0};
  double D_1[3][3] = {0};
  double R[3][3] = {0};
  double x[3] = {0.0, 0.0, 0.0};
  double temp1[3] = {0};
  double temp2[3] = {0};
  double temp3[3] = {0};
  double b_check[3] = {0};
  int check = 0;
  int count = 0;
  int i, j;
  printf("\n----------Question1_Jacobi : ----------\n\n");
  for (i = 0; i < 3; i++) {
    for (j = 0; j < 3; j++) {
      if (i == j) {
        D[i][j] = A[i][j];
        D_1[i][j] = 1.0 / A[i][j];
      } else {
        R[i][j] = A[i][j];
      }
    }
  }
  while ((check == 0) && (count < 250)) {
    for (i = 0; i < 3; i++) {
      temp1[i] = 0.0;
      temp2[i] = 0.0;
      temp3[i] = 0.0;
    }
    for (i = 0; i < 3; i++) {
      for (j = 0; j < 3; j++) {
        temp1[i] = temp1[i] + R[i][j] * x[j];
      }
      temp2[i] = b[i] - temp1[i];
    }
    for (i = 0; i < 3; i++) {
      for (j = 0; j < 3; j++) {
        temp3[i] = temp3[i] + D_1[i][j] * temp2[j];
      }
      x[i] = temp3[i];
    }
    count = count + 1;
    check = check_convergence(A, x, b);
  }
  for (i = 0; i < 3; i++) {
    for (j = 0; j < 3; j++) {
      b_check[i] = b_check[i] + A[i][j] * x[j];
    }
  }
  if (count == 250) {
    printf("Jacobi Method is failed! (Maximum number of iterations is reached)\n");
  } else {
    printf("Jacobi Method is converged in %d iterations.", count);
    printf("Solution,  x: \n");
    print_vector(x, 3);
  }
  printf("\n----------EndOfJacobiMethod----------\n\n");
}
```