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

```asm
<main>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbx
  sub    $0x78,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,-0x38(%rbp)
  xor    %eax,%eax
  mov    %rsp,%rax
  mov    %rax,%rbx
  lea    D92(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  lea    -0x80(%rbp),%rax
  mov    %rax,%rsi
  lea    D35(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <scanf@plt>
  lea    D118(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  lea    -0x7c(%rbp),%rax
  mov    %rax,%rsi
  lea    D35(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <scanf@plt>
  mov    -0x80(%rbp),%edx
  mov    -0x7c(%rbp),%eax
  imul   %edx,%eax
  sub    $0x1,%eax
  mov    %eax,-0x64(%rbp)
  mov    -0x64(%rbp),%eax
  movslq %eax,%rdx
  sub    $0x1,%rdx
  mov    %rdx,-0x58(%rbp)
  movslq %eax,%rdx
  mov    %rdx,-0x90(%rbp)
  movq   $0x0,-0x88(%rbp)
  movslq %eax,%rdx
  mov    %rdx,-0xa0(%rbp)
  movq   $0x0,-0x98(%rbp)
  cltq
  lea    0x0(,%rax,4),%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
L1:
  cmp    %rdx,%rsp
  je     L219
  sub    $0x1000,%rsp
  orq    $0x0,0xff8(%rsp)
  jmp    L1
L219:
  mov    %rax,%rdx
  and    $0xfff,%edx
  sub    %rdx,%rsp
  mov    %rax,%rdx
  and    $0xfff,%edx
  test   %rdx,%rdx
  je     L16
  and    $0xfff,%eax
  sub    $0x8,%rax
  add    %rsp,%rax
  orq    $0x0,(%rax)
L16:
  mov    %rsp,%rax
  add    $0x3,%rax
  shr    $0x2,%rax
  shl    $0x2,%rax
  mov    %rax,-0x50(%rbp)
  movl   $0x0,-0x70(%rbp)
  jmp    L245
L301:
  mov    -0x70(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x50(%rbp),%rax
  add    %rdx,%rax
  mov    %rax,%rsi
  lea    D54(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <scanf@plt>
  addl   $0x1,-0x70(%rbp)
L245:
  mov    -0x70(%rbp),%eax
  cmp    -0x64(%rbp),%eax
  jle    L301
  movl   $0x0,-0x70(%rbp)
  jmp    L114
L47:
  mov    $0xa,%edi
  call   <putchar@plt>
  mov    -0x7c(%rbp),%eax
  mov    -0x70(%rbp),%edx
  imul   %edx,%eax
  mov    %eax,-0x6c(%rbp)
  jmp    L170
L205:
  mov    -0x50(%rbp),%rax
  mov    -0x6c(%rbp),%edx
  movslq %edx,%rdx
  mov    (%rax,%rdx,4),%eax
  mov    %eax,%esi
  lea    D23(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  addl   $0x1,-0x6c(%rbp)
L170:
  mov    -0x70(%rbp),%eax
  lea    0x1(%rax),%edx
  mov    -0x7c(%rbp),%eax
  imul   %edx,%eax
  cmp    %eax,-0x6c(%rbp)
  jl     L205
  addl   $0x1,-0x70(%rbp)
L114:
  mov    -0x80(%rbp),%eax
  cmp    %eax,-0x70(%rbp)
  jl     L47
  mov    $0x0,%eax
  call   <getch@plt>
  lea    D71(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  lea    -0x74(%rbp),%rax
  mov    %rax,%rsi
  lea    D35(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <scanf@plt>
  lea    D137(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  lea    -0x78(%rbp),%rax
  mov    %rax,%rsi
  lea    D35(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <scanf@plt>
  mov    -0x78(%rbp),%ecx
  mov    -0x7c(%rbp),%edx
  mov    -0x74(%rbp),%esi
  mov    -0x50(%rbp),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <cofactor@plt>
  lea    D103(%rip),%rax
  mov    %rax,%rdi
  call   <puts@plt>
  movl   $0x0,-0x70(%rbp)
  jmp    L290
L229:
  mov    $0xa,%edi
  call   <putchar@plt>
  mov    -0x7c(%rbp),%eax
  mov    -0x70(%rbp),%edx
  imul   %edx,%eax
  mov    %eax,-0x6c(%rbp)
  jmp    L127
L159:
  mov    -0x50(%rbp),%rax
  mov    -0x6c(%rbp),%edx
  movslq %edx,%rdx
  mov    (%rax,%rdx,4),%eax
  mov    %eax,%esi
  lea    D23(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  addl   $0x1,-0x6c(%rbp)
L127:
  mov    -0x70(%rbp),%eax
  lea    0x1(%rax),%edx
  mov    -0x7c(%rbp),%eax
  imul   %edx,%eax
  cmp    %eax,-0x6c(%rbp)
  jl     L159
  addl   $0x1,-0x70(%rbp)
L290:
  mov    -0x80(%rbp),%eax
  cmp    %eax,-0x70(%rbp)
  jl     L229
  mov    $0x0,%eax
  call   <getch@plt>
  lea    D103(%rip),%rax
  mov    %rax,%rdi
  call   <puts@plt>
  mov    -0x7c(%rbp),%eax
  sub    $0x1,%eax
  mov    %eax,-0x60(%rbp)
  mov    -0x60(%rbp),%eax
  imul   %eax,%eax
  sub    $0x1,%eax
  mov    %eax,-0x5c(%rbp)
  mov    -0x5c(%rbp),%eax
  movslq %eax,%rdx
  sub    $0x1,%rdx
  mov    %rdx,-0x48(%rbp)
  movslq %eax,%rdx
  mov    %rdx,%r14
  mov    $0x0,%r15d
  movslq %eax,%rdx
  mov    %rdx,%r12
  mov    $0x0,%r13d
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    $0x10,%eax
  sub    $0x1,%rax
  add    %rdx,%rax
  mov    $0x10,%ecx
  mov    $0x0,%edx
  div    %rcx
  imul   $0x10,%rax,%rax
  mov    %rax,%rcx
  and    $0xfffffffffffff000,%rcx
  mov    %rsp,%rdx
  sub    %rcx,%rdx
L109:
  cmp    %rdx,%rsp
  je     L113
  sub    $0x1000,%rsp
  orq    $0x0,0xff8(%rsp)
  jmp    L109
L113:
  mov    %rax,%rdx
  and    $0xfff,%edx
  sub    %rdx,%rsp
  mov    %rax,%rdx
  and    $0xfff,%edx
  test   %rdx,%rdx
  je     L64
  and    $0xfff,%eax
  sub    $0x8,%rax
  add    %rsp,%rax
  orq    $0x0,(%rax)
L64:
  mov    %rsp,%rax
  add    $0x3,%rax
  shr    $0x2,%rax
  shl    $0x2,%rax
  mov    %rax,-0x40(%rbp)
  movl   $0x0,-0x70(%rbp)
  jmp    L13
L32:
  mov    $0xa,%edi
  call   <putchar@plt>
  mov    -0x7c(%rbp),%eax
  mov    -0x70(%rbp),%edx
  imul   %edx,%eax
  mov    %eax,-0x6c(%rbp)
  jmp    L95
L149:
  mov    -0x50(%rbp),%rax
  mov    -0x6c(%rbp),%edx
  movslq %edx,%rdx
  mov    (%rax,%rdx,4),%eax
  test   %eax,%eax
  je     L216
  mov    -0x50(%rbp),%rax
  mov    -0x6c(%rbp),%edx
  movslq %edx,%rdx
  mov    (%rax,%rdx,4),%eax
  mov    %eax,%esi
  lea    D23(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
L216:
  addl   $0x1,-0x6c(%rbp)
L95:
  mov    -0x70(%rbp),%eax
  lea    0x1(%rax),%edx
  mov    -0x7c(%rbp),%eax
  imul   %edx,%eax
  cmp    %eax,-0x6c(%rbp)
  jl     L149
  addl   $0x1,-0x70(%rbp)
L13:
  mov    -0x80(%rbp),%eax
  cmp    %eax,-0x70(%rbp)
  jl     L32
  movl   $0x0,-0x6c(%rbp)
  movl   $0x0,-0x68(%rbp)
  jmp    L254
L247:
  mov    -0x68(%rbp),%eax
  mov    %eax,%esi
  lea    D54(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    -0x50(%rbp),%rax
  mov    -0x6c(%rbp),%edx
  movslq %edx,%rdx
  mov    (%rax,%rdx,4),%ecx
  mov    -0x40(%rbp),%rax
  mov    -0x68(%rbp),%edx
  movslq %edx,%rdx
  mov    %ecx,(%rax,%rdx,4)
  addl   $0x1,-0x68(%rbp)
  jmp    L242
L55:
  nop
  mov    -0x50(%rbp),%rax
  mov    -0x6c(%rbp),%edx
  movslq %edx,%rdx
  mov    (%rax,%rdx,4),%eax
  test   %eax,%eax
  je     L242
  cmpl   $0x0,-0x68(%rbp)
  js     L242
  mov    -0x68(%rbp),%eax
  cmp    -0x5c(%rbp),%eax
  jle    L247
L242:
  addl   $0x1,-0x6c(%rbp)
L254:
  cmpl   $0x0,-0x6c(%rbp)
  js     L251
  cmpl   $0x8,-0x6c(%rbp)
  jle    L55
L251:
  movl   $0x0,-0x70(%rbp)
  jmp    L102
L72:
  mov    -0x40(%rbp),%rax
  mov    -0x70(%rbp),%edx
  movslq %edx,%rdx
  mov    (%rax,%rdx,4),%eax
  mov    %eax,%esi
  lea    D54(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  addl   $0x1,-0x70(%rbp)
L102:
  mov    -0x70(%rbp),%eax
  cmp    -0x5c(%rbp),%eax
  jle    L72
  mov    $0x0,%eax
  call   <getch@plt>
  mov    %rbx,%rsp
  mov    $0x0,%eax
  mov    -0x38(%rbp),%rdx
  sub    %fs:0x28,%rdx
  je     L191
  call   <__stack_chk_fail@plt>
L191:
  lea    -0x28(%rbp),%rsp
  pop    %rbx
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  pop    %rbp
  ret
```

tool_calls: name: extract_symbolic_data
arguments: data_tag: D92
data_type: string
name: extract_symbolic_data
arguments: data_tag: D35
data_type: string
name: extract_symbolic_data
arguments: data_tag: D118
data_type: string
name: extract_symbolic_data
arguments: data_tag: D54
data_type: string
name: extract_symbolic_data
arguments: data_tag: D23
data_type: string
name: extract_symbolic_data
arguments: data_tag: D71
data_type: string
name: extract_symbolic_data
arguments: data_tag: D137
data_type: string
name: extract_symbolic_data
arguments: data_tag: D103
data_type: string

tool: D92: Please enter number of rows:

tool: D35: %d

tool: D118: Please enter number of columns:

tool: D54: %d


tool: D23: %d	

tool: D71: Which element to be searched for?

tool: D137: Please enter row number:

tool: D103: 
-------------------------------------------------

assistant: ```c
main() {
  int order_r, order_c, p;
  printf("Please enter number of rows:");
  scanf("%d", &order_r);
  printf("Please enter number of columns:");
  scanf("%d", &order_c);
  p = (order_r * order_c) - 1;
  int matrix[p];
  int i;
  int j;
  for (i = 0; i <= p; ++i) {
    scanf("%d\n", &matrix[i]);
  }
  for (i = 0; i <= order_r - 1; ++i) {
    printf("\n");
    for (j = (i * order_c); j <= ((order_c) * (i + 1)) - 1; ++j) {
      printf("%d\t", matrix[j]);
    }
  }
  getch();
  int k;
  int l;
  printf("Which element to be searched for?");
  scanf("%d", &l);
  printf("Please enter row number:");
  scanf("%d", &k);
  cofactor(matrix, l, order_c, k);
  printf("\n-------------------------------------------------\n");
  for (i = 0; i <= order_r - 1; ++i) {
    printf("\n");
    for (j = (i * order_c); j <= ((order_c) * (i + 1)) - 1; ++j) {
      printf("%d\t", matrix[j]);
    }
  }
  getch();
  printf("\n-------------------------------------------------\n");
  int new_order;
  new_order = order_c - 1;
  int m;
  m = (new_order * new_order) - 1;
  int newmatrix[m];
  for (i = 0; i <= order_r - 1; ++i) {
    printf("\n");
    for (j = (i * order_c); j <= ((order_c) * (i + 1)) - 1; ++j) {
      if (matrix[j] != 0) {
        printf("%d\t", matrix[j]);
      }
    }
  }
  j = 0;
  int u;
  u = 0;
  while (j >= 0 && j <= 8) {
    while (matrix[j] != 0 && u >= 0 && u <= m) {
      printf("%d\n", u);
      newmatrix[u] = matrix[j];
      ++u;
      break;
    }
    ++j;
  }
  for (i = 0; i <= m; ++i) {
    printf("%d\n", newmatrix[i]);
  }
  getch();
}
```