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

```asm
<test_timespec_to_string_should_be_able_to_output_all_time_units>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x40,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,-0x8(%rbp)
  xor    %eax,%eax
  movq   $0x0,-0x30(%rbp)
  movq   $0x0,-0x28(%rbp)
  movq   $0x0,-0x20(%rbp)
  movq   $0x0,-0x18(%rbp)
  movl   $0x0,-0x38(%rbp)
  movl   $0x0,-0x34(%rbp)
  lea    -0x30(%rbp),%rcx
  lea    -0x38(%rbp),%rax
  mov    $0x20,%edx
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <_timespec_to_string@plt>
  lea    -0x30(%rbp),%rax
  lea    D32(%rip),%rdx
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <strcmp@plt>
  test   %rax,%rax
  jne    L63
  mov    $0x1,%eax
  jmp    L68
L63:
  mov    $0x0,%eax
L68:
  mov    %eax,%edi
  call   <assert@plt>
  movq   $0x0,-0x30(%rbp)
  movq   $0x0,-0x28(%rbp)
  movq   $0x0,-0x20(%rbp)
  movq   $0x0,-0x18(%rbp)
  movl   $0x1,-0x38(%rbp)
  movl   $0x0,-0x34(%rbp)
  lea    -0x30(%rbp),%rcx
  lea    -0x38(%rbp),%rax
  mov    $0x20,%edx
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <_timespec_to_string@plt>
  lea    -0x30(%rbp),%rax
  lea    D26(%rip),%rdx
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <strcmp@plt>
  test   %rax,%rax
  jne    L43
  mov    $0x1,%eax
  jmp    L51
L43:
  mov    $0x0,%eax
L51:
  mov    %eax,%edi
  call   <assert@plt>
  movq   $0x0,-0x30(%rbp)
  movq   $0x0,-0x28(%rbp)
  movq   $0x0,-0x20(%rbp)
  movq   $0x0,-0x18(%rbp)
  movl   $0x3c,-0x38(%rbp)
  movl   $0x0,-0x34(%rbp)
  lea    -0x30(%rbp),%rcx
  lea    -0x38(%rbp),%rax
  mov    $0x20,%edx
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <_timespec_to_string@plt>
  lea    -0x30(%rbp),%rax
  lea    D16(%rip),%rdx
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <strcmp@plt>
  test   %rax,%rax
  jne    L26
  mov    $0x1,%eax
  jmp    L62
L26:
  mov    $0x0,%eax
L62:
  mov    %eax,%edi
  call   <assert@plt>
  movq   $0x0,-0x30(%rbp)
  movq   $0x0,-0x28(%rbp)
  movq   $0x0,-0x20(%rbp)
  movq   $0x0,-0x18(%rbp)
  movl   $0xe10,-0x38(%rbp)
  movl   $0x0,-0x34(%rbp)
  lea    -0x30(%rbp),%rcx
  lea    -0x38(%rbp),%rax
  mov    $0x20,%edx
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <_timespec_to_string@plt>
  lea    -0x30(%rbp),%rax
  lea    D54(%rip),%rdx
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <strcmp@plt>
  test   %rax,%rax
  jne    L123
  mov    $0x1,%eax
  jmp    L10
L123:
  mov    $0x0,%eax
L10:
  mov    %eax,%edi
  call   <assert@plt>
  movq   $0x0,-0x30(%rbp)
  movq   $0x0,-0x28(%rbp)
  movq   $0x0,-0x20(%rbp)
  movq   $0x0,-0x18(%rbp)
  movl   $0x15180,-0x38(%rbp)
  movl   $0x0,-0x34(%rbp)
  lea    -0x30(%rbp),%rcx
  lea    -0x38(%rbp),%rax
  mov    $0x20,%edx
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <_timespec_to_string@plt>
  lea    -0x30(%rbp),%rax
  lea    D14(%rip),%rdx
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <strcmp@plt>
  test   %rax,%rax
  jne    L112
  mov    $0x1,%eax
  jmp    L86
L112:
  mov    $0x0,%eax
L86:
  mov    %eax,%edi
  call   <assert@plt>
  movq   $0x0,-0x30(%rbp)
  movq   $0x0,-0x28(%rbp)
  movq   $0x0,-0x20(%rbp)
  movq   $0x0,-0x18(%rbp)
  movl   $0x15fcd,-0x38(%rbp)
  movl   $0x0,-0x34(%rbp)
  lea    -0x30(%rbp),%rcx
  lea    -0x38(%rbp),%rax
  mov    $0x20,%edx
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <_timespec_to_string@plt>
  lea    -0x30(%rbp),%rax
  lea    D57(%rip),%rdx
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <strcmp@plt>
  test   %rax,%rax
  jne    L67
  mov    $0x1,%eax
  jmp    L30
L67:
  mov    $0x0,%eax
L30:
  mov    %eax,%edi
  call   <assert@plt>
  nop
  mov    -0x8(%rbp),%rax
  sub    %fs:0x28,%rax
  je     L108
  call   <__stack_chk_fail@plt>
L108:
  leave
  ret
```

tool_calls: name: extract_symbolic_data
arguments: data_tag: D32
type: string
name: extract_symbolic_data
arguments: data_tag: D26
type: string
name: extract_symbolic_data
arguments: data_tag: D16
type: string
name: extract_symbolic_data
arguments: data_tag: D54
type: string
name: extract_symbolic_data
arguments: data_tag: D14
type: string
name: extract_symbolic_data
arguments: data_tag: D57
type: string

tool: D32: 0s

tool: D26: 1s

tool: D16: 1m

tool: D54: 1h

tool: D14: 1d

tool: D57: 1d1h1m1s

assistant: ```c
void test_timespec_to_string_should_be_able_to_output_all_time_units(void) {
  {
    char out[32] = {0};
    struct timespec time = {.tv_sec = (0), .tv_nsec = 0};
    _timespec_to_string(&time, out, sizeof(out));
    assert(strcmp(out, ("0s")) == 0 && "Output time value did not match expected "
                                       "0s");
  };
  {
    char out[32] = {0};
    struct timespec time = {.tv_sec = (1), .tv_nsec = 0};
    _timespec_to_string(&time, out, sizeof(out));
    assert(strcmp(out, ("1s")) == 0 && "Output time value did not match expected "
                                       "1s");
  };
  {
    char out[32] = {0};
    struct timespec time = {.tv_sec = (60), .tv_nsec = 0};
    _timespec_to_string(&time, out, sizeof(out));
    assert(strcmp(out, ("1m")) == 0 && "Output time value did not match expected "
                                       "1m");
  };
  {
    char out[32] = {0};
    struct timespec time = {.tv_sec = (60 * 60), .tv_nsec = 0};
    _timespec_to_string(&time, out, sizeof(out));
    assert(strcmp(out, ("1h")) == 0 && "Output time value did not match expected "
                                       "1h");
  };
  {
    char out[32] = {0};
    struct timespec time = {.tv_sec = (24 * 60 * 60), .tv_nsec = 0};
    _timespec_to_string(&time, out, sizeof(out));
    assert(strcmp(out, ("1d")) == 0 && "Output time value did not match expected "
                                       "1d");
  };
  {
    char out[32] = {0};
    struct timespec time = {.tv_sec = (24 * 60 * 60 + 60 * 60 + 60 + 1), .tv_nsec = 0};
    _timespec_to_string(&time, out, sizeof(out));
    assert(strcmp(out, ("1d1h1m1s")) == 0 && "Output time value did not match expected "
                                             "1d1h1m1s");
  };
}
```