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

```asm
<main>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbx
  lea    -0x7a1000(%rsp),%r11
L174:
  sub    $0x1000,%rsp
  orq    $0x0,(%rsp)
  cmp    %r11,%rsp
  jne    L174
  sub    $0x298,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,-0x38(%rbp)
  xor    %eax,%eax
  lea    -0x7a1244(%rbp),%rsi
  lea    D26(%rip),%rdi
  call   <scanf@plt>
  mov    -0x7a1244(%rbp),%ebx
  mov    %ebx,-0x7a12ac(%rbp)
  lea    0x1(%rbx),%r14d
  cmp    $0x3e7,%ebx
  setbe  %dil
  movzbl %dil,%edi
  call   <assert@plt>
  cmp    $0x3e7,%r14d
  setbe  %dil
  movzbl %dil,%edi
  call   <assert@plt>
  cmpl   $0x0,-0x7a1244(%rbp)
  je     L13
  lea    -0x7a1240(%rbp),%rax
  mov    %rax,-0x7a1280(%rbp)
  mov    %ebx,%eax
  mov    %rax,-0x7a12b8(%rbp)
  lea    -0x7a1238(%rbp,%rax,8),%r12
  mov    %r12,-0x7a1270(%rbp)
  neg    %rax
  shl    $0x3,%rax
  mov    %rax,-0x7a1258(%rbp)
  mov    $0x0,%r15d
  lea    D9(%rip),%r13
  jmp    L393
L379:
  mov    %rbx,%rsi
  mov    %r13,%rdi
  mov    $0x0,%eax
  call   <scanf@plt>
  add    $0x8,%rbx
  cmp    %r12,%rbx
  jne    L379
L70:
  add    $0x1,%r15d
  mov    -0x7a1244(%rbp),%eax
  add    $0x1f40,%r12
  cmp    %r15d,%eax
  jbe    L160
L393:
  mov    -0x7a1258(%rbp),%rax
  lea    -0x8(%r12,%rax,1),%rbx
  test   %r14d,%r14d
  jne    L379
  jmp    L70
L160:
  test   %eax,%eax
  je     L13
  lea    -0x79f300(%rbp),%rax
  mov    %rax,-0x7a12a0(%rbp)
  movq   $0x0,-0x7a1288(%rbp)
  movq   $0x1,-0x7a12a8(%rbp)
  movq   $0x0,-0x7a1298(%rbp)
  lea    D41(%rip),%r15
  jmp    L416
L187:
  mov    -0x7a12a8(%rbp),%rax
  mov    %eax,%edx
  mov    -0x7a1244(%rbp),%ecx
  cmp    %eax,%ecx
  jbe    L255
  mov    -0x7a12a0(%rbp),%rax
  movapd %xmm4,%xmm1
L442:
  ucomisd (%rax),%xmm1
  jp     L221
  ucomisd (%rax),%xmm0
  jne    L221
  add    $0x1,%edx
  add    $0x1f40,%rax
  cmp    %edx,%ecx
  ja     L442
L255:
  lea    D56(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    $0x1,%edi
  call   <exit@plt>
  jmp    L122
L221:
  cmp    %ebx,%r14d
  jbe    L204
  movslq %edx,%rax
  imul   $0x3e8,%rax,%rax
  add    -0x7a1298(%rbp),%rax
  lea    -0x7a1240(%rbp,%rax,8),%rcx
  mov    -0x7a12a0(%rbp),%rax
  sub    $0x1f40,%rax
  mov    %r12d,%esi
L336:
  movsd  (%rcx),%xmm0
  movsd  (%rax),%xmm1
  movsd  %xmm1,(%rcx)
  movsd  %xmm0,(%rax)
  add    $0x1,%esi
  add    $0x8,%rcx
  add    $0x8,%rax
  cmp    %esi,%r14d
  ja     L336
L204:
  mov    %r12d,%esi
  lea    D20(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    -0x7a1270(%rbp),%r12
  mov    $0x0,%r13d
  cmpl   $0x0,-0x7a1244(%rbp)
  jne    L252
L258:
  mov    $0xa,%edi
  call   <putchar@plt>
  jmp    L122
L297:
  movsd  (%rbx),%xmm0
  mov    %r15,%rdi
  mov    $0x1,%eax
  call   <printf@plt>
  add    $0x8,%rbx
  cmp    %r12,%rbx
  jne    L297
L219:
  mov    $0xa,%edi
  call   <putchar@plt>
  add    $0x1,%r13d
  add    $0x1f40,%r12
  cmp    %r13d,-0x7a1244(%rbp)
  jbe    L258
L252:
  mov    -0x7a1258(%rbp),%rax
  lea    -0x8(%r12,%rax,1),%rbx
  test   %r14d,%r14d
  jne    L297
  jmp    L219
L191:
  movsd  (%rbx),%xmm0
  mov    %r15,%rdi
  mov    $0x1,%eax
  call   <printf@plt>
  add    $0x8,%rbx
  cmp    %r12,%rbx
  jne    L191
L180:
  mov    $0xa,%edi
  call   <putchar@plt>
  add    $0x1,%r13d
  add    $0x1f40,%r12
  cmp    %r13d,-0x7a1244(%rbp)
  jbe    L280
L245:
  mov    -0x7a1258(%rbp),%rax
  lea    -0x8(%r12,%rax,1),%rbx
  test   %r14d,%r14d
  jne    L191
  jmp    L180
L280:
  mov    $0xa,%edi
  call   <putchar@plt>
  addl   $0x1,-0x7a1260(%rbp)
  mov    -0x7a1260(%rbp),%esi
  mov    -0x7a1244(%rbp),%eax
  addq   $0x1f40,-0x7a1268(%rbp)
  cmp    %esi,%eax
  jbe    L164
L6:
  mov    -0x7a1268(%rbp),%rcx
  mov    %rcx,%rax
  movsd  (%rcx),%xmm2
  divsd  -0x7a1278(%rbp),%xmm2
  movq   $0x0,(%rcx)
  cmp    -0x7a128c(%rbp),%r14d
  jbe    L213
  mov    -0x7a1290(%rbp),%edx
  mov    -0x7a1280(%rbp),%rsi
  sub    %rcx,%rsi
  mov    -0x7a1288(%rbp),%rdi
L288:
  lea    (%rsi,%rax,1),%rcx
  movapd %xmm2,%xmm1
  mulsd  0x8(%rcx,%rdi,1),%xmm1
  movsd  0x8(%rax),%xmm0
  subsd  %xmm1,%xmm0
  movsd  %xmm0,0x8(%rax)
  add    $0x1,%edx
  add    $0x8,%rax
  cmp    %edx,%r14d
  ja     L288
L213:
  mov    -0x7a1270(%rbp),%r12
  mov    $0x0,%r13d
  cmpl   $0x0,-0x7a1244(%rbp)
  jne    L245
  jmp    L280
L164:
  addq   $0x1,-0x7a1298(%rbp)
  mov    -0x7a1298(%rbp),%rsi
  addq   $0x1,-0x7a12a8(%rbp)
  addq   $0x8,-0x7a1280(%rbp)
  addq   $0x1f40,-0x7a1288(%rbp)
  addq   $0x1f48,-0x7a12a0(%rbp)
  cmp    %esi,%eax
  jbe    L296
L416:
  mov    -0x7a1298(%rbp),%rax
  mov    %eax,%ebx
  mov    %eax,%r12d
  mov    %eax,%esi
  lea    D40(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    -0x7a12a0(%rbp),%rax
  mov    %rax,-0x7a1260(%rbp)
  pxor   %xmm4,%xmm4
  ucomisd -0x1f40(%rax),%xmm4
  jp     L122
  movapd %xmm4,%xmm0
  je     L187
L122:
  mov    -0x7a1260(%rbp),%rax
  movsd  -0x1f40(%rax),%xmm5
  movsd  %xmm5,-0x7a1278(%rbp)
  mov    -0x7a12a8(%rbp),%rdx
  mov    %edx,-0x7a128c(%rbp)
  mov    %edx,-0x7a1290(%rbp)
  mov    -0x7a1244(%rbp),%eax
  cmp    %edx,%eax
  jbe    L296
  mov    -0x7a12a0(%rbp),%rax
  mov    %rax,-0x7a1268(%rbp)
  mov    %edx,-0x7a1260(%rbp)
  jmp    L6
L296:
  mov    %eax,%edx
  lea    0xf(,%rdx,8),%rdx
  shr    $0x4,%rdx
  shl    $0x4,%rdx
  mov    %rdx,%rsi
  and    $0xfffffffffffff000,%rsi
  mov    %rsp,%rcx
  sub    %rsi,%rcx
L318:
  cmp    %rcx,%rsp
  je     L425
  sub    $0x1000,%rsp
  orq    $0x0,0xff8(%rsp)
  jmp    L318
L425:
  mov    %rdx,%rcx
  and    $0xfff,%ecx
  sub    %rcx,%rsp
  test   %rcx,%rcx
  je     L25
  orq    $0x0,-0x8(%rsp,%rcx,1)
L25:
  mov    %rsp,%rcx
  mov    %eax,%r11d
  sub    $0x1,%r11d
  js     L39
  mov    -0x7a12ac(%rbp),%edx
  movslq %r11d,%rdi
  imul   $0x3e8,%rdi,%rsi
  add    %rsi,%rdx
  movsd  -0x7a1240(%rbp,%rdx,8),%xmm1
  lea    -0x7a1240(%rbp),%rdx
  imul   $0x1f48,%rdi,%r10
  add    %rdx,%r10
  lea    (%rcx,%rdi,8),%rbx
  imul   $0x1f40,%rdi,%rsi
  lea    -0x1f40(%rdx,%rsi,1),%rsi
  lea    -0x2(%rax),%edx
  movslq %edx,%r9
  imul   $0x1f40,%r9,%r9
  imul   $0xffffffffffffe0c0,%rdi,%rax
  add    %rax,%r9
  mov    %r11d,%r8d
  lea    -0x1(%rdi),%r12
  jmp    L31
L87:
  lea    (%rsi,%r9,1),%rax
  mov    -0x7a12b8(%rbp),%r14
  movsd  0x1f40(%rax,%r14,8),%xmm1
  cmp    %r8d,%r11d
  jle    L387
  mov    %edx,%eax
  sub    %r8d,%eax
  mov    %r12,%r13
  sub    %rax,%r13
  mov    %rdi,%rax
L166:
  movsd  (%rsi,%rax,8),%xmm0
  mulsd  (%rcx,%rax,8),%xmm0
  subsd  %xmm0,%xmm1
  sub    $0x1,%rax
  cmp    %r13,%rax
  jne    L166
L387:
  sub    $0x1f48,%r10
  sub    $0x8,%rbx
  sub    $0x1f40,%rsi
L31:
  divsd  (%r10),%xmm1
  movsd  %xmm1,(%rbx)
  sub    $0x1,%r8d
  jns    L87
L39:
  cmpl   $0x0,-0x7a1244(%rbp)
  je     L13
  mov    %rcx,%r12
  mov    $0x0,%ebx
  lea    D0(%rip),%r13
L240:
  add    $0x1,%ebx
  movsd  (%r12),%xmm0
  mov    %ebx,%esi
  mov    %r13,%rdi
  mov    $0x1,%eax
  call   <printf@plt>
  add    $0x8,%r12
  cmp    -0x7a1244(%rbp),%ebx
  jb     L240
L13:
  mov    -0x38(%rbp),%rax
  sub    %fs:0x28,%rax
  jne    L161
  mov    $0x0,%eax
  lea    -0x28(%rbp),%rsp
  pop    %rbx
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  pop    %rbp
  ret
L161:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: extract_symbolic_data
arguments: label: D26
type_infered: string
name: extract_symbolic_data
arguments: label: D9
type_infered: string
name: extract_symbolic_data
arguments: label: D41
type_infered: string
name: extract_symbolic_data
arguments: label: D56
type_infered: string
name: extract_symbolic_data
arguments: label: D20
type_infered: string
name: extract_symbolic_data
arguments: label: D40
type_infered: string
name: extract_symbolic_data
arguments: label: D0
type_infered: string

tool: D26: %d

tool: D9: %lf

tool: D41: %lf	

tool: D56: Cannot pivot. Exiting

tool: D20: Pivoting row %d with row %d



tool: D40: 
Row %d
------


tool: D0: 
Value of x[%d] is %lf

assistant: ```c
int main() {
  unsigned int rows, columns;
  scanf("%d", &rows);
  columns = rows + 1;
  assert(rows < 1000);
  assert(columns < 1000);
  double matrix[1000][1000];
  int i, j;
  for (i = 0; i < rows; i++) {
    for (j = 0; j < columns; j++) {
      scanf("%lf", &matrix[i][j]);
    }
  }
  double pivot, coefficient, swap;
  int k, l, m, flag;
  int temp1, temp2;
  for (i = 0; i < rows; i++) {
    printf("\nRow %d\n------\n", i);
    if (matrix[i][i] == 0) {
      flag = 0;
      for (l = i + 1; l < rows; l++) {
        if (matrix[l][i] != 0) {
          flag = 1;
          for (m = i; m < columns; m++) {
            swap = matrix[l][m];
            matrix[l][m] = matrix[i][m];
            matrix[i][m] = swap;
          }
          printf("Pivoting row %d with row %d\n\n", i, l);
          for (temp1 = 0; temp1 < rows; temp1++) {
            for (temp2 = 0; temp2 < columns; temp2++) {
              printf("%lf\t", matrix[temp1][temp2]);
            }
            printf("\n");
          }
          printf("\n");
          break;
        }
      }
      if (!flag) {
        printf("Cannot pivot. Exiting");
        exit(1);
      }
    }
    pivot = matrix[i][i];
    for (j = i + 1; j < rows; j++) {
      coefficient = matrix[j][i] / pivot;
      matrix[j][i] = 0;
      for (k = i + 1; k < columns; k++) {
        matrix[j][k] -= coefficient * matrix[i][k];
      }
      for (temp1 = 0; temp1 < rows; temp1++) {
        for (temp2 = 0; temp2 < columns; temp2++) {
          printf("%lf\t", matrix[temp1][temp2]);
        }
        printf("\n");
      }
      printf("\n");
    }
  }
  double result[rows];
  double sum;
  for (i = rows - 1; i >= 0; i--) {
    sum = matrix[i][columns - 1];
    for (j = rows - 1; j > i; j--) {
      sum -= matrix[i][j] * result[j];
    }
    result[i] = sum / matrix[i][i];
  }
  for (i = 0; i < rows; i++) {
    printf("\nValue of x[%d] is %lf", i + 1, result[i]);
  }
  return 0;
}
```