user: 请将以下的汇编代码转换成C语言代码：

```asm
<gauss_seidel>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x70,%rsp
  mov    %rdi,-0x48(%rbp)
  mov    %rsi,-0x50(%rbp)
  mov    %rdx,-0x58(%rbp)
  mov    %ecx,-0x5c(%rbp)
  mov    %r8d,-0x60(%rbp)
  movsd  %xmm0,-0x68(%rbp)
  movsd  D12(%rip),%xmm0
  movsd  %xmm0,-0x18(%rbp)
  movl   $0x0,-0x38(%rbp)
  jmp    L64
L181:
  mov    -0x38(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x48(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%rdx
  mov    -0x38(%rbp),%eax
  cltq
  shl    $0x3,%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm0
  movsd  %xmm0,-0x8(%rbp)
  movl   $0x0,-0x34(%rbp)
  jmp    L26
L56:
  mov    -0x38(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x48(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%rdx
  mov    -0x34(%rbp),%eax
  cltq
  shl    $0x3,%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm0
  mov    -0x38(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x48(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%rdx
  mov    -0x34(%rbp),%eax
  cltq
  shl    $0x3,%rax
  add    %rdx,%rax
  divsd  -0x8(%rbp),%xmm0
  movsd  %xmm0,(%rax)
  addl   $0x1,-0x34(%rbp)
L26:
  mov    -0x5c(%rbp),%eax
  cmp    -0x34(%rbp),%eax
  jg     L56
  mov    -0x38(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x50(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm0
  mov    -0x38(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x50(%rbp),%rax
  add    %rdx,%rax
  divsd  -0x8(%rbp),%xmm0
  movsd  %xmm0,(%rax)
  addl   $0x1,-0x38(%rbp)
L64:
  mov    -0x5c(%rbp),%eax
  cmp    -0x38(%rbp),%eax
  jg     L181
  movl   $0x0,-0x38(%rbp)
  jmp    L151
L167:
  mov    -0x38(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x50(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm0
  movsd  %xmm0,-0x28(%rbp)
  movl   $0x0,-0x34(%rbp)
  jmp    L45
L9:
  mov    -0x38(%rbp),%eax
  cmp    -0x34(%rbp),%eax
  je     L126
  mov    -0x38(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x48(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%rdx
  mov    -0x34(%rbp),%eax
  cltq
  shl    $0x3,%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm1
  mov    -0x34(%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)
L126:
  addl   $0x1,-0x34(%rbp)
L45:
  mov    -0x5c(%rbp),%eax
  cmp    -0x34(%rbp),%eax
  jg     L9
  mov    -0x38(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x58(%rbp),%rax
  add    %rdx,%rax
  movsd  -0x28(%rbp),%xmm0
  movsd  %xmm0,(%rax)
  addl   $0x1,-0x38(%rbp)
L151:
  mov    -0x5c(%rbp),%eax
  cmp    -0x38(%rbp),%eax
  jg     L167
  movl   $0x1,-0x30(%rbp)
  movl   $0x1,-0x2c(%rbp)
L195:
  movl   $0x0,-0x38(%rbp)
  jmp    L153
L135:
  mov    -0x38(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x58(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm0
  movsd  %xmm0,-0x10(%rbp)
  mov    -0x38(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x50(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm0
  movsd  %xmm0,-0x28(%rbp)
  movl   $0x0,-0x34(%rbp)
  jmp    L136
L133:
  mov    -0x38(%rbp),%eax
  cmp    -0x34(%rbp),%eax
  je     L146
  mov    -0x38(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x48(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%rdx
  mov    -0x34(%rbp),%eax
  cltq
  shl    $0x3,%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm1
  mov    -0x34(%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)
L146:
  addl   $0x1,-0x34(%rbp)
L136:
  mov    -0x5c(%rbp),%eax
  cmp    -0x34(%rbp),%eax
  jg     L133
  movsd  -0x18(%rbp),%xmm0
  movapd %xmm0,%xmm1
  mulsd  -0x28(%rbp),%xmm1
  movsd  D12(%rip),%xmm0
  subsd  -0x18(%rbp),%xmm0
  mulsd  -0x10(%rbp),%xmm0
  mov    -0x38(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x58(%rbp),%rax
  add    %rdx,%rax
  addsd  %xmm1,%xmm0
  movsd  %xmm0,(%rax)
  cmpl   $0x1,-0x2c(%rbp)
  jne    L24
  mov    -0x58(%rbp),%rax
  movsd  (%rax),%xmm0
  pxor   %xmm1,%xmm1
  ucomisd %xmm1,%xmm0
  jp     L152
  pxor   %xmm1,%xmm1
  ucomisd %xmm1,%xmm0
  je     L24
L152:
  mov    -0x38(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x58(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm0
  subsd  -0x10(%rbp),%xmm0
  mov    -0x38(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x58(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm1
  divsd  %xmm1,%xmm0
  movq   %xmm0,%rax
  movq   %rax,%xmm0
  call   <fabs@plt>
  imul   $0x64,%eax,%eax
  pxor   %xmm0,%xmm0
  cvtsi2sd %eax,%xmm0
  movsd  %xmm0,-0x20(%rbp)
L24:
  movsd  -0x20(%rbp),%xmm0
  comisd -0x68(%rbp),%xmm0
  jb     L125
  movl   $0x0,-0x2c(%rbp)
L125:
  addl   $0x1,-0x38(%rbp)
L153:
  mov    -0x5c(%rbp),%eax
  cmp    -0x38(%rbp),%eax
  jg     L135
  addl   $0x1,-0x30(%rbp)
  cmpl   $0x0,-0x2c(%rbp)
  jne    L175
  mov    -0x30(%rbp),%eax
  cmp    -0x60(%rbp),%eax
  jle    L195
L175:
  nop
  leave
  ret
```

tool_calls: name: parse_data
arguments: label: D12
type_guessed: f64

tool: D12: 1

assistant: ```c
void gauss_seidel(double **m, double *r, double *s, int n, int imax, double es) {
  int i, j, iter, cent;
  double sum, dummy, ea, old, lambda = 1;
  for (i = 0; i <= n - 1; i++) {
    dummy = m[i][i];
    for (j = 0; j <= n - 1; j++) {
      m[i][j] = m[i][j] / dummy;
    }
    r[i] = r[i] / dummy;
  }
  for (i = 0; i <= n - 1; i++) {
    sum = r[i];
    for (j = 0; j <= n - 1; j++) {
      if (i != j)
        sum = sum - m[i][j] * s[j];
    }
    s[i] = sum;
  }
  iter = 1;
  cent = 1;
  do {
    for (i = 0; i <= n - 1; i++) {
      old = s[i];
      sum = r[i];
      for (j = 0; j <= n - 1; j++) {
        if (i != j)
          sum = sum - m[i][j] * s[j];
      }
      s[i] = lambda * sum + (1 - lambda) * old;
      if (cent == 1 && s[0] != 0)
        ea = fabs((s[i] - old) / s[i]) * 100;
      if (ea >= es)
        cent = 0;
    }
    iter += 1;
  } while (cent == 0 && iter <= imax);
}
```