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

```asm
<HSL2RGB>:
  endbr64
  sub    $0x28,%rsp
  mov    %rdx,%rcx
  mov    %fs:0x28,%rax
  mov    %rax,0x18(%rsp)
  xor    %eax,%eax
  ucomiss D1(%rip),%xmm1
  jp     L46
  je     L181
L46:
  movss  D81(%rip),%xmm3
  comiss %xmm2,%xmm3
  jbe    L167
  cvtss2sd %xmm1,%xmm1
  addsd  D1(%rip),%xmm1
  pxor   %xmm3,%xmm3
  cvtss2sd %xmm2,%xmm3
  mulsd  %xmm3,%xmm1
  pxor   %xmm3,%xmm3
  cvtsd2ss %xmm1,%xmm3
L99:
  cvtss2sd %xmm2,%xmm2
  addsd  %xmm2,%xmm2
  pxor   %xmm1,%xmm1
  cvtss2sd %xmm3,%xmm1
  subsd  %xmm1,%xmm2
  pxor   %xmm1,%xmm1
  cvtsd2ss %xmm2,%xmm1
  pxor   %xmm2,%xmm2
  cvtss2sd %xmm0,%xmm2
  movsd  D59(%rip),%xmm5
  movapd %xmm2,%xmm4
  addsd  %xmm5,%xmm4
  cvtsd2ss %xmm4,%xmm4
  movss  %xmm4,0xc(%rsp)
  movss  %xmm0,0x10(%rsp)
  subsd  %xmm5,%xmm2
  cvtsd2ss %xmm2,%xmm2
  movss  %xmm2,0x14(%rsp)
  lea    0xc(%rsp),%rax
  lea    0x18(%rsp),%r8
  pxor   %xmm6,%xmm6
  movss  D61(%rip),%xmm9
  movaps %xmm9,%xmm5
  movaps %xmm9,%xmm8
  movsd  D58(%rip),%xmm4
  movsd  D1(%rip),%xmm2
  movapd %xmm2,%xmm7
  movsd  D65(%rip),%xmm10
  jmp    L204
L181:
  test   %rdi,%rdi
  je     L73
  movss  %xmm2,(%rdi)
L73:
  test   %rsi,%rsi
  je     L91
  movss  %xmm2,(%rsi)
L91:
  test   %rcx,%rcx
  je     L40
  movss  %xmm2,(%rcx)
  jmp    L40
L167:
  movaps %xmm1,%xmm3
  addss  %xmm2,%xmm3
  mulss  %xmm2,%xmm1
  subss  %xmm1,%xmm3
  jmp    L99
L3:
  addss  %xmm9,%xmm0
  movss  %xmm0,(%rax)
  jmp    L31
L59:
  movaps %xmm3,%xmm0
  subss  %xmm1,%xmm0
  cvtss2sd %xmm0,%xmm0
  mulsd  D58(%rip),%xmm0
  mulsd  %xmm11,%xmm0
  pxor   %xmm11,%xmm11
  cvtss2sd %xmm1,%xmm11
  addsd  %xmm11,%xmm0
  cvtsd2ss %xmm0,%xmm0
L36:
  movss  %xmm0,(%rdx)
  add    $0x4,%rax
  cmp    %r8,%rax
  je     L184
L204:
  mov    %rax,%rdx
  movss  (%rax),%xmm0
  comiss %xmm0,%xmm6
  ja     L3
L31:
  movss  (%rdx),%xmm0
  comiss %xmm5,%xmm0
  jbe    L165
  subss  %xmm8,%xmm0
  movss  %xmm0,(%rdx)
L165:
  pxor   %xmm11,%xmm11
  cvtss2sd (%rdx),%xmm11
  movapd %xmm11,%xmm0
  mulsd  %xmm4,%xmm0
  comisd %xmm0,%xmm2
  ja     L59
  movaps %xmm3,%xmm0
  movapd %xmm11,%xmm12
  addsd  %xmm11,%xmm12
  comisd %xmm12,%xmm7
  ja     L36
  movapd %xmm11,%xmm0
  mulsd  D87(%rip),%xmm0
  comisd %xmm0,%xmm10
  jbe    L84
  movaps %xmm3,%xmm0
  subss  %xmm1,%xmm0
  cvtss2sd %xmm0,%xmm0
  movsd  D20(%rip),%xmm12
  subsd  %xmm11,%xmm12
  mulsd  %xmm12,%xmm0
  mulsd  D58(%rip),%xmm0
  pxor   %xmm11,%xmm11
  cvtss2sd %xmm1,%xmm11
  addsd  %xmm11,%xmm0
  cvtsd2ss %xmm0,%xmm0
  jmp    L36
L84:
  movaps %xmm1,%xmm0
  jmp    L36
L184:
  test   %rdi,%rdi
  je     L203
  movss  0xc(%rsp),%xmm0
  movss  %xmm0,(%rdi)
L203:
  test   %rsi,%rsi
  je     L134
  movss  0x10(%rsp),%xmm0
  movss  %xmm0,(%rsi)
L134:
  test   %rcx,%rcx
  je     L40
  movss  0x14(%rsp),%xmm0
  movss  %xmm0,(%rcx)
L40:
  mov    0x18(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L26
  add    $0x28,%rsp
  ret
L26:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: read_data
arguments: data_tag: D1
type_infered: f64
name: read_data
arguments: data_tag: D81
type_infered: f32
name: read_data
arguments: data_tag: D59
type_infered: byte[8]
name: read_data
arguments: data_tag: D61
type_infered: byte[4]
name: read_data
arguments: data_tag: D58
type_infered: f64
name: read_data
arguments: data_tag: D65
type_infered: f64
name: read_data
arguments: data_tag: D87
type_infered: f64
name: read_data
arguments: data_tag: D20
type_infered: byte[8]

tool: D1: 1

tool: D81: 0.5

tool: {"D59": [0x55,0x55,0x55,0x55,0x55,0x55,0xd5,0x3f]}

tool: {"D61": [0x00,0x00,0x80,0x3f]}

tool: D58: 6

tool: D65: 2

tool: D87: 3

tool: {"D20": [0x55,0x55,0x55,0x55,0x55,0x55,0xe5,0x3f]}

assistant: ```c
void HSL2RGB(float h, float s, float l, float *outR, float *outG, float *outB) {
  float temp1, temp2;
  float temp[3];
  int i;
  if (s == 0.0) {
    if (outR)
      *outR = l;
    if (outG)
      *outG = l;
    if (outB)
      *outB = l;
    return;
  }
  if (l < 0.5)
    temp2 = l * (1.0 + s);
  else
    temp2 = l + s - l * s;
  temp1 = 2.0 * l - temp2;
  temp[0] = h + 1.0 / 3.0;
  temp[1] = h;
  temp[2] = h - 1.0 / 3.0;
  for (i = 0; i < 3; ++i) {
    if (temp[i] < 0.0)
      temp[i] += 1.0;
    if (temp[i] > 1.0)
      temp[i] -= 1.0;
    if (6.0 * temp[i] < 1.0)
      temp[i] = temp1 + (temp2 - temp1) * 6.0 * temp[i];
    else {
      if (2.0 * temp[i] < 1.0)
        temp[i] = temp2;
      else {
        if (3.0 * temp[i] < 2.0)
          temp[i] = temp1 + (temp2 - temp1) * ((2.0 / 3.0) - temp[i]) * 6.0;
        else
          temp[i] = temp1;
      }
    }
  }
  if (outR)
    *outR = temp[0];
  if (outG)
    *outG = temp[1];
  if (outB)
    *outB = temp[2];
}
```