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
  lea    D5(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  lea    -0x10(%rbp),%rax
  mov    %rax,%rsi
  lea    D34(%rip),%rax
  mov    %rax,%rdi
  call   <scanf@plt>
  mov    -0x10(%rbp),%rax
  mov    %eax,-0x20(%rbp)
  mov    -0x20(%rbp),%eax
  movslq %eax,%rdx
  imul   $0xffffffff88888889,%rdx,%rdx
  shr    $0x20,%rdx
  add    %eax,%edx
  sar    $0x5,%edx
  sar    $0x1f,%eax
  mov    %eax,%ecx
  mov    %edx,%eax
  sub    %ecx,%eax
  mov    %eax,-0x1c(%rbp)
  mov    -0x1c(%rbp),%edx
  mov    %edx,%eax
  shl    $0x4,%edx
  sub    %edx,%eax
  shl    $0x2,%eax
  add    %eax,-0x20(%rbp)
  mov    -0x1c(%rbp),%eax
  movslq %eax,%rdx
  imul   $0xffffffff88888889,%rdx,%rdx
  shr    $0x20,%rdx
  add    %eax,%edx
  sar    $0x5,%edx
  sar    $0x1f,%eax
  mov    %eax,%ecx
  mov    %edx,%eax
  sub    %ecx,%eax
  mov    %eax,-0x18(%rbp)
  mov    -0x18(%rbp),%edx
  mov    %edx,%eax
  shl    $0x4,%edx
  sub    %edx,%eax
  shl    $0x2,%eax
  add    %eax,-0x1c(%rbp)
  mov    -0x18(%rbp),%eax
  movslq %eax,%rdx
  imul   $0x2aaaaaab,%rdx,%rdx
  shr    $0x20,%rdx
  sar    $0x2,%edx
  sar    $0x1f,%eax
  mov    %eax,%ecx
  mov    %edx,%eax
  sub    %ecx,%eax
  mov    %eax,-0x14(%rbp)
  mov    -0x14(%rbp),%edx
  mov    %edx,%eax
  shl    $0x2,%edx
  sub    %edx,%eax
  shl    $0x3,%eax
  add    %eax,-0x18(%rbp)
  cmpl   $0x1,-0x20(%rbp)
  jne    L120
  lea    D22(%rip),%rdi
  jmp    L39
L120:
  lea    D149(%rip),%rdi
L39:
  cmpl   $0x1,-0x1c(%rbp)
  jne    L15
  lea    D22(%rip),%rsi
  jmp    L30
L15:
  lea    D149(%rip),%rsi
L30:
  cmpl   $0x1,-0x18(%rbp)
  jne    L66
  lea    D22(%rip),%rcx
  jmp    L118
L66:
  lea    D149(%rip),%rcx
L118:
  cmpl   $0x1,-0x14(%rbp)
  jne    L119
  lea    D22(%rip),%r8
  jmp    L4
L119:
  lea    D149(%rip),%r8
L4:
  mov    -0x10(%rbp),%rax
  cmp    $0x1,%rax
  jne    L104
  lea    D22(%rip),%rdx
  jmp    L24
L104:
  lea    D54(%rip),%rdx
L24:
  mov    -0x10(%rbp),%rax
  cmp    $0x1,%rax
  jne    L82
  lea    D22(%rip),%rax
  jmp    L95
L82:
  lea    D149(%rip),%rax
L95:
  mov    -0x10(%rbp),%r10
  mov    -0x14(%rbp),%r11d
  push   %rdi
  mov    -0x20(%rbp),%edi
  push   %rdi
  push   %rsi
  mov    -0x1c(%rbp),%esi
  push   %rsi
  push   %rcx
  mov    -0x18(%rbp),%ecx
  push   %rcx
  mov    %r8,%r9
  mov    %r11d,%r8d
  mov    %rdx,%rcx
  mov    %rax,%rdx
  mov    %r10,%rsi
  lea    D139(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  add    $0x30,%rsp
  mov    $0x0,%eax
  mov    -0x8(%rbp),%rdx
  sub    %fs:0x28,%rdx
  je     L1
  call   <__stack_chk_fail@plt>
L1:
  leave
  ret
```

tool_calls: name: disassemble_data
arguments: tag: D5
data_type: string
name: disassemble_data
arguments: tag: D34
data_type: string
name: disassemble_data
arguments: tag: D22
data_type: string
name: disassemble_data
arguments: tag: D149
data_type: string
name: disassemble_data
arguments: tag: D54
data_type: string
name: disassemble_data
arguments: tag: D139
data_type: string

tool: D5: Insira um numero: 

tool: D34: %ld

tool: 

tool: D149: s

tool: D54: m

tool: D139: %ld segundo%s corresponde%s a %d dia%s, %d hora%s, %d minuto%s e %d segundo%s.


assistant: ```c
int main() {
  long startSeconds;
  printf("Insira um numero: ");
  scanf("%ld", &startSeconds);
  int days, hours, minutes, seconds;
  seconds = startSeconds;
  minutes = seconds / 60;
  seconds -= minutes * 60;
  hours = minutes / 60;
  minutes -= hours * 60;
  days = hours / 24;
  hours -= days * 24;
  printf("%ld segundo%s corresponde%s a %d dia%s, %d hora%s, %d minuto%s e %d segundo%s.\n", startSeconds, startSeconds == 1 ? "" : "s", startSeconds == 1 ? "" : "m", days, days == 1 ? "" : "s", hours, hours == 1 ? "" : "s", minutes, minutes == 1 ? "" : "s", seconds, seconds == 1 ? "" : "s");
  return 0;
}
```