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

```asm
<hsl_to_rgb_int>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x50,%rsp
  mov    %rdi,-0x38(%rbp)
  mov    %rsi,-0x40(%rbp)
  mov    %rdx,-0x48(%rbp)
  mov    -0x38(%rbp),%rax
  mov    (%rax),%eax
  mov    %eax,%eax
  test   %rax,%rax
  js     L66
  pxor   %xmm0,%xmm0
  cvtsi2sd %rax,%xmm0
  jmp    L10
L66:
  mov    %rax,%rdx
  shr    %rdx
  and    $0x1,%eax
  or     %rax,%rdx
  pxor   %xmm0,%xmm0
  cvtsi2sd %rdx,%xmm0
  addsd  %xmm0,%xmm0
L10:
  movsd  %xmm0,-0x20(%rbp)
  mov    -0x40(%rbp),%rax
  mov    (%rax),%eax
  mov    %eax,%eax
  test   %rax,%rax
  js     L79
  pxor   %xmm0,%xmm0
  cvtsi2sd %rax,%xmm0
  jmp    L83
L79:
  mov    %rax,%rdx
  shr    %rdx
  and    $0x1,%eax
  or     %rax,%rdx
  pxor   %xmm0,%xmm0
  cvtsi2sd %rdx,%xmm0
  addsd  %xmm0,%xmm0
L83:
  movsd  %xmm0,-0x18(%rbp)
  mov    -0x48(%rbp),%rax
  mov    (%rax),%eax
  mov    %eax,%eax
  test   %rax,%rax
  js     L40
  pxor   %xmm0,%xmm0
  cvtsi2sd %rax,%xmm0
  jmp    L24
L40:
  mov    %rax,%rdx
  shr    %rdx
  and    $0x1,%eax
  or     %rax,%rdx
  pxor   %xmm0,%xmm0
  cvtsi2sd %rdx,%xmm0
  addsd  %xmm0,%xmm0
L24:
  movsd  %xmm0,-0x10(%rbp)
  pxor   %xmm0,%xmm0
  ucomisd -0x18(%rbp),%xmm0
  jp     L82
  pxor   %xmm0,%xmm0
  ucomisd -0x18(%rbp),%xmm0
  jne    L82
  movsd  -0x10(%rbp),%xmm0
  cvttsd2si %xmm0,%eax
  mov    %eax,%edx
  mov    -0x38(%rbp),%rax
  mov    %edx,(%rax)
  movsd  -0x10(%rbp),%xmm0
  cvttsd2si %xmm0,%eax
  mov    %eax,%edx
  mov    -0x48(%rbp),%rax
  mov    %edx,(%rax)
  movsd  -0x10(%rbp),%xmm0
  cvttsd2si %xmm0,%eax
  mov    %eax,%edx
  mov    -0x40(%rbp),%rax
  mov    %edx,(%rax)
  jmp    L74
L82:
  movsd  D57(%rip),%xmm0
  comisd -0x10(%rbp),%xmm0
  jbe    L68
  movsd  -0x18(%rbp),%xmm1
  movsd  D73(%rip),%xmm0
  addsd  %xmm1,%xmm0
  mulsd  -0x10(%rbp),%xmm0
  movsd  D22(%rip),%xmm1
  divsd  %xmm1,%xmm0
  movsd  %xmm0,-0x28(%rbp)
  jmp    L48
L68:
  movsd  -0x10(%rbp),%xmm0
  addsd  -0x18(%rbp),%xmm0
  movsd  -0x10(%rbp),%xmm1
  mulsd  -0x18(%rbp),%xmm1
  movsd  D73(%rip),%xmm2
  divsd  %xmm2,%xmm1
  subsd  %xmm1,%xmm0
  movsd  D73(%rip),%xmm1
  divsd  %xmm1,%xmm0
  movsd  %xmm0,-0x28(%rbp)
L48:
  movsd  -0x10(%rbp),%xmm0
  movsd  D8(%rip),%xmm1
  divsd  %xmm1,%xmm0
  subsd  -0x28(%rbp),%xmm0
  movsd  %xmm0,-0x8(%rbp)
  movsd  -0x20(%rbp),%xmm1
  movsd  D5(%rip),%xmm0
  addsd  %xmm0,%xmm1
  movsd  -0x28(%rbp),%xmm0
  mov    -0x8(%rbp),%rax
  movapd %xmm1,%xmm2
  movapd %xmm0,%xmm1
  movq   %rax,%xmm0
  call   <hsl_value_int@plt>
  mov    -0x38(%rbp),%rdx
  mov    %eax,(%rdx)
  movsd  -0x20(%rbp),%xmm1
  movsd  -0x28(%rbp),%xmm0
  mov    -0x8(%rbp),%rax
  movapd %xmm1,%xmm2
  movapd %xmm0,%xmm1
  movq   %rax,%xmm0
  call   <hsl_value_int@plt>
  mov    -0x40(%rbp),%rdx
  mov    %eax,(%rdx)
  movsd  -0x20(%rbp),%xmm0
  movsd  D5(%rip),%xmm1
  movapd %xmm0,%xmm2
  subsd  %xmm1,%xmm2
  movsd  -0x28(%rbp),%xmm0
  mov    -0x8(%rbp),%rax
  movapd %xmm0,%xmm1
  movq   %rax,%xmm0
  call   <hsl_value_int@plt>
  mov    -0x48(%rbp),%rdx
  mov    %eax,(%rdx)
L74:
  nop
  leave
  ret
```

tool_calls: name: read_data
arguments: data_label: D57
type_guessed: byte[8]
name: read_data
arguments: data_label: D73
type_guessed: f64
name: read_data
arguments: data_label: D22
type_guessed: f64
name: read_data
arguments: data_label: D8
type_guessed: f64
name: read_data
arguments: data_label: D5
type_guessed: byte[8]

tool: {"D57": [0x00,0x00,0x00,0x00,0x00,0x00,0x60,0x40]}

tool: D73: 255

tool: D22: 65025

tool: D8: 127.5

tool: {"D5": [0x00,0x00,0x00,0x00,0x00,0x40,0x55,0x40]}

assistant: ```c
void hsl_to_rgb_int(unsigned int *hue, unsigned int *saturation, unsigned int *lightness) {
  double h, s, l;
  h = *hue;
  s = *saturation;
  l = *lightness;
  if (s == 0) {
    *hue = (int)l;
    *lightness = (int)l;
    *saturation = (int)l;
  } else {
    double m1, m2;
    if (l < 128)
      m2 = (l * (255 + s)) / 65025.0;
    else
      m2 = (l + s - (l * s) / 255.0) / 255.0;
    m1 = (l / 127.5) - m2;
    *hue = hsl_value_int(m1, m2, h + 85);
    *saturation = hsl_value_int(m1, m2, h);
    *lightness = hsl_value_int(m1, m2, h - 85);
  }
}
```