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

```asm
<main>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x18,%rsp
  mov    %edi,%ebp
  mov    %rsi,%r12
  mov    $0x0,%eax
  call   <libt_walltime@plt>
  movq   %xmm0,%r15
  lea    D11(%rip),%rbx
  cmp    $0x1,%ebp
  jle    L47
  mov    0x8(%r12),%rbx
L47:
  lea    D0(%rip),%r14
  cmp    $0x2,%ebp
  jle    L56
  mov    0x10(%r12),%r14
L56:
  cmp    $0x3,%ebp
  jg     L35
  mov    $0x0,%esi
  mov    %rbx,%rdi
  call   <strtodelay@plt>
  movq   %xmm0,%r12
  mov    $0x0,%esi
  mov    %r14,%rdi
  call   <strtodelay@plt>
  movq   %xmm0,%rbp
  movq   %r15,%xmm0
  call   <timetostr@plt>
  mov    %rax,%rsi
  lea    D47(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    %r14,%rdx
  mov    %rbx,%rsi
  lea    D55(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    $0xa,%r13d
L41:
  mov    $0x0,%ebx
  lea    D59(%rip),%r14
L32:
  mov    $0xa,%edi
  movq   %rbp,%xmm2
  movq   %r12,%xmm1
  movq   %r15,%xmm0
  call   <libt_timetointerval4@plt>
  movsd  %xmm0,0x8(%rsp)
  movq   %r15,%xmm3
  addsd  %xmm0,%xmm3
  movq   %xmm3,%r15
  movapd %xmm3,%xmm0
  call   <timetostr@plt>
  mov    %rax,%rdx
  movsd  0x8(%rsp),%xmm0
  mov    %ebx,%esi
  mov    %r14,%rdi
  mov    $0x1,%eax
  call   <printf@plt>
  add    $0x1,%ebx
  cmp    %r13d,%ebx
  jl     L32
L25:
  mov    $0x0,%eax
  add    $0x18,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L35:
  mov    0x18(%r12),%rdi
  mov    $0x0,%edx
  mov    $0x0,%esi
  call   <strtoul@plt>
  mov    %eax,%r13d
  mov    $0x0,%esi
  mov    %rbx,%rdi
  call   <strtodelay@plt>
  movq   %xmm0,%r12
  mov    $0x0,%esi
  mov    %r14,%rdi
  call   <strtodelay@plt>
  movq   %xmm0,%rbp
  movq   %r15,%xmm0
  call   <timetostr@plt>
  mov    %rax,%rsi
  lea    D47(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    %r14,%rdx
  mov    %rbx,%rsi
  lea    D55(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  test   %r13d,%r13d
  jg     L41
  jmp    L25
```

tool_calls: name: disassemble_data
arguments: data_tag: D11
data_type: string
name: disassemble_data
arguments: data_tag: D0
data_type: string
name: disassemble_data
arguments: data_tag: D47
data_type: string
name: disassemble_data
arguments: data_tag: D55
data_type: string
name: disassemble_data
arguments: data_tag: D59
data_type: string

tool: D11: 1d

tool: D0: 4h

tool: D47: now %s


tool: D55: /%s +%s


tool: D59: %i %s (+%.0f)


assistant: ```c
int main(int argc, char *argv[]) {
  const char *sinterval, *soffset;
  double interval, offset;
  double walltime = libt_walltime();
  ;
  double delay;
  int j, max = 10;
  sinterval = (argc >= 2) ? argv[1] : "1d";
  soffset = (argc >= 3) ? argv[2] : "4h";
  if (argc >= 4)
    max = strtoul(argv[3], NULL, 0);
  interval = strtodelay(sinterval, NULL);
  offset = strtodelay(soffset, NULL);
  printf("now %s\n", timetostr(walltime));
  printf("/%s +%s\n", sinterval, soffset);
  for (j = 0; j < max; ++j) {
    delay = libt_timetointerval4(walltime, interval, offset, 10);
    printf("%i %s (+%.0f)\n", j, timetostr(walltime + delay), delay);
    walltime += delay;
  }
  return 0;
}
```