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

```asm
<main>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbx
  sub    $0x48,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,-0x38(%rbp)
  xor    %eax,%eax
  lea    D45(%rip),%rsi
  lea    D0(%rip),%rdi
  call   <fopen@plt>
  mov    %rax,%r13
  lea    D3(%rip),%rsi
  lea    D5(%rip),%rdi
  call   <fopen@plt>
  mov    %rax,-0x68(%rbp)
  lea    -0x3c(%rbp),%rdx
  lea    D34(%rip),%rsi
  mov    %r13,%rdi
  mov    $0x0,%eax
  call   <fscanf@plt>
  mov    -0x3c(%rbp),%eax
  cmp    $0xf,%eax
  jg     L136
  movslq %eax,%rdx
  lea    0x0(,%rdx,4),%rsi
  mov    %rsi,-0x58(%rbp)
  imul   %rdx,%rdx
  lea    0xf(,%rdx,4),%rcx
  mov    %rcx,%rdx
  and    $0xfffffffffffffff0,%rdx
  and    $0xfffffffffffff000,%rcx
  mov    %rsp,%rsi
  sub    %rcx,%rsi
L178:
  cmp    %rsi,%rsp
  je     L100
  sub    $0x1000,%rsp
  orq    $0x0,0xff8(%rsp)
  jmp    L178
L136:
  mov    -0x68(%rbp),%rcx
  mov    $0x10,%edx
  mov    $0x1,%esi
  lea    D41(%rip),%rdi
  call   <fwrite@plt>
  jmp    L93
L100:
  mov    %rdx,%rcx
  and    $0xfff,%ecx
  sub    %rcx,%rsp
  test   %rcx,%rcx
  je     L241
  orq    $0x0,-0x8(%rsp,%rcx,1)
L241:
  mov    %rsp,%r15
  test   %eax,%eax
  jle    L127
  mov    -0x58(%rbp),%rax
  shr    $0x2,%rax
  mov    %rax,-0x50(%rbp)
  movq   $0x0,-0x48(%rbp)
  mov    $0x0,%eax
  lea    D69(%rip),%r14
  mov    %r15,-0x60(%rbp)
  mov    %eax,%r15d
  jmp    L85
L74:
  mov    %r12,%rdx
  mov    %r14,%rsi
  mov    %r13,%rdi
  mov    $0x0,%eax
  call   <fscanf@plt>
  add    $0x1,%ebx
  add    $0x4,%r12
  cmp    %ebx,-0x3c(%rbp)
  jg     L74
L9:
  add    $0x1,%r15d
  mov    -0x3c(%rbp),%r10d
  mov    -0x50(%rbp),%rsi
  add    %rsi,-0x48(%rbp)
  cmp    %r15d,%r10d
  jle    L47
L85:
  mov    -0x60(%rbp),%rax
  mov    -0x48(%rbp),%rsi
  lea    (%rax,%rsi,4),%r12
  mov    $0x0,%ebx
  cmpl   $0x0,-0x3c(%rbp)
  jg     L74
  jmp    L9
L47:
  mov    -0x60(%rbp),%r15
  test   %r10d,%r10d
  jle    L127
  mov    %r15,%rbx
  mov    $0x0,%r13d
  movl   $0x0,-0x48(%rbp)
  mov    $0x1,%r12d
  lea    D59(%rip),%r14
  jmp    L187
L30:
  add    $0x1,%rax
  cmp    %rax,%r9
  je     L184
L230:
  movslq %ecx,%rdx
  add    %rdi,%rdx
  movss  (%r15,%rdx,4),%xmm0
  ucomiss (%rbx,%rax,4),%xmm0
  setnp  %dl
  cmovne %r8d,%edx
  test   %dl,%dl
  je     L30
  cmp    %eax,%ecx
  cmovne %r10d,%ecx
  cmovne %r12d,%esi
  jmp    L30
L184:
  add    $0x1,%ecx
  cmp    %r11d,%ecx
  jge    L172
L28:
  mov    $0x0,%eax
  test   %r10d,%r10d
  jg     L230
  jmp    L184
L172:
  test   %esi,%esi
  je     L27
L92:
  add    $0x1,%r13d
  mov    -0x3c(%rbp),%r10d
  add    -0x58(%rbp),%rbx
  cmp    %r13d,%r10d
  jle    L65
L187:
  lea    -0x1(%r10),%r11d
  mov    $0x0,%ecx
  mov    $0x0,%esi
  test   %r11d,%r11d
  jle    L27
  mov    %r10d,%r9d
  movslq %r13d,%rdi
  imul   -0x50(%rbp),%rdi
  mov    $0x0,%r8d
  jmp    L28
L27:
  lea    0x1(%r13),%edx
  mov    %r14,%rsi
  mov    -0x68(%rbp),%rdi
  mov    $0x0,%eax
  call   <fprintf@plt>
  mov    %r12d,-0x48(%rbp)
  jmp    L92
L65:
  cmpl   $0x0,-0x48(%rbp)
  je     L127
L23:
  mov    -0x68(%rbp),%rdi
  call   <fclose@plt>
L93:
  mov    -0x38(%rbp),%rax
  sub    %fs:0x28,%rax
  jne    L159
  mov    $0x0,%eax
  lea    -0x28(%rbp),%rsp
  pop    %rbx
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  pop    %rbp
  ret
L127:
  mov    -0x68(%rbp),%rcx
  mov    $0x1a,%edx
  mov    $0x1,%esi
  lea    D14(%rip),%rdi
  call   <fwrite@plt>
  jmp    L23
L159:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: disassemble_data
arguments: data_tag: D45
type_infered: string
name: disassemble_data
arguments: data_tag: D0
type_infered: string
name: disassemble_data
arguments: data_tag: D3
type_infered: string
name: disassemble_data
arguments: data_tag: D5
type_infered: string
name: disassemble_data
arguments: data_tag: D34
type_infered: string
name: disassemble_data
arguments: data_tag: D41
type_infered: string
name: disassemble_data
arguments: data_tag: D69
type_infered: string
name: disassemble_data
arguments: data_tag: D59
type_infered: string
name: disassemble_data
arguments: data_tag: D14
type_infered: string

tool: D45: rt

tool: D0: in_lab5_22.txt

tool: D3: wt

tool: D5: out_lab5_22.txt

tool: D34: %d

tool: D41: Necorectni dani!

tool: D69: %f

tool: D59: %d 

tool: D14: Elementy povtoryytsa skriz

assistant: ```c
int main() {
  FILE *f_in;
  FILE *f_out;
  f_in = fopen("in_lab5_22.txt", "rt");
  f_out = fopen("out_lab5_22.txt", "wt");
  int n;
  fscanf(f_in, "%d", &n);
  if (n > 15) {
    fprintf(f_out, "Necorectni dani!");
    return 0;
  }
  float a[n][n];
  for (int i = 0; i < n; i++)
    for (int j = 0; j < n; j++)
      fscanf(f_in, "%f", &a[i][j]);
  int printed = 0;
  for (int i = 0; i < n; i++) {
    int repeated = 0;
    for (int j = 0; j < n - 1; j++) {
      for (int k = 0; k < n; ++k) {
        if (a[i][j] == a[i][k] && j != k) {
          j = n;
          repeated = 1;
        }
      }
    }
    if (repeated == 0) {
      fprintf(f_out, "%d ", i + 1);
      printed = 1;
    }
  }
  if (printed == 0)
    fprintf(f_out, "Elementy povtoryytsa skriz");
  fclose(f_out);
  return 0;
}
```