user: 请从给定的汇编指令推导出C源代码：

```asm
<gauss_matrix>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x48,%rsp
  mov    %rdi,%r15
  mov    %rdi,0x10(%rsp)
  mov    %esi,%ebp
  mov    %rdx,%rbx
  movslq %esi,%rax
  mov    %rax,0x30(%rsp)
  lea    0x0(,%rsi,8),%r12d
  mov    %r12d,%edi
  call   <shMalloc@plt>
  mov    %rax,%r14
  mov    %rax,0x8(%rsp)
  mov    %r12d,%edi
  call   <shMalloc@plt>
  mov    %rax,0x28(%rsp)
  test   %ebp,%ebp
  jle    L290
  lea    -0x2(%rbp),%eax
  lea    0x10(,%rax,8),%rsi
  mov    %r15,%rdi
  mov    $0x0,%r8d
  sub    %r15,%r14
  mov    %r14,%r9
  movq   D28(%rip),%xmm4
  movapd %xmm4,%xmm1
  pxor   %xmm3,%xmm3
  movapd %xmm3,%xmm2
  jmp    L22
L313:
  add    $0x8,%rax
  cmp    %rsi,%rax
  je     L226
L109:
  mov    (%r10),%rdx
  movsd  (%rdx,%rax,1),%xmm0
  andpd  %xmm1,%xmm0
  comisd (%rcx),%xmm0
  jbe    L313
  movsd  %xmm0,(%rcx)
  jmp    L313
L226:
  ucomisd (%rcx),%xmm3
  jp     L37
  ucomisd (%rcx),%xmm2
  je     L171
L37:
  add    $0x1,%r8d
  add    $0x8,%rdi
  cmp    %r8d,%ebp
  je     L290
L22:
  mov    %rdi,%r10
  lea    (%r9,%rdi,1),%rcx
  mov    (%rdi),%rax
  movsd  (%rax),%xmm0
  andpd  %xmm4,%xmm0
  movsd  %xmm0,(%rcx)
  cmp    $0x1,%ebp
  jle    L226
  mov    $0x8,%eax
  jmp    L109
L171:
  mov    %r8d,%esi
  lea    D63(%rip),%rdi
  mov    $0x0,%eax
  call   <shError@plt>
  mov    0x8(%rsp),%rdi
  call   <shFree@plt>
  mov    0x28(%rsp),%rdi
  call   <shFree@plt>
  mov    $0x1,%r15d
L65:
  mov    %r15d,%eax
  add    $0x48,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L290:
  lea    -0x1(%rbp),%eax
  mov    %eax,0x3c(%rsp)
  test   %eax,%eax
  jle    L80
  mov    0x10(%rsp),%rcx
  lea    0x8(%rcx),%r13
  lea    -0x2(%rbp),%eax
  mov    %eax,0x38(%rsp)
  mov    %eax,%eax
  add    $0x2,%rax
  mov    %rax,0x20(%rsp)
  mov    $0x1,%r14d
  mov    $0x0,%r12d
  mov    $0xfffffffffffffff8,%rax
  sub    %rcx,%rax
  mov    %rax,0x18(%rsp)
  jmp    L244
L205:
  mov    %eax,%r15d
  lea    D72(%rip),%rdi
  mov    $0x0,%eax
  call   <shError@plt>
  mov    0x8(%rsp),%rdi
  call   <shFree@plt>
  mov    0x28(%rsp),%rdi
  call   <shFree@plt>
  jmp    L65
L34:
  mov    %r12d,%esi
  movapd %xmm2,%xmm0
  lea    D60(%rip),%rdi
  mov    $0x2,%eax
  call   <shError@plt>
  mov    0x8(%rsp),%rdi
  call   <shFree@plt>
  mov    0x28(%rsp),%rdi
  call   <shFree@plt>
  mov    $0x1,%r15d
  jmp    L65
L253:
  add    $0x1,%r12
  add    $0x1,%r14
  add    $0x8,%r13
  subl   $0x1,0x38(%rsp)
  cmp    0x20(%rsp),%r14
  je     L80
L244:
  mov    %r12d,%r8d
  mov    0x8(%rsp),%rcx
  mov    %rbx,%rdx
  mov    %ebp,%esi
  mov    0x10(%rsp),%rdi
  call   <gauss_pivot@plt>
  cmp    $0x1,%eax
  je     L205
  lea    0x0(,%r12,8),%r11
  mov    %r13,%rsi
  mov    -0x8(%r13),%rax
  movsd  (%rax,%r12,8),%xmm2
  mov    0x8(%rsp),%rax
  add    %r13,%rax
  mov    0x18(%rsp),%rcx
  movsd  (%rax,%rcx,1),%xmm1
  movapd %xmm2,%xmm0
  divsd  %xmm1,%xmm0
  andpd  D28(%rip),%xmm0
  movsd  D56(%rip),%xmm5
  comisd %xmm0,%xmm5
  ja     L34
  cmp    %r14d,%ebp
  jle    L253
  lea    0x0(,%r14,8),%r15
  mov    0x38(%rsp),%eax
  lea    0x2(%r12,%rax,1),%r8
  shl    $0x3,%r8
  mov    %r13,%r10
  mov    %r14,%r9
L219:
  mov    %r10,%rcx
  mov    (%r10),%rdx
  mov    -0x8(%rsi),%rax
  movsd  (%rdx,%r11,1),%xmm2
  divsd  (%rax,%r11,1),%xmm2
  mov    %r15,%rax
L222:
  mov    %rax,%rdx
  add    (%rcx),%rdx
  mov    -0x8(%rsi),%rdi
  movapd %xmm2,%xmm1
  mulsd  (%rdi,%rax,1),%xmm1
  movsd  (%rdx),%xmm0
  subsd  %xmm1,%xmm0
  movsd  %xmm0,(%rdx)
  add    $0x8,%rax
  cmp    %r8,%rax
  jne    L222
  mulsd  (%rbx,%r12,8),%xmm2
  movsd  (%rbx,%r9,8),%xmm0
  subsd  %xmm2,%xmm0
  movsd  %xmm0,(%rbx,%r9,8)
  add    $0x1,%r9
  add    $0x8,%r10
  cmp    %r9d,%ebp
  jg     L219
  jmp    L253
L80:
  mov    0x30(%rsp),%rax
  shl    $0x3,%rax
  mov    0x10(%rsp),%rcx
  mov    -0x8(%rcx,%rax,1),%rdx
  movsd  -0x8(%rdx,%rax,1),%xmm2
  mov    0x8(%rsp),%rcx
  movsd  -0x8(%rcx,%rax,1),%xmm1
  movapd %xmm2,%xmm0
  divsd  %xmm1,%xmm0
  andpd  D28(%rip),%xmm0
  movsd  D56(%rip),%xmm3
  comisd %xmm0,%xmm3
  ja     L198
  movsd  -0x8(%rbx,%rax,1),%xmm0
  divsd  %xmm2,%xmm0
  mov    0x28(%rsp),%rcx
  movsd  %xmm0,-0x8(%rcx,%rax,1)
  mov    %ebp,%r8d
  sub    $0x2,%r8d
  js     L261
  movslq %r8d,%r8
  mov    0x3c(%rsp),%edi
  lea    0x0(,%r8,8),%rsi
  lea    -0x1(%rbp),%r10d
  lea    0x10(%rcx),%r9
  mov    %rcx,%r11
  mov    0x10(%rsp),%r12
  jmp    L260
L198:
  movapd %xmm2,%xmm0
  mov    %ebp,%esi
  lea    D79(%rip),%rdi
  mov    $0x2,%eax
  call   <shError@plt>
  mov    0x8(%rsp),%rdi
  call   <shFree@plt>
  mov    0x28(%rsp),%rdi
  call   <shFree@plt>
  mov    $0x1,%r15d
  jmp    L65
L95:
  movsd  (%rdx,%rax,1),%xmm0
  mulsd  (%rax),%xmm0
  addsd  %xmm0,%xmm1
  add    $0x8,%rax
  cmp    %rcx,%rax
  jne    L95
L36:
  movsd  (%rbx,%rsi,1),%xmm0
  subsd  %xmm1,%xmm0
  mov    (%r12,%rsi,1),%rax
  divsd  (%rax,%rsi,1),%xmm0
  movsd  %xmm0,(%r11,%rsi,1)
  sub    $0x1,%r8
  sub    $0x8,%rsi
  sub    $0x1,%edi
  je     L261
L260:
  cmp    %edi,%ebp
  jle    L67
  movslq %edi,%rax
  lea    (%r11,%rax,8),%rax
  mov    %r10d,%edx
  sub    %edi,%edx
  add    %r8,%rdx
  lea    (%r9,%rdx,8),%rcx
  pxor   %xmm1,%xmm1
  mov    (%r12,%rsi,1),%rdx
  sub    %r11,%rdx
  jmp    L95
L67:
  pxor   %xmm1,%xmm1
  jmp    L36
L261:
  test   %ebp,%ebp
  jle    L8
  mov    %ebp,%ebp
  mov    0x28(%rsp),%rcx
  mov    %rcx,%rax
  lea    (%rcx,%rbp,8),%rdx
  sub    %rcx,%rbx
L32:
  movsd  (%rax),%xmm0
  movsd  %xmm0,(%rbx,%rax,1)
  add    $0x8,%rax
  cmp    %rax,%rdx
  jne    L32
L8:
  mov    0x28(%rsp),%rdi
  call   <shFree@plt>
  mov    0x8(%rsp),%rdi
  call   <shFree@plt>
  mov    $0x0,%r15d
  jmp    L65
```

tool_calls: name: disassemble_data
arguments: data_label: D28
datatype: qword[2]
name: disassemble_data
arguments: data_label: D63
datatype: string
name: disassemble_data
arguments: data_label: D72
datatype: string
name: disassemble_data
arguments: data_label: D60
datatype: string
name: disassemble_data
arguments: data_label: D56
datatype: byte[8]
name: disassemble_data
arguments: data_label: D79
datatype: string

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

tool: D63: gauss_matrix: biggest val in row %d is zero

tool: D72: gauss_matrix: singular matrix

tool: D60: gauss_matrix: Y: row %d has tiny value %f / %f

tool: {"D56": [0x11,0xea,0x2d,0x81,0x99,0x97,0x71,0x3d]}

tool: D79: gauss_matrix: Z: row %d has tiny value %f / %f

assistant: ```c
int gauss_matrix(double **matrix, int num, double *vector) {
  int i, j, k;
  double *biggest_val;
  double *solution_vector;
  double factor;
  double sum;
  biggest_val = (double *)shMalloc(num * sizeof(double));
  solution_vector = (double *)shMalloc(num * sizeof(double));
  for (i = 0; i < num; i++) {
    biggest_val[i] = fabs(matrix[i][0]);
    for (j = 1; j < num; j++) {
      if (fabs(matrix[i][j]) > biggest_val[i]) {
        biggest_val[i] = fabs(matrix[i][j]);
      }
    }
    if (biggest_val[i] == 0.0) {
      shError("gauss_matrix: biggest val in row %d is zero", i);
      shFree(biggest_val);
      shFree(solution_vector);
      return (1);
    }
  }
  for (i = 0; i < num - 1; i++) {
    if (gauss_pivot(matrix, num, vector, biggest_val, i) == 1) {
      shError("gauss_matrix: singular matrix");
      shFree(biggest_val);
      shFree(solution_vector);
      return (1);
    }
    if (fabs(matrix[i][i] / biggest_val[i]) < 1.0e-12) {
      shError("gauss_matrix: Y: row %d has tiny value %f / %f", i, matrix[i][i], biggest_val[i]);
      shFree(biggest_val);
      shFree(solution_vector);
      return (1);
    }
    for (j = i + 1; j < num; j++) {
      factor = matrix[j][i] / matrix[i][i];
      for (k = i + 1; k < num; k++) {
        matrix[j][k] -= factor * matrix[i][k];
      }
      vector[j] -= factor * vector[i];
    }
  }
  if (fabs(matrix[num - 1][num - 1] / biggest_val[num - 1]) < 1.0e-12) {
    shError("gauss_matrix: Z: row %d has tiny value %f / %f", num, matrix[num - 1][num - 1], biggest_val[num - 1]);
    shFree(biggest_val);
    shFree(solution_vector);
    return (1);
  }
  solution_vector[num - 1] = vector[num - 1] / matrix[num - 1][num - 1];
  for (i = num - 2; i >= 0; i--) {
    sum = 0.0;
    for (j = i + 1; j < num; j++) {
      sum += matrix[i][j] * solution_vector[j];
    }
    solution_vector[i] = (vector[i] - sum) / matrix[i][i];
  }
  for (i = 0; i < num; i++) {
    vector[i] = solution_vector[i];
  }
  shFree(solution_vector);
  shFree(biggest_val);
  return (0);
}
```