user: Converte this assembly snippet into its equivalent C code:

```asm
<main>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x20,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,-0x8(%rbp)
  xor    %eax,%eax
  movl   $0x0,-0x1c(%rbp)
  movl   $0x0,-0x10(%rbp)
  jmp    L62
L43:
  movl   $0x0,-0x10(%rbp)
  lea    D27(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  lea    -0x1c(%rbp),%rax
  mov    %rax,%rsi
  lea    D30(%rip),%rax
  mov    %rax,%rdi
  call   <scanf@plt>
  mov    -0x1c(%rbp),%eax
  movslq %eax,%rdx
  imul   $0x66666667,%rdx,%rdx
  shr    $0x20,%rdx
  sar    $0x2,%edx
  sar    $0x1f,%eax
  sub    %eax,%edx
  movslq %edx,%rax
  imul   $0x66666667,%rax,%rax
  shr    $0x20,%rax
  sar    $0x2,%eax
  mov    %edx,%ecx
  sar    $0x1f,%ecx
  sub    %ecx,%eax
  mov    %eax,-0xc(%rbp)
  mov    -0xc(%rbp),%ecx
  mov    %ecx,%eax
  shl    $0x2,%eax
  add    %ecx,%eax
  add    %eax,%eax
  sub    %eax,%edx
  mov    %edx,-0xc(%rbp)
  cmpl   $0x5,-0xc(%rbp)
  jg     L62
  movl   $0x1,-0x10(%rbp)
L62:
  mov    -0x1c(%rbp),%eax
  cmp    $0x960,%eax
  jg     L43
  mov    -0x1c(%rbp),%eax
  test   %eax,%eax
  js     L43
  cmpl   $0x0,-0x10(%rbp)
  je     L43
  movl   $0x0,-0x10(%rbp)
  jmp    L92
L14:
  movl   $0x0,-0x10(%rbp)
  lea    D34(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  lea    -0x18(%rbp),%rax
  mov    %rax,%rsi
  lea    D30(%rip),%rax
  mov    %rax,%rdi
  call   <scanf@plt>
  mov    -0x18(%rbp),%eax
  movslq %eax,%rdx
  imul   $0x66666667,%rdx,%rdx
  shr    $0x20,%rdx
  sar    $0x2,%edx
  sar    $0x1f,%eax
  sub    %eax,%edx
  movslq %edx,%rax
  imul   $0x66666667,%rax,%rax
  shr    $0x20,%rax
  sar    $0x2,%eax
  mov    %edx,%ecx
  sar    $0x1f,%ecx
  sub    %ecx,%eax
  mov    %eax,-0xc(%rbp)
  mov    -0xc(%rbp),%ecx
  mov    %ecx,%eax
  shl    $0x2,%eax
  add    %ecx,%eax
  add    %eax,%eax
  sub    %eax,%edx
  mov    %edx,-0xc(%rbp)
  cmpl   $0x5,-0xc(%rbp)
  jg     L92
  cmpl   $0xfffffffb,-0xc(%rbp)
  jl     L92
  movl   $0x1,-0x10(%rbp)
L92:
  cmpl   $0x0,-0x10(%rbp)
  je     L14
  mov    -0x1c(%rbp),%edx
  mov    -0x18(%rbp),%eax
  add    %edx,%eax
  mov    %eax,-0x14(%rbp)
  mov    -0x14(%rbp),%eax
  movslq %eax,%rdx
  imul   $0x1b4e81b5,%rdx,%rdx
  shr    $0x20,%rdx
  sar    $0x8,%edx
  mov    %eax,%ecx
  sar    $0x1f,%ecx
  sub    %ecx,%edx
  imul   $0x960,%edx,%edx
  sub    %edx,%eax
  mov    %eax,-0x14(%rbp)
  cmpl   $0x0,-0x14(%rbp)
  jns    L83
  addl   $0x960,-0x14(%rbp)
L83:
  mov    -0x14(%rbp),%eax
  mov    %eax,%esi
  lea    D4(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    $0x0,%eax
  mov    -0x8(%rbp),%rdx
  sub    %fs:0x28,%rdx
  je     L60
  call   <__stack_chk_fail@plt>
L60:
  leave
  ret
```

tool_calls: name: disassemble_data
arguments: label: D27
type: string
name: disassemble_data
arguments: label: D30
type: string
name: disassemble_data
arguments: label: D34
type: string
name: disassemble_data
arguments: label: D4
type: string

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

tool: D30: %d

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

tool: D4: 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;
}
```