user: Translate the below assembly code into C programming language:

```asm
<gaussj>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x348,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x338(%rsp)
  xor    %eax,%eax
  cmp    $0x40,%esi
  jg     L192
  test   %esi,%esi
  jle    L249
  movslq %esi,%r10
  lea    0x30(%rsp),%r9
  mov    %rdi,%r8
  mov    %rdx,%r14
  lea    0x0(,%r10,4),%r11
  mov    %ecx,%edx
  mov    %r9,%rdi
  cmp    $0x8,%r11d
  jae    L197
  and    $0x4,%r11d
  jne    L122
L321:
  cmp    $0x1,%esi
  jne    L229
L97:
  mov    0x30(%rsp),%eax
  cmp    $0x1,%eax
  jne    L56
  xchg   %ax,%ax
L561:
  add    $0x1,%eax
  movsd  (%r8),%xmm1
  ucomisd D5(%rip),%xmm1
  movl   $0x0,0x230(%rsp)
  mov    %eax,0x30(%rsp)
  movl   $0x0,0x130(%rsp)
  jp     L138
  je     L192
L138:
  movsd  D19(%rip),%xmm0
  divsd  %xmm1,%xmm0
  movsd  %xmm0,(%r8)
  test   %edx,%edx
  jle    L64
  cmp    $0x1,%edx
  je     L60
  mov    %edx,%ecx
  movapd %xmm0,%xmm2
  mov    %r14,%rax
  shr    %ecx
  unpcklpd %xmm2,%xmm2
  sub    $0x1,%ecx
  shl    $0x4,%rcx
  lea    0x10(%r14,%rcx,1),%rcx
  nopl   0x0(%rax,%rax,1)
L169:
  movupd (%rax),%xmm1
  add    $0x10,%rax
  mulpd  %xmm2,%xmm1
  movups %xmm1,-0x10(%rax)
  cmp    %rax,%rcx
  jne    L169
  mov    %edx,%eax
  and    $0xfffffffe,%eax
  cmp    %edx,%eax
  je     L64
L526:
  cltq
  lea    (%r14,%rax,8),%rax
  mulsd  (%rax),%xmm0
  movsd  %xmm0,(%rax)
L64:
  lea    0x130(%rsp),%rax
  lea    0x230(%rsp),%r15
  mov    %rax,(%rsp)
  mov    %rax,%r13
L248:
  mov    %esi,%eax
  lea    -0x1(%rsi),%ebx
  mov    %esi,%r10d
  shr    %eax
  mov    %ebx,%r14d
  mov    %ebx,0x8(%rsp)
  movslq %ebx,%rdi
  lea    -0x1(%rax),%r11d
  lea    0x8(%r8),%rax
  mov    %r14,(%rsp)
  and    $0xfffffffe,%r10d
  mov    %rax,0x10(%rsp)
  add    $0x1,%r11
  shl    $0x4,%r11
  nopl   0x0(%rax)
L203:
  mov    (%r15,%rdi,4),%edx
  mov    0x0(%r13,%rdi,4),%eax
  cmp    %eax,%edx
  jne    L330
L257:
  sub    $0x1,%rdi
  test   %edi,%edi
  jns    L203
L249:
  xor    %eax,%eax
  jmp    L452
  nopl   (%rax)
L56:
  test   %eax,%eax
  je     L561
  cmp    $0x1,%eax
  jle    L561
L192:
  mov    $0x1,%eax
L452:
  mov    0x338(%rsp),%rdx
  sub    %fs:0x28,%rdx
  jne    L137
  add    $0x348,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nopw   0x0(%rax,%rax,1)
L122:
  movl   $0x0,(%rdi)
  cmp    $0x1,%esi
  je     L97
  jmp    L229
L197:
  mov    %r11d,%ecx
  shr    $0x3,%ecx
  and    $0x4,%r11d
  rep stos %rax,%es:(%rdi)
  je     L321
  jmp    L122
L229:
  movq   $0x0,0x8(%rsp)
  xor    %r15d,%r15d
  xor    %r13d,%r13d
  movq   D46(%rip),%xmm3
  mov    %r14,0x10(%rsp)
  lea    0x0(,%r10,8),%rdi
L154:
  xor    %ebx,%ebx
  pxor   %xmm1,%xmm1
  jmp    L178
  nopw   0x0(%rax,%rax,1)
L513:
  add    $0x1,%rbx
  cmp    %rbx,%r10
  je     L422
L178:
  cmpl   $0x1,(%r9,%rbx,4)
  mov    %ebx,%ecx
  mov    %ebx,%ebp
  je     L513
  xor    %eax,%eax
  jmp    L234
  nopl   0x0(%rax)
L7:
  movslq %ecx,%r11
  movsd  (%r8,%r11,8),%xmm0
  andpd  %xmm3,%xmm0
  comisd %xmm1,%xmm0
  jb     L432
  movapd %xmm0,%xmm1
  mov    %ebp,%r15d
  mov    %eax,%r13d
L432:
  add    $0x1,%rax
  add    %esi,%ecx
  cmp    %rax,%r10
  je     L513
L234:
  mov    (%r9,%rax,4),%r11d
  test   %r11d,%r11d
  je     L7
  cmp    $0x1,%r11d
  jle    L432
  jmp    L192
L330:
  imul   %esi,%eax
  imul   %esi,%edx
  movslq %eax,%rbx
  movslq %edx,%rbp
  lea    0x0(,%rbx,8),%rcx
  lea    0x10(%rcx),%r14
  lea    0x0(,%rbp,8),%r9
  lea    0x10(,%rbp,8),%r12
  cmp    %r14,%r9
  setge  %r14b
  cmp    %r12,%rcx
  setge  %r12b
  or     %r14b,%r12b
  je     L111
  cmpl   $0x1,0x8(%rsp)
  jbe    L111
  add    %r8,%r9
  add    %r8,%rcx
  xor    %ebx,%ebx
  cs nopw 0x0(%rax,%rax,1)
L369:
  movupd (%r9,%rbx,1),%xmm0
  movupd (%rcx,%rbx,1),%xmm4
  movups %xmm4,(%r9,%rbx,1)
  movups %xmm0,(%rcx,%rbx,1)
  add    $0x10,%rbx
  cmp    %rbx,%r11
  jne    L369
  cmp    %r10d,%esi
  je     L257
  add    %r10d,%edx
  add    %r10d,%eax
  sub    $0x1,%rdi
  movslq %edx,%rdx
  cltq
  lea    (%r8,%rdx,8),%rdx
  lea    (%r8,%rax,8),%rax
  movsd  (%rdx),%xmm0
  movsd  (%rax),%xmm1
  movsd  %xmm1,(%rdx)
  movsd  %xmm0,(%rax)
  test   %edi,%edi
  jns    L203
  jmp    L249
L422:
  movslq %r13d,%r11
  addl   $0x1,0x30(%rsp,%r11,4)
  cmp    %r15d,%r13d
  jne    L483
L473:
  mov    0x8(%rsp),%rbx
  lea    0x230(%rsp),%rax
  pxor   %xmm5,%xmm5
  mov    %rax,0x28(%rsp)
  mov    %r15d,(%rax,%rbx,4)
  lea    0x130(%rsp),%rax
  mov    %rax,(%rsp)
  mov    %r13d,(%rax,%rbx,4)
  mov    %r13d,%eax
  imul   %esi,%eax
  mov    %eax,0x1c(%rsp)
  add    %r13d,%eax
  cltq
  lea    (%r8,%rax,8),%rax
  movsd  (%rax),%xmm1
  ucomisd %xmm5,%xmm1
  jp     L61
  je     L192
L61:
  movsd  D19(%rip),%xmm0
  mov    D19(%rip),%rbx
  divsd  %xmm1,%xmm0
  mov    %rbx,(%rax)
  lea    0x0(,%r11,8),%rax
  xor    %ebx,%ebx
  lea    (%r8,%rax,1),%rcx
  nopl   (%rax)
L493:
  movsd  (%rcx),%xmm1
  mov    %ebx,%ebp
  lea    0x1(%rbx),%ebx
  mulsd  %xmm0,%xmm1
  movsd  %xmm1,(%rcx)
  add    %rdi,%rcx
  cmp    %ebx,%esi
  jne    L493
  test   %edx,%edx
  jle    L75
  add    0x10(%rsp),%rax
  xor    %ecx,%ecx
  nopl   0x0(%rax,%rax,1)
L412:
  movsd  (%rax),%xmm1
  add    $0x1,%ecx
  mulsd  %xmm0,%xmm1
  movsd  %xmm1,(%rax)
  add    %rdi,%rax
  cmp    %ecx,%edx
  jne    L412
L75:
  mov    0x10(%rsp),%rax
  mov    %esi,0x24(%rsp)
  mov    %r8,%r14
  xor    %r12d,%r12d
  mov    0x1c(%rsp),%esi
  mov    %r15d,0x20(%rsp)
  mov    %rax,%r15
  nopl   0x0(%rax)
L226:
  cmp    %r12d,%r13d
  je     L30
  lea    (%rsi,%r12,1),%eax
  xor    %ecx,%ecx
  cltq
  lea    (%r8,%rax,8),%rax
  movsd  (%rax),%xmm1
  movq   $0x0,(%rax)
  mov    %r14,%rax
  nop
L233:
  movsd  (%rax,%r11,8),%xmm2
  movsd  (%rax),%xmm0
  mov    %ecx,%ebx
  add    $0x1,%ecx
  mulsd  %xmm1,%xmm2
  subsd  %xmm2,%xmm0
  movsd  %xmm0,(%rax)
  add    %rdi,%rax
  cmp    %ebp,%ebx
  jne    L233
  test   %edx,%edx
  jle    L30
  mov    %r15,%rax
  xor    %ecx,%ecx
  nopl   0x0(%rax,%rax,1)
L475:
  movsd  (%rax,%r11,8),%xmm2
  movsd  (%rax),%xmm0
  add    $0x1,%ecx
  mulsd  %xmm1,%xmm2
  subsd  %xmm2,%xmm0
  movsd  %xmm0,(%rax)
  add    %rdi,%rax
  cmp    %ecx,%edx
  jne    L475
L30:
  lea    0x1(%r12),%eax
  add    $0x8,%r15
  sub    $0x1,%r11
  add    $0x8,%r14
  cmp    %ebp,%r12d
  je     L227
  mov    %eax,%r12d
  jmp    L226
L227:
  addq   $0x1,0x8(%rsp)
  mov    0x8(%rsp),%rax
  mov    0x20(%rsp),%r15d
  mov    0x24(%rsp),%esi
  cmp    %rax,%r10
  jne    L154
  mov    0x28(%rsp),%r15
  mov    (%rsp),%r13
  jmp    L248
  nopl   0x0(%rax)
L483:
  movslq %r15d,%r12
  mov    %r11,%rbx
  xor    %ebp,%ebp
  lea    0x0(,%r12,8),%rax
  sub    %r12,%rbx
  lea    (%r8,%rax,1),%rcx
L45:
  movsd  (%rcx),%xmm0
  movsd  (%rcx,%rbx,8),%xmm1
  add    $0x1,%ebp
  movsd  %xmm1,(%rcx)
  movsd  %xmm0,(%rcx,%rbx,8)
  add    %rdi,%rcx
  cmp    %ebp,%esi
  jne    L45
  test   %edx,%edx
  jle    L473
  add    0x10(%rsp),%rax
  xor    %ecx,%ecx
L371:
  movsd  (%rax),%xmm0
  movsd  (%rax,%rbx,8),%xmm1
  add    $0x1,%ecx
  movsd  %xmm1,(%rax)
  movsd  %xmm0,(%rax,%rbx,8)
  add    %rdi,%rax
  cmp    %ecx,%edx
  jne    L371
  jmp    L473
L60:
  xor    %eax,%eax
  jmp    L526
L111:
  mov    (%rsp),%rdx
  mov    0x10(%rsp),%rcx
  lea    (%r8,%rbp,8),%rax
  sub    %rbp,%rbx
  add    %rbp,%rdx
  lea    (%rcx,%rdx,8),%rdx
L490:
  movsd  (%rax),%xmm0
  movsd  (%rax,%rbx,8),%xmm1
  movsd  %xmm1,(%rax)
  movsd  %xmm0,(%rax,%rbx,8)
  add    $0x8,%rax
  cmp    %rax,%rdx
  jne    L490
  jmp    L257
L137:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: extract_symbolic_data
arguments: data_tag: D5
datatype: f64
name: extract_symbolic_data
arguments: data_tag: D19
datatype: f64
name: extract_symbolic_data
arguments: data_tag: D46
datatype: qword

tool: D5: 0

tool: D19: 1

tool: D46: 9223372036854775807

assistant: ```c
int gaussj(double *a, int n, double *b, int m) {
  int icol = 0, ipiv[64], irow = 0, i, j, k, l, indxc[64], indxr[64], ll;
  double pivinv, big, dum;
  if (n > 64)
    return (1);
  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)
            return (1);
        }
    ++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 * n];
        b[irow + l * n] = b[icol + l * n];
        b[icol + l * n] = dum;
      }
    }
    indxr[i] = irow;
    indxc[i] = icol;
    if (a[icol + icol * n] == 0.0)
      return (1);
    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 * n] *= 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 * n] -= b[icol + l * n] * 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;
      }
  return (0);
}
```