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

```asm
<gaussj>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x2c8,%rsp
  mov    %edi,0xc(%rsp)
  mov    %rsi,0x30(%rsp)
  mov    %rcx,0x40(%rsp)
  mov    %fs:0x28,%rax
  mov    %rax,0x2b8(%rsp)
  xor    %eax,%eax
  test   %edi,%edi
  jle    L161
  mov    %edx,%r12d
  lea    0x50(%rsp),%rax
  lea    -0x1(%rdi),%edx
  lea    0x54(%rsp,%rdx,4),%rdx
L330:
  movl   $0x0,(%rax)
  add    $0x4,%rax
  cmp    %rdx,%rax
  jne    L330
  mov    0xc(%rsp),%eax
  mov    %eax,%r15d
  cltq
  shl    $0x3,%rax
  mov    %rax,0x20(%rsp)
  movslq %r12d,%rax
  shl    $0x3,%rax
  mov    %rax,0x18(%rsp)
  movq   $0x0,0x38(%rsp)
  jmp    L299
L35:
  cmp    $0x1,%eax
  jg     L51
L160:
  add    $0x1,%rbx
  add    0xc(%rsp),%ebp
  cmp    %r15,%rbx
  je     L228
L79:
  mov    (%r14,%rbx,4),%eax
  test   %eax,%eax
  jne    L35
  movslq %ebp,%rax
  movsd  (%r12,%rax,8),%xmm0
  andpd  D11(%rip),%xmm0
  comisd 0x10(%rsp),%xmm0
  jb     L160
  movsd  %xmm0,0x10(%rsp)
  mov    0x28(%rsp),%eax
  mov    %eax,0x48(%rsp)
  mov    %ebx,0x2c(%rsp)
  jmp    L160
L51:
  lea    D29(%rip),%rdi
  call   <printf@plt>
  mov    $0x63,%edi
  call   <exit@plt>
  jmp    L160
L228:
  add    $0x1,%r13
  cmp    %r15,%r13
  je     L276
L142:
  mov    %r13d,%ebp
  mov    %r13d,0x28(%rsp)
  cmpl   $0x1,(%r14,%r13,4)
  je     L228
  mov    $0x0,%ebx
  jmp    L79
L276:
  mov    0x4c(%rsp),%r12d
  mov    0x2c(%rsp),%ecx
  movslq %ecx,%rax
  addl   $0x1,0x50(%rsp,%rax,4)
  mov    0x48(%rsp),%eax
  cmp    %eax,%ecx
  jne    L317
L263:
  mov    0x38(%rsp),%rax
  mov    0x48(%rsp),%edi
  mov    %edi,0x120(%rsp,%rax,4)
  mov    %rax,%rdi
  mov    0x2c(%rsp),%eax
  mov    %eax,0x1f0(%rsp,%rdi,4)
  mov    %eax,%ebp
  imul   0xc(%rsp),%ebp
  add    %ebp,%eax
  cltq
  mov    0x30(%rsp),%rdi
  lea    (%rdi,%rax,8),%rbx
  pxor   %xmm0,%xmm0
  ucomisd (%rbx),%xmm0
  jp     L92
  je     L138
L92:
  movsd  D12(%rip),%xmm1
  movapd %xmm1,%xmm0
  divsd  (%rbx),%xmm0
  movsd  %xmm1,(%rbx)
  movslq 0x2c(%rsp),%rdx
  lea    0x0(,%rdx,8),%rax
  mov    0x30(%rsp),%rdi
  add    %rax,%rdi
  mov    $0x0,%esi
  mov    0xc(%rsp),%r8d
L350:
  movapd %xmm0,%xmm1
  mulsd  (%rdi),%xmm1
  movsd  %xmm1,(%rdi)
  mov    %esi,%ecx
  add    $0x1,%esi
  add    0x20(%rsp),%rdi
  cmp    %esi,%r8d
  jne    L350
  test   %r12d,%r12d
  jle    L214
  add    0x40(%rsp),%rax
  mov    $0x0,%esi
L273:
  movapd %xmm0,%xmm1
  mulsd  (%rax),%xmm1
  movsd  %xmm1,(%rax)
  add    $0x1,%esi
  add    0x18(%rsp),%rax
  cmp    %esi,%r12d
  jne    L273
L214:
  mov    0x30(%rsp),%rbx
  mov    %rbx,%rdi
  mov    0x40(%rsp),%r8
  mov    $0x0,%esi
  mov    0x2c(%rsp),%r11d
  mov    0x18(%rsp),%r9
  mov    0x20(%rsp),%r10
  jmp    L195
L317:
  movslq %eax,%rdi
  lea    0x0(,%rdi,8),%rax
  mov    0x30(%rsp),%rsi
  lea    (%rsi,%rax,1),%rdx
  mov    $0x0,%esi
  movslq %ecx,%rcx
  sub    %rdi,%rcx
  mov    0xc(%rsp),%edi
L9:
  movsd  (%rdx),%xmm0
  movsd  (%rdx,%rcx,8),%xmm1
  movsd  %xmm1,(%rdx)
  movsd  %xmm0,(%rdx,%rcx,8)
  add    $0x1,%esi
  add    0x20(%rsp),%rdx
  cmp    %esi,%edi
  jne    L9
  test   %r12d,%r12d
  jle    L263
  add    0x40(%rsp),%rax
  mov    $0x0,%edx
L215:
  movsd  (%rax),%xmm0
  movsd  (%rax,%rcx,8),%xmm1
  movsd  %xmm1,(%rax)
  movsd  %xmm0,(%rax,%rcx,8)
  add    $0x1,%edx
  add    0x18(%rsp),%rax
  cmp    %edx,%r12d
  jne    L215
  jmp    L263
L138:
  lea    D29(%rip),%rdi
  call   <printf@plt>
  mov    $0x63,%edi
  call   <exit@plt>
  jmp    L92
L208:
  lea    0x1(%rsi),%eax
  add    $0x8,%rdi
  sub    $0x1,%rdx
  add    $0x8,%r8
  cmp    %esi,%ecx
  je     L199
  mov    %eax,%esi
L195:
  cmp    %esi,%r11d
  je     L208
  lea    0x0(%rbp,%rsi,1),%eax
  cltq
  lea    (%rbx,%rax,8),%rax
  movsd  (%rax),%xmm1
  movq   $0x0,(%rax)
  mov    %rdi,%rax
  mov    $0x0,%r13d
L210:
  movapd %xmm1,%xmm2
  mulsd  (%rax,%rdx,8),%xmm2
  movsd  (%rax),%xmm0
  subsd  %xmm2,%xmm0
  movsd  %xmm0,(%rax)
  mov    %r13d,%r14d
  add    $0x1,%r13d
  add    %r10,%rax
  cmp    %r14d,%ecx
  jne    L210
  test   %r12d,%r12d
  jle    L208
  mov    %r8,%rax
  mov    $0x0,%r13d
L374:
  movapd %xmm1,%xmm2
  mulsd  (%rax,%rdx,8),%xmm2
  movsd  (%rax),%xmm0
  subsd  %xmm2,%xmm0
  movsd  %xmm0,(%rax)
  add    $0x1,%r13d
  add    %r9,%rax
  cmp    %r13d,%r12d
  jne    L374
  jmp    L208
L199:
  addq   $0x1,0x38(%rsp)
  mov    0x38(%rsp),%rax
  cmp    %r15,%rax
  je     L325
L299:
  mov    $0x0,%r13d
  pxor   %xmm4,%xmm4
  movsd  %xmm4,0x10(%rsp)
  lea    0x50(%rsp),%r14
  mov    %r12d,0x4c(%rsp)
  mov    0x30(%rsp),%r12
  jmp    L142
L166:
  sub    $0x1,%rcx
  test   %ecx,%ecx
  js     L161
L218:
  mov    0x120(%rsp,%rcx,4),%esi
  mov    0x1f0(%rsp,%rcx,4),%eax
  cmp    %eax,%esi
  je     L166
  test   %r10d,%r10d
  jle    L166
  imul   %r10d,%eax
  mov    %eax,%edx
  imul   %r10d,%esi
  movslq %esi,%rsi
  lea    (%r11,%rsi,8),%rax
  lea    (%r9,%rsi,1),%rdi
  lea    (%r8,%rdi,8),%rdi
  movslq %edx,%rdx
  sub    %rsi,%rdx
L162:
  movsd  (%rax),%xmm0
  movsd  (%rax,%rdx,8),%xmm1
  movsd  %xmm1,(%rax)
  movsd  %xmm0,(%rax,%rdx,8)
  add    $0x8,%rax
  cmp    %rax,%rdi
  jne    L162
  jmp    L166
L325:
  movslq %ecx,%rcx
  mov    0xc(%rsp),%r10d
  lea    -0x1(%r10),%r9d
  mov    0x30(%rsp),%r11
  lea    0x8(%r11),%r8
  jmp    L218
L161:
  mov    0x2b8(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L217
  add    $0x2c8,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L217:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: retrieve_data
arguments: tag: D11
type_guessed: qword[2]
name: retrieve_data
arguments: tag: D29
type_guessed: string
name: retrieve_data
arguments: tag: D12
type_guessed: f64

tool: {"D11": [0x7fffffffffffffff,0x0000000000000000]}

tool: D29: Error: singular matrix in gaussj


tool: D12: 1

assistant: ```c
void gaussj(int n, double a[], int m, double b[]) {
  int i, j, k, l, ll;
  int icol, irow;
  int ipiv[50], indxr[50], indxc[50];
  double big, dum, pivinv;
  for (j = 0; j < n; ++j)
    ipiv[j] = 0;
  for (i = 0; i < n; ++i) {
    big = 0.0;
    for (j = 0; j < n; ++j) {
      if (ipiv[j] != 1) {
        for (k = 0; k < n; ++k) {
          if (ipiv[k] == 0) {
            if (fabs(a[j + k * n]) >= big) {
              big = fabs(a[j + k * n]);
              irow = j;
              icol = k;
            }
          } else if (ipiv[k] > 1) {
            printf("Error: singular matrix in gaussj\n");
            exit(99);
          }
        }
      }
    }
    ++ipiv[icol];
    if (irow != icol) {
      for (l = 0; l < n; ++l) {
        dum = a[irow + l * n];
        a[irow + l * n] = a[icol + l * n];
        a[icol + l * n] = dum;
      }
      for (l = 0; l < m; ++l) {
        dum = b[irow + l * m];
        b[irow + l * m] = b[icol + l * m];
        b[icol + l * m] = dum;
      }
    }
    indxr[i] = irow;
    indxc[i] = icol;
    if (a[icol + n * icol] == 0.0) {
      printf("Error: singular matrix in gaussj\n");
      exit(99);
    }
    pivinv = 1.0 / a[icol + icol * n];
    a[icol + icol * n] = 1.0;
    for (l = 0; l < n; ++l)
      a[icol + l * n] *= pivinv;
    for (l = 0; l < m; ++l)
      b[icol + l * m] *= pivinv;
    for (ll = 0; ll < n; ++ll) {
      if (ll != icol) {
        dum = a[ll + icol * n];
        a[ll + icol * n] = 0.0;
        for (l = 0; l < n; ++l)
          a[ll + l * n] -= a[icol + l * n] * dum;
        for (l = 0; l < m; ++l)
          b[ll + l * m] -= b[icol + l * m] * dum;
      }
    }
  }
  for (l = (n - 1); l >= 0; --l) {
    if (indxr[l] != indxc[l]) {
      for (k = 0; k < n; ++k) {
        dum = a[k + indxr[l] * n];
        a[k + indxr[l] * n] = a[k + indxc[l] * n];
        a[k + indxc[l] * n] = dum;
      }
    }
  }
}
```