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

```asm
<colour_to_pscolor>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x10,%rsp
  mov    %edi,-0x4(%rbp)
  mov    %esi,-0x8(%rbp)
  mov    %rdx,-0x10(%rbp)
  mov    -0x10(%rbp),%rax
  lea    D168(%rip),%rdx
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <strcpy@plt>
  mov    -0x4(%rbp),%eax
  and    $0x80,%eax
  test   %eax,%eax
  jne    L151
  cmpl   $0x6,-0x8(%rbp)
  ja     L54
  mov    -0x8(%rbp),%eax
  lea    0x0(,%rax,4),%rdx
  lea    D49(%rip),%rax
  mov    (%rdx,%rax,1),%eax
  cltq
  lea    D49(%rip),%rdx
  add    %rdx,%rax
  notrack jmp *%rax
  mov    -0x10(%rbp),%rax
  lea    D86(%rip),%rdx
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <strcat@plt>
  jmp    L122
  mov    -0x10(%rbp),%rax
  lea    D221(%rip),%rdx
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <strcat@plt>
  jmp    L122
  mov    -0x10(%rbp),%rax
  lea    D164(%rip),%rdx
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <strcat@plt>
  jmp    L122
  mov    -0x10(%rbp),%rax
  lea    D122(%rip),%rdx
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <strcat@plt>
  jmp    L122
  mov    -0x10(%rbp),%rax
  lea    D61(%rip),%rdx
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <strcat@plt>
  jmp    L122
  mov    -0x10(%rbp),%rax
  lea    D130(%rip),%rdx
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <strcat@plt>
  jmp    L122
  mov    -0x10(%rbp),%rax
  lea    D107(%rip),%rdx
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <strcat@plt>
  jmp    L122
L54:
  mov    -0x10(%rbp),%rax
  lea    D188(%rip),%rdx
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <strcat@plt>
  nop
L122:
  mov    -0x10(%rbp),%rax
  lea    D70(%rip),%rdx
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <strcat@plt>
  jmp    L171
L151:
  cmpl   $0x6,-0x8(%rbp)
  ja     L97
  mov    -0x8(%rbp),%eax
  lea    0x0(,%rax,4),%rdx
  lea    D226(%rip),%rax
  mov    (%rdx,%rax,1),%eax
  cltq
  lea    D226(%rip),%rdx
  add    %rdx,%rax
  notrack jmp *%rax
  mov    -0x10(%rbp),%rax
  lea    D143(%rip),%rdx
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <strcat@plt>
  jmp    L137
  mov    -0x10(%rbp),%rax
  lea    D140(%rip),%rdx
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <strcat@plt>
  jmp    L137
  mov    -0x10(%rbp),%rax
  lea    D62(%rip),%rdx
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <strcat@plt>
  jmp    L137
  mov    -0x10(%rbp),%rax
  lea    D229(%rip),%rdx
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <strcat@plt>
  jmp    L137
  mov    -0x10(%rbp),%rax
  lea    D50(%rip),%rdx
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <strcat@plt>
  jmp    L137
  mov    -0x10(%rbp),%rax
  lea    D169(%rip),%rdx
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <strcat@plt>
  jmp    L137
  mov    -0x10(%rbp),%rax
  lea    D215(%rip),%rdx
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <strcat@plt>
  jmp    L137
L97:
  mov    -0x10(%rbp),%rax
  lea    D201(%rip),%rdx
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <strcat@plt>
  nop
L137:
  mov    -0x10(%rbp),%rax
  lea    D176(%rip),%rdx
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <strcat@plt>
L171:
  nop
  leave
  ret
```

tool_calls: name: parse_data
arguments: data_label: D168
type_infered: string
name: parse_data
arguments: data_label: D86
type_infered: string
name: parse_data
arguments: data_label: D221
type_infered: string
name: parse_data
arguments: data_label: D164
type_infered: string
name: parse_data
arguments: data_label: D122
type_infered: string
name: parse_data
arguments: data_label: D61
type_infered: string
name: parse_data
arguments: data_label: D130
type_infered: string
name: parse_data
arguments: data_label: D107
type_infered: string
name: parse_data
arguments: data_label: D188
type_infered: string
name: parse_data
arguments: data_label: D70
type_infered: string
name: parse_data
arguments: data_label: D143
type_infered: string
name: parse_data
arguments: data_label: D140
type_infered: string
name: parse_data
arguments: data_label: D62
type_infered: string
name: parse_data
arguments: data_label: D229
type_infered: string
name: parse_data
arguments: data_label: D50
type_infered: string
name: parse_data
arguments: data_label: D169
type_infered: string
name: parse_data
arguments: data_label: D215
type_infered: string
name: parse_data
arguments: data_label: D201
type_infered: string
name: parse_data
arguments: data_label: D176
type_infered: string

tool: 

tool: D86: 1.00 1.00 1.00

tool: D221: 0.00 1.00 1.00

tool: D164: 0.00 0.00 1.00

tool: D122: 1.00 0.00 1.00

tool: D61: 1.00 0.00 0.00

tool: D130: 1.00 1.00 0.00

tool: D107: 0.00 1.00 0.00

tool: D188: 0.00 0.00 0.00

tool: D70:  setrgbcolor

tool: D143: 0.00 0.00 0.00 0.00

tool: D140: 1.00 0.00 0.00 0.00

tool: D62: 1.00 1.00 0.00 0.00

tool: D229: 0.00 1.00 0.00 0.00

tool: D50: 0.00 1.00 1.00 0.00

tool: D169: 0.00 0.00 1.00 0.00

tool: D215: 1.00 0.00 1.00 0.00

tool: D201: 0.00 0.00 0.00 1.00

tool: D176:  setcmykcolor

assistant: ```c
void colour_to_pscolor(int option, int colour, char *output) {
  strcpy(output, "");
  if ((option & 128) == 0) {
    switch (colour) {
    case 0:
      strcat(output, "1.00 1.00 1.00");
      break;
    case 1:
      strcat(output, "0.00 1.00 1.00");
      break;
    case 2:
      strcat(output, "0.00 0.00 1.00");
      break;
    case 3:
      strcat(output, "1.00 0.00 1.00");
      break;
    case 4:
      strcat(output, "1.00 0.00 0.00");
      break;
    case 5:
      strcat(output, "1.00 1.00 0.00");
      break;
    case 6:
      strcat(output, "0.00 1.00 0.00");
      break;
    default:
      strcat(output, "0.00 0.00 0.00");
      break;
    }
    strcat(output, " setrgbcolor");
  } else {
    switch (colour) {
    case 0:
      strcat(output, "0.00 0.00 0.00 0.00");
      break;
    case 1:
      strcat(output, "1.00 0.00 0.00 0.00");
      break;
    case 2:
      strcat(output, "1.00 1.00 0.00 0.00");
      break;
    case 3:
      strcat(output, "0.00 1.00 0.00 0.00");
      break;
    case 4:
      strcat(output, "0.00 1.00 1.00 0.00");
      break;
    case 5:
      strcat(output, "0.00 0.00 1.00 0.00");
      break;
    case 6:
      strcat(output, "1.00 0.00 1.00 0.00");
      break;
    default:
      strcat(output, "0.00 0.00 0.00 1.00");
      break;
    }
    strcat(output, " setcmykcolor");
  }
}
```