user: What would the C source look like for the assembly code provided here:

```asm
<par_color>:
  endbr64
  push   %r12
  push   %rbp
  push   %rbx
  mov    %r8,%rbx
  cmp    $0x1,%edi
  je     L72
  movl   $0x1,(%r8)
  movl   $0x1,(%rdx)
L130:
  pop    %rbx
  pop    %rbp
  pop    %r12
  ret
  nopw   0x0(%rax,%rax,1)
L72:
  mov    (%rdx),%eax
  mov    %rsi,%r12
  mov    %rcx,%rbp
  test   %eax,%eax
  je     L80
  movl   $0x1,(%r8)
  nopl   0x0(%rax,%rax,1)
L80:
  movl   $0x1,(%rdx)
  mov    (%r12),%rdi
  lea    D62(%rip),%rsi
  call   <strcmp@plt>
  test   %rax,%rax
  jne    L108
  movl   $0x0,0x0(%rbp)
  pop    %rbx
  pop    %rbp
  pop    %r12
  ret
  nopw   0x0(%rax,%rax,1)
L108:
  mov    (%r12),%rdi
  lea    D4(%rip),%rsi
  call   <strcmp@plt>
  test   %rax,%rax
  jne    L31
  movl   $0x1,0x0(%rbp)
  jmp    L130
  xchg   %ax,%ax
L31:
  mov    (%r12),%rdi
  lea    D68(%rip),%rsi
  call   <strcmp@plt>
  test   %rax,%rax
  jne    L129
  movl   $0x2,0x0(%rbp)
  jmp    L130
L129:
  mov    (%r12),%rdi
  lea    D25(%rip),%rsi
  call   <strcmp@plt>
  test   %rax,%rax
  jne    L164
  movl   $0x3,0x0(%rbp)
  jmp    L130
L164:
  mov    (%r12),%rdi
  lea    D14(%rip),%rsi
  call   <strcmp@plt>
  test   %rax,%rax
  jne    L37
  movl   $0x4,0x0(%rbp)
  jmp    L130
L37:
  mov    (%r12),%rdi
  lea    D42(%rip),%rsi
  call   <strcmp@plt>
  test   %rax,%rax
  jne    L139
  movl   $0x5,0x0(%rbp)
  jmp    L130
L139:
  mov    (%r12),%rdi
  lea    D31(%rip),%rsi
  call   <strcmp@plt>
  test   %rax,%rax
  jne    L197
  movl   $0x6,0x0(%rbp)
  jmp    L130
L197:
  mov    (%r12),%rdi
  lea    D8(%rip),%rsi
  call   <strcmp@plt>
  test   %rax,%rax
  jne    L69
  movl   $0x7,0x0(%rbp)
  jmp    L130
L69:
  mov    (%r12),%rdi
  lea    D84(%rip),%rsi
  call   <strcmp@plt>
  test   %rax,%rax
  jne    L59
  movl   $0x9,0x0(%rbp)
  jmp    L130
L59:
  mov    (%r12),%rax
  movsbl (%rax),%edi
  call   <isdigit@plt>
  test   %rax,%rax
  jne    L102
  movl   $0x1,(%rbx)
L76:
  mov    0x0(%rbp),%eax
  cmp    $0x9,%eax
  ja     L13
  cmp    $0x8,%eax
  jne    L130
L13:
  movl   $0x1,(%rbx)
  pop    %rbx
  pop    %rbp
  pop    %r12
  ret
L102:
  mov    (%r12),%rdi
  call   <atoi@plt>
  mov    %eax,0x0(%rbp)
  jmp    L76
```

tool_calls: name: unpack_data
arguments: data_label: D62
datatype: string
name: unpack_data
arguments: data_label: D4
datatype: string
name: unpack_data
arguments: data_label: D68
datatype: string
name: unpack_data
arguments: data_label: D25
datatype: string
name: unpack_data
arguments: data_label: D14
datatype: string
name: unpack_data
arguments: data_label: D42
datatype: string
name: unpack_data
arguments: data_label: D31
datatype: string
name: unpack_data
arguments: data_label: D8
datatype: string
name: unpack_data
arguments: data_label: D84
datatype: string

tool: D62: black

tool: D4: red

tool: D68: green

tool: D25: yellow

tool: D14: blue

tool: D42: magenta

tool: D31: cyan

tool: D8: white

tool: D84: 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;
  }
}
```