user: 请显示与下面列出的汇编代码相匹配的C语言实现：

```asm
<Gauss_elimination>:
  endbr64
  push   %r15
  lea    0x1(%rdi),%eax
  mov    %edi,%r15d
  push   %r14
  cltq
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x58,%rsp
  mov    %rax,0x40(%rsp)
  lea    -0x1(%rdi),%eax
  mov    %rsi,0x28(%rsp)
  mov    %rdx,0x48(%rsp)
  mov    %eax,0x34(%rsp)
  test   %eax,%eax
  jle    L162
  mov    0x40(%rsp),%rax
  mov    0x28(%rsp),%rdi
  xor    %r14d,%r14d
  mov    %r15d,0x4(%rsp)
  movl   $0x0,0x30(%rsp)
  lea    0x0(,%rax,8),%r12
  mov    %rdi,0x8(%rsp)
  lea    0x8(%r12),%rax
  mov    %rax,0x38(%rsp)
  mov    %r15d,%eax
  lea    0x8(,%rax,8),%r13
  mov    %r13,%r15
  mov    %r14,%r13
  mov    %rdi,%r14
  nopl   (%rax)
L153:
  mov    0x30(%rsp),%eax
  lea    (%r14,%r12,1),%r9
  mov    %eax,%ebx
  add    $0x1,%eax
  mov    %eax,0x30(%rsp)
  cmp    %eax,0x4(%rsp)
  jle    L151
  mov    0x8(%rsp),%rax
  mov    0x28(%rsp),%rdi
  mov    %r14,0x10(%rsp)
  mov    0x30(%rsp),%ebp
  mov    %r13,0x18(%rsp)
  lea    (%r12,%rax,1),%r8
  movslq %ebx,%rax
  mov    %r15,0x20(%rsp)
  lea    (%rdi,%rax,8),%rax
  mov    %ebp,%r13d
  mov    %r8,%r15
  mov    %rax,%rbp
  nopl   0x0(%rax)
L131:
  movsd  (%r15),%xmm0
  call   <fabs@plt>
  mov    %rax,%r14
  movslq %ebx,%rax
  imul   %r12,%rax
  movsd  0x0(%rbp,%rax,1),%xmm0
  call   <fabs@plt>
  cmp    %rax,%r14
  cmovg  %r13d,%ebx
  add    $0x1,%r13d
  add    %r12,%r15
  cmp    %r13d,0x4(%rsp)
  jne    L131
  mov    %r13d,%ebp
  mov    0x18(%rsp),%r13
  mov    0x10(%rsp),%r14
  mov    0x20(%rsp),%r15
  cmp    %ebx,%r13d
  jne    L80
L120:
  lea    (%r12,%r14,1),%r9
  mov    0x30(%rsp),%r8d
  mov    0x8(%rsp),%rcx
  mov    0x4(%rsp),%esi
  mov    %r9,%rdx
  nopl   0x0(%rax)
L145:
  xor    %eax,%eax
  movsd  (%rdx,%r13,8),%xmm2
  divsd  (%rcx),%xmm2
  nopl   0x0(%rax)
L88:
  movsd  (%r14,%rax,1),%xmm1
  movsd  (%rdx,%rax,1),%xmm0
  mulsd  %xmm2,%xmm1
  subsd  %xmm1,%xmm0
  movsd  %xmm0,(%rdx,%rax,1)
  add    $0x8,%rax
  cmp    %rax,%r15
  jne    L88
  add    $0x1,%r8d
  add    %r12,%rdx
  cmp    %r8d,%esi
  jg     L145
L151:
  mov    0x38(%rsp),%rdi
  add    $0x1,%r13
  add    %rdi,0x8(%rsp)
  mov    %r9,%r14
  mov    0x34(%rsp),%edi
  cmp    %edi,0x30(%rsp)
  jne    L153
  mov    0x4(%rsp),%r15d
L162:
  movslq 0x34(%rsp),%rcx
  mov    0x40(%rsp),%rax
  movslq %r15d,%r10
  mov    %r15d,%esi
  mov    0x28(%rsp),%rdi
  imul   %rcx,%rax
  lea    (%rdi,%rax,8),%rdx
  mov    0x48(%rsp),%rdi
  movsd  (%rdx,%r10,8),%xmm0
  divsd  (%rdx,%rcx,8),%xmm0
  movsd  %xmm0,-0x8(%rdi,%r10,8)
  sub    $0x2,%esi
  js     L166
  mov    0x40(%rsp),%rdi
  movslq %esi,%rsi
  pxor   %xmm2,%xmm2
  sub    %rdi,%rax
  mov    %rdi,%r9
  mov    0x28(%rsp),%rdi
  lea    (%r10,%rax,1),%rdx
  not    %r9
  lea    (%rdi,%rdx,8),%r8
  shl    $0x3,%r9
  lea    (%rdi,%rax,8),%rdx
  mov    0x48(%rsp),%rdi
  lea    0x8(%r9),%r11
  nopl   0x0(%rax)
L63:
  mov    %esi,%ecx
  cmp    %esi,%r15d
  jle    L39
  lea    0x1(%rsi),%eax
  movapd %xmm2,%xmm1
  cltq
  jmp    L50
  cs nopw 0x0(%rax,%rax,1)
L28:
  cmp    %ecx,%eax
  je     L148
  movsd  (%rdx,%rax,8),%xmm0
  mulsd  (%rdi,%rax,8),%xmm0
  addsd  %xmm0,%xmm1
L148:
  add    $0x1,%rax
L50:
  cmp    %eax,%r15d
  jg     L28
L86:
  movsd  (%rdx,%r10,8),%xmm0
  add    %r11,%rdx
  subsd  %xmm1,%xmm0
  divsd  -0x10(%r8),%xmm0
  movsd  %xmm0,(%rdi,%rsi,8)
  add    %r9,%r8
  sub    $0x1,%rsi
  test   %esi,%esi
  jns    L63
L166:
  add    $0x58,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L80:
  cmp    0x4(%rsp),%r13d
  jg     L120
  movslq %ebx,%r8
  mov    %r13,%rax
  imul   %r12,%r8
  add    0x28(%rsp),%r8
  nopw   0x0(%rax,%rax,1)
L112:
  movsd  (%r14,%rax,8),%xmm0
  movsd  (%r8,%rax,8),%xmm1
  movsd  %xmm1,(%r14,%rax,8)
  movsd  %xmm0,(%r8,%rax,8)
  add    $0x1,%rax
  cmp    %eax,%ebp
  jge    L112
  jmp    L120
L39:
  movapd %xmm2,%xmm1
  jmp    L86
```

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];
  }
}
```