user: Translate the below assembly code into C programming language:

```asm
<main>:
  endbr64
  sub    $0x28,%rsp
  lea    D14(%rip),%rdi
  mov    %fs:0x28,%rax
  mov    %rax,0x18(%rsp)
  xor    %eax,%eax
  call   <printf@plt>
  lea    0xf(%rsp),%rcx
  lea    0x14(%rsp),%rdx
  lea    0x10(%rsp),%rsi
  lea    D82(%rip),%rdi
  call   <scanf@plt>
  movzbl 0xf(%rsp),%eax
  and    $0xffffffdf,%eax
  cmp    $0x50,%al
  jne    L107
  addl   $0xc,0x10(%rsp)
L107:
  imul   $0x3c,0x10(%rsp),%eax
  add    0x14(%rsp),%eax
  cmp    $0x213,%eax
  jle    L115
  cmp    $0x276,%eax
  jle    L73
  cmp    $0x2d2,%eax
  jle    L47
  cmp    $0x323,%eax
  jle    L146
  cmp    $0x37c,%eax
  jle    L32
  cmp    $0x412,%eax
  jle    L57
  cmp    $0x4c6,%eax
  jg     L81
  lea    D72(%rip),%rdi
  call   <printf@plt>
  jmp    L30
L73:
  lea    D60(%rip),%rdi
  call   <printf@plt>
L30:
  mov    0x18(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L31
  xor    %eax,%eax
  add    $0x28,%rsp
  ret
L115:
  lea    D51(%rip),%rdi
  call   <printf@plt>
  jmp    L30
L32:
  lea    D6(%rip),%rdi
  call   <printf@plt>
  jmp    L30
L47:
  lea    D76(%rip),%rdi
  call   <printf@plt>
  jmp    L30
L146:
  lea    D89(%rip),%rdi
  call   <printf@plt>
  jmp    L30
L81:
  lea    D64(%rip),%rdi
  call   <printf@plt>
  jmp    L30
L57:
  lea    D94(%rip),%rdi
  call   <printf@plt>
  jmp    L30
L31:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: extract_symbolic_data
arguments: label: D14
type: string
name: extract_symbolic_data
arguments: label: D82
type: string
name: extract_symbolic_data
arguments: label: D72
type: string
name: extract_symbolic_data
arguments: label: D60
type: string
name: extract_symbolic_data
arguments: label: D51
type: string
name: extract_symbolic_data
arguments: label: D6
type: string
name: extract_symbolic_data
arguments: label: D76
type: string
name: extract_symbolic_data
arguments: label: D89
type: string
name: extract_symbolic_data
arguments: label: D64
type: string
name: extract_symbolic_data
arguments: label: D94
type: string

tool: D14: Enter a time: 

tool: D82: %2d:%2d %c

tool: D72: Closest departure time is 7:00 p.m., arriving at 9:20 p.m.


tool: D60: Closest departure time is 9:43 a.m., arriving at 11:52 a.m.


tool: D51: Closest departure time is 8:00 a.m., arriving at 10:16 a.m.


tool: D6: Closest departure time is 2:00 p.m., arriving at 4:08 p.m.


tool: D76: Closest departure time is 11:19 a.m., arriving at 1:31 p.m.


tool: D89: Closest departure time is 12:47 p.m., arriving at 3:00 p.m.


tool: D64: Closest departure time is 9:45 p.m., arriving at 11:58 p.m.


tool: D94: Closest departure time is 3:45 p.m., arriving at 5:55 p.m.


assistant: ```c
int main(void) {
  int hh, mm, mins_since_midnight;
  char tt;
  printf("Enter a time: ");
  scanf("%2d:%2d %c", &hh, &mm, &tt);
  if (tt == 'p' || tt == 'P')
    hh += 12;
  mins_since_midnight = hh * 60 + mm;
  if (mins_since_midnight <= ((8 * 60) + (103 / 2)))
    printf("Closest departure time is 8:00 a.m., arriving at 10:16 a.m.\n");
  else if (mins_since_midnight < ((9 * 60) + 43) + (96 / 2))
    printf("Closest departure time is 9:43 a.m., arriving at 11:52 a.m.\n");
  else if (mins_since_midnight < ((11 * 60) + 19) + (88 / 2))
    printf("Closest departure time is 11:19 a.m., arriving at 1:31 p.m.\n");
  else if (mins_since_midnight <= ((12 * 60) + 47) + (73 / 2))
    printf("Closest departure time is 12:47 p.m., arriving at 3:00 p.m.\n");
  else if (mins_since_midnight <= ((14 * 60) + (105 / 2)))
    printf("Closest departure time is 2:00 p.m., arriving at 4:08 p.m.\n");
  else if (mins_since_midnight <= ((15 * 60) + 45) + (195 / 2))
    printf("Closest departure time is 3:45 p.m., arriving at 5:55 p.m.\n");
  else if (mins_since_midnight <= ((19 * 60) + (165 / 2)))
    printf("Closest departure time is 7:00 p.m., arriving at 9:20 p.m.\n");
  else
    printf("Closest departure time is 9:45 p.m., arriving at 11:58 p.m.\n");
  return 0;
}
```