user: 请将这段汇编代码片段转换成等效的C代码：

```asm
<Qt_setColorMode>:
  endbr64
  push   %r14
  push   %r13
  xor    %r13d,%r13d
  push   %r12
  mov    %rdi,%r12
  push   %rbp
  mov    %rsi,%rbp
  lea    D53(%rip),%rsi
  sub    $0xb8,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0xa8(%rsp)
  xor    %eax,%eax
  call   <strstr@plt>
  test   %rax,%rax
  je     L65
L126:
  mov    0xa8(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L34
  add    $0xb8,%rsp
  mov    %r13d,%eax
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  ret
  nopl   0x0(%rax,%rax,1)
L65:
  lea    D0(%rip),%rsi
  mov    %rbp,%rdi
  call   <strcmp@plt>
  test   %eax,%eax
  je     L95
  lea    D117(%rip),%rsi
  mov    %rbp,%rdi
  call   <strcmp@plt>
  test   %eax,%eax
  je     L38
  lea    D74(%rip),%rsi
  mov    %rbp,%rdi
  call   <strcmp@plt>
  test   %eax,%eax
  jne    L126
L95:
  mov    %rsp,%r13
  mov    %r12,%rdx
  lea    D151(%rip),%rsi
  xor    %eax,%eax
  mov    %r13,%rdi
  call   <sprintf@plt>
  mov    %r13,%rdx
  xor    %r13d,%r13d
  lea    D154(%rip),%rsi
  lea    D59(%rip),%rdi
  call   <Qt_handleString@plt>
  jmp    L126
  xchg   %ax,%ax
L38:
  lea    0x50(%rsp),%r13
  lea    D179(%rip),%rsi
  mov    %r13,%rdi
  call   <strcpy@plt>
  lea    D150(%rip),%rsi
  mov    %r12,%rdi
  call   <strcmp@plt>
  test   %eax,%eax
  je     L1
L21:
  lea    D96(%rip),%rsi
  mov    %r12,%rdi
  call   <strcmp@plt>
  test   %eax,%eax
  je     L84
L132:
  lea    D36(%rip),%rsi
  mov    %r12,%rdi
  call   <strcmp@plt>
  test   %eax,%eax
  je     L33
L106:
  lea    D10(%rip),%rsi
  mov    %r12,%rdi
  call   <strcmp@plt>
  test   %eax,%eax
  je     L35
L13:
  mov    %rsp,%r14
  mov    %r13,%rcx
  mov    %r12,%rdx
  xor    %eax,%eax
  lea    D48(%rip),%rsi
  mov    %r14,%rdi
  mov    $0x1,%r13d
  call   <sprintf@plt>
  mov    %r14,%rdx
  lea    D154(%rip),%rsi
  lea    D59(%rip),%rdi
  call   <Qt_handleString@plt>
  jmp    L126
  nopl   0x0(%rax,%rax,1)
L35:
  lea    D77(%rip),%rsi
  mov    %r13,%rdi
  call   <strcpy@plt>
  jmp    L13
  nopl   0x0(%rax)
L33:
  lea    D77(%rip),%rsi
  mov    %r13,%rdi
  call   <strcpy@plt>
  jmp    L106
  nopl   0x0(%rax)
L84:
  lea    D77(%rip),%rsi
  mov    %r13,%rdi
  call   <strcpy@plt>
  jmp    L132
  nopl   0x0(%rax)
L1:
  lea    D77(%rip),%rsi
  mov    %r13,%rdi
  call   <strcpy@plt>
  jmp    L21
L34:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: disassemble_data
arguments: label: D53
type: string
name: disassemble_data
arguments: label: D0
type: string
name: disassemble_data
arguments: label: D117
type: string
name: disassemble_data
arguments: label: D74
type: string
name: disassemble_data
arguments: label: D151
type: string
name: disassemble_data
arguments: label: D154
type: string
name: disassemble_data
arguments: label: D59
type: string
name: disassemble_data
arguments: label: D179
type: string
name: disassemble_data
arguments: label: D150
type: string
name: disassemble_data
arguments: label: D96
type: string
name: disassemble_data
arguments: label: D36
type: string
name: disassemble_data
arguments: label: D10
type: string
name: disassemble_data
arguments: label: D48
type: string
name: disassemble_data
arguments: label: D77
type: string

tool: D53: Gauge

tool: D0: static

tool: D117: alarm

tool: D74: discrete

tool: D151: %s::Static

tool: D154: enum

tool: D59: colorMode

tool: D179: Alarm

tool: D150: caTextEntry

tool: D96: caLineEdit

tool: D36: caThermo

tool: D10: caSlider

tool: D48: %s::%s

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