user: 请显示与下面列出的汇编代码相匹配的C语言实现:

```asm
<decode_julday>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x60,%rsp
  mov    %edi,-0x34(%rbp)
  mov    %esi,-0x38(%rbp)
  mov    %rdx,-0x40(%rbp)
  mov    %rcx,-0x48(%rbp)
  mov    %r8,-0x50(%rbp)
  mov    -0x38(%rbp),%eax
  mov    %eax,-0x2c(%rbp)
  pxor   %xmm0,%xmm0
  cvtsi2sdl -0x2c(%rbp),%xmm0
  movsd  D24(%rip),%xmm1
  subsd  %xmm1,%xmm0
  movsd  D121(%rip),%xmm1
  divsd  %xmm1,%xmm0
  cvttsd2si %xmm0,%eax
  mov    %eax,%edi
  call   <floor@plt>
  movq   %xmm0,%rax
  mov    %rax,-0x20(%rbp)
  pxor   %xmm0,%xmm0
  cvtsi2sdl -0x2c(%rbp),%xmm0
  addsd  -0x20(%rbp),%xmm0
  movsd  %xmm0,-0x58(%rbp)
  movsd  -0x20(%rbp),%xmm0
  movsd  D87(%rip),%xmm1
  divsd  %xmm1,%xmm0
  cvttsd2si %xmm0,%eax
  mov    %eax,%edi
  call   <floor@plt>
  movsd  -0x58(%rbp),%xmm1
  subsd  %xmm0,%xmm1
  movsd  D11(%rip),%xmm0
  addsd  %xmm1,%xmm0
  movsd  %xmm0,-0x28(%rbp)
  cmpl   $0x0,-0x34(%rbp)
  jne    L13
  cmpl   $0x231518,-0x2c(%rbp)
  jg     L13
  mov    -0x2c(%rbp),%eax
  add    $0x5f4,%eax
  pxor   %xmm0,%xmm0
  cvtsi2sd %eax,%xmm0
  movsd  %xmm0,-0x28(%rbp)
L13:
  movsd  -0x28(%rbp),%xmm0
  movsd  D47(%rip),%xmm1
  subsd  %xmm1,%xmm0
  movsd  D55(%rip),%xmm1
  divsd  %xmm1,%xmm0
  cvttsd2si %xmm0,%eax
  mov    %eax,%edi
  call   <floor@plt>
  movq   %xmm0,%rax
  mov    %rax,-0x18(%rbp)
  movsd  -0x18(%rbp),%xmm1
  movsd  D55(%rip),%xmm0
  mulsd  %xmm1,%xmm0
  cvttsd2si %xmm0,%eax
  mov    %eax,%edi
  call   <floor@plt>
  movq   %xmm0,%rax
  mov    %rax,-0x10(%rbp)
  movsd  -0x28(%rbp),%xmm0
  subsd  -0x10(%rbp),%xmm0
  movsd  D5(%rip),%xmm1
  divsd  %xmm1,%xmm0
  cvttsd2si %xmm0,%eax
  mov    %eax,%edi
  call   <floor@plt>
  movq   %xmm0,%rax
  mov    %rax,-0x8(%rbp)
  movsd  -0x28(%rbp),%xmm0
  subsd  -0x10(%rbp),%xmm0
  movsd  %xmm0,-0x58(%rbp)
  movsd  -0x8(%rbp),%xmm1
  movsd  D5(%rip),%xmm0
  mulsd  %xmm1,%xmm0
  cvttsd2si %xmm0,%eax
  mov    %eax,%edi
  call   <floor@plt>
  movsd  -0x58(%rbp),%xmm1
  subsd  %xmm0,%xmm1
  cvttsd2si %xmm1,%edx
  mov    -0x50(%rbp),%rax
  mov    %edx,(%rax)
  movsd  -0x8(%rbp),%xmm0
  movsd  D103(%rip),%xmm1
  subsd  %xmm1,%xmm0
  movsd  %xmm0,-0x58(%rbp)
  movsd  -0x8(%rbp),%xmm0
  movsd  D84(%rip),%xmm1
  divsd  %xmm1,%xmm0
  cvttsd2si %xmm0,%eax
  mov    %eax,%edi
  call   <floor@plt>
  movsd  D9(%rip),%xmm1
  mulsd  %xmm1,%xmm0
  movsd  -0x58(%rbp),%xmm1
  subsd  %xmm0,%xmm1
  cvttsd2si %xmm1,%edx
  mov    -0x48(%rbp),%rax
  mov    %edx,(%rax)
  movsd  -0x18(%rbp),%xmm0
  movsd  D70(%rip),%xmm1
  subsd  %xmm1,%xmm0
  movsd  %xmm0,-0x58(%rbp)
  mov    -0x48(%rbp),%rax
  mov    (%rax),%eax
  add    $0x7,%eax
  movslq %eax,%rdx
  imul   $0x66666667,%rdx,%rdx
  shr    $0x20,%rdx
  sar    $0x2,%edx
  sar    $0x1f,%eax
  mov    %eax,%ecx
  mov    %edx,%eax
  sub    %ecx,%eax
  mov    %eax,%edi
  call   <floor@plt>
  movsd  -0x58(%rbp),%xmm1
  subsd  %xmm0,%xmm1
  cvttsd2si %xmm1,%edx
  mov    -0x40(%rbp),%rax
  mov    %edx,(%rax)
  nop
  leave
  ret
```

tool_calls: name: retrieve_data
arguments: label: D24
type_guessed: f64
name: retrieve_data
arguments: label: D121
type_guessed: f64
name: retrieve_data
arguments: label: D87
type_guessed: byte[8]
name: retrieve_data
arguments: label: D11
type_guessed: byte[8]
name: retrieve_data
arguments: label: D47
type_guessed: f64
name: retrieve_data
arguments: label: D55
type_guessed: f64
name: retrieve_data
arguments: label: D5
type_guessed: f64
name: retrieve_data
arguments: label: D103
type_guessed: byte[8]
name: retrieve_data
arguments: label: D84
type_guessed: byte[8]
name: retrieve_data
arguments: label: D9
type_guessed: byte[8]
name: retrieve_data
arguments: label: D70
type_guessed: byte[8]

tool: D24: 1867216.25

tool: D121: 36524.25

tool: {"D87": [0x00,0x00,0x00,0x00,0x00,0x00,0x10,0x40]}

tool: {"D11": [0x00,0x00,0x00,0x00,0x00,0xd4,0x97,0x40]}

tool: D47: 122.1

tool: D55: 365.25

tool: D5: 30.6001

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

tool: {"D84": [0x00,0x00,0x00,0x00,0x00,0x00,0x2c,0x40]}

tool: {"D9": [0x00,0x00,0x00,0x00,0x00,0x00,0x28,0x40]}

tool: {"D70": [0x00,0x00,0x00,0x00,0x00,0x6b,0xb2,0x40]}

assistant: ```c
void decode_julday(int calendar, int julday, int *year, int *mon, int *day) {
  int a = julday;
  double b, c;
  double d, e, f;
  b = floor((a - 1867216.25) / 36524.25);
  c = a + b - floor(b / 4) + 1525;
  if (calendar == 0)
    if (a < 2299161) {
      c = a + 1524;
    }
  d = floor((c - 122.1) / 365.25);
  e = floor(365.25 * d);
  f = floor((c - e) / 30.6001);
  *day = (int)(c - e - floor(30.6001 * f));
  *mon = (int)(f - 1 - 12 * floor(f / 14));
  *year = (int)(d - 4715 - floor((7 + *mon) / 10));
}
```