user: 请将以下的汇编代码转换成C语言代码：

```asm
<Qt_setColorMode>:
  endbr64
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0xb0,%rsp
  mov    %rdi,%rbp
  mov    %rsi,%r12
  mov    %fs:0x28,%rax
  mov    %rax,0xa8(%rsp)
  xor    %eax,%eax
  lea    D20(%rip),%rsi
  call   <strstr@plt>
  mov    $0x0,%ebx
  test   %rax,%rax
  je     L128
L150:
  mov    0xa8(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L161
  mov    %ebx,%eax
  add    $0xb0,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  ret
L128:
  lea    D151(%rip),%rsi
  mov    %r12,%rdi
  call   <strcmp@plt>
  mov    %eax,%ebx
  test   %eax,%eax
  je     L12
  lea    D166(%rip),%rsi
  mov    %r12,%rdi
  call   <strcmp@plt>
  test   %eax,%eax
  je     L69
  lea    D71(%rip),%rsi
  mov    %r12,%rdi
  call   <strcmp@plt>
  mov    %eax,%ebx
  test   %eax,%eax
  je     L78
  mov    $0x0,%ebx
  jmp    L150
L12:
  mov    %rsp,%r12
  mov    %rbp,%rdx
  lea    D4(%rip),%rsi
  mov    %r12,%rdi
  mov    $0x0,%eax
  call   <sprintf@plt>
  mov    %r12,%rdx
  lea    D57(%rip),%rsi
  lea    D212(%rip),%rdi
  call   <Qt_handleString@plt>
  jmp    L150
L69:
  lea    0x50(%rsp),%rdi
  lea    D6(%rip),%rsi
  call   <strcpy@plt>
  lea    D129(%rip),%rsi
  mov    %rbp,%rdi
  call   <strcmp@plt>
  test   %eax,%eax
  je     L143
L45:
  lea    D169(%rip),%rsi
  mov    %rbp,%rdi
  call   <strcmp@plt>
  test   %eax,%eax
  je     L100
L162:
  lea    D53(%rip),%rsi
  mov    %rbp,%rdi
  call   <strcmp@plt>
  test   %eax,%eax
  je     L124
L9:
  lea    D183(%rip),%rsi
  mov    %rbp,%rdi
  call   <strcmp@plt>
  test   %eax,%eax
  je     L147
L30:
  lea    0x50(%rsp),%rcx
  mov    %rsp,%rbx
  mov    %rbp,%rdx
  lea    D175(%rip),%rsi
  mov    %rbx,%rdi
  mov    $0x0,%eax
  call   <sprintf@plt>
  mov    %rbx,%rdx
  lea    D57(%rip),%rsi
  lea    D212(%rip),%rdi
  call   <Qt_handleString@plt>
  mov    $0x1,%ebx
  jmp    L150
L143:
  lea    0x50(%rsp),%rdi
  lea    D33(%rip),%rsi
  call   <strcpy@plt>
  jmp    L45
L100:
  lea    0x50(%rsp),%rdi
  lea    D33(%rip),%rsi
  call   <strcpy@plt>
  jmp    L162
L124:
  lea    0x50(%rsp),%rdi
  lea    D33(%rip),%rsi
  call   <strcpy@plt>
  jmp    L9
L147:
  lea    0x50(%rsp),%rdi
  lea    D33(%rip),%rsi
  call   <strcpy@plt>
  jmp    L30
L78:
  mov    %rsp,%r12
  mov    %rbp,%rdx
  lea    D4(%rip),%rsi
  mov    %r12,%rdi
  mov    $0x0,%eax
  call   <sprintf@plt>
  mov    %r12,%rdx
  lea    D57(%rip),%rsi
  lea    D212(%rip),%rdi
  call   <Qt_handleString@plt>
  jmp    L150
L161:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: read_data
arguments: tag: D20
type_infered: string
name: read_data
arguments: tag: D151
type_infered: string
name: read_data
arguments: tag: D166
type_infered: string
name: read_data
arguments: tag: D71
type_infered: string
name: read_data
arguments: tag: D4
type_infered: string
name: read_data
arguments: tag: D57
type_infered: string
name: read_data
arguments: tag: D212
type_infered: string
name: read_data
arguments: tag: D6
type_infered: string
name: read_data
arguments: tag: D129
type_infered: string
name: read_data
arguments: tag: D169
type_infered: string
name: read_data
arguments: tag: D53
type_infered: string
name: read_data
arguments: tag: D183
type_infered: string
name: read_data
arguments: tag: D175
type_infered: string
name: read_data
arguments: tag: D33
type_infered: string

tool: D20: Gauge

tool: D151: static

tool: D166: alarm

tool: D71: discrete

tool: D4: %s::Static

tool: D57: enum

tool: D212: colorMode

tool: D6: Alarm

tool: D129: caTextEntry

tool: D169: caLineEdit

tool: D53: caThermo

tool: D183: caSlider

tool: D175: %s::%s

tool: D33: 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");
    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;
}
```