user: 这段汇编代码用C语言表示是什么样的?

```asm
<groj_palette_old>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x40,%rsp
  movsd  %xmm0,-0x28(%rbp)
  mov    %rdi,-0x30(%rbp)
  mov    %esi,%eax
  mov    %al,-0x34(%rbp)
  pxor   %xmm0,%xmm0
  comisd -0x28(%rbp),%xmm0
  ja     L36
  movsd  -0x28(%rbp),%xmm0
  movsd  D83(%rip),%xmm1
  comisd %xmm1,%xmm0
  jbe    L42
L36:
  cmpb   $0x0,-0x34(%rbp)
  je     L80
  mov    -0x30(%rbp),%rax
  movb   $0x0,(%rax)
  mov    -0x30(%rbp),%rax
  add    $0x1,%rax
  movb   $0x0,(%rax)
  mov    -0x30(%rbp),%rax
  add    $0x2,%rax
  movb   $0x0,(%rax)
  jmp    L31
L80:
  pxor   %xmm0,%xmm0
  comisd -0x28(%rbp),%xmm0
  jbe    L62
  pxor   %xmm0,%xmm0
  movsd  %xmm0,-0x28(%rbp)
  jmp    L42
L62:
  movsd  D83(%rip),%xmm0
  movsd  %xmm0,-0x28(%rbp)
L42:
  movsd  D26(%rip),%xmm0
  comisd -0x28(%rbp),%xmm0
  jbe    L59
  movsd  -0x28(%rbp),%xmm1
  movsd  D3(%rip),%xmm0
  mulsd  %xmm1,%xmm0
  movsd  %xmm0,-0x8(%rbp)
  mov    -0x30(%rbp),%rax
  movb   $0x0,(%rax)
  movsd  -0x8(%rbp),%xmm1
  movsd  D137(%rip),%xmm0
  mulsd  %xmm0,%xmm1
  movq   %xmm1,%rax
  movq   %rax,%xmm0
  call   <floor@plt>
  mov    %eax,%edx
  mov    -0x30(%rbp),%rax
  add    $0x1,%rax
  mov    %dl,(%rax)
  movsd  -0x8(%rbp),%xmm1
  movsd  D137(%rip),%xmm0
  mulsd  %xmm0,%xmm1
  movq   %xmm1,%rax
  movq   %rax,%xmm0
  call   <floor@plt>
  mov    %eax,%edx
  mov    -0x30(%rbp),%rax
  add    $0x2,%rax
  not    %edx
  mov    %dl,(%rax)
  jmp    L31
L59:
  movsd  D76(%rip),%xmm0
  comisd -0x28(%rbp),%xmm0
  jbe    L101
  movsd  -0x28(%rbp),%xmm0
  movsd  D26(%rip),%xmm2
  movapd %xmm0,%xmm1
  subsd  %xmm2,%xmm1
  movsd  D3(%rip),%xmm0
  mulsd  %xmm1,%xmm0
  movsd  %xmm0,-0x10(%rbp)
  movsd  -0x10(%rbp),%xmm1
  movsd  D137(%rip),%xmm0
  mulsd  %xmm0,%xmm1
  movq   %xmm1,%rax
  movq   %rax,%xmm0
  call   <floor@plt>
  mov    %eax,%edx
  mov    -0x30(%rbp),%rax
  mov    %dl,(%rax)
  mov    -0x30(%rbp),%rax
  add    $0x1,%rax
  movb   $0xff,(%rax)
  movsd  -0x10(%rbp),%xmm1
  movsd  D137(%rip),%xmm0
  mulsd  %xmm0,%xmm1
  movq   %xmm1,%rax
  movq   %rax,%xmm0
  call   <floor@plt>
  mov    %eax,%edx
  mov    -0x30(%rbp),%rax
  add    $0x2,%rax
  mov    %dl,(%rax)
  jmp    L31
L101:
  movsd  D104(%rip),%xmm0
  comisd -0x28(%rbp),%xmm0
  jbe    L91
  movsd  -0x28(%rbp),%xmm0
  movsd  D76(%rip),%xmm2
  movapd %xmm0,%xmm1
  subsd  %xmm2,%xmm1
  movsd  D3(%rip),%xmm0
  mulsd  %xmm1,%xmm0
  movsd  %xmm0,-0x18(%rbp)
  mov    -0x30(%rbp),%rax
  movb   $0xff,(%rax)
  mov    -0x30(%rbp),%rax
  add    $0x1,%rax
  movb   $0xff,(%rax)
  movsd  -0x18(%rbp),%xmm1
  movsd  D137(%rip),%xmm0
  mulsd  %xmm0,%xmm1
  movq   %xmm1,%rax
  movq   %rax,%xmm0
  call   <floor@plt>
  mov    %eax,%edx
  mov    -0x30(%rbp),%rax
  add    $0x2,%rax
  not    %edx
  mov    %dl,(%rax)
  jmp    L31
L91:
  movsd  -0x28(%rbp),%xmm0
  movsd  D104(%rip),%xmm2
  movapd %xmm0,%xmm1
  subsd  %xmm2,%xmm1
  movsd  D3(%rip),%xmm0
  mulsd  %xmm1,%xmm0
  movsd  %xmm0,-0x20(%rbp)
  mov    -0x30(%rbp),%rax
  movb   $0xff,(%rax)
  movsd  -0x20(%rbp),%xmm1
  movsd  D137(%rip),%xmm0
  mulsd  %xmm0,%xmm1
  movq   %xmm1,%rax
  movq   %rax,%xmm0
  call   <floor@plt>
  mov    %eax,%edx
  mov    -0x30(%rbp),%rax
  add    $0x1,%rax
  not    %edx
  mov    %dl,(%rax)
  mov    -0x30(%rbp),%rax
  add    $0x2,%rax
  movb   $0x0,(%rax)
L31:
  leave
  ret
```

tool_calls: name: extract_symbolic_data
arguments: tag: D83
type_guessed: f64
name: extract_symbolic_data
arguments: tag: D26
type_guessed: f64
name: extract_symbolic_data
arguments: tag: D3
type_guessed: f64
name: extract_symbolic_data
arguments: tag: D137
type_guessed: f64
name: extract_symbolic_data
arguments: tag: D76
type_guessed: f64
name: extract_symbolic_data
arguments: tag: D104
type_guessed: f64

tool: D83: 1

tool: D26: 0.25

tool: D3: 4

tool: D137: 255.99

tool: D76: 0.5

tool: D104: 0.75

assistant: ```c
void groj_palette_old(double nval, unsigned char *rgb, char diffout) {
  if (nval < 0.0 || nval > 1.0) {
    if (diffout) {
      rgb[0] = 0;
      rgb[1] = 0;
      rgb[2] = 0;
      return;
    } else {
      if (nval < 0.0)
        nval = 0.0;
      else
        nval = 1.0;
    }
  }
  if (nval < 0.25) {
    double v = 4 * nval;
    rgb[0] = 0;
    rgb[1] = floor(255.99 * v);
    rgb[2] = 255 - floor(255.99 * v);
    return;
  }
  if (nval < 0.5) {
    double v = 4 * (nval - 0.25);
    rgb[0] = floor(255.99 * v);
    rgb[1] = 255;
    rgb[2] = floor(255.99 * v);
    return;
  }
  if (nval < 0.75) {
    double v = 4 * (nval - 0.5);
    rgb[0] = 255;
    rgb[1] = 255;
    rgb[2] = 255 - floor(255.99 * v);
    return;
  }
  double v = 4 * (nval - 0.75);
  rgb[0] = 255;
  rgb[1] = 255 - floor(255.99 * v);
  rgb[2] = 0;
}
```