user: 请将以下的汇编代码转换成C语言代码:

```asm
<time_to_human_str>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x8,%rsp
  mov    %rdi,%r14
  mov    %rsi,%r12
  mov    %edx,%ebx
  mov    $0x0,%ebp
  cmp    $0x1517f,%edx
  jg     L35
L112:
  cmp    $0xe0f,%ebx
  jg     L179
L126:
  cmp    $0x3b,%ebx
  jg     L189
L207:
  test   %ebx,%ebx
  jg     L178
  test   %rbp,%rbp
  je     L178
L18:
  mov    %ebp,%eax
L101:
  add    $0x8,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L35:
  movslq %edx,%r13
  imul   $0xffffffffc22e4507,%r13,%r13
  shr    $0x20,%r13
  add    %edx,%r13d
  sar    $0x10,%r13d
  mov    %edx,%eax
  sar    $0x1f,%eax
  sub    %eax,%r13d
  mov    %r13d,%ecx
  lea    D13(%rip),%rdx
  call   <snprintf@plt>
  test   %eax,%eax
  jle    L175
  movslq %eax,%rbp
  cmp    %r12,%rbp
  jae    L120
  imul   $0xfffeae80,%r13d,%r13d
  add    %r13d,%ebx
  jmp    L112
L179:
  movslq %ebx,%rax
  imul   $0xffffffff91a2b3c5,%rax,%rax
  shr    $0x20,%rax
  add    %ebx,%eax
  sar    $0xb,%eax
  mov    %ebx,%edx
  sar    $0x1f,%edx
  sub    %edx,%eax
  mov    %eax,%r13d
  mov    %r12,%r15
  sub    %rbp,%r15
  lea    (%r14,%rbp,1),%rdi
  mov    %eax,%ecx
  lea    D3(%rip),%rdx
  mov    %r15,%rsi
  call   <snprintf@plt>
  test   %eax,%eax
  jle    L220
  cltq
  cmp    %rax,%r15
  jbe    L52
  add    %rax,%rbp
  imul   $0xfffff1f0,%r13d,%eax
  add    %eax,%ebx
  jmp    L126
L189:
  movslq %ebx,%r13
  imul   $0xffffffff88888889,%r13,%r13
  shr    $0x20,%r13
  add    %ebx,%r13d
  sar    $0x5,%r13d
  mov    %ebx,%eax
  sar    $0x1f,%eax
  sub    %eax,%r13d
  mov    %r12,%r15
  sub    %rbp,%r15
  lea    (%r14,%rbp,1),%rdi
  mov    %r13d,%ecx
  lea    D20(%rip),%rdx
  mov    %r15,%rsi
  call   <snprintf@plt>
  test   %eax,%eax
  jle    L22
  cltq
  cmp    %rax,%r15
  jbe    L60
  add    %rax,%rbp
  mov    %r13d,%eax
  shl    $0x4,%eax
  sub    %eax,%r13d
  lea    (%rbx,%r13,4),%ebx
  jmp    L207
L178:
  sub    %rbp,%r12
  lea    (%r14,%rbp,1),%rdi
  mov    %ebx,%ecx
  lea    D36(%rip),%rdx
  mov    %r12,%rsi
  call   <snprintf@plt>
  test   %eax,%eax
  jle    L96
  cltq
  cmp    %rax,%r12
  jbe    L75
  add    %rax,%rbp
  jmp    L18
L175:
  mov    $0xffffffff,%eax
  jmp    L101
L120:
  mov    $0xffffffff,%eax
  jmp    L101
L220:
  mov    $0xffffffff,%eax
  jmp    L101
L52:
  mov    $0xffffffff,%eax
  jmp    L101
L22:
  mov    $0xffffffff,%eax
  jmp    L101
L60:
  mov    $0xffffffff,%eax
  jmp    L101
L96:
  mov    $0xffffffff,%eax
  jmp    L101
L75:
  mov    $0xffffffff,%eax
  jmp    L101
```

tool_calls: name: retrieve_data
arguments: data_label: D13
datatype: string
name: retrieve_data
arguments: data_label: D3
datatype: string
name: retrieve_data
arguments: data_label: D20
datatype: string
name: retrieve_data
arguments: data_label: D36
datatype: string

tool: D13: %ud

tool: D3: %uh

tool: D20: %um

tool: D36: %us

assistant: ```c
int time_to_human_str(char *out, const size_t out_len, uint32_t data) {
  size_t total_len = 0;
  uint32_t num;
  int ret;
  num = data / 86400;
  if (num > 0) {
    ret = snprintf(out + total_len, out_len - total_len, "%ud", num);
    if (ret <= 0 || (size_t)ret >= out_len - total_len) {
      return -1;
    }
    total_len += ret;
    data -= num * 86400;
  }
  num = data / 3600;
  if (num > 0) {
    ret = snprintf(out + total_len, out_len - total_len, "%uh", num);
    if (ret <= 0 || (size_t)ret >= out_len - total_len) {
      return -1;
    }
    total_len += ret;
    data -= num * 3600;
  }
  num = data / 60;
  if (num > 0) {
    ret = snprintf(out + total_len, out_len - total_len, "%um", num);
    if (ret <= 0 || (size_t)ret >= out_len - total_len) {
      return -1;
    }
    total_len += ret;
    data -= num * 60;
  }
  num = data;
  if (num > 0 || total_len == 0) {
    ret = snprintf(out + total_len, out_len - total_len, "%us", num);
    if (ret <= 0 || (size_t)ret >= out_len - total_len) {
      return -1;
    }
    total_len += ret;
  }
  return total_len;
}
```