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

```asm
<rainbowRGB>:
  endbr64
  push   %r12
  movapd %xmm0,%xmm1
  mov    %rdx,%r12
  push   %rbp
  mov    %rdi,%rbp
  push   %rbx
  mov    %rsi,%rbx
  sub    $0x10,%rsp
  comisd D4(%rip),%xmm0
  jbe    L13
  lea    D8(%rip),%rdi
  movsd  %xmm0,0x8(%rsp)
  call   <error2@plt>
  movsd  0x8(%rsp),%xmm1
L13:
  movsd  D72(%rip),%xmm0
  movsd  D109(%rip),%xmm2
  movsd  %xmm1,0x8(%rsp)
  mulsd  %xmm1,%xmm0
  mulsd  %xmm1,%xmm2
  mulsd  %xmm1,%xmm0
  mulsd  %xmm1,%xmm2
  mulsd  %xmm1,%xmm0
  mulsd  %xmm1,%xmm2
  mulsd  %xmm1,%xmm0
  addsd  %xmm2,%xmm0
  movsd  D143(%rip),%xmm2
  mulsd  %xmm1,%xmm2
  mulsd  %xmm1,%xmm2
  subsd  %xmm2,%xmm0
  movapd %xmm1,%xmm2
  mulsd  D0(%rip),%xmm2
  addsd  %xmm2,%xmm0
  addsd  D20(%rip),%xmm0
  call   <fabs@plt>
  movsd  0x8(%rsp),%xmm1
  movsd  D89(%rip),%xmm0
  movsd  D79(%rip),%xmm2
  mov    %eax,0x0(%rbp)
  mulsd  %xmm1,%xmm0
  mulsd  %xmm1,%xmm2
  mulsd  %xmm1,%xmm0
  mulsd  %xmm1,%xmm2
  mulsd  %xmm1,%xmm0
  addsd  %xmm2,%xmm0
  movsd  D58(%rip),%xmm2
  mulsd  %xmm1,%xmm2
  addsd  %xmm2,%xmm0
  addsd  D127(%rip),%xmm0
  call   <fabs@plt>
  movsd  0x8(%rsp),%xmm1
  movsd  D10(%rip),%xmm0
  movsd  D45(%rip),%xmm2
  mov    %eax,(%rbx)
  mulsd  %xmm1,%xmm0
  mulsd  %xmm1,%xmm2
  mulsd  %xmm1,%xmm0
  mulsd  %xmm1,%xmm2
  mulsd  %xmm1,%xmm0
  mulsd  D145(%rip),%xmm1
  subsd  %xmm2,%xmm0
  addsd  %xmm1,%xmm0
  addsd  D77(%rip),%xmm0
  call   <fabs@plt>
  mov    %eax,(%r12)
  cmpl   $0xff,0x0(%rbp)
  jle    L6
  movl   $0xff,0x0(%rbp)
L6:
  cmpl   $0xff,(%rbx)
  jle    L24
  movl   $0xff,(%rbx)
L24:
  mov    (%r12),%eax
  mov    $0xff,%edx
  cmp    %edx,%eax
  cmovg  %edx,%eax
  mov    %eax,(%r12)
  add    $0x10,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  ret
```

tool_calls: name: parse_data
arguments: label: D4
data_type: f64[2]
name: parse_data
arguments: label: D8
data_type: string
name: parse_data
arguments: label: D72
data_type: byte[8]
name: parse_data
arguments: label: D109
data_type: f64
name: parse_data
arguments: label: D143
data_type: f64
name: parse_data
arguments: label: D0
data_type: f64
name: parse_data
arguments: label: D20
data_type: f64
name: parse_data
arguments: label: D89
data_type: byte[8]
name: parse_data
arguments: label: D79
data_type: f64
name: parse_data
arguments: label: D58
data_type: f64
name: parse_data
arguments: label: D127
data_type: f64
name: parse_data
arguments: label: D10
data_type: f64
name: parse_data
arguments: label: D45
data_type: f64
name: parse_data
arguments: label: D145
data_type: f64
name: parse_data
arguments: label: D77
data_type: f64

tool: {"D4": [1.0,-5157.3]}

tool: D8: temperature rescaling needed.

tool: {"D72": [0xcd,0xcc,0xcc,0xcc,0x4c,0x25,0xb4,0xc0]}

tool: D109: 9681.4

tool: D143: 5491.9

tool: D0: 1137.7

tool: D20: 6.2168

tool: {"D89": [0x9a,0x99,0x99,0x99,0x99,0x75,0x92,0xc0]}

tool: D79: 964.8

tool: D58: 203.66

tool: D127: 1.2028

tool: D10: 92.463

tool: D45: 595.92

tool: D145: 481.11

tool: D77: 21.769

assistant: ```c
void rainbowRGB(double temperature, int *R, int *G, int *B) {
  double T = temperature, maxT = 1;
  if (T > maxT)
    error2("temperature rescaling needed.");
  *R = (int)fabs(-5157.3 * T * T * T * T + 9681.4 * T * T * T - 5491.9 * T * T + 1137.7 * T + 6.2168);
  *G = (int)fabs(-1181.4 * T * T * T + 964.8 * T * T + 203.66 * T + 1.2028);
  *B = (int)fabs(92.463 * T * T * T - 595.92 * T * T + 481.11 * T + 21.769);
  if (*R > 255)
    *R = 255;
  if (*G > 255)
    *G = 255;
  if (*B > 255)
    *B = 255;
}
```