user: Translate the below assembly code into C programming language:

```asm
<qd_floor>:
  endbr64
  push   %rbx
  mov    %rdi,%rax
  mov    %rsi,%rbx
  sub    $0x30,%rsp
  movsd  (%rdi),%xmm0
  movq   D43(%rip),%xmm4
  mov    %fs:0x28,%rdx
  mov    %rdx,0x28(%rsp)
  xor    %edx,%edx
  movsd  D15(%rip),%xmm5
  movq   $0x0,0x18(%rsp)
  movapd %xmm0,%xmm1
  movapd %xmm0,%xmm2
  movq   $0x0,0x20(%rsp)
  andpd  %xmm4,%xmm1
  ucomisd %xmm1,%xmm5
  jbe    L53
  cvttsd2si %xmm0,%rdx
  pxor   %xmm1,%xmm1
  movsd  D0(%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
L53:
  ucomisd %xmm2,%xmm0
  movsd  %xmm2,0x8(%rsp)
  jp     L27
  jne    L27
  movsd  0x8(%rax),%xmm1
  movapd %xmm4,%xmm3
  movapd %xmm1,%xmm2
  movapd %xmm1,%xmm0
  andpd  %xmm4,%xmm2
  ucomisd %xmm2,%xmm5
  ja     L68
  ucomisd %xmm0,%xmm1
  movsd  %xmm0,0x10(%rsp)
  jp     L105
L81:
  jne    L105
  movsd  0x10(%rax),%xmm0
  movapd %xmm4,%xmm3
  movapd %xmm0,%xmm1
  movapd %xmm0,%xmm2
  andpd  %xmm4,%xmm1
  ucomisd %xmm1,%xmm5
  ja     L135
L84:
  ucomisd %xmm2,%xmm0
  movsd  %xmm2,0x18(%rsp)
  jp     L105
  jne    L105
  movsd  0x18(%rax),%xmm1
  movapd %xmm4,%xmm0
  movapd %xmm1,%xmm2
  andpd  %xmm4,%xmm2
  ucomisd %xmm2,%xmm5
  jbe    L97
  cvttsd2si %xmm1,%rax
  pxor   %xmm2,%xmm2
  movsd  D0(%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
L97:
  movsd  %xmm1,0x20(%rsp)
L105:
  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  0x20(%rsp),%xmm1
  movsd  %xmm0,(%rbx)
  movapd 0x10(%rsp),%xmm0
L138:
  movups %xmm0,0x8(%rbx)
  movsd  %xmm1,0x18(%rbx)
  mov    0x28(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L77
  add    $0x30,%rsp
  pop    %rbx
  ret
L27:
  movsd  %xmm2,(%rbx)
  pxor   %xmm0,%xmm0
  pxor   %xmm1,%xmm1
  jmp    L138
  xchg   %ax,%ax
L68:
  cvttsd2si %xmm1,%rdx
  pxor   %xmm2,%xmm2
  movsd  D0(%rip),%xmm6
  andnpd %xmm1,%xmm3
  cvtsi2sd %rdx,%xmm2
  movapd %xmm2,%xmm0
  cmpnlesd %xmm1,%xmm0
  andpd  %xmm6,%xmm0
  subsd  %xmm0,%xmm2
  orpd   %xmm3,%xmm2
  movapd %xmm2,%xmm0
  ucomisd %xmm0,%xmm1
  movsd  %xmm0,0x10(%rsp)
  jnp    L81
  jmp    L105
  nopl   0x0(%rax,%rax,1)
L135:
  cvttsd2si %xmm0,%rdx
  pxor   %xmm1,%xmm1
  movsd  D0(%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    L84
L77:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: retrieve_data
arguments: data_label: D43
type_guessed: byte[8]
name: retrieve_data
arguments: data_label: D15
type_guessed: f32[2]
name: retrieve_data
arguments: data_label: D0
type_guessed: f32[2]

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

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

tool: {"D0": [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;
}
```