user: 请从给定的汇编指令推导出C源代码：

```asm
<main>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  add    $0xffffffffffffff80,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,-0x8(%rbp)
  xor    %eax,%eax
  movl   $0x1e0,-0x68(%rbp)
  movl   $0x247,-0x64(%rbp)
  movl   $0x2a7,-0x60(%rbp)
  movl   $0x2ff,-0x5c(%rbp)
  movl   $0x348,-0x58(%rbp)
  movl   $0x3b1,-0x54(%rbp)
  movl   $0x474,-0x50(%rbp)
  movl   $0x519,-0x4c(%rbp)
  lea    D18(%rip),%rax
  mov    %rax,%rdi
  call   <puts@plt>
  lea    -0x6c(%rbp),%rdx
  lea    -0x70(%rbp),%rax
  mov    %rax,%rsi
  lea    D90(%rip),%rax
  mov    %rax,%rdi
  call   <scanf@plt>
  nop
L67:
  mov    $0x0,%eax
  call   <getchar@plt>
  mov    %al,-0x71(%rbp)
  cmpb   $0x20,-0x71(%rbp)
  je     L67
  movsbl -0x71(%rbp),%eax
  mov    %eax,%edi
  call   <toupper@plt>
  cmp    $0x41,%eax
  je     L33
  cmp    $0x50,%eax
  je     L54
  jmp    L312
L33:
  mov    -0x70(%rbp),%eax
  mov    %eax,-0x70(%rbp)
  jmp    L312
L54:
  mov    -0x70(%rbp),%eax
  add    $0xc,%eax
  mov    %eax,-0x70(%rbp)
  nop
L312:
  mov    -0x6c(%rbp),%edx
  mov    -0x70(%rbp),%eax
  mov    %eax,%esi
  lea    D43(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    -0x70(%rbp),%eax
  imul   $0x3c,%eax,%edx
  mov    -0x6c(%rbp),%eax
  add    %edx,%eax
  mov    %eax,-0x48(%rbp)
  mov    -0x68(%rbp),%eax
  cmp    -0x48(%rbp),%eax
  jl     L240
  mov    -0x68(%rbp),%eax
  sub    -0x48(%rbp),%eax
  jmp    L88
L240:
  mov    -0x48(%rbp),%eax
  sub    -0x68(%rbp),%eax
L88:
  mov    %eax,-0x44(%rbp)
  mov    -0x64(%rbp),%eax
  cmp    -0x48(%rbp),%eax
  jl     L154
  mov    -0x64(%rbp),%eax
  sub    -0x48(%rbp),%eax
  jmp    L229
L154:
  mov    -0x48(%rbp),%eax
  sub    -0x64(%rbp),%eax
L229:
  mov    %eax,-0x40(%rbp)
  mov    -0x60(%rbp),%eax
  cmp    -0x48(%rbp),%eax
  jl     L90
  mov    -0x60(%rbp),%eax
  sub    -0x48(%rbp),%eax
  jmp    L340
L90:
  mov    -0x48(%rbp),%eax
  sub    -0x60(%rbp),%eax
L340:
  mov    %eax,-0x3c(%rbp)
  mov    -0x5c(%rbp),%eax
  cmp    -0x48(%rbp),%eax
  jl     L347
  mov    -0x5c(%rbp),%eax
  sub    -0x48(%rbp),%eax
  jmp    L128
L347:
  mov    -0x48(%rbp),%eax
  sub    -0x5c(%rbp),%eax
L128:
  mov    %eax,-0x38(%rbp)
  mov    -0x58(%rbp),%eax
  cmp    -0x48(%rbp),%eax
  jl     L346
  mov    -0x58(%rbp),%eax
  sub    -0x48(%rbp),%eax
  jmp    L66
L346:
  mov    -0x48(%rbp),%eax
  sub    -0x58(%rbp),%eax
L66:
  mov    %eax,-0x34(%rbp)
  mov    -0x54(%rbp),%eax
  cmp    -0x48(%rbp),%eax
  jl     L308
  mov    -0x54(%rbp),%eax
  sub    -0x48(%rbp),%eax
  jmp    L139
L308:
  mov    -0x48(%rbp),%eax
  sub    -0x54(%rbp),%eax
L139:
  mov    %eax,-0x30(%rbp)
  mov    -0x50(%rbp),%eax
  cmp    -0x48(%rbp),%eax
  jl     L98
  mov    -0x50(%rbp),%eax
  sub    -0x48(%rbp),%eax
  jmp    L75
L98:
  mov    -0x48(%rbp),%eax
  sub    -0x50(%rbp),%eax
L75:
  mov    %eax,-0x2c(%rbp)
  mov    -0x4c(%rbp),%eax
  cmp    -0x48(%rbp),%eax
  jl     L1
  mov    -0x4c(%rbp),%eax
  sub    -0x48(%rbp),%eax
  jmp    L160
L1:
  mov    -0x48(%rbp),%eax
  sub    -0x4c(%rbp),%eax
L160:
  mov    %eax,-0x28(%rbp)
  mov    -0x40(%rbp),%edx
  mov    -0x44(%rbp),%eax
  cmp    %eax,%edx
  cmovle %edx,%eax
  mov    %eax,-0x24(%rbp)
  mov    -0x38(%rbp),%edx
  mov    -0x3c(%rbp),%eax
  cmp    %eax,%edx
  cmovle %edx,%eax
  mov    %eax,-0x20(%rbp)
  mov    -0x20(%rbp),%edx
  mov    -0x24(%rbp),%eax
  cmp    %eax,%edx
  cmovle %edx,%eax
  mov    %eax,-0x1c(%rbp)
  mov    -0x30(%rbp),%edx
  mov    -0x34(%rbp),%eax
  cmp    %eax,%edx
  cmovle %edx,%eax
  mov    %eax,-0x18(%rbp)
  mov    -0x28(%rbp),%edx
  mov    -0x2c(%rbp),%eax
  cmp    %eax,%edx
  cmovle %edx,%eax
  mov    %eax,-0x14(%rbp)
  mov    -0x14(%rbp),%edx
  mov    -0x18(%rbp),%eax
  cmp    %eax,%edx
  cmovle %edx,%eax
  mov    %eax,-0x10(%rbp)
  mov    -0x10(%rbp),%edx
  mov    -0x1c(%rbp),%eax
  cmp    %eax,%edx
  cmovle %edx,%eax
  mov    %eax,-0xc(%rbp)
  mov    -0xc(%rbp),%eax
  cmp    -0x44(%rbp),%eax
  jne    L343
  lea    D29(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  jmp    L34
L343:
  mov    -0xc(%rbp),%eax
  cmp    -0x40(%rbp),%eax
  jne    L269
  lea    D40(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  jmp    L34
L269:
  mov    -0xc(%rbp),%eax
  cmp    -0x3c(%rbp),%eax
  jne    L344
  lea    D31(%rip),%rax
  mov    %rax,%rdi
  call   <puts@plt>
  jmp    L34
L344:
  mov    -0xc(%rbp),%eax
  cmp    -0x38(%rbp),%eax
  jne    L153
  lea    D37(%rip),%rax
  mov    %rax,%rdi
  call   <puts@plt>
  jmp    L34
L153:
  mov    -0xc(%rbp),%eax
  cmp    -0x34(%rbp),%eax
  jne    L173
  lea    D51(%rip),%rax
  mov    %rax,%rdi
  call   <puts@plt>
  jmp    L34
L173:
  mov    -0xc(%rbp),%eax
  cmp    -0x30(%rbp),%eax
  jne    L83
  lea    D16(%rip),%rax
  mov    %rax,%rdi
  call   <puts@plt>
  jmp    L34
L83:
  mov    -0xc(%rbp),%eax
  cmp    -0x2c(%rbp),%eax
  jne    L311
  lea    D74(%rip),%rax
  mov    %rax,%rdi
  call   <puts@plt>
  jmp    L34
L311:
  mov    -0xc(%rbp),%eax
  cmp    -0x28(%rbp),%eax
  jne    L34
  lea    D8(%rip),%rax
  mov    %rax,%rdi
  call   <puts@plt>
L34:
  mov    $0x0,%eax
  mov    -0x8(%rbp),%rdx
  sub    %fs:0x28,%rdx
  je     L4
  call   <__stack_chk_fail@plt>
L4:
  leave
  ret
```

tool_calls: name: parse_data
arguments: data_tag: D18
type_guessed: string
name: parse_data
arguments: data_tag: D90
type_guessed: string
name: parse_data
arguments: data_tag: D43
type_guessed: string
name: parse_data
arguments: data_tag: D29
type_guessed: string
name: parse_data
arguments: data_tag: D40
type_guessed: string
name: parse_data
arguments: data_tag: D31
type_guessed: string
name: parse_data
arguments: data_tag: D37
type_guessed: string
name: parse_data
arguments: data_tag: D51
type_guessed: string
name: parse_data
arguments: data_tag: D16
type_guessed: string
name: parse_data
arguments: data_tag: D74
type_guessed: string
name: parse_data
arguments: data_tag: D8
type_guessed: string

tool: D18: enter a 12-hour time:(xx:xx)

tool: D90: %d:%d

tool: D43: 24-hour time is: %d:%d


tool: D29: closest departure time is 8:00 a.m., arriving at 10:16 a.m.

tool: D40: closest departure time is 9:43 a.m., arriving at 11:52 a.m.

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

tool: D37: closest departure time is 12:47 p.m., arriving at 3:00 p.m.

tool: D51: closest departure time is 2:00 p.m., arriving at 4:08 p.m.

tool: D16: closest departure time is 3:45 p.m., arriving at 5:55 p.m.

tool: D74: closest departure time is 7:00 p.m., arriving at 9:20 p.m.

tool: D8: closest departure time is 9:45 p.m., arriving at 11:58 p.m.

assistant: ```c
int main(void) {
  int time1 = 480, time2 = 583, time3 = 679, time4 = 767, time5 = 840, time6 = 945, time7 = 1140, time8 = 1305;
  int hour, minute;
  char ch;
  printf("enter a 12-hour time:(xx:xx)\n");
  scanf("%d:%d", &hour, &minute);
  while ((ch = getchar()) == ' ') {
    ;
  }
  switch (toupper(ch)) {
  case 'A':
    hour += 0;
    break;
  case 'P':
    hour += 12;
    break;
  }
  printf("24-hour time is: %d:%d\n", hour, minute);
  int time_now = hour * 60 + minute;
  int m1 = ((time1 >= time_now) ? (time1 - time_now) : (time_now - time1)), m2 = ((time2 >= time_now) ? (time2 - time_now) : (time_now - time2)), m3 = ((time3 >= time_now) ? (time3 - time_now) : (time_now - time3)), m4 = ((time4 >= time_now) ? (time4 - time_now) : (time_now - time4)), m5 = ((time5 >= time_now) ? (time5 - time_now) : (time_now - time5)), m6 = ((time6 >= time_now) ? (time6 - time_now) : (time_now - time6)), m7 = ((time7 >= time_now) ? (time7 - time_now) : (time_now - time7)), m8 = ((time8 >= time_now) ? (time8 - time_now) : (time_now - time8));
  int min12 = m1 < m2 ? m1 : m2, min34 = m3 < m4 ? m3 : m4, min1234 = min12 < min34 ? min12 : min34, min56 = m5 < m6 ? m5 : m6, min78 = m7 < m8 ? m7 : m8, min5678 = min56 < min78 ? min56 : min78, min = min1234 < min5678 ? min1234 : min5678;
  if (min == m1) {
    printf("closest departure time is 8:00 a.m., arriving at 10:16 a.m.");
  } else if (min == m2) {
    printf("closest departure time is 9:43 a.m., arriving at 11:52 a.m.");
  } else if (min == m3) {
    printf("closest departure time is 11:19 a.m., arriving at 1:31 p.m.\n");
  } else if (min == m4) {
    printf("closest departure time is 12:47 p.m., arriving at 3:00 p.m.\n");
  } else if (min == m5) {
    printf("closest departure time is 2:00 p.m., arriving at 4:08 p.m.\n");
  } else if (min == m6) {
    printf("closest departure time is 3:45 p.m., arriving at 5:55 p.m.\n");
  } else if (min == m7) {
    printf("closest departure time is 7:00 p.m., arriving at 9:20 p.m.\n");
  } else if (min == m8) {
    printf("closest departure time is 9:45 p.m., arriving at 11:58 p.m.\n");
  }
  return 0;
}
```