user: 请将以下的汇编代码转换成C语言代码:

```asm
<main>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x20,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,-0x8(%rbp)
  xor    %eax,%eax
  lea    D76(%rip),%rax
  mov    %rax,%rdi
  call   <printf@plt>
  lea    -0x15(%rbp),%rcx
  lea    -0x10(%rbp),%rdx
  lea    -0x14(%rbp),%rax
  mov    %rax,%rsi
  lea    D89(%rip),%rax
  mov    %rax,%rdi
  call   <scanf@plt>
  movzbl -0x15(%rbp),%eax
  cmp    $0x70,%al
  je     L124
  movzbl -0x15(%rbp),%eax
  cmp    $0x50,%al
  jne    L46
L124:
  mov    -0x14(%rbp),%eax
  add    $0xc,%eax
  mov    %eax,-0x14(%rbp)
L46:
  mov    -0x14(%rbp),%eax
  imul   $0x3c,%eax,%edx
  mov    -0x10(%rbp),%eax
  add    %edx,%eax
  mov    %eax,-0xc(%rbp)
  cmpl   $0x213,-0xc(%rbp)
  jg     L100
  lea    D17(%rip),%rax
  mov    %rax,%rdi
  call   <printf@plt>
  jmp    L18
L100:
  cmpl   $0x276,-0xc(%rbp)
  jg     L113
  lea    D26(%rip),%rax
  mov    %rax,%rdi
  call   <printf@plt>
  jmp    L18
L113:
  cmpl   $0x2d2,-0xc(%rbp)
  jg     L1
  lea    D63(%rip),%rax
  mov    %rax,%rdi
  call   <printf@plt>
  jmp    L18
L1:
  cmpl   $0x323,-0xc(%rbp)
  jg     L32
  lea    D87(%rip),%rax
  mov    %rax,%rdi
  call   <printf@plt>
  jmp    L18
L32:
  cmpl   $0x37c,-0xc(%rbp)
  jg     L91
  lea    D71(%rip),%rax
  mov    %rax,%rdi
  call   <printf@plt>
  jmp    L18
L91:
  cmpl   $0x412,-0xc(%rbp)
  jg     L121
  lea    D25(%rip),%rax
  mov    %rax,%rdi
  call   <printf@plt>
  jmp    L18
L121:
  cmpl   $0x4c6,-0xc(%rbp)
  jg     L154
  lea    D82(%rip),%rax
  mov    %rax,%rdi
  call   <printf@plt>
  jmp    L18
L154:
  lea    D19(%rip),%rax
  mov    %rax,%rdi
  call   <printf@plt>
L18:
  mov    $0x0,%eax
  mov    -0x8(%rbp),%rdx
  sub    %fs:0x28,%rdx
  je     L160
  call   <__stack_chk_fail@plt>
L160:
  leave
  ret
```

tool_calls: name: parse_data
arguments: tag: D76
datatype: string
name: parse_data
arguments: tag: D89
datatype: string
name: parse_data
arguments: tag: D17
datatype: string
name: parse_data
arguments: tag: D26
datatype: string
name: parse_data
arguments: tag: D63
datatype: string
name: parse_data
arguments: tag: D87
datatype: string
name: parse_data
arguments: tag: D71
datatype: string
name: parse_data
arguments: tag: D25
datatype: string
name: parse_data
arguments: tag: D82
datatype: string
name: parse_data
arguments: tag: D19
datatype: string

tool: D76: Enter a time: 

tool: D89: %2d:%2d %c

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


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


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


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


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


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


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


tool: D19: Closest departure time is 9:45 p.m., arriving at 11:58 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;
}
```