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

```asm
<HSL2RGB>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x50,%rsp
  movss  %xmm0,-0x24(%rbp)
  movss  %xmm1,-0x28(%rbp)
  movss  %xmm2,-0x2c(%rbp)
  mov    %rdi,-0x38(%rbp)
  mov    %rsi,-0x40(%rbp)
  mov    %rdx,-0x48(%rbp)
  mov    %fs:0x28,%rax
  mov    %rax,-0x8(%rbp)
  xor    %eax,%eax
  pxor   %xmm0,%xmm0
  ucomiss -0x28(%rbp),%xmm0
  jp     L121
  pxor   %xmm0,%xmm0
  ucomiss -0x28(%rbp),%xmm0
  jne    L121
  cmpq   $0x0,-0x38(%rbp)
  je     L77
  mov    -0x38(%rbp),%rax
  movss  -0x2c(%rbp),%xmm0
  movss  %xmm0,(%rax)
L77:
  cmpq   $0x0,-0x40(%rbp)
  je     L119
  mov    -0x40(%rbp),%rax
  movss  -0x2c(%rbp),%xmm0
  movss  %xmm0,(%rax)
L119:
  cmpq   $0x0,-0x48(%rbp)
  je     L14
  mov    -0x48(%rbp),%rax
  movss  -0x2c(%rbp),%xmm0
  movss  %xmm0,(%rax)
  jmp    L188
L121:
  movss  D91(%rip),%xmm0
  comiss -0x2c(%rbp),%xmm0
  jbe    L123
  pxor   %xmm1,%xmm1
  cvtss2sd -0x2c(%rbp),%xmm1
  pxor   %xmm2,%xmm2
  cvtss2sd -0x28(%rbp),%xmm2
  movsd  D99(%rip),%xmm0
  addsd  %xmm2,%xmm0
  mulsd  %xmm1,%xmm0
  cvtsd2ss %xmm0,%xmm0
  movss  %xmm0,-0x20(%rbp)
  jmp    L150
L123:
  movss  -0x2c(%rbp),%xmm0
  addss  -0x28(%rbp),%xmm0
  movss  -0x2c(%rbp),%xmm1
  mulss  -0x28(%rbp),%xmm1
  subss  %xmm1,%xmm0
  movss  %xmm0,-0x20(%rbp)
L150:
  pxor   %xmm0,%xmm0
  cvtss2sd -0x2c(%rbp),%xmm0
  addsd  %xmm0,%xmm0
  pxor   %xmm1,%xmm1
  cvtss2sd -0x20(%rbp),%xmm1
  subsd  %xmm1,%xmm0
  cvtsd2ss %xmm0,%xmm0
  movss  %xmm0,-0x18(%rbp)
  pxor   %xmm1,%xmm1
  cvtss2sd -0x24(%rbp),%xmm1
  movsd  D120(%rip),%xmm0
  addsd  %xmm1,%xmm0
  cvtsd2ss %xmm0,%xmm0
  movss  %xmm0,-0x14(%rbp)
  movss  -0x24(%rbp),%xmm0
  movss  %xmm0,-0x10(%rbp)
  pxor   %xmm0,%xmm0
  cvtss2sd -0x24(%rbp),%xmm0
  movsd  D120(%rip),%xmm1
  subsd  %xmm1,%xmm0
  cvtsd2ss %xmm0,%xmm0
  movss  %xmm0,-0xc(%rbp)
  movl   $0x0,-0x1c(%rbp)
  jmp    L204
L214:
  mov    -0x1c(%rbp),%eax
  cltq
  movss  -0x14(%rbp,%rax,4),%xmm1
  pxor   %xmm0,%xmm0
  comiss %xmm1,%xmm0
  jbe    L23
  mov    -0x1c(%rbp),%eax
  cltq
  movss  -0x14(%rbp,%rax,4),%xmm1
  movss  D92(%rip),%xmm0
  addss  %xmm1,%xmm0
  mov    -0x1c(%rbp),%eax
  cltq
  movss  %xmm0,-0x14(%rbp,%rax,4)
L23:
  mov    -0x1c(%rbp),%eax
  cltq
  movss  -0x14(%rbp,%rax,4),%xmm0
  movss  D92(%rip),%xmm1
  comiss %xmm1,%xmm0
  jbe    L190
  mov    -0x1c(%rbp),%eax
  cltq
  movss  -0x14(%rbp,%rax,4),%xmm0
  movss  D92(%rip),%xmm1
  subss  %xmm1,%xmm0
  mov    -0x1c(%rbp),%eax
  cltq
  movss  %xmm0,-0x14(%rbp,%rax,4)
L190:
  mov    -0x1c(%rbp),%eax
  cltq
  movss  -0x14(%rbp,%rax,4),%xmm0
  pxor   %xmm1,%xmm1
  cvtss2sd %xmm0,%xmm1
  movsd  D87(%rip),%xmm0
  mulsd  %xmm0,%xmm1
  movsd  D99(%rip),%xmm0
  comisd %xmm1,%xmm0
  jbe    L113
  pxor   %xmm1,%xmm1
  cvtss2sd -0x18(%rbp),%xmm1
  movss  -0x20(%rbp),%xmm0
  subss  -0x18(%rbp),%xmm0
  pxor   %xmm2,%xmm2
  cvtss2sd %xmm0,%xmm2
  movsd  D87(%rip),%xmm0
  mulsd  %xmm0,%xmm2
  mov    -0x1c(%rbp),%eax
  cltq
  movss  -0x14(%rbp,%rax,4),%xmm0
  cvtss2sd %xmm0,%xmm0
  mulsd  %xmm2,%xmm0
  addsd  %xmm1,%xmm0
  cvtsd2ss %xmm0,%xmm0
  mov    -0x1c(%rbp),%eax
  cltq
  movss  %xmm0,-0x14(%rbp,%rax,4)
  jmp    L191
L113:
  mov    -0x1c(%rbp),%eax
  cltq
  movss  -0x14(%rbp,%rax,4),%xmm0
  cvtss2sd %xmm0,%xmm0
  movapd %xmm0,%xmm1
  addsd  %xmm0,%xmm1
  movsd  D99(%rip),%xmm0
  comisd %xmm1,%xmm0
  jbe    L51
  mov    -0x1c(%rbp),%eax
  cltq
  movss  -0x20(%rbp),%xmm0
  movss  %xmm0,-0x14(%rbp,%rax,4)
  jmp    L191
L51:
  mov    -0x1c(%rbp),%eax
  cltq
  movss  -0x14(%rbp,%rax,4),%xmm0
  pxor   %xmm1,%xmm1
  cvtss2sd %xmm0,%xmm1
  movsd  D4(%rip),%xmm0
  mulsd  %xmm0,%xmm1
  movsd  D128(%rip),%xmm0
  comisd %xmm1,%xmm0
  jbe    L162
  pxor   %xmm1,%xmm1
  cvtss2sd -0x18(%rbp),%xmm1
  movss  -0x20(%rbp),%xmm0
  subss  -0x18(%rbp),%xmm0
  pxor   %xmm2,%xmm2
  cvtss2sd %xmm0,%xmm2
  mov    -0x1c(%rbp),%eax
  cltq
  movss  -0x14(%rbp,%rax,4),%xmm0
  pxor   %xmm3,%xmm3
  cvtss2sd %xmm0,%xmm3
  movsd  D61(%rip),%xmm0
  subsd  %xmm3,%xmm0
  mulsd  %xmm0,%xmm2
  movsd  D87(%rip),%xmm0
  mulsd  %xmm2,%xmm0
  addsd  %xmm1,%xmm0
  cvtsd2ss %xmm0,%xmm0
  mov    -0x1c(%rbp),%eax
  cltq
  movss  %xmm0,-0x14(%rbp,%rax,4)
  jmp    L191
L162:
  mov    -0x1c(%rbp),%eax
  cltq
  movss  -0x18(%rbp),%xmm0
  movss  %xmm0,-0x14(%rbp,%rax,4)
L191:
  addl   $0x1,-0x1c(%rbp)
L204:
  cmpl   $0x2,-0x1c(%rbp)
  jle    L214
  cmpq   $0x0,-0x38(%rbp)
  je     L99
  movss  -0x14(%rbp),%xmm0
  mov    -0x38(%rbp),%rax
  movss  %xmm0,(%rax)
L99:
  cmpq   $0x0,-0x40(%rbp)
  je     L105
  movss  -0x10(%rbp),%xmm0
  mov    -0x40(%rbp),%rax
  movss  %xmm0,(%rax)
L105:
  cmpq   $0x0,-0x48(%rbp)
  je     L188
  movss  -0xc(%rbp),%xmm0
  mov    -0x48(%rbp),%rax
  movss  %xmm0,(%rax)
  jmp    L188
L14:
  nop
L188:
  mov    -0x8(%rbp),%rax
  sub    %fs:0x28,%rax
  je     L117
  call   <__stack_chk_fail@plt>
L117:
  leave
  ret
```

tool_calls: name: disassemble_data
arguments: tag: D91
type: f32
name: disassemble_data
arguments: tag: D99
type: f64
name: disassemble_data
arguments: tag: D120
type: byte[8]
name: disassemble_data
arguments: tag: D92
type: byte[4]
name: disassemble_data
arguments: tag: D87
type: f64
name: disassemble_data
arguments: tag: D4
type: f64
name: disassemble_data
arguments: tag: D128
type: f64
name: disassemble_data
arguments: tag: D61
type: byte[8]

tool: D91: 0.5

tool: D99: 1

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

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

tool: D87: 6

tool: D4: 3

tool: D128: 2

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