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

```asm
<smart_sprint_time>:
  endbr64
  movsd  D68(%rip),%xmm1
  push   %r12
  comisd %xmm0,%xmm1
  ja     L8
  movsd  D163(%rip),%xmm1
  comisd %xmm0,%xmm1
  ja     L10
  movsd  D134(%rip),%xmm1
  comisd %xmm0,%xmm1
  ja     L9
  movsd  D19(%rip),%xmm1
  cvttsd2si %xmm0,%r12d
  comisd %xmm0,%xmm1
  jbe    L19
  mov    %r12d,%edx
  lea    D104(%rip),%r12
  lea    D99(%rip),%rsi
  xor    %eax,%eax
  mov    %r12,%rdi
  call   <sprintf@plt>
  mov    %r12,%rax
  pop    %r12
  ret
L10:
  lea    D104(%rip),%r12
  mulsd  D100(%rip),%xmm0
  lea    D107(%rip),%rsi
  xor    %eax,%eax
  mov    %r12,%rdi
  cvttsd2si %xmm0,%edx
  call   <sprintf@plt>
  mov    %r12,%rax
  pop    %r12
  ret
  nopw   0x0(%rax,%rax,1)
L8:
  lea    D104(%rip),%r12
  mulsd  D160(%rip),%xmm0
  lea    D52(%rip),%rsi
  xor    %eax,%eax
  mov    %r12,%rdi
  cvttsd2si %xmm0,%edx
  call   <sprintf@plt>
  mov    %r12,%rax
  pop    %r12
  ret
  nopw   0x0(%rax,%rax,1)
L19:
  divsd  D31(%rip),%xmm0
  call   <floor@plt>
  movslq %r12d,%rcx
  mov    %r12d,%r8d
  imul   $0xffffffff88888889,%rcx,%rcx
  mov    %rax,%r9
  mov    %r12d,%eax
  sar    $0x1f,%eax
  shr    $0x20,%rcx
  add    %r12d,%ecx
  lea    D104(%rip),%r12
  sar    $0x5,%ecx
  mov    %r12,%rdi
  sub    %eax,%ecx
  movslq %ecx,%rax
  imul   $0x3c,%ecx,%edx
  mov    %ecx,%esi
  imul   $0xffffffff88888889,%rax,%rax
  sar    $0x1f,%esi
  sub    %edx,%r8d
  mov    %r9d,%edx
  shr    $0x20,%rax
  add    %ecx,%eax
  sar    $0x5,%eax
  sub    %esi,%eax
  lea    D79(%rip),%rsi
  imul   $0x3c,%eax,%eax
  sub    %eax,%ecx
  xor    %eax,%eax
  call   <sprintf@plt>
  mov    %r12,%rax
  pop    %r12
  ret
  nopl   (%rax)
L9:
  lea    D104(%rip),%r12
  mulsd  D108(%rip),%xmm0
  lea    D50(%rip),%rsi
  xor    %eax,%eax
  mov    %r12,%rdi
  cvttsd2si %xmm0,%edx
  call   <sprintf@plt>
  mov    %r12,%rax
  pop    %r12
  ret
```

tool_calls: name: parse_data
arguments: data_tag: D68
type: byte[8]
name: parse_data
arguments: data_tag: D163
type: byte[8]
name: parse_data
arguments: data_tag: D134
type: f64
name: parse_data
arguments: data_tag: D19
type: f64
name: parse_data
arguments: data_tag: D99
type: string
name: parse_data
arguments: data_tag: D100
type: f64
name: parse_data
arguments: data_tag: D107
type: string
name: parse_data
arguments: data_tag: D160
type: f64
name: parse_data
arguments: data_tag: D52
type: string
name: parse_data
arguments: data_tag: D31
type: f64
name: parse_data
arguments: data_tag: D79
type: string
name: parse_data
arguments: data_tag: D108
type: f64
name: parse_data
arguments: data_tag: D50
type: string

tool: {"D68": [0x8d,0xed,0xb5,0xa0,0xf7,0xc6,0xb0,0x3e]}

tool: {"D163": [0xfc,0xa9,0xf1,0xd2,0x4d,0x62,0x50,0x3f]}

tool: D134: 1

tool: D19: 60

tool: D99: %f s

tool: D100: 1000000

tool: D107: %f us

tool: D160: 1000000000

tool: D52: %f ns

tool: D31: 3600

tool: D79: %d h %d m %d s

tool: D108: 1000

tool: D50: %f ms

assistant: ```c
char *smart_sprint_time(double x) {
  static char buf[128];
  if (x < 1.0E-6)
    sprintf(buf, "%f ns", x * 1.0E9);
  else if (x < 1.0E-3)
    sprintf(buf, "%f us", x * 1.0E6);
  else if (x < 1.0)
    sprintf(buf, "%f ms", x * 1.0E3);
  else if (x < 60.0)
    sprintf(buf, "%f s", x);
  else
    sprintf(buf, "%d h %d m %d s", (int)floor(x / 3600.0), ((int)x / 60 % 60), ((int)x % 60));
  return buf;
}
```