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

```asm
<main>:
  endbr64
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  lea    -0x27000(%rsp),%r11
L5:
  sub    $0x1000,%rsp
  orq    $0x0,(%rsp)
  cmp    %r11,%rsp
  jne    L5
  sub    $0x130,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x27128(%rsp)
  xor    %eax,%eax
  mov    %rsp,%rbx
  mov    $0x0,%ebp
  lea    D10(%rip),%r14
  lea    D62(%rip),%r13
L21:
  add    $0x1,%ebp
  mov    %ebp,%esi
  mov    %r14,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  lea    0x4(%rbx),%rdx
  mov    %rbx,%rsi
  mov    %r13,%rdi
  call   <scanf@plt>
  cmp    $0x2,%eax
  jne    L172
  mov    0x4(%rbx),%esi
  mov    (%rbx),%edi
  call   <kontrolaCasu@plt>
  test   %rax,%rax
  je     L172
  mov    0x4(%rbx),%esi
  mov    (%rbx),%edi
  call   <naMinuty@plt>
  test   %eax,%eax
  je     L172
  add    $0x8,%rbx
  cmp    $0x2,%ebp
  jne    L21
  mov    0x4(%rsp),%esi
  mov    (%rsp),%edi
  call   <naMinuty@plt>
  mov    %eax,%ebp
  mov    0xc(%rsp),%esi
  mov    0x8(%rsp),%edi
  call   <naMinuty@plt>
  mov    %eax,%ebx
  lea    D28(%rip),%rdi
  call   <puts@plt>
  lea    0x14(%rsp),%rdx
  lea    0x10(%rsp),%rsi
  lea    D62(%rip),%rdi
  call   <scanf@plt>
  cmp    $0x2,%eax
  jne    L55
  mov    0x14(%rsp),%esi
  mov    0x10(%rsp),%edi
  call   <kontrolaCasu@plt>
  test   %rax,%rax
  jne    L62
L55:
  lea    D78(%rip),%rdi
  call   <puts@plt>
  mov    $0x1,%eax
L95:
  mov    0x27128(%rsp),%rdx
  sub    %fs:0x28,%rdx
  jne    L121
  add    $0x27130,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  ret
L172:
  lea    D78(%rip),%rdi
  call   <puts@plt>
  mov    $0x1,%eax
  jmp    L95
L62:
  mov    0x14(%rsp),%esi
  mov    0x10(%rsp),%edi
  call   <naMinuty@plt>
  cmp    %ebx,%eax
  jg     L55
  mov    0x14(%rsp),%esi
  mov    0x10(%rsp),%edi
  call   <naMinuty@plt>
  cmp    %ebx,%eax
  je     L55
  mov    0x14(%rsp),%esi
  mov    0x10(%rsp),%edi
  call   <naMinuty@plt>
  mov    %ebx,%edi
  sub    %eax,%edi
  movslq %edi,%rax
  mov    %rax,0x138a0(%rsp)
  mov    $0x270f,%esi
  mov    $0x1,%eax
L132:
  lea    -0x1(%rax),%edx
  movslq %edx,%rdx
  mov    %ebp,%ecx
  imul   %eax,%ecx
  movslq %ecx,%rcx
  mov    %rcx,0x20(%rsp,%rdx,8)
  movslq %eax,%rcx
  mov    %ebx,%edx
  imul   %eax,%edx
  add    %edi,%edx
  movslq %edx,%rdx
  mov    %rdx,0x138a0(%rsp,%rcx,8)
  add    $0x1,%eax
  sub    $0x1,%esi
  jne    L132
  mov    $0x0,%r8d
  lea    0x138a0(%rsp),%rdi
L89:
  lea    0x20(%rsp),%rdx
  movslq %r8d,%rsi
L115:
  mov    (%rdx),%rax
  lea    0x1(%rax),%rcx
  cmp    %rcx,0x138a0(%rsp,%rsi,8)
  je     L125
  add    $0x8,%rdx
  cmp    %rdi,%rdx
  jne    L115
  add    $0x1,%r8d
  cmp    $0x2710,%r8d
  jne    L89
  lea    D41(%rip),%rdi
  call   <puts@plt>
  mov    $0x0,%eax
  jmp    L95
L43:
  lea    D12(%rip),%rdi
  call   <puts@plt>
  mov    $0x0,%eax
  jmp    L95
L125:
  test   %rax,%rax
  je     L43
  mov    $0x3c,%ecx
  cqto
  idiv   %rcx
  mov    %rax,%rsi
  lea    D26(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    $0x0,%eax
  jmp    L95
L121:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: parse_data
arguments: data_label: D10
datatype: string
name: parse_data
arguments: data_label: D62
datatype: string
name: parse_data
arguments: data_label: D28
datatype: string
name: parse_data
arguments: data_label: D78
datatype: string
name: parse_data
arguments: data_label: D41
datatype: string
name: parse_data
arguments: data_label: D12
datatype: string
name: parse_data
arguments: data_label: D26
datatype: string

tool: D10: Interval spoje #%d:


tool: D62: %d:%d

tool: D28: Cas od odjezdu spoje #2:

tool: D78: Nespravny vstup.

tool: D41: Spoj #2 nikdy nebude odjizdet 1 minutu po prijezdu spoje #1.

tool: D12: Spoj #2 bude odjizdet 1 minutu po prijezdu spoje #1 prave nyni.

tool: D26: Spoj #2 bude odjizdet 1 minutu po prijezdu spoje #1 za %ld:%02ld.


assistant: ```c
int main() {
  int spoje[3][2];
  int c, d = 0, ival1, ival2, odjezd, bejk = 0, p = 10000;
  long s1[10000], s2[10000], t = 0;
  for (c = 0; c < 2; c++) {
    printf("Interval spoje #%d:\n", c + 1);
    if (scanf("%d:%d", &spoje[c][0], &spoje[c][1]) != 2 || kontrolaCasu(spoje[c][0], spoje[c][1]) == 0 || naMinuty(spoje[c][0], spoje[c][1]) == 0) {
      printf("Nespravny vstup.\n");
      return 1;
    }
  }
  ival1 = naMinuty(spoje[0][0], spoje[0][1]);
  ival2 = naMinuty(spoje[1][0], spoje[1][1]);
  printf("Cas od odjezdu spoje #2:\n");
  if (scanf("%d:%d", &spoje[2][0], &spoje[2][1]) != 2 || kontrolaCasu(spoje[2][0], spoje[2][1]) == 0 || (naMinuty(spoje[2][0], spoje[2][1]) > ival2) || (naMinuty(spoje[2][0], spoje[2][1]) == ival2)) {
    printf("Nespravny vstup.\n");
    return 1;
  }
  s2[0] = odjezd = ival2 - naMinuty(spoje[2][0], spoje[2][1]);
  for (c = 1; c < p; c++) {
    s1[c - 1] = c * ival1;
    s2[c] = odjezd + (c * ival2);
  }
  for (c = 0; c < p; c++) {
    for (d = 0; d < p; d++) {
      if (s2[c] == s1[d] + 1) {
        bejk = 1;
        t = s1[d];
        break;
      }
    }
    if (bejk == 1)
      break;
  }
  if (bejk == 1) {
    if (t == 0)
      printf("Spoj #2 bude odjizdet 1 minutu po prijezdu spoje #1 prave nyni.\n");
    else
      printf("Spoj #2 bude odjizdet 1 minutu po prijezdu spoje #1 za %ld:%02ld.\n", t / 60, t % 60);
  } else
    printf("Spoj #2 nikdy nebude odjizdet 1 minutu po prijezdu spoje #1.\n");
  return 0;
}
```