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

```asm
<interval_string>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x20,%rsp
  mov    %edi,-0x14(%rbp)
  movb   $0x0,D203(%rip)
  cmpl   $0x0,-0x14(%rbp)
  jne    L55
  lea    D33(%rip),%rax
  jmp    L67
L55:
  cmpl   $0x278cff,-0x14(%rbp)
  jbe    L134
  mov    -0x14(%rbp),%eax
  mov    %eax,%edx
  mov    $0xcf2049a1,%eax
  imul   %rdx,%rax
  shr    $0x20,%rax
  shr    $0x15,%eax
  mov    %eax,-0xc(%rbp)
  mov    -0xc(%rbp),%eax
  imul   $0x278d00,%eax,%eax
  sub    %eax,-0x14(%rbp)
  cmpl   $0x1,-0xc(%rbp)
  jle    L163
  lea    D77(%rip),%rax
  jmp    L155
L163:
  lea    D1(%rip),%rax
L155:
  mov    -0xc(%rbp),%edx
  mov    %rax,%rcx
  lea    D176(%rip),%rax
  mov    %rax,%rsi
  lea    D203(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <sprintf@plt>
L134:
  cmpl   $0x93a7f,-0x14(%rbp)
  jbe    L44
  mov    -0x14(%rbp),%eax
  mov    %eax,%eax
  imul   $0x6ef5de4d,%rax,%rax
  shr    $0x20,%rax
  shr    $0x12,%eax
  mov    %eax,-0xc(%rbp)
  mov    -0xc(%rbp),%eax
  imul   $0x93a80,%eax,%eax
  sub    %eax,-0x14(%rbp)
  cmpl   $0x1,-0xc(%rbp)
  jle    L33
  lea    D77(%rip),%rdx
  jmp    L118
L33:
  lea    D1(%rip),%rdx
L118:
  movzbl D203(%rip),%eax
  test   %al,%al
  je     L174
  lea    D88(%rip),%rax
  jmp    L69
L174:
  lea    D1(%rip),%rax
L69:
  mov    -0xc(%rbp),%ecx
  mov    %rdx,%r8
  mov    %rax,%rdx
  lea    D296(%rip),%rax
  mov    %rax,%rsi
  lea    D92(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <sprintf@plt>
  lea    D92(%rip),%rax
  mov    %rax,%rsi
  lea    D203(%rip),%rax
  mov    %rax,%rdi
  call   <strcat@plt>
L44:
  cmpl   $0x1517f,-0x14(%rbp)
  jbe    L49
  mov    -0x14(%rbp),%eax
  mov    %eax,%edx
  mov    $0xc22e4507,%eax
  imul   %rdx,%rax
  shr    $0x20,%rax
  shr    $0x10,%eax
  mov    %eax,-0xc(%rbp)
  mov    -0xc(%rbp),%eax
  imul   $0x15180,%eax,%eax
  sub    %eax,-0x14(%rbp)
  cmpl   $0x1,-0xc(%rbp)
  jle    L17
  lea    D77(%rip),%rdx
  jmp    L7
L17:
  lea    D1(%rip),%rdx
L7:
  movzbl D203(%rip),%eax
  test   %al,%al
  je     L127
  lea    D88(%rip),%rax
  jmp    L132
L127:
  lea    D1(%rip),%rax
L132:
  mov    -0xc(%rbp),%ecx
  mov    %rdx,%r8
  mov    %rax,%rdx
  lea    D301(%rip),%rax
  mov    %rax,%rsi
  lea    D92(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <sprintf@plt>
  lea    D92(%rip),%rax
  mov    %rax,%rsi
  lea    D203(%rip),%rax
  mov    %rax,%rdi
  call   <strcat@plt>
L49:
  cmpl   $0x0,-0x14(%rbp)
  je     L92
  mov    -0x14(%rbp),%eax
  mov    %eax,%edx
  mov    $0x91a2b3c5,%eax
  imul   %rdx,%rax
  shr    $0x20,%rax
  shr    $0xb,%eax
  mov    %eax,-0x8(%rbp)
  mov    -0x8(%rbp),%eax
  imul   $0xe10,%eax,%eax
  sub    %eax,-0x14(%rbp)
  mov    -0x14(%rbp),%eax
  mov    %eax,%edx
  mov    $0x88888889,%eax
  imul   %rdx,%rax
  shr    $0x20,%rax
  shr    $0x5,%eax
  mov    %eax,-0x4(%rbp)
  mov    -0x4(%rbp),%eax
  imul   $0x3c,%eax,%eax
  sub    %eax,-0x14(%rbp)
  movzbl D203(%rip),%eax
  test   %al,%al
  je     L25
  lea    D88(%rip),%rax
  jmp    L140
L25:
  lea    D1(%rip),%rax
L140:
  mov    -0x14(%rbp),%esi
  mov    -0x4(%rbp),%ecx
  mov    -0x8(%rbp),%edx
  mov    %esi,%r9d
  mov    %ecx,%r8d
  mov    %edx,%ecx
  mov    %rax,%rdx
  lea    D129(%rip),%rax
  mov    %rax,%rsi
  lea    D92(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <sprintf@plt>
  lea    D92(%rip),%rax
  mov    %rax,%rsi
  lea    D203(%rip),%rax
  mov    %rax,%rdi
  call   <strcat@plt>
L92:
  lea    D203(%rip),%rax
L67:
  leave
  ret
```

tool_calls: name: read_data
arguments: data_tag: D33
type_guessed: string
name: read_data
arguments: data_tag: D77
type_guessed: string
name: read_data
arguments: data_tag: D1
type_guessed: string
name: read_data
arguments: data_tag: D176
type_guessed: string
name: read_data
arguments: data_tag: D88
type_guessed: string
name: read_data
arguments: data_tag: D296
type_guessed: string
name: read_data
arguments: data_tag: D301
type_guessed: string
name: read_data
arguments: data_tag: D129
type_guessed: string

tool: D33: <none>

tool: D77: s

tool: 

tool: D176: %d month%s

tool: D88: , 

tool: D296: %s%d week%s

tool: D301: %s%d day%s

tool: D129: %s%d:%02d:%02d

assistant: ```c
const char *interval_string(unsigned int secs) {
  static char buf[256], tmp[80];
  int hr, min, num;
  buf[0] = 0;
  if (secs == 0)
    return "<none>";
  if (secs >= (86400 * 30)) {
    num = secs / (86400 * 30);
    secs -= num * (86400 * 30);
    sprintf(buf, "%d month%s", num, (num > 1) ? "s" : "");
  }
  if (secs >= (86400 * 7)) {
    num = secs / (86400 * 7);
    secs -= num * (86400 * 7);
    sprintf(tmp, "%s%d week%s", buf[0] ? ", " : "", num, (num > 1) ? "s" : "");
    strcat(buf, tmp);
  }
  if (secs >= (86400)) {
    num = secs / (86400);
    secs -= num * (86400);
    sprintf(tmp, "%s%d day%s", buf[0] ? ", " : "", num, (num > 1) ? "s" : "");
    strcat(buf, tmp);
  }
  if (secs > 0) {
    hr = secs / (60 * 60);
    secs -= hr * (60 * 60);
    min = secs / (60);
    secs -= min * (60);
    sprintf(tmp, "%s%d:%02d:%02d", buf[0] ? ", " : "", hr, min, secs);
    strcat(buf, tmp);
  }
  return buf;
}
```