user: 请将这段汇编代码片段转换成等效的C代码：

```asm
<main>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbx
  lea    -0x7a1000(%rsp),%r11
L305:
  sub    $0x1000,%rsp
  orq    $0x0,(%rsp)
  cmp    %r11,%rsp
  jne    L305
  sub    $0x278,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,-0x38(%rbp)
  xor    %eax,%eax
  mov    %rsp,%rax
  mov    %rax,%rbx
  lea    -0x7a1298(%rbp),%rax
  mov    %rax,%rsi
  lea    D52(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <scanf@plt>
  mov    -0x7a1298(%rbp),%eax
  add    $0x1,%eax
  mov    %eax,-0x7a1274(%rbp)
  mov    -0x7a1298(%rbp),%eax
  cmp    $0x3e7,%eax
  setbe  %al
  movzbl %al,%eax
  mov    %eax,%edi
  call   <assert@plt>
  cmpl   $0x3e7,-0x7a1274(%rbp)
  setbe  %al
  movzbl %al,%eax
  mov    %eax,%edi
  call   <assert@plt>
  movl   $0x0,-0x7a1294(%rbp)
  jmp    L161
L381:
  movl   $0x0,-0x7a1290(%rbp)
  jmp    L216
L29:
  lea    -0x7a1240(%rbp),%rdx
  mov    -0x7a1290(%rbp),%eax
  movslq %eax,%rcx
  mov    -0x7a1294(%rbp),%eax
  cltq
  imul   $0x3e8,%rax,%rax
  add    %rcx,%rax
  shl    $0x3,%rax
  add    %rdx,%rax
  mov    %rax,%rsi
  lea    D58(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <scanf@plt>
  addl   $0x1,-0x7a1290(%rbp)
L216:
  mov    -0x7a1290(%rbp),%eax
  cmp    %eax,-0x7a1274(%rbp)
  ja     L29
  addl   $0x1,-0x7a1294(%rbp)
L161:
  mov    -0x7a1294(%rbp),%edx
  mov    -0x7a1298(%rbp),%eax
  cmp    %eax,%edx
  jb     L381
  movl   $0x0,-0x7a1294(%rbp)
  jmp    L40
L122:
  mov    -0x7a1294(%rbp),%eax
  mov    %eax,%esi
  lea    D0(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    -0x7a1294(%rbp),%eax
  cltq
  imul   $0x1f48,%rax,%rax
  lea    -0x30(%rax),%rax
  add    %rbp,%rax
  sub    $0x7a1210,%rax
  movsd  (%rax),%xmm0
  pxor   %xmm1,%xmm1
  ucomisd %xmm1,%xmm0
  jp     L212
  pxor   %xmm1,%xmm1
  ucomisd %xmm1,%xmm0
  jne    L212
  movl   $0x0,-0x7a1280(%rbp)
  mov    -0x7a1294(%rbp),%eax
  add    $0x1,%eax
  mov    %eax,-0x7a1288(%rbp)
  jmp    L124
L364:
  mov    -0x7a1294(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x7a1288(%rbp),%eax
  cltq
  imul   $0x3e8,%rax,%rax
  add    %rdx,%rax
  movsd  -0x7a1240(%rbp,%rax,8),%xmm0
  pxor   %xmm1,%xmm1
  ucomisd %xmm1,%xmm0
  jp     L321
  pxor   %xmm1,%xmm1
  ucomisd %xmm1,%xmm0
  je     L298
L321:
  movl   $0x1,-0x7a1280(%rbp)
  mov    -0x7a1294(%rbp),%eax
  mov    %eax,-0x7a1284(%rbp)
  jmp    L272
L118:
  mov    -0x7a1284(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x7a1288(%rbp),%eax
  cltq
  imul   $0x3e8,%rax,%rax
  add    %rdx,%rax
  movsd  -0x7a1240(%rbp,%rax,8),%xmm0
  movsd  %xmm0,-0x7a1258(%rbp)
  mov    -0x7a1284(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x7a1294(%rbp),%eax
  cltq
  imul   $0x3e8,%rax,%rax
  add    %rdx,%rax
  movsd  -0x7a1240(%rbp,%rax,8),%xmm0
  mov    -0x7a1284(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x7a1288(%rbp),%eax
  cltq
  imul   $0x3e8,%rax,%rax
  add    %rdx,%rax
  movsd  %xmm0,-0x7a1240(%rbp,%rax,8)
  mov    -0x7a1284(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x7a1294(%rbp),%eax
  cltq
  imul   $0x3e8,%rax,%rax
  add    %rdx,%rax
  movsd  -0x7a1258(%rbp),%xmm0
  movsd  %xmm0,-0x7a1240(%rbp,%rax,8)
  addl   $0x1,-0x7a1284(%rbp)
L272:
  mov    -0x7a1284(%rbp),%eax
  cmp    %eax,-0x7a1274(%rbp)
  ja     L118
  mov    -0x7a1288(%rbp),%edx
  mov    -0x7a1294(%rbp),%eax
  mov    %eax,%esi
  lea    D59(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  movl   $0x0,-0x7a127c(%rbp)
  jmp    L182
L378:
  movl   $0x0,-0x7a1278(%rbp)
  jmp    L9
L58:
  mov    -0x7a1278(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x7a127c(%rbp),%eax
  cltq
  imul   $0x3e8,%rax,%rax
  add    %rdx,%rax
  mov    -0x7a1240(%rbp,%rax,8),%rax
  movq   %rax,%xmm0
  lea    D49(%rip),%rax
  mov    %rax,%rdi
  mov    $0x1,%eax
  call   <printf@plt>
  addl   $0x1,-0x7a1278(%rbp)
L9:
  mov    -0x7a1278(%rbp),%eax
  cmp    %eax,-0x7a1274(%rbp)
  ja     L58
  mov    $0xa,%edi
  call   <putchar@plt>
  addl   $0x1,-0x7a127c(%rbp)
L182:
  mov    -0x7a127c(%rbp),%edx
  mov    -0x7a1298(%rbp),%eax
  cmp    %eax,%edx
  jb     L378
  mov    $0xa,%edi
  call   <putchar@plt>
  jmp    L274
L298:
  addl   $0x1,-0x7a1288(%rbp)
L124:
  mov    -0x7a1288(%rbp),%edx
  mov    -0x7a1298(%rbp),%eax
  cmp    %eax,%edx
  jb     L364
L274:
  cmpl   $0x0,-0x7a1280(%rbp)
  jne    L212
  lea    D27(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    $0x1,%edi
  call   <exit@plt>
L212:
  mov    -0x7a1294(%rbp),%eax
  cltq
  imul   $0x1f48,%rax,%rax
  lea    -0x30(%rax),%rax
  add    %rbp,%rax
  sub    $0x7a1210,%rax
  movsd  (%rax),%xmm0
  movsd  %xmm0,-0x7a1250(%rbp)
  mov    -0x7a1294(%rbp),%eax
  add    $0x1,%eax
  mov    %eax,-0x7a1290(%rbp)
  jmp    L83
L79:
  mov    -0x7a1294(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x7a1290(%rbp),%eax
  cltq
  imul   $0x3e8,%rax,%rax
  add    %rdx,%rax
  movsd  -0x7a1240(%rbp,%rax,8),%xmm0
  divsd  -0x7a1250(%rbp),%xmm0
  movsd  %xmm0,-0x7a1248(%rbp)
  mov    -0x7a1294(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x7a1290(%rbp),%eax
  cltq
  imul   $0x3e8,%rax,%rax
  add    %rdx,%rax
  pxor   %xmm0,%xmm0
  movsd  %xmm0,-0x7a1240(%rbp,%rax,8)
  mov    -0x7a1294(%rbp),%eax
  add    $0x1,%eax
  mov    %eax,-0x7a128c(%rbp)
  jmp    L131
L301:
  mov    -0x7a128c(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x7a1290(%rbp),%eax
  cltq
  imul   $0x3e8,%rax,%rax
  add    %rdx,%rax
  movsd  -0x7a1240(%rbp,%rax,8),%xmm0
  mov    -0x7a128c(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x7a1294(%rbp),%eax
  cltq
  imul   $0x3e8,%rax,%rax
  add    %rdx,%rax
  movsd  -0x7a1240(%rbp,%rax,8),%xmm1
  mulsd  -0x7a1248(%rbp),%xmm1
  subsd  %xmm1,%xmm0
  mov    -0x7a128c(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x7a1290(%rbp),%eax
  cltq
  imul   $0x3e8,%rax,%rax
  add    %rdx,%rax
  movsd  %xmm0,-0x7a1240(%rbp,%rax,8)
  addl   $0x1,-0x7a128c(%rbp)
L131:
  mov    -0x7a128c(%rbp),%eax
  cmp    %eax,-0x7a1274(%rbp)
  ja     L301
  movl   $0x0,-0x7a127c(%rbp)
  jmp    L18
L206:
  movl   $0x0,-0x7a1278(%rbp)
  jmp    L187
L188:
  mov    -0x7a1278(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x7a127c(%rbp),%eax
  cltq
  imul   $0x3e8,%rax,%rax
  add    %rdx,%rax
  mov    -0x7a1240(%rbp,%rax,8),%rax
  movq   %rax,%xmm0
  lea    D49(%rip),%rax
  mov    %rax,%rdi
  mov    $0x1,%eax
  call   <printf@plt>
  addl   $0x1,-0x7a1278(%rbp)
L187:
  mov    -0x7a1278(%rbp),%eax
  cmp    %eax,-0x7a1274(%rbp)
  ja     L188
  mov    $0xa,%edi
  call   <putchar@plt>
  addl   $0x1,-0x7a127c(%rbp)
L18:
  mov    -0x7a127c(%rbp),%edx
  mov    -0x7a1298(%rbp),%eax
  cmp    %eax,%edx
  jb     L206
  mov    $0xa,%edi
  call   <putchar@plt>
  addl   $0x1,-0x7a1290(%rbp)
L83:
  mov    -0x7a1290(%rbp),%edx
  mov    -0x7a1298(%rbp),%eax
  cmp    %eax,%edx
  jb     L79
  addl   $0x1,-0x7a1294(%rbp)
L40:
  mov    -0x7a1294(%rbp),%edx
  mov    -0x7a1298(%rbp),%eax
  cmp    %eax,%edx
  jb     L122
  mov    -0x7a1298(%rbp),%eax
  mov    %eax,%edx
  sub    $0x1,%rdx
  mov    %rdx,-0x7a1268(%rbp)
  mov    %eax,%edx
  mov    %rdx,%r14
  mov    $0x0,%r15d
  mov    %eax,%edx
  mov    %rdx,%r12
  mov    $0x0,%r13d
  mov    %eax,%eax
  lea    0x0(,%rax,8),%rdx
  mov    $0x10,%eax
  sub    $0x1,%rax
  add    %rdx,%rax
  mov    $0x10,%esi
  mov    $0x0,%edx
  div    %rsi
  imul   $0x10,%rax,%rax
  mov    %rax,%rcx
  and    $0xfffffffffffff000,%rcx
  mov    %rsp,%rdx
  sub    %rcx,%rdx
L45:
  cmp    %rdx,%rsp
  je     L238
  sub    $0x1000,%rsp
  orq    $0x0,0xff8(%rsp)
  jmp    L45
L238:
  mov    %rax,%rdx
  and    $0xfff,%edx
  sub    %rdx,%rsp
  mov    %rax,%rdx
  and    $0xfff,%edx
  test   %rdx,%rdx
  je     L340
  and    $0xfff,%eax
  sub    $0x8,%rax
  add    %rsp,%rax
  orq    $0x0,(%rax)
L340:
  mov    %rsp,%rax
  add    $0x7,%rax
  shr    $0x3,%rax
  shl    $0x3,%rax
  mov    %rax,-0x7a1260(%rbp)
  mov    -0x7a1298(%rbp),%eax
  sub    $0x1,%eax
  mov    %eax,-0x7a1294(%rbp)
  jmp    L35
L205:
  mov    -0x7a1274(%rbp),%eax
  sub    $0x1,%eax
  mov    %eax,%edx
  mov    -0x7a1294(%rbp),%eax
  cltq
  imul   $0x3e8,%rax,%rax
  add    %rdx,%rax
  movsd  -0x7a1240(%rbp,%rax,8),%xmm0
  movsd  %xmm0,-0x7a1270(%rbp)
  mov    -0x7a1298(%rbp),%eax
  sub    $0x1,%eax
  mov    %eax,-0x7a1290(%rbp)
  jmp    L210
L76:
  mov    -0x7a1290(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x7a1294(%rbp),%eax
  cltq
  imul   $0x3e8,%rax,%rax
  add    %rdx,%rax
  movsd  -0x7a1240(%rbp,%rax,8),%xmm1
  mov    -0x7a1260(%rbp),%rax
  mov    -0x7a1290(%rbp),%edx
  movslq %edx,%rdx
  movsd  (%rax,%rdx,8),%xmm0
  mulsd  %xmm0,%xmm1
  movsd  -0x7a1270(%rbp),%xmm0
  subsd  %xmm1,%xmm0
  movsd  %xmm0,-0x7a1270(%rbp)
  subl   $0x1,-0x7a1290(%rbp)
L210:
  mov    -0x7a1290(%rbp),%eax
  cmp    -0x7a1294(%rbp),%eax
  jg     L76
  mov    -0x7a1294(%rbp),%eax
  cltq
  imul   $0x1f48,%rax,%rax
  lea    -0x30(%rax),%rax
  add    %rbp,%rax
  sub    $0x7a1210,%rax
  movsd  (%rax),%xmm1
  movsd  -0x7a1270(%rbp),%xmm0
  divsd  %xmm1,%xmm0
  mov    -0x7a1260(%rbp),%rax
  mov    -0x7a1294(%rbp),%edx
  movslq %edx,%rdx
  movsd  %xmm0,(%rax,%rdx,8)
  subl   $0x1,-0x7a1294(%rbp)
L35:
  cmpl   $0x0,-0x7a1294(%rbp)
  jns    L205
  movl   $0x0,-0x7a1294(%rbp)
  jmp    L22
L209:
  mov    -0x7a1260(%rbp),%rax
  mov    -0x7a1294(%rbp),%edx
  movslq %edx,%rdx
  mov    (%rax,%rdx,8),%rax
  mov    -0x7a1294(%rbp),%edx
  add    $0x1,%edx
  movq   %rax,%xmm0
  mov    %edx,%esi
  lea    D37(%rip),%rax
  mov    %rax,%rdi
  mov    $0x1,%eax
  call   <printf@plt>
  addl   $0x1,-0x7a1294(%rbp)
L22:
  mov    -0x7a1294(%rbp),%edx
  mov    -0x7a1298(%rbp),%eax
  cmp    %eax,%edx
  jb     L209
  mov    $0x0,%eax
  mov    %rbx,%rsp
  mov    -0x38(%rbp),%rdx
  sub    %fs:0x28,%rdx
  je     L112
  call   <__stack_chk_fail@plt>
L112:
  lea    -0x28(%rbp),%rsp
  pop    %rbx
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  pop    %rbp
  ret
```

tool_calls: name: parse_data
arguments: label: D52
type_guessed: string
name: parse_data
arguments: label: D58
type_guessed: string
name: parse_data
arguments: label: D0
type_guessed: string
name: parse_data
arguments: label: D59
type_guessed: string
name: parse_data
arguments: label: D49
type_guessed: string
name: parse_data
arguments: label: D27
type_guessed: string
name: parse_data
arguments: label: D37
type_guessed: string

tool: D52: %d

tool: D58: %lf

tool: D0: 
Row %d
------


tool: D59: Pivoting row %d with row %d



tool: D49: %lf	

tool: D27: Cannot pivot. Exiting

tool: D37: 
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;
}
```