user: Demonstrate the C code that generates the assembly output below:

```asm
<par_color>:
  endbr64
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x8,%rsp
  mov    %r8,%rbp
  cmp    $0x1,%edi
  je     L101
  movl   $0x1,(%r8)
  movl   $0x1,(%rdx)
L66:
  add    $0x8,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  ret
L101:
  mov    %edi,%ebx
  mov    %rsi,%r12
  mov    %rcx,%r13
  cmpl   $0x0,(%rdx)
  jne    L154
  movl   $0x1,(%rdx)
L83:
  lea    D32(%rip),%rsi
  mov    (%r12),%rdi
  call   <strcmp@plt>
  test   %rax,%rax
  jne    L160
  mov    $0x0,%ebx
L8:
  mov    %ebx,0x0(%r13)
  jmp    L66
L160:
  lea    D72(%rip),%rsi
  mov    (%r12),%rdi
  call   <strcmp@plt>
  test   %rax,%rax
  je     L8
  lea    D49(%rip),%rsi
  mov    (%r12),%rdi
  call   <strcmp@plt>
  mov    $0x2,%ebx
  test   %rax,%rax
  je     L8
  lea    D15(%rip),%rsi
  mov    (%r12),%rdi
  call   <strcmp@plt>
  mov    $0x3,%ebx
  test   %rax,%rax
  je     L8
  lea    D85(%rip),%rsi
  mov    (%r12),%rdi
  call   <strcmp@plt>
  mov    $0x4,%ebx
  test   %rax,%rax
  je     L8
  lea    D26(%rip),%rsi
  mov    (%r12),%rdi
  call   <strcmp@plt>
  mov    $0x5,%ebx
  test   %rax,%rax
  je     L8
  lea    D83(%rip),%rsi
  mov    (%r12),%rdi
  call   <strcmp@plt>
  mov    $0x6,%ebx
  test   %rax,%rax
  je     L8
  lea    D37(%rip),%rsi
  mov    (%r12),%rdi
  call   <strcmp@plt>
  mov    $0x7,%ebx
  test   %rax,%rax
  je     L8
  lea    D6(%rip),%rsi
  mov    (%r12),%rdi
  call   <strcmp@plt>
  mov    $0x9,%ebx
  test   %rax,%rax
  je     L8
  mov    (%r12),%rax
  movsbl (%rax),%edi
  call   <isdigit@plt>
  test   %rax,%rax
  jne    L169
  movl   $0x1,0x0(%rbp)
L54:
  mov    0x0(%r13),%eax
  cmp    $0x9,%eax
  ja     L11
  cmp    $0x8,%eax
  jne    L66
L11:
  movl   $0x1,0x0(%rbp)
  jmp    L66
L169:
  mov    (%r12),%rdi
  call   <atoi@plt>
  mov    %eax,0x0(%r13)
  jmp    L54
L154:
  movl   $0x1,(%r8)
  movl   $0x1,(%rdx)
  jmp    L83
```

tool_calls: name: parse_data
arguments: tag: D32
datatype: string
name: parse_data
arguments: tag: D72
datatype: string
name: parse_data
arguments: tag: D49
datatype: string
name: parse_data
arguments: tag: D15
datatype: string
name: parse_data
arguments: tag: D85
datatype: string
name: parse_data
arguments: tag: D26
datatype: string
name: parse_data
arguments: tag: D83
datatype: string
name: parse_data
arguments: tag: D37
datatype: string
name: parse_data
arguments: tag: D6
datatype: string

tool: D32: black

tool: D72: red

tool: D49: green

tool: D15: yellow

tool: D85: blue

tool: D26: magenta

tool: D83: cyan

tool: D37: white

tool: D6: default

assistant: ```c
void par_color(int argc, char **argv, int *option, int *opt_color, int *bad_arg) {
  if (argc != 1 || *option)
    *bad_arg = 1;
  *option = 1;
  if (argc == 1) {
    if (strcmp(argv[0], "black") == 0)
      *opt_color = 0;
    else if (strcmp(argv[0], "red") == 0)
      *opt_color = 1;
    else if (strcmp(argv[0], "green") == 0)
      *opt_color = 2;
    else if (strcmp(argv[0], "yellow") == 0)
      *opt_color = 3;
    else if (strcmp(argv[0], "blue") == 0)
      *opt_color = 4;
    else if (strcmp(argv[0], "magenta") == 0)
      *opt_color = 5;
    else if (strcmp(argv[0], "cyan") == 0)
      *opt_color = 6;
    else if (strcmp(argv[0], "white") == 0)
      *opt_color = 7;
    else if (strcmp(argv[0], "default") == 0)
      *opt_color = 9;
    else if (isdigit(argv[0][0]))
      *opt_color = atoi(argv[0]);
    else
      *bad_arg = 1;
    if (*opt_color < 0 || *opt_color > 9 || *opt_color == 8)
      *bad_arg = 1;
  }
}
```