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

```asm
<Gauss_elimination>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x68,%rsp
  mov    %edi,%r15d
  mov    %rsi,0x38(%rsp)
  mov    %rdx,0x58(%rsp)
  lea    0x1(%rdi),%eax
  cltq
  mov    %rax,0x48(%rsp)
  lea    -0x1(%rdi),%ebx
  mov    %ebx,0x54(%rsp)
  test   %ebx,%ebx
  jle    L124
  shl    $0x3,%rax
  mov    %rax,0x8(%rsp)
  mov    %rsi,0x18(%rsp)
  add    $0x8,%rax
  mov    %rax,0x40(%rsp)
  mov    %ebx,0x50(%rsp)
  mov    %edi,%eax
  lea    0x8(,%rax,8),%r14
  mov    %rsi,0x10(%rsp)
  mov    $0x0,%r12d
  movl   $0x0,0x20(%rsp)
  jmp    L201
L119:
  cmp    0x20(%rsp),%r15d
  jle    L86
L133:
  mov    0x18(%rsp),%rsi
  mov    %rsi,%rcx
  add    0x8(%rsp),%rsi
  mov    0x20(%rsp),%edi
  mov    0x10(%rsp),%r8
L21:
  mov    %rsi,%rdx
  movsd  (%rsi,%r12,8),%xmm2
  divsd  (%r8),%xmm2
  test   %r15d,%r15d
  js     L190
  mov    $0x0,%eax
L95:
  movapd %xmm2,%xmm1
  mulsd  (%rcx,%rax,1),%xmm1
  movsd  (%rdx,%rax,1),%xmm0
  subsd  %xmm1,%xmm0
  movsd  %xmm0,(%rdx,%rax,1)
  add    $0x8,%rax
  cmp    %r14,%rax
  jne    L95
L190:
  add    $0x1,%edi
  add    0x8(%rsp),%rsi
  cmp    %edi,%r15d
  jg     L21
L86:
  add    $0x1,%r12
  mov    0x8(%rsp),%rbx
  add    %rbx,0x18(%rsp)
  mov    0x40(%rsp),%rbx
  add    %rbx,0x10(%rsp)
  mov    0x50(%rsp),%ebx
  cmp    %ebx,0x20(%rsp)
  je     L124
L201:
  mov    0x20(%rsp),%ebx
  mov    %ebx,%eax
  mov    %ebx,0x24(%rsp)
  add    $0x1,%ebx
  mov    %ebx,0x20(%rsp)
  cmp    %ebx,%r15d
  jle    L86
  mov    0x8(%rsp),%r13
  add    0x10(%rsp),%r13
  mov    %eax,%ebp
  cltq
  mov    0x38(%rsp),%rdi
  lea    (%rdi,%rax,8),%rax
  mov    %r14,0x28(%rsp)
  mov    %r12,0x30(%rsp)
  mov    %rax,%r14
L4:
  movsd  0x0(%r13),%xmm0
  call   <fabs@plt>
  mov    %rax,%r12
  movslq %ebp,%rax
  imul   0x8(%rsp),%rax
  movsd  (%r14,%rax,1),%xmm0
  call   <fabs@plt>
  cmp    %rax,%r12
  cmovg  %ebx,%ebp
  add    $0x1,%ebx
  add    0x8(%rsp),%r13
  cmp    %ebx,%r15d
  jne    L4
  mov    0x28(%rsp),%r14
  mov    0x30(%rsp),%r12
  cmp    0x24(%rsp),%ebp
  je     L133
  cmp    0x24(%rsp),%ebx
  jl     L119
  mov    0x18(%rsp),%rcx
  movslq %ebp,%rdx
  imul   0x8(%rsp),%rdx
  add    0x38(%rsp),%rdx
  mov    %r12,%rax
L160:
  movsd  (%rcx,%rax,8),%xmm0
  movsd  (%rdx,%rax,8),%xmm1
  movsd  %xmm1,(%rcx,%rax,8)
  movsd  %xmm0,(%rdx,%rax,8)
  add    $0x1,%rax
  cmp    %eax,%ebx
  jge    L160
  jmp    L119
L124:
  movslq 0x54(%rsp),%rdx
  mov    0x48(%rsp),%rbx
  mov    %rbx,%rax
  imul   %rdx,%rax
  mov    0x38(%rsp),%rdi
  lea    (%rdi,%rax,8),%rcx
  movslq %r15d,%r10
  movsd  (%rcx,%r10,8),%xmm0
  divsd  (%rcx,%rdx,8),%xmm0
  mov    0x58(%rsp),%rcx
  movsd  %xmm0,-0x8(%rcx,%r10,8)
  mov    %r15d,%esi
  sub    $0x2,%esi
  js     L113
  movslq %esi,%rsi
  mov    %rbx,%r9
  not    %r9
  shl    $0x3,%r9
  sub    %rbx,%rax
  lea    (%r10,%rax,1),%rdx
  lea    (%rdi,%rdx,8),%r8
  lea    0x8(%r9),%r11
  lea    (%rdi,%rax,8),%rdi
  jmp    L153
L115:
  add    $0x1,%rax
L166:
  cmp    %r15d,%eax
  jge    L178
  cmp    %edx,%eax
  je     L115
  movsd  (%rbx,%rax,8),%xmm0
  mulsd  (%rcx,%rax,8),%xmm0
  addsd  %xmm0,%xmm1
  jmp    L115
L12:
  pxor   %xmm1,%xmm1
L178:
  movsd  (%rdi,%r10,8),%xmm0
  subsd  %xmm1,%xmm0
  divsd  -0x10(%r8),%xmm0
  movsd  %xmm0,(%rcx,%rsi,8)
  sub    $0x1,%rsi
  add    %r9,%r8
  add    %r11,%rdi
  test   %esi,%esi
  js     L113
L153:
  mov    %esi,%edx
  cmp    %esi,%r15d
  jle    L12
  mov    %rdi,%rbx
  lea    0x1(%rsi),%eax
  cltq
  pxor   %xmm1,%xmm1
  jmp    L166
L113:
  add    $0x68,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
```

assistant: ```c
void Gauss_elimination(int n, double (*a)[n + 1], double *x) {
  int i, j, k;
  double temp, s, l;
  for (i = 0; i < n - 1; i++) {
    k = i;
    for (j = i + 1; j < n; j++) {
      if (fabs(a[j][i]) > fabs(a[k][i]))
        k = j;
    }
    if (k != i)
      for (j = i; j <= n; j++) {
        temp = a[i][j];
        a[i][j] = a[k][j];
        a[k][j] = temp;
      }
    for (j = i + 1; j < n; j++) {
      l = a[j][i] / a[i][i];
      for (k = 0; k < n + 1; k++)
        a[j][k] = a[j][k] - a[i][k] * l;
    }
  }
  x[n - 1] = a[n - 1][n] / a[n - 1][n - 1];
  for (i = n - 2; i >= 0; i--) {
    s = 0.0;
    for (j = i; j < n; j++) {
      if (j == i)
        continue;
      s += a[i][j] * x[j];
    }
    x[i] = (a[i][n] - s) / a[i][i];
  }
}
```