user: Demonstrate the C code that generates the assembly output below:

```asm
<main>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbx
  sub    $0x98,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,-0x38(%rbp)
  xor    %eax,%eax
  mov    %rsp,%rax
  mov    %rax,-0xb8(%rbp)
  lea    D83(%rip),%rax
  mov    %rax,%rsi
  lea    D56(%rip),%rax
  mov    %rax,%rdi
  call   <fopen@plt>
  mov    %rax,-0x60(%rbp)
  lea    D86(%rip),%rax
  mov    %rax,%rsi
  lea    D38(%rip),%rax
  mov    %rax,%rdi
  call   <fopen@plt>
  mov    %rax,-0x58(%rbp)
  lea    -0x80(%rbp),%rdx
  mov    -0x60(%rbp),%rax
  lea    D2(%rip),%rcx
  mov    %rcx,%rsi
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <fscanf@plt>
  mov    -0x80(%rbp),%eax
  cmp    $0xf,%eax
  jle    L51
  mov    -0x58(%rbp),%rax
  mov    %rax,%rcx
  mov    $0x10,%edx
  mov    $0x1,%esi
  lea    D42(%rip),%rax
  mov    %rax,%rdi
  call   <fwrite@plt>
  mov    $0x0,%eax
  jmp    L156
L51:
  mov    -0x80(%rbp),%ecx
  mov    -0x80(%rbp),%esi
  movslq %ecx,%rax
  sub    $0x1,%rax
  mov    %rax,-0x50(%rbp)
  movslq %ecx,%rax
  mov    %rax,-0xb0(%rbp)
  movq   $0x0,-0xa8(%rbp)
  movslq %ecx,%rax
  lea    0x0(,%rax,4),%rbx
  movslq %esi,%rax
  sub    $0x1,%rax
  mov    %rax,-0x48(%rbp)
  movslq %ecx,%rax
  mov    %rax,-0x90(%rbp)
  movq   $0x0,-0x88(%rbp)
  movslq %esi,%rax
  mov    %rax,-0xa0(%rbp)
  movq   $0x0,-0x98(%rbp)
  mov    -0x90(%rbp),%r8
  mov    -0x88(%rbp),%r9
  mov    %r9,%rdx
  mov    -0xa0(%rbp),%r10
  mov    -0x98(%rbp),%r11
  imul   %r10,%rdx
  mov    %r11,%rax
  imul   %r8,%rax
  lea    (%rdx,%rax,1),%rdi
  mov    %r8,%rax
  mul    %r10
  add    %rdx,%rdi
  mov    %rdi,%rdx
  movslq %ecx,%rax
  mov    %rax,%r14
  mov    $0x0,%r15d
  movslq %esi,%rax
  mov    %rax,%r12
  mov    $0x0,%r13d
  mov    %r15,%rdx
  imul   %r12,%rdx
  mov    %r13,%rax
  imul   %r14,%rax
  lea    (%rdx,%rax,1),%rdi
  mov    %r14,%rax
  mul    %r12
  add    %rdx,%rdi
  mov    %rdi,%rdx
  movslq %ecx,%rdx
  movslq %esi,%rax
  imul   %rdx,%rax
  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
L178:
  cmp    %rdx,%rsp
  je     L155
  sub    $0x1000,%rsp
  orq    $0x0,0xff8(%rsp)
  jmp    L178
L155:
  mov    %rax,%rdx
  and    $0xfff,%edx
  sub    %rdx,%rsp
  mov    %rax,%rdx
  and    $0xfff,%edx
  test   %rdx,%rdx
  je     L61
  and    $0xfff,%eax
  sub    $0x8,%rax
  add    %rsp,%rax
  orq    $0x0,(%rax)
L61:
  mov    %rsp,%rax
  add    $0x3,%rax
  shr    $0x2,%rax
  shl    $0x2,%rax
  mov    %rax,-0x40(%rbp)
  movl   $0x0,-0x7c(%rbp)
  jmp    L101
L9:
  movl   $0x0,-0x78(%rbp)
  jmp    L102
L84:
  mov    %rbx,%rdx
  shr    $0x2,%rdx
  mov    -0x78(%rbp),%eax
  movslq %eax,%rcx
  mov    -0x7c(%rbp),%eax
  cltq
  imul   %rdx,%rax
  add    %rcx,%rax
  lea    0x0(,%rax,4),%rdx
  mov    -0x40(%rbp),%rax
  add    %rax,%rdx
  mov    -0x60(%rbp),%rax
  lea    D89(%rip),%rcx
  mov    %rcx,%rsi
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <fscanf@plt>
  addl   $0x1,-0x78(%rbp)
L102:
  mov    -0x80(%rbp),%eax
  cmp    %eax,-0x78(%rbp)
  jl     L84
  addl   $0x1,-0x7c(%rbp)
L101:
  mov    -0x80(%rbp),%eax
  cmp    %eax,-0x7c(%rbp)
  jl     L9
  movl   $0x0,-0x74(%rbp)
  movl   $0x0,-0x70(%rbp)
  jmp    L30
L182:
  movl   $0x0,-0x6c(%rbp)
  movl   $0x0,-0x68(%rbp)
  jmp    L68
L13:
  movl   $0x0,-0x64(%rbp)
  jmp    L133
L93:
  mov    %rbx,%rcx
  shr    $0x2,%rcx
  mov    -0x40(%rbp),%rax
  mov    -0x68(%rbp),%edx
  movslq %edx,%rsi
  mov    -0x70(%rbp),%edx
  movslq %edx,%rdx
  imul   %rcx,%rdx
  add    %rsi,%rdx
  movss  (%rax,%rdx,4),%xmm0
  mov    %rbx,%rcx
  shr    $0x2,%rcx
  mov    -0x40(%rbp),%rax
  mov    -0x64(%rbp),%edx
  movslq %edx,%rsi
  mov    -0x70(%rbp),%edx
  movslq %edx,%rdx
  imul   %rcx,%rdx
  add    %rsi,%rdx
  movss  (%rax,%rdx,4),%xmm1
  ucomiss %xmm1,%xmm0
  jp     L122
  ucomiss %xmm1,%xmm0
  jne    L122
  mov    -0x68(%rbp),%eax
  cmp    -0x64(%rbp),%eax
  je     L122
  mov    -0x80(%rbp),%eax
  mov    %eax,-0x68(%rbp)
  movl   $0x1,-0x6c(%rbp)
L122:
  addl   $0x1,-0x64(%rbp)
L133:
  mov    -0x80(%rbp),%eax
  cmp    %eax,-0x64(%rbp)
  jl     L93
  addl   $0x1,-0x68(%rbp)
L68:
  mov    -0x80(%rbp),%eax
  sub    $0x1,%eax
  cmp    %eax,-0x68(%rbp)
  jl     L13
  cmpl   $0x0,-0x6c(%rbp)
  jne    L180
  mov    -0x70(%rbp),%eax
  lea    0x1(%rax),%edx
  mov    -0x58(%rbp),%rax
  lea    D6(%rip),%rcx
  mov    %rcx,%rsi
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <fprintf@plt>
  movl   $0x1,-0x74(%rbp)
L180:
  addl   $0x1,-0x70(%rbp)
L30:
  mov    -0x80(%rbp),%eax
  cmp    %eax,-0x70(%rbp)
  jl     L182
  cmpl   $0x0,-0x74(%rbp)
  jne    L15
  mov    -0x58(%rbp),%rax
  mov    %rax,%rcx
  mov    $0x1a,%edx
  mov    $0x1,%esi
  lea    D41(%rip),%rax
  mov    %rax,%rdi
  call   <fwrite@plt>
L15:
  mov    -0x58(%rbp),%rax
  mov    %rax,%rdi
  call   <fclose@plt>
  mov    $0x0,%eax
L156:
  mov    -0xb8(%rbp),%rsp
  mov    -0x38(%rbp),%rdx
  sub    %fs:0x28,%rdx
  je     L114
  call   <__stack_chk_fail@plt>
L114:
  lea    -0x28(%rbp),%rsp
  pop    %rbx
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  pop    %rbp
  ret
```

tool_calls: name: read_data
arguments: label: D83
type_infered: string
name: read_data
arguments: label: D56
type_infered: string
name: read_data
arguments: label: D86
type_infered: string
name: read_data
arguments: label: D38
type_infered: string
name: read_data
arguments: label: D2
type_infered: string
name: read_data
arguments: label: D42
type_infered: string
name: read_data
arguments: label: D89
type_infered: string
name: read_data
arguments: label: D6
type_infered: string
name: read_data
arguments: label: D41
type_infered: string

tool: D83: rt

tool: D56: in_lab5_22.txt

tool: D86: wt

tool: D38: out_lab5_22.txt

tool: D2: %d

tool: D42: Necorectni dani!

tool: D89: %f

tool: D6: %d 

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