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

```asm
<get_simetrik>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbx
  sub    $0x58,%rsp
  mov    %rdi,%rbx
  mov    %fs:0x28,%rax
  mov    %rax,-0x38(%rbp)
  xor    %eax,%eax
  lea    D86(%rip),%rdi
  call   <clr_file@plt>
  mov    %rbx,%rdi
  call   <get_file_mtrx_size@plt>
  mov    %eax,%r15d
  lea    -0x4(%rax),%eax
  cmp    $0xc,%eax
  ja     L174
  mov    %rsp,-0x70(%rbp)
  movslq %r15d,%rax
  mov    %rax,-0x60(%rbp)
  imul   %rax,%rax
  lea    0xf(,%rax,4),%rdx
  mov    %rdx,%rax
  and    $0xfffffffffffffff0,%rax
  and    $0xfffffffffffff000,%rdx
  mov    %rsp,%rcx
  sub    %rdx,%rcx
L107:
  cmp    %rcx,%rsp
  je     L148
  sub    $0x1000,%rsp
  orq    $0x0,0xff8(%rsp)
  jmp    L107
L148:
  mov    %rax,%rdx
  and    $0xfff,%edx
  sub    %rdx,%rsp
  test   %rdx,%rdx
  je     L166
  orq    $0x0,-0x8(%rsp,%rdx,1)
L166:
  mov    %rsp,%r14
  mov    %r14,-0x80(%rbp)
  mov    %r14,%rdx
  mov    %r15d,%esi
  mov    %rbx,%rdi
  call   <file2mtrx@plt>
  mov    %r14,%rsi
  mov    %r15d,%edi
  call   <simetrik@plt>
  test   %rax,%rax
  je     L123
  lea    D62(%rip),%rsi
  lea    D86(%rip),%rdi
  call   <wrt2file@plt>
  lea    D8(%rip),%rdi
  call   <printf@plt>
L18:
  mov    -0x60(%rbp),%rax
  lea    0x0(,%rax,4),%rbx
  movq   $0x1,-0x50(%rbp)
  jmp    L31
L123:
  lea    D63(%rip),%rsi
  lea    D86(%rip),%rdi
  call   <wrt2file@plt>
  lea    D23(%rip),%rdi
  call   <printf@plt>
  jmp    L18
L202:
  mov    %rax,%rdx
  and    $0xfff,%edx
  sub    %rdx,%rsp
  test   %rdx,%rdx
  je     L47
  orq    $0x0,-0x8(%rsp,%rdx,1)
L47:
  mov    %rsp,%r14
  mov    -0x50(%rbp),%rax
  mov    %eax,-0x58(%rbp)
  test   %eax,%eax
  jle    L100
  mov    -0x80(%rbp),%rax
  mov    %rax,-0x68(%rbp)
  movl   $0x0,-0x54(%rbp)
  jmp    L56
L173:
  add    $0x1,%r12
  add    $0x4,%r13
  cmp    -0x50(%rbp),%r12
  je     L165
L53:
  test   %r15d,%r15d
  jle    L188
  mov    %r14,%rsi
  mov    %r13,%rcx
  mov    $0x0,%r8d
  mov    %r15d,%edi
L125:
  mov    $0x0,%eax
L99:
  mov    (%rcx,%rax,4),%edx
  mov    %edx,(%rsi,%rax,4)
  add    $0x1,%rax
  cmp    %rdi,%rax
  jne    L99
  add    $0x1,%r8d
  add    %rbx,%rcx
  add    -0x48(%rbp),%rsi
  cmp    %r15d,%r8d
  jne    L125
L188:
  mov    %r14,%rsi
  mov    %r15d,%edi
  call   <simetrik@plt>
  test   %rax,%rax
  je     L173
  mov    %r14,%rdx
  mov    %r15d,%esi
  lea    D86(%rip),%rdi
  call   <mtrx2file@plt>
  jmp    L173
L165:
  addl   $0x1,-0x54(%rbp)
  mov    -0x54(%rbp),%eax
  add    %rbx,-0x68(%rbp)
  cmp    -0x58(%rbp),%eax
  je     L100
L56:
  mov    -0x68(%rbp),%r13
  mov    $0x0,%r12d
  jmp    L53
L100:
  mov    -0x78(%rbp),%rsp
  sub    $0x1,%r15d
  subq   $0x1,-0x60(%rbp)
  addq   $0x1,-0x50(%rbp)
  cmp    $0x1,%r15d
  je     L146
L31:
  mov    %rsp,-0x78(%rbp)
  mov    -0x60(%rbp),%rax
  lea    0x0(,%rax,4),%rdi
  mov    %rdi,-0x48(%rbp)
  imul   %rax,%rax
  lea    0xf(,%rax,4),%rdx
  mov    %rdx,%rax
  and    $0xfffffffffffffff0,%rax
  and    $0xfffffffffffff000,%rdx
  mov    %rsp,%rcx
  sub    %rdx,%rcx
L118:
  cmp    %rcx,%rsp
  je     L202
  sub    $0x1000,%rsp
  orq    $0x0,0xff8(%rsp)
  jmp    L118
L146:
  mov    -0x70(%rbp),%rsp
L180:
  mov    -0x38(%rbp),%rax
  sub    %fs:0x28,%rax
  jne    L64
  lea    -0x28(%rbp),%rsp
  pop    %rbx
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  pop    %rbp
  ret
L174:
  lea    D55(%rip),%rdi
  call   <printf@plt>
  jmp    L180
L64:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: retrieve_data
arguments: tag: D86
type_guessed: string
name: retrieve_data
arguments: tag: D62
type_guessed: string
name: retrieve_data
arguments: tag: D8
type_guessed: string
name: retrieve_data
arguments: tag: D63
type_guessed: string
name: retrieve_data
arguments: tag: D23
type_guessed: string
name: retrieve_data
arguments: tag: D55
type_guessed: string

tool: D86: simetrik.txt

tool: D62: Girilen matris simetrik matristir



tool: D8: 
Girilen matris simetrik matristir


tool: D63: Girilen matris simetrik degildir



tool: D23: 
Girilen matris simetrik degildir


tool: D55: get_simetrik(): Hatali matris formati


assistant: ```c
void get_simetrik(char *filename) {
  clr_file("simetrik.txt");
  int mtrx_size = get_file_mtrx_size(filename);
  if (mtrx_size >= 4 && mtrx_size <= 16) {
    int mat[mtrx_size][mtrx_size];
    file2mtrx(filename, mtrx_size, mat);
    if (simetrik(mtrx_size, mat)) {
      wrt2file("simetrik.txt", "Girilen matris simetrik matristir\n\n");
      printf("\nGirilen matris simetrik matristir\n");
    } else {
      wrt2file("simetrik.txt", "Girilen matris simetrik degildir\n\n");
      printf("\nGirilen matris simetrik degildir\n");
    }
    int i, j, ioff, joff, off_cnt;
    int sub_mtrx_size;
    for (sub_mtrx_size = mtrx_size; sub_mtrx_size > 1; sub_mtrx_size--) {
      int tmp_mtrx[sub_mtrx_size][sub_mtrx_size];
      off_cnt = mtrx_size - sub_mtrx_size + 1;
      for (ioff = 0; ioff < off_cnt; ioff++) {
        for (joff = 0; joff < off_cnt; joff++) {
          for (i = 0; i < sub_mtrx_size; i++) {
            for (j = 0; j < sub_mtrx_size; j++) {
              tmp_mtrx[i][j] = mat[i + ioff][j + joff];
            }
          }
          if (simetrik(sub_mtrx_size, tmp_mtrx)) {
            mtrx2file("simetrik.txt", sub_mtrx_size, tmp_mtrx);
          }
        }
      }
    }
  } else {
    printf("get_simetrik(): Hatali matris formati\n");
  }
}
```