user: Please show me the C implementation that matches the assembly code listed below:

```asm
<get_simetrik>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  mov    %rdi,%r12
  lea    D83(%rip),%rdi
  push   %rbx
  sub    $0x88,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,-0x38(%rbp)
  xor    %eax,%eax
  call   <clr_file@plt>
  mov    %r12,%rdi
  call   <get_file_mtrx_size@plt>
  mov    %eax,%r14d
  sub    $0x4,%eax
  cmp    $0xc,%eax
  ja     L24
  movslq %r14d,%rax
  mov    %rsp,%rcx
  mov    %rsp,-0x90(%rbp)
  mov    %rax,-0x78(%rbp)
  imul   %rax,%rax
  lea    0xf(,%rax,4),%rdx
  mov    %rdx,%rax
  and    $0xfffffffffffff000,%rdx
  sub    %rdx,%rcx
  and    $0xfffffffffffffff0,%rax
  cmp    %rcx,%rsp
  je     L1
L90:
  sub    $0x1000,%rsp
  orq    $0x0,0xff8(%rsp)
  cmp    %rcx,%rsp
  jne    L90
L1:
  and    $0xfff,%eax
  sub    %rax,%rsp
  test   %rax,%rax
  je     L174
  orq    $0x0,-0x8(%rsp,%rax,1)
L174:
  mov    %rsp,%rbx
  mov    %r14d,%esi
  mov    %r12,%rdi
  mov    %rbx,%rdx
  mov    %rbx,-0xa0(%rbp)
  call   <file2mtrx@plt>
  mov    %rbx,%rsi
  mov    %r14d,%edi
  call   <simetrik@plt>
  test   %rax,%rax
  je     L81
  lea    D83(%rip),%rdi
  lea    D38(%rip),%rsi
  call   <wrt2file@plt>
  lea    D84(%rip),%rdi
  call   <printf@plt>
L45:
  lea    -0x1(%r14),%eax
  movq   $0x1,-0x68(%rbp)
  mov    %eax,-0x84(%rbp)
  mov    %eax,-0x70(%rbp)
  mov    -0x78(%rbp),%rax
  lea    0x0(,%rax,4),%r13
  lea    0x1(%r14),%eax
  mov    %eax,-0x88(%rbp)
L142:
  mov    -0x78(%rbp),%rax
  mov    %rsp,-0x98(%rbp)
  lea    0x0(,%rax,4),%rcx
  imul   %rax,%rax
  mov    %rcx,-0x48(%rbp)
  mov    %rsp,%rcx
  lea    0xf(,%rax,4),%rdx
  mov    %rdx,%rax
  and    $0xfffffffffffff000,%rdx
  sub    %rdx,%rcx
  and    $0xfffffffffffffff0,%rax
  cmp    %rcx,%rsp
  je     L74
L102:
  sub    $0x1000,%rsp
  orq    $0x0,0xff8(%rsp)
  cmp    %rcx,%rsp
  jne    L102
L74:
  and    $0xfff,%eax
  sub    %rax,%rsp
  test   %rax,%rax
  je     L108
  orq    $0x0,-0x8(%rsp,%rax,1)
L108:
  mov    -0xa0(%rbp),%rax
  mov    %rsp,-0x58(%rbp)
  movl   $0x0,-0x6c(%rbp)
  mov    %rax,-0x80(%rbp)
  mov    -0x70(%rbp),%eax
  lea    0x4(,%rax,4),%rbx
  mov    -0x88(%rbp),%eax
  sub    %r14d,%eax
  mov    %eax,-0xa4(%rbp)
L164:
  mov    -0x80(%rbp),%rax
  movq   $0x0,-0x50(%rbp)
  mov    %rax,-0x60(%rbp)
  nopw   0x0(%rax,%rax,1)
L18:
  test   %r14d,%r14d
  jle    L82
  mov    -0x58(%rbp),%rdi
  mov    -0x60(%rbp),%r12
  xor    %r15d,%r15d
  nopl   0x0(%rax,%rax,1)
L52:
  mov    %r12,%rsi
  mov    %rbx,%rdx
  add    $0x1,%r15d
  add    %r13,%r12
  call   <memcpy@plt>
  mov    %rax,%rdi
  add    -0x48(%rbp),%rdi
  cmp    %r14d,%r15d
  jne    L52
L82:
  mov    -0x58(%rbp),%rsi
  mov    %r14d,%edi
  call   <simetrik@plt>
  test   %rax,%rax
  jne    L141
L64:
  addq   $0x1,-0x50(%rbp)
  mov    -0x50(%rbp),%rax
  addq   $0x4,-0x60(%rbp)
  cmp    -0x68(%rbp),%rax
  jne    L18
  addl   $0x1,-0x6c(%rbp)
  mov    -0x6c(%rbp),%eax
  add    %r13,-0x80(%rbp)
  cmp    -0xa4(%rbp),%eax
  jne    L164
  mov    -0x50(%rbp),%rcx
  mov    -0x84(%rbp),%eax
  subl   $0x1,-0x70(%rbp)
  mov    -0x98(%rbp),%rsp
  add    $0x1,%rcx
  subq   $0x1,-0x78(%rbp)
  mov    %eax,%r14d
  mov    %rcx,-0x68(%rbp)
  cmp    $0x1,%eax
  je     L173
  sub    $0x1,%eax
  mov    %eax,-0x84(%rbp)
  jmp    L142
L24:
  lea    D75(%rip),%rdi
  call   <printf@plt>
L119:
  mov    -0x38(%rbp),%rax
  sub    %fs:0x28,%rax
  jne    L154
  lea    -0x28(%rbp),%rsp
  pop    %rbx
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  pop    %rbp
  ret
L141:
  mov    -0x58(%rbp),%rdx
  mov    %r14d,%esi
  lea    D83(%rip),%rdi
  call   <mtrx2file@plt>
  jmp    L64
L173:
  mov    -0x90(%rbp),%rsp
  jmp    L119
L81:
  lea    D81(%rip),%rsi
  lea    D83(%rip),%rdi
  call   <wrt2file@plt>
  lea    D6(%rip),%rdi
  call   <printf@plt>
  jmp    L45
L154:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: parse_data
arguments: tag: D83
data_type: string
name: parse_data
arguments: tag: D38
data_type: string
name: parse_data
arguments: tag: D84
data_type: string
name: parse_data
arguments: tag: D75
data_type: string
name: parse_data
arguments: tag: D81
data_type: string
name: parse_data
arguments: tag: D6
data_type: string

tool: D83: simetrik.txt

tool: D38: Girilen matris simetrik matristir



tool: D84: 
Girilen matris simetrik matristir


tool: D75: get_simetrik(): Hatali matris formati


tool: D81: Girilen matris simetrik degildir



tool: D6: 
Girilen matris simetrik degildir


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");
  }
}
```