user: What is the c source code of the assembly code below:

```asm
<main>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  lea    D8(%rip),%r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x98,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x88(%rsp)
  xor    %eax,%eax
  lea    0x54(%rsp),%r12
  lea    0xf(%rsp),%r14
  lea    0x90(%rsp),%r15
  mov    %r12,%rbp
L218:
  lea    -0x14(%rbp),%rbx
  nopl   0x0(%rax,%rax,1)
L43:
  mov    %r14,%rsi
  mov    %r13,%rdi
  call   <scanf@plt>
  movzbl 0xf(%rsp),%eax
  mov    %eax,%edx
  and    $0xfffffffd,%edx
  cmp    $0x2c,%dl
  je     L167
  cmp    $0x49,%al
  jne    L66
L167:
  mov    %al,(%rbx)
L66:
  add    $0x1,%rbx
  cmp    %rbx,%rbp
  jne    L43
  add    $0x14,%rbp
  cmp    %r15,%rbp
  jne    L218
  lea    0x10(%rsp),%r8
  xor    %edi,%edi
L47:
  lea    -0x14(%r12),%rax
  xor    %esi,%esi
  xor    %ecx,%ecx
  jmp    L67
  nopl   0x0(%rax)
L224:
  cmp    $0x2c,%dl
  je     L82
  cmp    $0x49,%dl
  jne    L142
  add    $0x5,%ecx
  add    $0x1,%esi
L142:
  add    $0x1,%rax
  cmp    %rax,%r12
  je     L203
L67:
  movzbl (%rax),%edx
  cmp    $0x2e,%dl
  jne    L224
  add    $0x1,%rax
  add    $0x1,%ecx
  cmp    %rax,%r12
  jne    L67
L203:
  add    $0x1,%edi
  movd   %ecx,%xmm3
  mov    %esi,0x8(%r8)
  add    $0x14,%r12
  movd   %edi,%xmm0
  add    $0xc,%r8
  punpckldq %xmm3,%xmm0
  movq   %xmm0,-0xc(%r8)
  cmp    $0x3,%edi
  jne    L47
  mov    0x30(%rsp),%esi
  mov    0x24(%rsp),%ecx
  movq   0x14(%rsp),%xmm0
  cmp    %ecx,%esi
  mov    %ecx,%eax
  cmovge %esi,%eax
  xor    %edx,%edx
  movd   %xmm0,%edi
  test   %eax,%eax
  cmovs  %edx,%eax
  mov    0x18(%rsp),%edx
  cmp    %edx,%eax
  cmovl  %edx,%eax
  mov    0x20(%rsp),%edx
  cmp    %edx,%edi
  jle    L6
  movd   0x10(%rsp),%xmm4
  movd   0x1c(%rsp),%xmm1
  movd   %edx,%xmm5
  movd   %ecx,%xmm2
  movd   %xmm0,%edx
  movq   %xmm0,0x20(%rsp)
  punpckldq %xmm4,%xmm2
  punpckldq %xmm5,%xmm1
  punpcklqdq %xmm2,%xmm1
  movaps %xmm1,0x10(%rsp)
L6:
  mov    0x14(%rsp),%ecx
  cmp    %ecx,0x2c(%rsp)
  jge    L102
  mov    0x10(%rsp),%rdi
  mov    0x28(%rsp),%rcx
  mov    %rdi,0x28(%rsp)
  mov    0x18(%rsp),%edi
  mov    %rcx,0x10(%rsp)
  mov    %edi,0x30(%rsp)
  mov    %esi,0x18(%rsp)
L102:
  cmp    0x2c(%rsp),%edx
  jg     L178
L110:
  sub    $0x3,%eax
  cmp    0x18(%rsp),%eax
  jle    L112
  cmp    0x24(%rsp),%eax
  jle    L146
  cmp    0x30(%rsp),%eax
  jle    L109
L138:
  mov    0x88(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L20
  add    $0x98,%rsp
  xor    %eax,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nopl   0x0(%rax,%rax,1)
L82:
  add    $0x2,%ecx
  jmp    L142
L178:
  mov    0x24(%rsp),%edx
  movd   0x30(%rsp),%xmm0
  movd   0x1c(%rsp),%xmm6
  mov    %edx,0x30(%rsp)
  mov    0x28(%rsp),%edx
  punpckldq %xmm6,%xmm0
  mov    %edx,0x1c(%rsp)
  movq   %xmm0,0x24(%rsp)
  jmp    L110
L112:
  xor    %eax,%eax
L181:
  imul   $0xc,%rax,%rax
  lea    D9(%rip),%rdi
  mov    0x10(%rsp,%rax,1),%esi
  call   <printf@plt>
  jmp    L138
L146:
  mov    $0x1,%eax
  jmp    L181
L109:
  mov    $0x2,%eax
  jmp    L181
L20:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: extract_symbolic_data
arguments: tag: D8
data_type: string
name: extract_symbolic_data
arguments: tag: D9
data_type: string

tool: D8:  %c

tool: D9: Pozicioniraj se u %d. red!

assistant: ```c
int main() {
  int i, j, br_vremena = 0, br_kukuruza = 0, br_reda = 0, pravi_red = 0, tablica[3][3], temp[3][3], max_kuk = 0;
  char unos, kukuruziste[3][20];
  for (i = 0; i < 3; i++) {
    for (j = 0; j < 20; j++) {
      scanf(" %c", &unos);
      if (unos == '.' || unos == ',' || unos == 'I') {
        kukuruziste[i][j] = unos;
      } else {
        continue;
      }
    }
  }
  for (i = 0; i < 3; i++) {
    for (j = 0; j < 20; j++) {
      if (kukuruziste[i][j] == '.') {
        br_vremena += 1;
      } else if (kukuruziste[i][j] == ',') {
        br_vremena += 2;
      } else if (kukuruziste[i][j] == 'I') {
        br_vremena += 5;
        br_kukuruza += 1;
      }
    }
    br_reda++;
    tablica[i][0] = br_reda;
    tablica[i][1] = br_vremena;
    tablica[i][2] = br_kukuruza;
    br_vremena = 0;
    br_kukuruza = 0;
  }
  for (i = 2; i >= 0; i--) {
    if (tablica[i][2] >= max_kuk) {
      max_kuk = tablica[i][2];
    }
  }
  for (i = 0; i < 3; i++) {
    for (j = i + 1; j < 3; j++) {
      if (tablica[i][1] > tablica[j][1]) {
        temp[i][0] = tablica[j][0];
        temp[i][1] = tablica[j][1];
        temp[i][2] = tablica[j][2];
        tablica[j][0] = tablica[i][0];
        tablica[j][1] = tablica[i][1];
        tablica[j][2] = tablica[i][2];
        tablica[i][0] = temp[i][0];
        tablica[i][1] = temp[i][1];
        tablica[i][2] = temp[i][2];
      }
    }
  }
  for (i = 0; i < 3; i++) {
    if (tablica[i][2] >= max_kuk - 3) {
      printf("Pozicioniraj se u %d. red!", tablica[i][0]);
      break;
    } else if (tablica[i][2] >= max_kuk - 2) {
      printf("Pozicioniraj se u %d. red!", tablica[i][0]);
      break;
    } else if (tablica[i][2] >= max_kuk - 1) {
      printf("Pozicioniraj se u %d. red!", tablica[i][0]);
      break;
    } else if (tablica[i][2] >= max_kuk) {
      printf("Pozicioniraj se u %d. red!", tablica[i][0]);
      break;
    } else if (tablica[i][2] >= max_kuk + 1) {
      printf("Pozicioniraj se u %d. red!", tablica[i][0]);
      break;
    } else if (tablica[i][2] >= max_kuk + 2) {
      printf("Pozicioniraj se u %d. red!", tablica[i][0]);
      break;
    } else if (tablica[i][2] >= max_kuk + 3) {
      printf("Pozicioniraj se u %d. red!", tablica[i][0]);
      break;
    }
  }
  return 0;
}
```