user: 请从给定的汇编指令推导出C源代码:

```asm
<timename>:
  endbr64
  push   %rbp
  pxor   %xmm0,%xmm0
  pxor   %xmm1,%xmm1
  mov    %rcx,%rbp
  push   %rbx
  cvtsi2sd %esi,%xmm0
  cvtsi2sd %edx,%xmm1
  sub    $0x8,%rsp
  movq   D115(%rip),%xmm4
  movsd  D135(%rip),%xmm5
  mulsd  D143(%rip),%xmm0
  addsd  %xmm1,%xmm0
  mulsd  D76(%rip),%xmm0
  divsd  D42(%rip),%xmm0
  addsd  D66(%rip),%xmm0
  movapd %xmm0,%xmm1
  andpd  %xmm4,%xmm1
  ucomisd %xmm1,%xmm5
  jbe    L11
  cvttsd2si %xmm0,%rax
  pxor   %xmm1,%xmm1
  movsd  D51(%rip),%xmm6
  movapd %xmm4,%xmm2
  andnpd %xmm0,%xmm2
  cvtsi2sd %rax,%xmm1
  movapd %xmm1,%xmm3
  cmpnlesd %xmm0,%xmm3
  andpd  %xmm6,%xmm3
  subsd  %xmm3,%xmm1
  orpd   %xmm2,%xmm1
  movapd %xmm1,%xmm0
L11:
  movsd  D22(%rip),%xmm3
  movapd %xmm0,%xmm2
  movapd %xmm4,%xmm6
  divsd  %xmm3,%xmm2
  movapd %xmm2,%xmm1
  andpd  %xmm4,%xmm1
  ucomisd %xmm1,%xmm5
  jbe    L34
  cvttsd2si %xmm2,%rax
  pxor   %xmm1,%xmm1
  andnpd %xmm2,%xmm6
  movsd  D51(%rip),%xmm8
  cvtsi2sd %rax,%xmm1
  movapd %xmm1,%xmm7
  cmpnlesd %xmm2,%xmm7
  andpd  %xmm8,%xmm7
  subsd  %xmm7,%xmm1
  movapd %xmm1,%xmm2
  orpd   %xmm6,%xmm2
L34:
  movapd %xmm2,%xmm1
  movapd %xmm4,%xmm6
  mulsd  %xmm3,%xmm1
  subsd  %xmm1,%xmm0
  movapd %xmm2,%xmm1
  divsd  %xmm3,%xmm1
  cvttsd2si %xmm0,%edx
  cmp    $0xa,%edx
  lea    0x57(%rdx),%ecx
  lea    0x30(%rdx),%eax
  cmovge %ecx,%eax
  mov    %al,0xb(%rbp)
  movapd %xmm1,%xmm0
  andpd  %xmm4,%xmm0
  ucomisd %xmm0,%xmm5
  jbe    L3
  cvttsd2si %xmm1,%rax
  pxor   %xmm0,%xmm0
  andnpd %xmm1,%xmm6
  movsd  D51(%rip),%xmm8
  cvtsi2sd %rax,%xmm0
  movapd %xmm0,%xmm7
  cmpnlesd %xmm1,%xmm7
  andpd  %xmm8,%xmm7
  subsd  %xmm7,%xmm0
  movapd %xmm0,%xmm1
  orpd   %xmm6,%xmm1
L3:
  movapd %xmm1,%xmm0
  movapd %xmm4,%xmm6
  mulsd  %xmm3,%xmm0
  subsd  %xmm0,%xmm2
  cvttsd2si %xmm2,%edx
  movapd %xmm1,%xmm2
  divsd  %xmm3,%xmm2
  cmp    $0xa,%edx
  lea    0x57(%rdx),%ecx
  lea    0x30(%rdx),%eax
  cmovge %ecx,%eax
  mov    %al,0xa(%rbp)
  movapd %xmm2,%xmm0
  andpd  %xmm4,%xmm0
  ucomisd %xmm0,%xmm5
  jbe    L21
  cvttsd2si %xmm2,%rax
  pxor   %xmm0,%xmm0
  andnpd %xmm2,%xmm6
  movsd  D51(%rip),%xmm8
  cvtsi2sd %rax,%xmm0
  movapd %xmm0,%xmm7
  cmpnlesd %xmm2,%xmm7
  andpd  %xmm8,%xmm7
  subsd  %xmm7,%xmm0
  movapd %xmm0,%xmm2
  orpd   %xmm6,%xmm2
L21:
  movapd %xmm2,%xmm0
  movapd %xmm4,%xmm6
  mulsd  %xmm3,%xmm0
  subsd  %xmm0,%xmm1
  cvttsd2si %xmm1,%edx
  movapd %xmm2,%xmm1
  divsd  %xmm3,%xmm1
  cmp    $0xa,%edx
  lea    0x57(%rdx),%ecx
  lea    0x30(%rdx),%eax
  cmovge %ecx,%eax
  mov    %al,0x9(%rbp)
  movapd %xmm1,%xmm0
  andpd  %xmm4,%xmm0
  ucomisd %xmm0,%xmm5
  jbe    L112
  cvttsd2si %xmm1,%rax
  pxor   %xmm0,%xmm0
  andnpd %xmm1,%xmm6
  movsd  D51(%rip),%xmm8
  cvtsi2sd %rax,%xmm0
  movapd %xmm0,%xmm7
  cmpnlesd %xmm1,%xmm7
  andpd  %xmm8,%xmm7
  subsd  %xmm7,%xmm0
  movapd %xmm0,%xmm1
  orpd   %xmm6,%xmm1
L112:
  movapd %xmm1,%xmm0
  movapd %xmm4,%xmm6
  mulsd  %xmm3,%xmm0
  subsd  %xmm0,%xmm2
  cvttsd2si %xmm2,%edx
  movapd %xmm1,%xmm2
  divsd  %xmm3,%xmm2
  cmp    $0xa,%edx
  lea    0x57(%rdx),%ecx
  lea    0x30(%rdx),%eax
  cmovge %ecx,%eax
  mov    %al,0x8(%rbp)
  movapd %xmm2,%xmm0
  andpd  %xmm4,%xmm0
  ucomisd %xmm0,%xmm5
  jbe    L19
  cvttsd2si %xmm2,%rax
  pxor   %xmm0,%xmm0
  andnpd %xmm2,%xmm6
  movsd  D51(%rip),%xmm8
  cvtsi2sd %rax,%xmm0
  movapd %xmm0,%xmm7
  cmpnlesd %xmm2,%xmm7
  andpd  %xmm8,%xmm7
  subsd  %xmm7,%xmm0
  movapd %xmm0,%xmm2
  orpd   %xmm6,%xmm2
L19:
  movapd %xmm2,%xmm0
  movapd %xmm4,%xmm6
  mulsd  %xmm3,%xmm0
  subsd  %xmm0,%xmm1
  cvttsd2si %xmm1,%edx
  movapd %xmm2,%xmm1
  divsd  %xmm3,%xmm1
  cmp    $0xa,%edx
  lea    0x57(%rdx),%ecx
  lea    0x30(%rdx),%eax
  cmovge %ecx,%eax
  mov    %al,0x7(%rbp)
  movapd %xmm1,%xmm0
  andpd  %xmm4,%xmm0
  ucomisd %xmm0,%xmm5
  jbe    L116
  cvttsd2si %xmm1,%rax
  pxor   %xmm0,%xmm0
  andnpd %xmm1,%xmm6
  movsd  D51(%rip),%xmm8
  cvtsi2sd %rax,%xmm0
  movapd %xmm0,%xmm7
  cmpnlesd %xmm1,%xmm7
  andpd  %xmm8,%xmm7
  subsd  %xmm7,%xmm0
  movapd %xmm0,%xmm1
  orpd   %xmm6,%xmm1
L116:
  movapd %xmm1,%xmm0
  movapd %xmm4,%xmm6
  mulsd  %xmm3,%xmm0
  subsd  %xmm0,%xmm2
  cvttsd2si %xmm2,%edx
  movapd %xmm1,%xmm2
  divsd  %xmm3,%xmm2
  cmp    $0xa,%edx
  lea    0x57(%rdx),%ecx
  lea    0x30(%rdx),%eax
  cmovge %ecx,%eax
  mov    %al,0x6(%rbp)
  movapd %xmm2,%xmm0
  andpd  %xmm4,%xmm0
  ucomisd %xmm0,%xmm5
  jbe    L8
  cvttsd2si %xmm2,%rax
  pxor   %xmm0,%xmm0
  andnpd %xmm2,%xmm6
  movsd  D51(%rip),%xmm8
  cvtsi2sd %rax,%xmm0
  movapd %xmm0,%xmm7
  cmpnlesd %xmm2,%xmm7
  andpd  %xmm8,%xmm7
  subsd  %xmm7,%xmm0
  movapd %xmm0,%xmm2
  orpd   %xmm6,%xmm2
L8:
  movapd %xmm2,%xmm0
  mulsd  %xmm3,%xmm0
  subsd  %xmm0,%xmm1
  movapd %xmm4,%xmm0
  cvttsd2si %xmm1,%edx
  movapd %xmm2,%xmm1
  divsd  %xmm3,%xmm1
  cmp    $0xa,%edx
  lea    0x57(%rdx),%ecx
  lea    0x30(%rdx),%eax
  cmovge %ecx,%eax
  mov    %al,0x5(%rbp)
  movapd %xmm1,%xmm4
  andpd  %xmm0,%xmm4
  ucomisd %xmm4,%xmm5
  jbe    L93
  cvttsd2si %xmm1,%rax
  pxor   %xmm4,%xmm4
  movsd  D51(%rip),%xmm6
  andnpd %xmm1,%xmm0
  cvtsi2sd %rax,%xmm4
  movapd %xmm4,%xmm5
  cmpnlesd %xmm1,%xmm5
  andpd  %xmm6,%xmm5
  subsd  %xmm5,%xmm4
  orpd   %xmm0,%xmm4
  movapd %xmm4,%xmm1
L93:
  mulsd  %xmm3,%xmm1
  lea    0x3(%rbp),%rbx
  subsd  %xmm1,%xmm2
  cvttsd2si %xmm2,%edx
  cmp    $0x9,%edx
  lea    0x30(%rdx),%ecx
  lea    0x57(%rdx),%eax
  cmovle %ecx,%eax
  add    $0x16356b,%edi
  mov    %al,0x4(%rbp)
L7:
  mov    $0x24,%esi
  call   <ldiv@plt>
  mov    %eax,%edi
  sar    $0x20,%rax
  cmp    $0x9,%eax
  jg     L54
  add    $0x30,%eax
  mov    %al,(%rbx)
  lea    -0x1(%rbx),%rax
  cmp    %rbp,%rbx
  je     L79
L108:
  mov    %rax,%rbx
  jmp    L7
  nopw   0x0(%rax,%rax,1)
L54:
  add    $0x57,%eax
  mov    %al,(%rbx)
  lea    -0x1(%rbx),%rax
  cmp    %rbp,%rbx
  jne    L108
L79:
  add    $0x8,%rsp
  pop    %rbx
  pop    %rbp
  ret
```

tool_calls: name: read_data
arguments: tag: D115
data_type: byte[8]
name: read_data
arguments: tag: D135
data_type: byte[8]
name: read_data
arguments: tag: D143
data_type: f64
name: read_data
arguments: tag: D76
data_type: byte[8]
name: read_data
arguments: tag: D42
data_type: f64
name: read_data
arguments: tag: D66
data_type: f64
name: read_data
arguments: tag: D51
data_type: byte[8]
name: read_data
arguments: tag: D22
data_type: f64

tool: {"D115": [0xff,0xff,0xff,0xff,0xff,0xff,0xff,0x7f]}

tool: {"D135": [0x00,0x00,0x00,0x00,0x00,0x00,0x30,0x43]}

tool: D143: 1000000000

tool: {"D76": [0x00,0x00,0x00,0x08,0xba,0x86,0x84,0x42]}

tool: D42: 86400000000000

tool: D66: 0.5

tool: {"D51": [0x00,0x00,0x00,0x00,0x00,0x00,0xf0,0x3f]}

tool: D22: 36

assistant: ```c
void timename(int days, int secs, int nanosecs, char *str) {
  double ntime;
  ldiv_t d;
  int i;
  ntime = (double)secs * 1E9 + (double)nanosecs;
  ntime = (ntime * (36.0 * 36.0 * 36.0 * 36.0 * 36.0 * 36.0 * 36.0 * 36.0)) / 86400E9;
  ntime = floor(ntime + 0.5);
  for (i = 11; i >= 4; i--) {
    double _d = floor(ntime / 36.0);
    int rem = (int)(floor(ntime - (_d * 36.0)));
    str[i] = rem < 10 ? '0' + rem : 'a' + rem - 10;
    ntime = _d;
  }
  d.quot = days + (25 * 365 + 6) + (31 * 36 * 36 * 36);
  for (i = 4; i--;) {
    d = ldiv(d.quot, 36);
    str[i] = d.rem < 10 ? '0' + (char)d.rem : 'a' + (char)d.rem - 10;
  }
}
```