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

```asm
<qd_floor>:
  endbr64
  push   %rbx
  mov    %rdi,%rax
  mov    %rsi,%rbx
  sub    $0x30,%rsp
  movsd  (%rdi),%xmm0
  movq   D5(%rip),%xmm4
  mov    %fs:0x28,%rdx
  mov    %rdx,0x28(%rsp)
  xor    %edx,%edx
  movsd  D59(%rip),%xmm5
  movq   $0x0,0x18(%rsp)
  movapd %xmm0,%xmm1
  movapd %xmm0,%xmm2
  movq   $0x0,0x20(%rsp)
  andpd  %xmm4,%xmm1
  ucomisd %xmm1,%xmm5
  jbe    L21
  cvttsd2si %xmm0,%rdx
  pxor   %xmm1,%xmm1
  movsd  D47(%rip),%xmm6
  movapd %xmm4,%xmm3
  andnpd %xmm0,%xmm3
  cvtsi2sd %rdx,%xmm1
  movapd %xmm1,%xmm2
  cmpnlesd %xmm0,%xmm2
  andpd  %xmm6,%xmm2
  subsd  %xmm2,%xmm1
  movapd %xmm1,%xmm2
  orpd   %xmm3,%xmm2
L21:
  ucomisd %xmm2,%xmm0
  movsd  %xmm2,0x8(%rsp)
  jp     L63
  jne    L63
  movsd  0x8(%rax),%xmm1
  movapd %xmm4,%xmm3
  movapd %xmm1,%xmm2
  movapd %xmm1,%xmm0
  andpd  %xmm4,%xmm2
  ucomisd %xmm2,%xmm5
  ja     L42
  ucomisd %xmm0,%xmm1
  movsd  %xmm0,0x10(%rsp)
  jp     L127
L35:
  jne    L127
  movsd  0x10(%rax),%xmm0
  movapd %xmm4,%xmm3
  movapd %xmm0,%xmm1
  movapd %xmm0,%xmm2
  andpd  %xmm4,%xmm1
  ucomisd %xmm1,%xmm5
  ja     L72
L24:
  ucomisd %xmm2,%xmm0
  movsd  %xmm2,0x18(%rsp)
  jp     L127
  jne    L127
  movsd  0x18(%rax),%xmm1
  movapd %xmm4,%xmm0
  movapd %xmm1,%xmm2
  andpd  %xmm4,%xmm2
  ucomisd %xmm2,%xmm5
  jbe    L14
  cvttsd2si %xmm1,%rax
  pxor   %xmm2,%xmm2
  movsd  D47(%rip),%xmm4
  andnpd %xmm1,%xmm0
  cvtsi2sd %rax,%xmm2
  movapd %xmm2,%xmm3
  cmpnlesd %xmm1,%xmm3
  andpd  %xmm4,%xmm3
  subsd  %xmm3,%xmm2
  movapd %xmm2,%xmm1
  orpd   %xmm0,%xmm1
L14:
  movsd  %xmm1,0x20(%rsp)
L127:
  lea    0x20(%rsp),%rcx
  lea    0x18(%rsp),%rdx
  lea    0x10(%rsp),%rsi
  lea    0x8(%rsp),%rdi
  call   <qd_renorm4@plt>
  movsd  0x8(%rsp),%xmm0
  movsd  0x10(%rsp),%xmm2
  movsd  0x18(%rsp),%xmm1
  movsd  %xmm0,(%rbx)
  movsd  0x20(%rsp),%xmm0
L95:
  movsd  %xmm2,0x8(%rbx)
  movsd  %xmm1,0x10(%rbx)
  movsd  %xmm0,0x18(%rbx)
  mov    0x28(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L138
  add    $0x30,%rsp
  pop    %rbx
  ret
  nopl   0x0(%rax)
L63:
  pxor   %xmm0,%xmm0
  movsd  %xmm2,(%rbx)
  movapd %xmm0,%xmm1
  movapd %xmm0,%xmm2
  jmp    L95
  nopw   0x0(%rax,%rax,1)
L42:
  cvttsd2si %xmm1,%rdx
  pxor   %xmm2,%xmm2
  movsd  D47(%rip),%xmm6
  andnpd %xmm1,%xmm3
  cvtsi2sd %rdx,%xmm2
  movapd %xmm2,%xmm0
  cmpnlesd %xmm1,%xmm0
  andpd  %xmm6,%xmm0
  subsd  %xmm0,%xmm2
  movapd %xmm2,%xmm0
  orpd   %xmm3,%xmm0
  ucomisd %xmm0,%xmm1
  movsd  %xmm0,0x10(%rsp)
  jnp    L35
  jmp    L127
L72:
  cvttsd2si %xmm0,%rdx
  pxor   %xmm1,%xmm1
  movsd  D47(%rip),%xmm6
  andnpd %xmm0,%xmm3
  cvtsi2sd %rdx,%xmm1
  movapd %xmm1,%xmm2
  cmpnlesd %xmm0,%xmm2
  andpd  %xmm6,%xmm2
  subsd  %xmm2,%xmm1
  orpd   %xmm3,%xmm1
  movapd %xmm1,%xmm2
  jmp    L24
L138:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: disassemble_data
arguments: tag: D5
datatype: byte[8]
name: disassemble_data
arguments: tag: D59
datatype: f32[2]
name: disassemble_data
arguments: tag: D47
datatype: f32[2]

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

tool: {"D59": [0.0,176.0]}

tool: {"D47": [0.0,1.875]}

assistant: ```c
void qd_floor(const double *a, double *b) {
  double x0, x1, x2, x3;
  x1 = 0.0;
  x2 = 0.0;
  x3 = 0.0;
  x0 = floor(a[0]);
  if (x0 == a[0]) {
    x1 = floor(a[1]);
    if (x1 == a[1]) {
      x2 = floor(a[2]);
      if (x2 == a[2])
        x3 = floor(a[3]);
    }
    qd_renorm4(&x0, &x1, &x2, &x3);
    b[0] = x0;
    b[1] = x1;
    b[2] = x2;
    b[3] = x3;
  } else
    b[0] = x0;
  b[1] = x1;
  b[2] = x2;
  b[3] = x3;
}
```