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

```asm
<JacobiOmpLoopV4err>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x28,%rsp
  mov    %rsi,(%rsp)
  mov    %edx,0x14(%rsp)
  movsd  %xmm0,0x18(%rsp)
  mov    %r8d,0xc(%rsp)
  mov    0x60(%rsp),%r14
  movapd %xmm0,%xmm1
  mulsd  D7(%rip),%xmm1
  comisd %xmm0,%xmm1
  jb     L117
  mov    %rdi,%r15
  mov    %edx,%eax
  mov    %ecx,%ebp
  imul   %ecx,%edx
  mov    %edx,0x10(%rsp)
  lea    -0x3(%rax),%eax
  shl    $0x3,%rax
  lea    0x8(%rdi,%rax,1),%r13
  lea    -0x3(%rcx),%edx
  lea    0x10(,%rdx,8),%rbx
  lea    0x8(%rsi,%rax,1),%r12
  sub    $0x1,%ebp
  jmp    L73
L112:
  mov    0x8(%rdx),%rcx
  mov    (%rdx),%r8
  mov    0x10(%rdx),%rdi
  movsd  (%r8,%rax,1),%xmm0
  addsd  (%rdi,%rax,1),%xmm0
  addsd  -0x8(%rcx,%rax,1),%xmm0
  mov    %rax,%rdi
  add    $0x8,%rax
  mov    (%rsi),%r8
  addsd  (%rcx,%rax,1),%xmm0
  mulsd  D20(%rip),%xmm0
  movsd  %xmm0,(%r8,%rdi,1)
  cmp    %rbx,%rax
  jne    L112
L145:
  add    $0x8,%rdx
  add    $0x8,%rsi
  cmp    %r13,%rdx
  je     L67
L23:
  mov    $0x8,%eax
  cmp    $0x1,%ebp
  jg     L112
  jmp    L145
L67:
  lea    0x8(%r15),%rsi
  mov    (%rsp),%rdx
  jmp    L74
L78:
  mov    0x8(%rdx),%rdi
  mov    (%rdx),%r8
  mov    0x10(%rdx),%rcx
  movsd  (%r8,%rax,1),%xmm0
  addsd  (%rcx,%rax,1),%xmm0
  addsd  -0x8(%rdi,%rax,1),%xmm0
  mov    %rax,%rcx
  add    $0x8,%rax
  mov    (%rsi),%r8
  addsd  (%rdi,%rax,1),%xmm0
  mulsd  D20(%rip),%xmm0
  movsd  %xmm0,(%r8,%rcx,1)
  mov    (%rsi),%r8
  mov    0x8(%rdx),%rdi
  movsd  (%r8,%rcx,1),%xmm0
  subsd  (%rdi,%rcx,1),%xmm0
  mulsd  %xmm0,%xmm0
  addsd  %xmm0,%xmm1
  cmp    %rbx,%rax
  jne    L78
L103:
  add    $0x8,%rdx
  add    $0x8,%rsi
  cmp    %r12,%rdx
  je     L52
L74:
  mov    $0x8,%eax
  cmp    $0x1,%ebp
  jg     L78
  jmp    L103
L52:
  addl   $0x2,(%r14)
  movapd %xmm1,%xmm0
  call   <sqrt@plt>
  cltd
  idivl  0x10(%rsp)
  pxor   %xmm1,%xmm1
  cvtsi2sd %eax,%xmm1
  comisd 0x18(%rsp),%xmm1
  jb     L117
L73:
  mov    0xc(%rsp),%eax
  cmp    %eax,(%r14)
  jge    L117
  mov    (%rsp),%rax
  lea    0x8(%rax),%rsi
  mov    %r15,%rdx
  cmpl   $0x2,0x14(%rsp)
  jg     L23
  jmp    L52
L117:
  movapd %xmm1,%xmm0
  add    $0x28,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
```

tool_calls: name: read_data
arguments: data_tag: D7
data_type: f64
name: read_data
arguments: data_tag: D20
data_type: byte[8]

tool: D7: 10

tool: {"D20": [0x00,0x00,0x00,0x00,0x00,0x00,0xd0,0x3f]}

assistant: ```c
double JacobiOmpLoopV4err(double **up, double **wp, int m, int n, double eps, int maxit, int iterations_print, int *iterations) {
  int i;
  int j;
  double error = 10.0 * eps;
  while (error >= eps && *iterations < maxit) {
#pragma omp parallel private(j)
    {
#pragma omp for schedule(OMP_SCHED)
      for (i = 1; i < m - 1; i++) {
        for (j = 1; j < n - 1; j++) {
          wp[i][j] = (up[i - 1][j] + up[i + 1][j] + up[i][j - 1] + up[i][j + 1]) / 4.0;
        }
      }
#pragma omp for schedule(OMP_SCHED) reduction(+ : error) nowait
      for (i = 1; i < m - 1; i++) {
        for (j = 1; j < n - 1; j++) {
          up[i][j] = (wp[i - 1][j] + wp[i + 1][j] + wp[i][j - 1] + wp[i][j + 1]) / 4.0;
          error += (up[i][j] - wp[i][j]) * (up[i][j] - wp[i][j]);
        }
      }
    }
    *iterations += 2;
    error = sqrt(error) / (m * n);
  }
  return error;
}
```