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

```asm
<main>:
  endbr64
  push   %r12
  lea    D5(%rip),%r12
  push   %rbp
  push   %rbx
  lea    D8(%rip),%rbx
  sub    $0x10,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x8(%rsp)
  xor    %eax,%eax
  movl   $0x0,(%rsp)
  mov    %rsp,%rbp
  nopl   0x0(%rax)
L9:
  mov    %r12,%rdi
  xor    %eax,%eax
  call   <printf@plt>
  mov    %rbp,%rsi
  mov    %rbx,%rdi
  call   <scanf@plt>
  movslq (%rsp),%rax
  mov    %rax,%rcx
  imul   $0x66666667,%rax,%rax
  mov    %ecx,%edx
  sar    $0x1f,%edx
  sar    $0x22,%rax
  sub    %edx,%eax
  movslq %eax,%rdx
  mov    %eax,%esi
  imul   $0x66666667,%rdx,%rdx
  sar    $0x1f,%esi
  sar    $0x22,%rdx
  sub    %esi,%edx
  lea    (%rdx,%rdx,4),%edx
  add    %edx,%edx
  sub    %edx,%eax
  cmp    $0x5,%eax
  jg     L9
  cmp    $0x960,%ecx
  ja     L9
  lea    D3(%rip),%r12
  lea    0x4(%rsp),%rbp
  nopl   0x0(%rax,%rax,1)
L17:
  mov    %r12,%rdi
  xor    %eax,%eax
  call   <printf@plt>
  mov    %rbp,%rsi
  mov    %rbx,%rdi
  call   <scanf@plt>
  movslq 0x4(%rsp),%rax
  mov    %rax,%rcx
  imul   $0x66666667,%rax,%rax
  mov    %ecx,%edx
  sar    $0x1f,%edx
  sar    $0x22,%rax
  sub    %edx,%eax
  movslq %eax,%rdx
  mov    %eax,%esi
  imul   $0x66666667,%rdx,%rdx
  sar    $0x1f,%esi
  sar    $0x22,%rdx
  sub    %esi,%edx
  lea    (%rdx,%rdx,4),%edx
  add    %edx,%edx
  sub    %edx,%eax
  add    $0x5,%eax
  cmp    $0xa,%eax
  ja     L17
  add    (%rsp),%ecx
  lea    D29(%rip),%rdi
  movslq %ecx,%rsi
  mov    %ecx,%eax
  imul   $0x1b4e81b5,%rsi,%rsi
  sar    $0x1f,%eax
  sar    $0x28,%rsi
  sub    %eax,%esi
  imul   $0x960,%esi,%eax
  sub    %eax,%ecx
  lea    0x960(%rcx),%eax
  mov    %ecx,%esi
  cmovs  %eax,%esi
  xor    %eax,%eax
  call   <printf@plt>
  mov    0x8(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L29
  add    $0x10,%rsp
  xor    %eax,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  ret
L29:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: read_data
arguments: data_tag: D5
type_guessed: string
name: read_data
arguments: data_tag: D8
type_guessed: string
name: read_data
arguments: data_tag: D3
type_guessed: string
name: read_data
arguments: data_tag: D29
type_guessed: string

tool: D5: Please enter the first integer (time of day on a 24 hour clock): 

tool: D8: %d

tool: D3: Please enter the second integer (time duration): 

tool: D29: Time of day + time duration is : %.4d

assistant: ```c
int main(void) {
  int timeDay = 0;
  int timeDur;
  int result;
  int digitTens;
  bool checkCorrect = false;
  while ((timeDay > 2400) || (timeDay < 0) || (checkCorrect == false)) {
    checkCorrect = false;
    printf("Please enter the first integer (time of day on a 24 hour clock): ");
    scanf("%d", &timeDay);
    digitTens = (timeDay / 10) % 10;
    if (digitTens <= 5) {
      checkCorrect = true;
    }
  }
  checkCorrect = false;
  while (checkCorrect == false) {
    checkCorrect = false;
    printf("Please enter the second integer (time duration): ");
    scanf("%d", &timeDur);
    digitTens = (timeDur / 10) % 10;
    if ((digitTens <= 5) && (digitTens >= -5)) {
      checkCorrect = true;
    }
  }
  result = timeDay + timeDur;
  result = result % 2400;
  if (result < 0) {
    result = 2400 + result;
  }
  printf("Time of day + time duration is : %.4d", result);
  return 0;
}
```