user: What is the c source code of the assembly code below?

```asm
<misc_getuptimestr>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x50,%rsp
  mov    %rdi,-0x48(%rbp)
  mov    %esi,-0x4c(%rbp)
  mov    %edx,-0x50(%rbp)
  mov    %fs:0x28,%rax
  mov    %rax,-0x8(%rbp)
  xor    %eax,%eax
  lea    -0x38(%rbp),%rax
  mov    %rax,%rdi
  call   <time@plt>
  mov    -0x38(%rbp),%eax
  sub    -0x50(%rbp),%eax
  mov    %eax,-0x34(%rbp)
  mov    -0x4c(%rbp),%edx
  mov    -0x48(%rbp),%rax
  mov    $0x0,%esi
  mov    %rax,%rdi
  call   <memset@plt>
  cmpl   $0x15180,-0x34(%rbp)
  jle    L46
  mov    -0x34(%rbp),%eax
  movslq %eax,%rdx
  imul   $0xffffffffc22e4507,%rdx,%rdx
  shr    $0x20,%rdx
  add    %eax,%edx
  sar    $0x10,%edx
  sar    $0x1f,%eax
  sub    %eax,%edx
  lea    -0x30(%rbp),%rax
  mov    %edx,%ecx
  lea    D8(%rip),%rdx
  mov    $0x1f,%esi
  mov    %rax,%rdi
  call   <snprintf@plt>
  mov    -0x34(%rbp),%eax
  movslq %eax,%rdx
  imul   $0xffffffffc22e4507,%rdx,%rdx
  shr    $0x20,%rdx
  add    %eax,%edx
  sar    $0x10,%edx
  mov    %eax,%ecx
  sar    $0x1f,%ecx
  sub    %ecx,%edx
  imul   $0x15180,%edx,%edx
  sub    %edx,%eax
  mov    %eax,-0x34(%rbp)
  mov    -0x4c(%rbp),%eax
  lea    -0x1(%rax),%edx
  lea    -0x30(%rbp),%rcx
  mov    -0x48(%rbp),%rax
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <strncpy@plt>
L46:
  cmpl   $0xe10,-0x34(%rbp)
  jle    L16
  mov    -0x34(%rbp),%eax
  movslq %eax,%rdx
  imul   $0xffffffff91a2b3c5,%rdx,%rdx
  shr    $0x20,%rdx
  add    %eax,%edx
  sar    $0xb,%edx
  sar    $0x1f,%eax
  sub    %eax,%edx
  lea    -0x30(%rbp),%rax
  mov    %edx,%ecx
  lea    D15(%rip),%rdx
  mov    $0x1f,%esi
  mov    %rax,%rdi
  call   <snprintf@plt>
  mov    -0x34(%rbp),%eax
  movslq %eax,%rdx
  imul   $0xffffffff91a2b3c5,%rdx,%rdx
  shr    $0x20,%rdx
  add    %eax,%edx
  sar    $0xb,%edx
  mov    %eax,%ecx
  sar    $0x1f,%ecx
  sub    %ecx,%edx
  imul   $0xe10,%edx,%edx
  sub    %edx,%eax
  mov    %eax,-0x34(%rbp)
  mov    -0x4c(%rbp),%eax
  lea    -0x1(%rax),%edx
  lea    -0x30(%rbp),%rcx
  mov    -0x48(%rbp),%rax
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <strncat@plt>
L16:
  cmpl   $0x3c,-0x34(%rbp)
  jle    L24
  mov    -0x34(%rbp),%eax
  movslq %eax,%rdx
  imul   $0xffffffff88888889,%rdx,%rdx
  shr    $0x20,%rdx
  add    %eax,%edx
  sar    $0x5,%edx
  sar    $0x1f,%eax
  sub    %eax,%edx
  lea    -0x30(%rbp),%rax
  mov    %edx,%ecx
  lea    D24(%rip),%rdx
  mov    $0x1f,%esi
  mov    %rax,%rdi
  call   <snprintf@plt>
  mov    -0x34(%rbp),%eax
  movslq %eax,%rdx
  imul   $0xffffffff88888889,%rdx,%rdx
  shr    $0x20,%rdx
  add    %eax,%edx
  sar    $0x5,%edx
  mov    %eax,%ecx
  sar    $0x1f,%ecx
  sub    %ecx,%edx
  imul   $0x3c,%edx,%edx
  sub    %edx,%eax
  mov    %eax,-0x34(%rbp)
  mov    -0x4c(%rbp),%eax
  lea    -0x1(%rax),%edx
  lea    -0x30(%rbp),%rcx
  mov    -0x48(%rbp),%rax
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <strncat@plt>
L24:
  cmpl   $0x0,-0x34(%rbp)
  jle    L44
  mov    -0x34(%rbp),%edx
  lea    -0x30(%rbp),%rax
  mov    %edx,%ecx
  lea    D0(%rip),%rdx
  mov    $0x1f,%esi
  mov    %rax,%rdi
  call   <snprintf@plt>
  mov    -0x4c(%rbp),%eax
  lea    -0x1(%rax),%edx
  lea    -0x30(%rbp),%rcx
  mov    -0x48(%rbp),%rax
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <strncat@plt>
L44:
  mov    -0x48(%rbp),%rax
  mov    -0x8(%rbp),%rdx
  sub    %fs:0x28,%rdx
  je     L25
  call   <__stack_chk_fail@plt>
L25:
  leave
  ret
```

tool_calls: name: unpack_data
arguments: data_tag: D8
type_guessed: string
name: unpack_data
arguments: data_tag: D15
type_guessed: string
name: unpack_data
arguments: data_tag: D24
type_guessed: string
name: unpack_data
arguments: data_tag: D0
type_guessed: string

tool: D8: %d days 

tool: D15: %d saat 

tool: D24: %d dakika 

tool: D0: %d saniye

assistant: ```c
char *misc_getuptimestr(char *uptime_str, int len, time_t firetime) {
  char fmt[32];
  time_t now;
  time_t diff;
  time(&now);
  diff = now - firetime;
  memset(uptime_str, 0, len);
  if (diff > 86400) {
    snprintf(fmt, 31, "%d days ", (int)(diff / 86400));
    diff -= (diff / 86400) * 86400;
    strncpy(uptime_str, fmt, len - 1);
  }
  if (diff > 3600) {
    snprintf(fmt, 31, "%d saat ", (int)(diff / 3600));
    diff -= (diff / 3600) * 3600;
    strncat(uptime_str, fmt, len - 1);
  }
  if (diff > 60) {
    snprintf(fmt, 31, "%d dakika ", (int)(diff / 60));
    diff -= (diff / 60) * 60;
    strncat(uptime_str, fmt, len - 1);
  }
  if (diff > 0) {
    snprintf(fmt, 31, "%d saniye", (int)diff);
    strncat(uptime_str, fmt, len - 1);
  }
  return uptime_str;
}
```