user: Please show me the C implementation that matches the assembly code listed below:

```asm
<Qt_setColorMode>:
  endbr64
  push   %r14
  push   %r13
  xor    %r13d,%r13d
  push   %r12
  mov    %rdi,%r12
  push   %rbp
  mov    %rsi,%rbp
  lea    D144(%rip),%rsi
  sub    $0xb8,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0xa8(%rsp)
  xor    %eax,%eax
  call   <strstr@plt>
  test   %rax,%rax
  je     L43
L109:
  mov    0xa8(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L53
  add    $0xb8,%rsp
  mov    %r13d,%eax
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  ret
  nopl   0x0(%rax,%rax,1)
L43:
  lea    D81(%rip),%rsi
  mov    %rbp,%rdi
  call   <strcmp@plt>
  test   %eax,%eax
  je     L52
  lea    D12(%rip),%rsi
  mov    %rbp,%rdi
  call   <strcmp@plt>
  test   %eax,%eax
  je     L25
  lea    D75(%rip),%rsi
  mov    %rbp,%rdi
  call   <strcmp@plt>
  test   %eax,%eax
  jne    L109
L52:
  mov    %rsp,%r13
  mov    %r12,%rdx
  lea    D101(%rip),%rsi
  xor    %eax,%eax
  mov    %r13,%rdi
  call   <sprintf@plt>
  mov    %r13,%rdx
  xor    %r13d,%r13d
  lea    D110(%rip),%rsi
  lea    D90(%rip),%rdi
  call   <Qt_handleString@plt>
  jmp    L109
  xchg   %ax,%ax
L25:
  lea    0x50(%rsp),%r13
  lea    D147(%rip),%rsi
  mov    %r13,%rdi
  call   <strcpy@plt>
  lea    D114(%rip),%rsi
  mov    %r12,%rdi
  call   <strcmp@plt>
  test   %eax,%eax
  je     L2
L84:
  lea    D22(%rip),%rsi
  mov    %r12,%rdi
  call   <strcmp@plt>
  test   %eax,%eax
  je     L28
L90:
  mov    %rsp,%r14
  mov    %r13,%rcx
  mov    %r12,%rdx
  xor    %eax,%eax
  lea    D116(%rip),%rsi
  mov    %r14,%rdi
  mov    $0x1,%r13d
  call   <sprintf@plt>
  mov    %r14,%rdx
  lea    D110(%rip),%rsi
  lea    D90(%rip),%rdi
  call   <Qt_handleString@plt>
  jmp    L109
  nopl   (%rax)
L28:
  lea    D118(%rip),%rsi
  mov    %r13,%rdi
  call   <strcpy@plt>
  jmp    L90
  nopl   0x0(%rax)
L2:
  lea    D118(%rip),%rsi
  mov    %r13,%rdi
  call   <strcpy@plt>
  jmp    L84
L53:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: extract_symbolic_data
arguments: label: D144
type_guessed: string
name: extract_symbolic_data
arguments: label: D81
type_guessed: string
name: extract_symbolic_data
arguments: label: D12
type_guessed: string
name: extract_symbolic_data
arguments: label: D75
type_guessed: string
name: extract_symbolic_data
arguments: label: D101
type_guessed: string
name: extract_symbolic_data
arguments: label: D110
type_guessed: string
name: extract_symbolic_data
arguments: label: D90
type_guessed: string
name: extract_symbolic_data
arguments: label: D147
type_guessed: string
name: extract_symbolic_data
arguments: label: D114
type_guessed: string
name: extract_symbolic_data
arguments: label: D22
type_guessed: string
name: extract_symbolic_data
arguments: label: D116
type_guessed: string
name: extract_symbolic_data
arguments: label: D118
type_guessed: string

tool: D144: Gauge

tool: D81: static

tool: D12: alarm

tool: D75: discrete

tool: D101: %s::Static

tool: D110: enum

tool: D90: colorMode

tool: D147: Alarm

tool: D114: caTextEntry

tool: D22: caLineEdit

tool: D116: %s::%s

tool: D118: Alarm_Static

assistant: ```c
int Qt_setColorMode(char *widget, char *token) {
  char asc[80];
  char aux[80];
  if (strstr(widget, "Gauge") != (char *)0)
    return 0;
  if (!strcmp(token, "static")) {
    sprintf(asc, "%s::Static", widget);
    Qt_handleString("colorMode", "enum", asc);
    return 0;
  } else if (!strcmp(token, "alarm")) {
    strcpy(aux, "Alarm");
    if (!strcmp(widget, "caTextEntry"))
      strcpy(aux, "Alarm_Static");
    if (!strcmp(widget, "caLineEdit"))
      strcpy(aux, "Alarm_Static");
    sprintf(asc, "%s::%s", widget, aux);
    Qt_handleString("colorMode", "enum", asc);
    return 1;
  } else if (!strcmp(token, "discrete")) {
    sprintf(asc, "%s::Static", widget);
    Qt_handleString("colorMode", "enum", asc);
    return 0;
  }
  return 0;
}
```