user: 请从给定的汇编指令推导出C源代码:

```asm
<Qt_setColorMode>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0xc0,%rsp
  mov    %rdi,-0xb8(%rbp)
  mov    %rsi,-0xc0(%rbp)
  mov    %fs:0x28,%rax
  mov    %rax,-0x8(%rbp)
  xor    %eax,%eax
  mov    -0xb8(%rbp),%rax
  lea    D126(%rip),%rdx
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <strstr@plt>
  test   %rax,%rax
  je     L81
  mov    $0x0,%eax
  jmp    L32
L81:
  mov    -0xc0(%rbp),%rax
  lea    D103(%rip),%rdx
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <strcmp@plt>
  test   %eax,%eax
  jne    L62
  mov    -0xb8(%rbp),%rdx
  lea    -0xb0(%rbp),%rax
  lea    D154(%rip),%rcx
  mov    %rcx,%rsi
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <sprintf@plt>
  lea    -0xb0(%rbp),%rax
  mov    %rax,%rdx
  lea    D56(%rip),%rax
  mov    %rax,%rsi
  lea    D123(%rip),%rax
  mov    %rax,%rdi
  call   <Qt_handleString@plt>
  mov    $0x0,%eax
  jmp    L32
L62:
  mov    -0xc0(%rbp),%rax
  lea    D186(%rip),%rdx
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <strcmp@plt>
  test   %eax,%eax
  jne    L54
  lea    -0x60(%rbp),%rax
  lea    D140(%rip),%rdx
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <strcpy@plt>
  mov    -0xb8(%rbp),%rax
  lea    D193(%rip),%rdx
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <strcmp@plt>
  test   %eax,%eax
  jne    L42
  lea    -0x60(%rbp),%rax
  lea    D187(%rip),%rdx
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <strcpy@plt>
L42:
  mov    -0xb8(%rbp),%rax
  lea    D153(%rip),%rdx
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <strcmp@plt>
  test   %eax,%eax
  jne    L84
  lea    -0x60(%rbp),%rax
  lea    D187(%rip),%rdx
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <strcpy@plt>
L84:
  mov    -0xb8(%rbp),%rax
  lea    D104(%rip),%rdx
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <strcmp@plt>
  test   %eax,%eax
  jne    L60
  lea    -0x60(%rbp),%rax
  lea    D187(%rip),%rdx
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <strcpy@plt>
L60:
  mov    -0xb8(%rbp),%rax
  lea    D122(%rip),%rdx
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <strcmp@plt>
  test   %eax,%eax
  jne    L75
  lea    -0x60(%rbp),%rax
  lea    D187(%rip),%rdx
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <strcpy@plt>
L75:
  lea    -0x60(%rbp),%rcx
  mov    -0xb8(%rbp),%rdx
  lea    -0xb0(%rbp),%rax
  lea    D181(%rip),%rsi
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <sprintf@plt>
  lea    -0xb0(%rbp),%rax
  mov    %rax,%rdx
  lea    D56(%rip),%rax
  mov    %rax,%rsi
  lea    D123(%rip),%rax
  mov    %rax,%rdi
  call   <Qt_handleString@plt>
  mov    $0x1,%eax
  jmp    L32
L54:
  mov    -0xc0(%rbp),%rax
  lea    D99(%rip),%rdx
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <strcmp@plt>
  test   %eax,%eax
  jne    L107
  mov    -0xb8(%rbp),%rdx
  lea    -0xb0(%rbp),%rax
  lea    D154(%rip),%rcx
  mov    %rcx,%rsi
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <sprintf@plt>
  lea    -0xb0(%rbp),%rax
  mov    %rax,%rdx
  lea    D56(%rip),%rax
  mov    %rax,%rsi
  lea    D123(%rip),%rax
  mov    %rax,%rdi
  call   <Qt_handleString@plt>
  mov    $0x0,%eax
  jmp    L32
L107:
  mov    $0x0,%eax
L32:
  mov    -0x8(%rbp),%rdx
  sub    %fs:0x28,%rdx
  je     L96
  call   <__stack_chk_fail@plt>
L96:
  leave
  ret
```

tool_calls: name: read_data
arguments: data_label: D126
datatype: string
name: read_data
arguments: data_label: D103
datatype: string
name: read_data
arguments: data_label: D154
datatype: string
name: read_data
arguments: data_label: D56
datatype: string
name: read_data
arguments: data_label: D123
datatype: string
name: read_data
arguments: data_label: D186
datatype: string
name: read_data
arguments: data_label: D140
datatype: string
name: read_data
arguments: data_label: D193
datatype: string
name: read_data
arguments: data_label: D187
datatype: string
name: read_data
arguments: data_label: D153
datatype: string
name: read_data
arguments: data_label: D104
datatype: string
name: read_data
arguments: data_label: D122
datatype: string
name: read_data
arguments: data_label: D181
datatype: string
name: read_data
arguments: data_label: D99
datatype: string

tool: D126: Gauge

tool: D103: static

tool: D154: %s::Static

tool: D56: enum

tool: D123: colorMode

tool: D186: alarm

tool: D140: Alarm

tool: D193: caTextEntry

tool: D187: Alarm_Static

tool: D153: caLineEdit

tool: D104: caThermo

tool: D122: caSlider

tool: D181: %s::%s

tool: D99: discrete

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");
    if (!strcmp(widget, "caThermo"))
      strcpy(aux, "Alarm_Static");
    if (!strcmp(widget, "caSlider"))
      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;
}
```