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

```asm
<Jacobi>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x60,%rsp
  mov    %edi,-0x44(%rbp)
  mov    %esi,-0x48(%rbp)
  mov    %rdx,-0x50(%rbp)
  mov    %rcx,-0x58(%rbp)
  mov    %r8,-0x60(%rbp)
  movsd  D11(%rip),%xmm0
  movsd  %xmm0,-0x20(%rbp)
  movsd  D33(%rip),%xmm0
  movsd  %xmm0,-0x18(%rbp)
  mov    -0x44(%rbp),%eax
  cltq
  shl    $0x3,%eax
  mov    %eax,%edi
  call   <malloc@plt>
  mov    %rax,-0x10(%rbp)
  movl   $0x0,-0x2c(%rbp)
  jmp    L30
L53:
  movl   $0x0,-0x34(%rbp)
  jmp    L50
L63:
  mov    -0x34(%rbp),%eax
  imul   -0x44(%rbp),%eax
  mov    %eax,%edx
  mov    -0x34(%rbp),%eax
  add    %edx,%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x50(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm0
  movsd  %xmm0,-0x8(%rbp)
  mov    -0x34(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x60(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm0
  movsd  %xmm0,-0x28(%rbp)
  movsd  -0x8(%rbp),%xmm0
  movq   D15(%rip),%xmm1
  andpd  %xmm1,%xmm0
  comisd -0x18(%rbp),%xmm0
  seta   %al
  movzbl %al,%eax
  lea    D19(%rip),%rdx
  mov    %rdx,%rsi
  mov    %eax,%edi
  call   <assert@plt>
  movl   $0x0,-0x30(%rbp)
  jmp    L25
L49:
  mov    -0x34(%rbp),%eax
  imul   -0x44(%rbp),%eax
  mov    %eax,%edx
  mov    -0x30(%rbp),%eax
  add    %edx,%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x50(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm1
  mov    -0x30(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x58(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm0
  mulsd  %xmm0,%xmm1
  movsd  -0x28(%rbp),%xmm0
  subsd  %xmm1,%xmm0
  movsd  %xmm0,-0x28(%rbp)
  addl   $0x1,-0x30(%rbp)
L25:
  mov    -0x30(%rbp),%eax
  cmp    -0x34(%rbp),%eax
  jl     L49
  mov    -0x34(%rbp),%eax
  add    $0x1,%eax
  mov    %eax,-0x30(%rbp)
  jmp    L23
L19:
  mov    -0x34(%rbp),%eax
  imul   -0x44(%rbp),%eax
  mov    %eax,%edx
  mov    -0x30(%rbp),%eax
  add    %edx,%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x50(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm1
  mov    -0x30(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x58(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm0
  mulsd  %xmm0,%xmm1
  movsd  -0x28(%rbp),%xmm0
  subsd  %xmm1,%xmm0
  movsd  %xmm0,-0x28(%rbp)
  addl   $0x1,-0x30(%rbp)
L23:
  mov    -0x30(%rbp),%eax
  cmp    -0x44(%rbp),%eax
  jl     L19
  mov    -0x34(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x10(%rbp),%rax
  add    %rdx,%rax
  movsd  -0x28(%rbp),%xmm0
  divsd  -0x8(%rbp),%xmm0
  movsd  %xmm0,(%rax)
  addl   $0x1,-0x34(%rbp)
L50:
  mov    -0x34(%rbp),%eax
  cmp    -0x44(%rbp),%eax
  jl     L63
  movl   $0x0,-0x34(%rbp)
  jmp    L88
L0:
  mov    -0x34(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x10(%rbp),%rax
  add    %rax,%rdx
  mov    -0x34(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rcx
  mov    -0x58(%rbp),%rax
  add    %rcx,%rax
  movsd  (%rdx),%xmm0
  movsd  %xmm0,(%rax)
  addl   $0x1,-0x34(%rbp)
L88:
  mov    -0x34(%rbp),%eax
  cmp    -0x44(%rbp),%eax
  jl     L0
  addl   $0x1,-0x2c(%rbp)
L30:
  mov    -0x2c(%rbp),%eax
  cmp    -0x48(%rbp),%eax
  jl     L53
  nop
  nop
  leave
  ret
```

tool_calls: name: read_data
arguments: label: D11
data_type: byte[8]
name: read_data
arguments: label: D33
data_type: byte[8]
name: read_data
arguments: label: D15
data_type: qword
name: read_data
arguments: label: D19
data_type: string

tool: {"D11": [0x3a,0x8c,0x30,0xe2,0x8e,0x79,0x45,0x3e]}

tool: {"D33": [0xbc,0x89,0xd8,0x97,0xb2,0xd2,0x9c,0x3c]}

tool: D15: 9223372036854775807

tool: D19: Matriz singular.

assistant: ```c
void Jacobi(int n, int ks, double *A, double *x, double *b) {
  int i, j, k;
  double w, pivot, _alpha = 1E-8, _eps = 1E-16;
  double *xnext;
  xnext = malloc(n * sizeof(double));
  for (k = 0; k < ks; k++) {
    for (i = 0; i < n; i++) {
      pivot = A[i * n + i];
      w = b[i];
      assert(fabs(pivot) > _eps, "Matriz singular.");
      for (j = 0; j < i; j++) {
        w -= A[i * n + j] * x[j];
      }
      for (j = i + 1; j < n; j++) {
        w -= A[i * n + j] * x[j];
      }
      xnext[i] = w / pivot;
    }
    for (i = 0; i < n; i++) {
      x[i] = xnext[i];
    }
  }
}
```