user: 请将这段汇编代码片段转换成等效的C代码:

```asm
<time_to_human_str>:
  endbr64
  push   %r15
  push   %r14
  mov    %rdi,%r14
  push   %r13
  push   %r12
  mov    %edx,%r12d
  push   %rbp
  mov    %rsi,%rbp
  push   %rbx
  xor    %ebx,%ebx
  sub    $0x8,%rsp
  cmp    $0x1517f,%edx
  jg     L147
  cmp    $0xe0f,%r12d
  jg     L53
L54:
  cmp    $0x3b,%r12d
  jg     L14
L79:
  test   %r12d,%r12d
  jg     L128
  test   %rbx,%rbx
  je     L128
L112:
  mov    %ebx,%eax
L140:
  add    $0x8,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nopw   0x0(%rax,%rax,1)
L128:
  sub    %rbx,%rbp
  lea    (%r14,%rbx,1),%rdi
  mov    %r12d,%ecx
  lea    D9(%rip),%rdx
  mov    %rbp,%rsi
  call   <snprintf@plt>
  test   %eax,%eax
  jle    L143
  cltq
  cmp    %rax,%rbp
  jbe    L143
  add    %rax,%rbx
  jmp    L112
  nopl   0x0(%rax)
L147:
  movslq %edx,%r13
  mov    %edx,%eax
  imul   $0xffffffffc22e4507,%r13,%r13
  sar    $0x1f,%eax
  shr    $0x20,%r13
  add    %edx,%r13d
  lea    D0(%rip),%rdx
  sar    $0x10,%r13d
  sub    %eax,%r13d
  mov    %r13d,%ecx
  call   <snprintf@plt>
  test   %eax,%eax
  jle    L143
  movslq %eax,%rbx
  cmp    %rbp,%rbx
  jae    L143
  imul   $0xfffeae80,%r13d,%r13d
  add    %r13d,%r12d
  cmp    $0xe0f,%r12d
  jle    L54
L53:
  movslq %r12d,%rax
  mov    %r12d,%edx
  lea    (%r14,%rbx,1),%rdi
  mov    %rbp,%r15
  imul   $0xffffffff91a2b3c5,%rax,%rax
  sar    $0x1f,%edx
  sub    %rbx,%r15
  mov    %r15,%rsi
  shr    $0x20,%rax
  add    %r12d,%eax
  sar    $0xb,%eax
  sub    %edx,%eax
  lea    D6(%rip),%rdx
  mov    %eax,%ecx
  mov    %eax,%r13d
  call   <snprintf@plt>
  test   %eax,%eax
  jle    L143
  cltq
  cmp    %rax,%r15
  jbe    L143
  add    %rax,%rbx
  imul   $0xfffff1f0,%r13d,%eax
  add    %eax,%r12d
  cmp    $0x3b,%r12d
  jle    L79
L14:
  movslq %r12d,%r13
  mov    %r12d,%eax
  lea    (%r14,%rbx,1),%rdi
  mov    %rbp,%r15
  imul   $0xffffffff88888889,%r13,%r13
  sar    $0x1f,%eax
  sub    %rbx,%r15
  lea    D11(%rip),%rdx
  mov    %r15,%rsi
  shr    $0x20,%r13
  add    %r12d,%r13d
  sar    $0x5,%r13d
  sub    %eax,%r13d
  mov    %r13d,%ecx
  call   <snprintf@plt>
  test   %eax,%eax
  jle    L143
  cltq
  cmp    %rax,%r15
  jbe    L143
  add    %rax,%rbx
  mov    %r13d,%eax
  shl    $0x4,%eax
  sub    %eax,%r13d
  lea    (%r12,%r13,4),%r12d
  jmp    L79
  nopl   (%rax)
L143:
  mov    $0xffffffff,%eax
  jmp    L140
```

tool_calls: name: extract_symbolic_data
arguments: tag: D9
data_type: string
name: extract_symbolic_data
arguments: tag: D0
data_type: string
name: extract_symbolic_data
arguments: tag: D6
data_type: string
name: extract_symbolic_data
arguments: tag: D11
data_type: string

tool: D9: %us

tool: D0: %ud

tool: D6: %uh

tool: D11: %um

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;
}
```