user: 请将以下的汇编代码转换成C语言代码：

```asm
<solve_linear_system>:
  endbr64
  push   %r15
  movslq %edi,%rax
  push   %r14
  mov    %rax,%r11
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  mov    %rax,-0x8(%rsp)
  sub    $0x1,%eax
  mov    %rsi,-0x18(%rsp)
  mov    %rdx,-0x10(%rsp)
  mov    %eax,-0x34(%rsp)
  test   %eax,%eax
  jle    L133
  mov    -0x18(%rsp),%rax
  movslq %r11d,%rbx
  mov    -0x34(%rsp),%r14d
  xor    %ebp,%ebp
  lea    0x8(,%rbx,8),%rdi
  shl    $0x4,%rbx
  movq   D9(%rip),%xmm2
  pxor   %xmm4,%xmm4
  mov    %rax,%r13
  lea    0x8(%rax),%r9
  add    %rbx,%rax
  mov    %rdi,-0x30(%rsp)
  add    %rdi,%r13
  lea    -0x8(%rdi),%r8
  mov    %rax,%r12
  mov    -0x10(%rsp),%rdi
  lea    -0x2(%r11),%eax
  movq   D10(%rip),%xmm3
  mov    %rbx,-0x40(%rsp)
  mov    $0x1,%ebx
  add    $0x2,%rax
  lea    0x8(%rdi),%r10
  mov    %rax,-0x28(%rsp)
  lea    0x10(%rdi),%rax
  mov    %rax,-0x20(%rsp)
  nopl   0x0(%rax,%rax,1)
L199:
  movsd  -0x8(%r9),%xmm0
  mov    %r12,%rsi
  mov    %ebp,%r15d
  mov    %ebx,%edi
  sub    -0x40(%rsp),%rsi
  mov    %ebx,%eax
  movapd %xmm0,%xmm1
  andpd  %xmm2,%xmm1
  cmp    %ebx,%r11d
  jle    L56
  lea    -0x8(%r13),%rdx
  nopw   0x0(%rax,%rax,1)
L25:
  movsd  (%rdx),%xmm0
  mov    %r15d,%ecx
  andpd  %xmm2,%xmm0
  comisd %xmm1,%xmm0
  maxsd  %xmm1,%xmm0
  cmova  %eax,%ecx
  add    $0x1,%eax
  movapd %xmm0,%xmm1
  add    %r8,%rdx
  mov    %ecx,%r15d
  cmp    %eax,%r11d
  jne    L25
  ucomisd %xmm4,%xmm0
  jp     L115
  je     L108
L115:
  cmp    %ebp,%ecx
  jne    L176
L51:
  mov    -0x34(%rsp),%eax
  mov    %r12,%rcx
  mov    %r13,%rsi
  sub    %edi,%eax
  mov    -0x20(%rsp),%rdi
  add    %rbp,%rax
  lea    (%rdi,%rax,8),%r15
  mov    %r10,%rdi
  nop
L89:
  movsd  -0x8(%rsi),%xmm1
  mov    %rsi,%rax
  mov    %r9,%rdx
  xorpd  %xmm3,%xmm1
  divsd  -0x8(%r9),%xmm1
  cmp    %rsi,%rcx
  jbe    L114
  nopw   0x0(%rax,%rax,1)
L167:
  movsd  (%rdx),%xmm0
  add    $0x8,%rax
  add    $0x8,%rdx
  mulsd  %xmm1,%xmm0
  addsd  -0x8(%rax),%xmm0
  movsd  %xmm0,-0x8(%rax)
  cmp    %rax,%rcx
  ja     L167
L114:
  mulsd  -0x8(%r10),%xmm1
  add    $0x8,%rdi
  add    %r8,%rsi
  add    %r8,%rcx
  addsd  -0x8(%rdi),%xmm1
  movsd  %xmm1,-0x8(%rdi)
  cmp    %r15,%rdi
  jne    L89
L97:
  mov    -0x30(%rsp),%rax
  add    $0x1,%rbp
  add    $0x1,%rbx
  add    %r8,%r12
  add    $0x8,%r10
  add    %rax,%r9
  add    %rax,%r13
  cmp    -0x28(%rsp),%rbx
  jne    L199
L62:
  mov    -0x8(%rsp),%rax
  mov    -0x18(%rsp),%rbx
  lea    0x0(,%rax,8),%rsi
  movslq -0x34(%rsp),%rax
  mov    %rax,%rdx
  lea    (%rbx,%rax,8),%rax
  imul   %rsi,%rdx
  movsd  (%rax,%rdx,1),%xmm1
  ucomisd %xmm4,%xmm1
  jp     L79
  je     L108
L79:
  mov    -0x10(%rsp),%rax
  lea    -0x8(%rax,%rsi,1),%rax
  movsd  (%rax),%xmm0
  divsd  %xmm1,%xmm0
  movsd  %xmm0,(%rax)
  sub    $0x2,%r11d
  js     L192
  mov    -0x8(%rsp),%rbx
  movslq %r11d,%rax
  mov    -0x10(%rsp),%r14
  mov    %r11d,%r11d
  lea    0x1(%rax),%rdx
  lea    0x1(%rbx),%rdi
  lea    0x0(,%rdx,8),%r10
  mov    %rbx,%r9
  add    %r14,%rsi
  imul   %rdi,%rax
  lea    (%r14,%r10,1),%rcx
  not    %r9
  imul   %rbx,%rdx
  mov    -0x18(%rsp),%rbx
  lea    -0x8(%r14,%r10,1),%r10
  shl    $0x3,%r9
  lea    0x8(%rbx,%rax,8),%rdi
  lea    0x0(,%r11,8),%rax
  lea    (%rbx,%rdx,8),%r8
  sub    %rax,%r10
L200:
  movsd  -0x8(%rcx),%xmm1
  mov    %rdi,%rdx
  cmp    %rsi,%rcx
  jae    L3
  mov    %rcx,%rax
  nopl   (%rax)
L2:
  add    $0x8,%rdx
  movsd  (%rax),%xmm0
  add    $0x8,%rax
  mulsd  -0x8(%rdx),%xmm0
  subsd  %xmm0,%xmm1
  movsd  %xmm1,-0x8(%rcx)
  cmp    %rsi,%rax
  jb     L2
L3:
  divsd  -0x10(%r8),%xmm1
  sub    $0x8,%rcx
  movsd  %xmm1,(%rcx)
  add    %r9,%r8
  add    %r9,%rdi
  cmp    %rcx,%r10
  jne    L200
L192:
  pop    %rbx
  mov    $0x1,%eax
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L56:
  ucomisd %xmm4,%xmm0
  jp     L97
  jne    L97
L108:
  pop    %rbx
  xor    %eax,%eax
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L176:
  movslq %ecx,%rcx
  xor    %eax,%eax
  mov    %rcx,%rdx
  imul   %r8,%rdx
  add    -0x18(%rsp),%rdx
  cs nopw 0x0(%rax,%rax,1)
L112:
  movsd  (%rsi,%rax,8),%xmm0
  movsd  (%rdx,%rax,8),%xmm1
  mov    %rax,%r15
  movsd  %xmm1,(%rsi,%rax,8)
  movsd  %xmm0,(%rdx,%rax,8)
  add    $0x1,%rax
  cmp    %r15,%r14
  jne    L112
  mov    -0x10(%rsp),%rax
  movsd  -0x8(%r10),%xmm0
  lea    (%rax,%rcx,8),%rax
  movsd  (%rax),%xmm1
  movsd  %xmm1,-0x8(%r10)
  movsd  %xmm0,(%rax)
  jmp    L51
L133:
  pxor   %xmm4,%xmm4
  jmp    L62
```

tool_calls: name: disassemble_data
arguments: data_tag: D9
type_guessed: qword
name: disassemble_data
arguments: data_tag: D10
type_guessed: f32[2]

tool: D9: 9223372036854775807

tool: {"D10": [0.0,-0.0]}

assistant: ```c
int solve_linear_system(int n, double A[n][n], double b[n]) {
  int i, j, pivot, k;
  double temp, scale, *p, *q, maxvalue, tmp;
  for (i = 0; i < n - 1; ++i) {
    pivot = i;
    maxvalue = fabs(A[i][i]);
    for (j = i + 1; j < n; ++j) {
      temp = fabs(A[j][i]);
      if (temp > maxvalue) {
        maxvalue = temp;
        pivot = j;
      }
    }
    if (maxvalue == 0.0)
      return 0;
    if (pivot != i) {
      for (k = 0; k < n; k++) {
        tmp = A[i][k];
        A[i][k] = A[pivot][k];
        A[pivot][k] = tmp;
      }
      tmp = b[i];
      b[i] = b[pivot];
      b[pivot] = tmp;
    }
    for (j = i + 1; j < n; ++j) {
      scale = -A[j][i] / A[i][i];
      for (p = A[j] + i + 1, q = A[i] + i + 1; p < A[j] + n;)
        (*p++) += scale * (*q++);
      b[j] += scale * b[i];
    }
  }
  if (fabs(A[n - 1][n - 1]) == 0.0)
    return 0;
  b[n - 1] /= A[n - 1][n - 1];
  for (i = n - 2; i >= 0; --i) {
    for (p = b + i + 1, q = A[i] + i + 1; p < b + n;)
      b[i] -= (*p++) * (*q++);
    b[i] /= A[i][i];
  }
  return 1;
}
```