user: What is the c source code of the assembly code below?

```asm
<gauss1>:
  endbr64
  push   %r15
  xor    %eax,%eax
  mov    %rsi,%r15
  mov    %rdi,%rsi
  push   %r14
  lea    0x1(%rdx),%r14d
  push   %r13
  mov    %r14d,%ecx
  mov    %rdi,%r13
  lea    D14(%rip),%rdi
  push   %r12
  push   %rbp
  push   %rbx
  mov    %edx,%ebx
  lea    -0x1(%rbx),%r12d
  sub    $0x48,%rsp
  mov    %r14d,0x2c(%rsp)
  call   <print_matrix@plt>
  test   %ebx,%ebx
  jle    L92
  movslq %r14d,%rbp
  xor    %r8d,%r8d
  movslq %ebx,%r14
  mov    %r12d,0xc(%rsp)
  add    $0x1,%r8d
  lea    0x8(%r13,%r14,8),%rsi
  mov    %r13,%rdi
  xor    %eax,%eax
  lea    0x0(,%rbp,8),%r11
  lea    0x8(%r11),%rcx
  mov    %rcx,%r12
  cmp    %r8d,%ebx
  je     L8
  nopl   0x0(%rax,%rax,1)
L175:
  lea    0x0(%rbp,%rax,1),%r10
  lea    0x0(%r13,%rax,8),%r9
  mov    %rbp,%rdx
  mov    %r8d,%ecx
  jmp    L208
  nopw   0x0(%rax,%rax,1)
L123:
  add    $0x1,%ecx
  add    %rbp,%rdx
  cmp    %ecx,%ebx
  je     L42
L208:
  movsd  (%rdi,%rdx,8),%xmm0
  comisd (%rdi),%xmm0
  jbe    L123
  mov    %r9,%rax
  nopl   0x0(%rax,%rax,1)
L63:
  movsd  (%rax),%xmm0
  movsd  (%rax,%rdx,8),%xmm1
  movsd  %xmm1,(%rax)
  movsd  %xmm0,(%rax,%rdx,8)
  add    $0x8,%rax
  cmp    %rsi,%rax
  jne    L63
  add    $0x1,%ecx
  add    %rbp,%rdx
  cmp    %ecx,%ebx
  jne    L208
L42:
  add    $0x1,%r8d
  add    %r11,%rsi
  add    %r12,%rdi
  mov    %r10,%rax
  cmp    %r8d,%ebx
  jne    L175
L8:
  mov    0xc(%rsp),%r12d
  mov    0x2c(%rsp),%ecx
  xor    %eax,%eax
  mov    %ebx,%edx
  mov    %r13,%rsi
  lea    D32(%rip),%rdi
  call   <print_matrix@plt>
  test   %r12d,%r12d
  jle    L111
L184:
  mov    %ebx,%eax
  lea    0x2(%rbx),%esi
  lea    0x8(%r13),%rdx
  xor    %r8d,%r8d
  mov    %rax,%rdi
  mov    %rax,0x18(%rsp)
  not    %rax
  xor    %r11d,%r11d
  mov    %esi,0x28(%rsp)
  mov    0x2c(%rsp),%esi
  mov    %rax,%r9
  neg    %rdi
  mov    %rdx,0x20(%rsp)
  lea    0x0(,%rbp,8),%r10
  shl    $0x3,%r9
  mov    %r12d,0xc(%rsp)
  mov    %r8d,%r12d
  mov    %r13,0x10(%rsp)
  mov    %esi,%r13d
  mov    %r15,0x30(%rsp)
  mov    %esi,%r15d
  mov    %r14,0x38(%rsp)
  xor    %r14d,%r14d
  nopl   (%rax)
L118:
  add    $0x1,%r11d
  cmp    %r11d,%ebx
  jle    L27
  mov    0x10(%rsp),%rsi
  movslq %r14d,%rax
  movslq %r12d,%rcx
  lea    (%rsi,%rax,8),%r8
  mov    0x20(%rsp),%rsi
  movslq %r13d,%rax
  sub    %rax,%rcx
  add    0x18(%rsp),%rax
  lea    (%rsi,%rax,8),%rdx
  mov    %r11d,%esi
  nopw   0x0(%rax,%rax,1)
L187:
  lea    (%r9,%rdx,1),%rax
  movsd  -0x8(%rdx,%rdi,8),%xmm2
  divsd  (%r8),%xmm2
  nop
L11:
  movsd  (%rax,%rcx,8),%xmm1
  movsd  (%rax),%xmm0
  add    $0x8,%rax
  mulsd  %xmm2,%xmm1
  subsd  %xmm1,%xmm0
  movsd  %xmm0,-0x8(%rax)
  cmp    %rax,%rdx
  jne    L11
  add    $0x1,%esi
  sub    %rbp,%rcx
  add    %r10,%rdx
  cmp    %esi,%ebx
  jne    L187
L27:
  add    %r15d,%r12d
  add    %r15d,%r13d
  add    $0x1,%rdi
  add    0x28(%rsp),%r14d
  cmp    0xc(%rsp),%r11d
  jl     L118
  mov    0xc(%rsp),%r12d
  mov    0x10(%rsp),%r13
  mov    0x30(%rsp),%r15
  mov    0x38(%rsp),%r14
L111:
  mov    0x2c(%rsp),%edi
  mov    %ebx,%r10d
  not    %r10d
  mov    %edi,%esi
  not    %edi
  movslq %r10d,%r9
  imul   %r12d,%esi
  movslq %edi,%r11
  shl    $0x3,%r9
  shl    $0x3,%r11
  movslq %esi,%rdx
  lea    (%r14,%rdx,1),%rax
  lea    0x0(%r13,%rax,8),%r8
  movslq %r12d,%rax
  lea    (%r15,%rax,8),%rcx
  add    %rdx,%rax
  lea    0x0(%r13,%rax,8),%rdi
  nopl   (%rax)
L192:
  movsd  (%r8),%xmm1
  movsd  %xmm1,(%rcx)
  test   %ebx,%ebx
  jle    L159
  xor    %eax,%eax
  nopw   0x0(%rax,%rax,1)
L104:
  cmp    %eax,%r12d
  je     L12
  lea    (%rsi,%rax,1),%edx
  movslq %edx,%rdx
  movsd  0x0(%r13,%rdx,8),%xmm0
  mulsd  (%r15,%rax,8),%xmm0
  subsd  %xmm0,%xmm1
  movsd  %xmm1,(%rcx)
L12:
  add    $0x1,%rax
  cmp    %r14,%rax
  jne    L104
L159:
  sub    $0x1,%r12d
  divsd  (%rdi),%xmm1
  add    %r9,%r8
  add    %r11,%rdi
  movsd  %xmm1,(%rcx)
  add    %r10d,%esi
  sub    $0x8,%rcx
  cmp    $0xffffffff,%r12d
  jne    L192
L68:
  add    $0x48,%rsp
  mov    %r15,%rsi
  mov    $0x3,%ecx
  xor    %eax,%eax
  pop    %rbx
  mov    $0x1,%edx
  lea    D2(%rip),%rdi
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  jmp    1050 <print_matrix@plt>
L92:
  mov    0x2c(%rsp),%ecx
  xor    %eax,%eax
  mov    %ebx,%edx
  mov    %r13,%rsi
  lea    D32(%rip),%rdi
  call   <print_matrix@plt>
  test   %r12d,%r12d
  jg     L19
  jne    L68
  movslq %ebx,%r14
  jmp    L111
L19:
  movslq 0x2c(%rsp),%rbp
  movslq %ebx,%r14
  jmp    L184
```

tool_calls: name: retrieve_data
arguments: data_label: D14
type_infered: string
name: retrieve_data
arguments: data_label: D32
type_infered: string
name: retrieve_data
arguments: data_label: D2
type_infered: string

tool: D14: INPUT

tool: 

tool: D2: result

assistant: ```c
void gauss1(void *b, void *res, int eq) {
  int i, n, k, j;
  double t, temp;
  double *B = b;
  double *a = res;
  n = eq;
  print_matrix("INPUT", B, n, n + 1);
  for (i = 0; i < n; i++)
    for (k = i + 1; k < n; k++)
      if ((((double *)B)[(i) + (i) * (n + 1)]) < (((double *)B)[(i) + (k) * (n + 1)]))
        for (j = 0; j <= n; j++) {
          temp = (((double *)B)[(j) + (i) * (n + 1)]);
          (((double *)B)[(j) + (i) * (n + 1)]) = (((double *)B)[(j) + (k) * (n + 1)]);
          (((double *)B)[(j) + (k) * (n + 1)]) = temp;
        }
  print_matrix("", B, n, n + 1);
  for (i = 0; i < n - 1; i++) {
    for (k = i + 1; k < n; k++) {
      t = (((double *)B)[(i) + (k) * (n + 1)]) / (((double *)B)[(i) + (i) * (n + 1)]);
      for (j = 0; j <= n; j++)
        (((double *)B)[(j) + (k) * (n + 1)]) = (((double *)B)[(j) + (k) * (n + 1)]) - t * (((double *)B)[(j) + (i) * (n + 1)]);
    }
  }
  for (i = n - 1; i >= 0; i--) {
    a[i] = (((double *)B)[(n) + (i) * (n + 1)]);
    for (j = 0; j < n; j++)
      if (j != i)
        a[i] = a[i] - (((double *)B)[(j) + (i) * (n + 1)]) * a[j];
    a[i] = a[i] / (((double *)B)[(i) + (i) * (n + 1)]);
  }
  print_matrix("result", a, 1, 3);
}
```