#define NULL ((void *)0)
typedef unsigned long size_t; // Customize by platform.
typedef long intptr_t;
typedef unsigned long uintptr_t;
typedef long scalar_t__; // Either arithmetic or pointer type.
/* By default, we understand bool (as a convenience). */
typedef int bool;
#define false 0
#define true 1

/* Forward declarations */

/* Type definitions */

/* Variables and functions */
int /*<<< orphan*/ ShowVIQE();
int /*<<< orphan*/ TCC_CUI_VIQE_ShowDeintl(int);
int /*<<< orphan*/ TCC_CUI_VIQE_ShowDnsp(int);
int /*<<< orphan*/ TCC_CUI_VIQE_ShowDnts(int);
int /*<<< orphan*/ TCC_CUI_VIQE_ShowGamut(int);
int /*<<< orphan*/ TCC_CUI_VIQE_ShowHalfProcessing(int);
int /*<<< orphan*/ TCC_CUI_VIQE_ShowHiseq(int);
int /*<<< orphan*/ TCC_CUI_VIQE_ShowHpf(int);
int /*<<< orphan*/ TCC_CUI_VIQE_ShowRandomMode(int);
int /*<<< orphan*/ TCC_CUI_VIQE_ShowScaleOnOff(int);
scalar_t__ strstr(char *, char *);
void TCC_CUI_VIQE_ShowState(char *Buffer) {
  int ShowDeintl = 0;
  int ShowDnts = 0;
  int ShowDnsp = 0;
  int ShowHpf = 0;
  int ShowHiseq = 0;
  int ShowGamut = 0;
  if (strstr(Buffer, "all")) {
    ShowDeintl = 1;
    ShowDnts = 1;
    ShowDnsp = 1;
    ShowHpf = 1;
    ShowHiseq = 1;
    ShowGamut = 1;
  }
  if (strstr(Buffer, "deintl"))
    ShowDeintl = 1;
  if (strstr(Buffer, "dnts"))
    ShowDnts = 1;
  if (strstr(Buffer, "dnsp"))
    ShowDnsp = 1;
  if (strstr(Buffer, "hpf"))
    ShowHpf = 1;
  if (strstr(Buffer, "hiseq"))
    ShowHiseq = 1;
  if (strstr(Buffer, "gamut"))
    ShowGamut = 1;
  if (strstr(Buffer, "viqe"))
    ShowVIQE();
  TCC_CUI_VIQE_ShowRandomMode(1);
  TCC_CUI_VIQE_ShowHalfProcessing(1);
  TCC_CUI_VIQE_ShowScaleOnOff(1);
  TCC_CUI_VIQE_ShowDeintl(ShowDeintl);
  TCC_CUI_VIQE_ShowDnts(ShowDnts);
  TCC_CUI_VIQE_ShowDnsp(ShowDnsp);
  TCC_CUI_VIQE_ShowHpf(ShowHpf);
  TCC_CUI_VIQE_ShowHiseq(ShowHiseq);
  TCC_CUI_VIQE_ShowGamut(ShowGamut);
  return;
}


x86 assembly (clang, -O0):
<TCC_CUI_VIQE_ShowState>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
movl   $0x0,-0xc(%rbp)
movl   $0x0,-0x10(%rbp)
movl   $0x0,-0x14(%rbp)
movl   $0x0,-0x18(%rbp)
movl   $0x0,-0x1c(%rbp)
movl   $0x0,-0x20(%rbp)
mov    -0x8(%rbp),%rdi
lea    0xe0f(%rip),%rsi
call   10d0 <strstr@plt>
cmp    $0x0,%rax
je     122a <TCC_CUI_VIQE_ShowState+0x7a>
movl   $0x1,-0xc(%rbp)
movl   $0x1,-0x10(%rbp)
movl   $0x1,-0x14(%rbp)
movl   $0x1,-0x18(%rbp)
movl   $0x1,-0x1c(%rbp)
movl   $0x1,-0x20(%rbp)
mov    -0x8(%rbp),%rdi
lea    0xdcf(%rip),%rsi
call   10d0 <strstr@plt>
cmp    $0x0,%rax
je     124b <TCC_CUI_VIQE_ShowState+0x9b>
movl   $0x1,-0xc(%rbp)
mov    -0x8(%rbp),%rdi
lea    0xdb5(%rip),%rsi
call   10d0 <strstr@plt>
cmp    $0x0,%rax
je     126c <TCC_CUI_VIQE_ShowState+0xbc>
movl   $0x1,-0x10(%rbp)
mov    -0x8(%rbp),%rdi
lea    0xd99(%rip),%rsi
call   10d0 <strstr@plt>
cmp    $0x0,%rax
je     128d <TCC_CUI_VIQE_ShowState+0xdd>
movl   $0x1,-0x14(%rbp)
mov    -0x8(%rbp),%rdi
lea    0xd7d(%rip),%rsi
call   10d0 <strstr@plt>
cmp    $0x0,%rax
je     12ae <TCC_CUI_VIQE_ShowState+0xfe>
movl   $0x1,-0x18(%rbp)
mov    -0x8(%rbp),%rdi
lea    0xd60(%rip),%rsi
call   10d0 <strstr@plt>
cmp    $0x0,%rax
je     12cf <TCC_CUI_VIQE_ShowState+0x11f>
movl   $0x1,-0x1c(%rbp)
mov    -0x8(%rbp),%rdi
lea    0xd45(%rip),%rsi
call   10d0 <strstr@plt>
cmp    $0x0,%rax
je     12f0 <TCC_CUI_VIQE_ShowState+0x140>
movl   $0x1,-0x20(%rbp)
mov    -0x8(%rbp),%rdi
lea    0xd2a(%rip),%rsi
call   10d0 <strstr@plt>
cmp    $0x0,%rax
je     1311 <TCC_CUI_VIQE_ShowState+0x161>
mov    $0x0,%al
call   10b0 <ShowVIQE@plt>
mov    $0x1,%edi
call   1060 <TCC_CUI_VIQE_ShowRandomMode@plt>
mov    $0x1,%edi
call   10c0 <TCC_CUI_VIQE_ShowHalfProcessing@plt>
mov    $0x1,%edi
call   10a0 <TCC_CUI_VIQE_ShowScaleOnOff@plt>
mov    -0xc(%rbp),%edi
call   1030 <TCC_CUI_VIQE_ShowDeintl@plt>
mov    -0x10(%rbp),%edi
call   1090 <TCC_CUI_VIQE_ShowDnts@plt>
mov    -0x14(%rbp),%edi
call   1080 <TCC_CUI_VIQE_ShowDnsp@plt>
mov    -0x18(%rbp),%edi
call   1050 <TCC_CUI_VIQE_ShowHpf@plt>
mov    -0x1c(%rbp),%edi
call   1040 <TCC_CUI_VIQE_ShowHiseq@plt>
mov    -0x20(%rbp),%edi
call   1070 <TCC_CUI_VIQE_ShowGamut@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<TCC_CUI_VIQE_ShowState>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x18,%rsp
mov    %rdi,%rbx
lea    0xe38(%rip),%rsi
call   10d0 <strstr@plt>
xor    %ebp,%ebp
test   %rax,%rax
setne  %bpl
lea    0xe27(%rip),%rsi
mov    %rbx,%rdi
call   10d0 <strstr@plt>
mov    %rax,0x10(%rsp)
lea    0xe1a(%rip),%rsi
mov    %rbx,%rdi
call   10d0 <strstr@plt>
mov    %rax,0x8(%rsp)
lea    0xe0b(%rip),%rsi
mov    %rbx,%rdi
call   10d0 <strstr@plt>
mov    %rax,%r12
lea    0xdfe(%rip),%rsi
mov    %rbx,%rdi
call   10d0 <strstr@plt>
mov    %rax,%r14
lea    0xdf0(%rip),%rsi
mov    %rbx,%rdi
call   10d0 <strstr@plt>
mov    %rax,%r15
lea    0xde4(%rip),%rsi
mov    %rbx,%rdi
call   10d0 <strstr@plt>
mov    %rax,%r13
lea    0xdd8(%rip),%rsi
mov    %rbx,%rdi
call   10d0 <strstr@plt>
test   %rax,%rax
je     1261 <TCC_CUI_VIQE_ShowState+0xb1>
xor    %eax,%eax
call   10b0 <ShowVIQE@plt>
test   %r13,%r13
mov    $0x1,%r13d
cmove  %ebp,%r13d
test   %r15,%r15
mov    $0x1,%r15d
cmove  %ebp,%r15d
test   %r14,%r14
mov    $0x1,%r14d
cmove  %ebp,%r14d
test   %r12,%r12
mov    $0x1,%r12d
cmove  %ebp,%r12d
cmpq   $0x0,0x8(%rsp)
mov    $0x1,%ebx
cmove  %ebp,%ebx
mov    $0x1,%eax
cmpq   $0x0,0x10(%rsp)
cmovne %eax,%ebp
mov    $0x1,%edi
call   1060 <TCC_CUI_VIQE_ShowRandomMode@plt>
mov    $0x1,%edi
call   10c0 <TCC_CUI_VIQE_ShowHalfProcessing@plt>
mov    $0x1,%edi
call   10a0 <TCC_CUI_VIQE_ShowScaleOnOff@plt>
mov    %ebp,%edi
call   1030 <TCC_CUI_VIQE_ShowDeintl@plt>
mov    %ebx,%edi
call   1090 <TCC_CUI_VIQE_ShowDnts@plt>
mov    %r12d,%edi
call   1080 <TCC_CUI_VIQE_ShowDnsp@plt>
mov    %r14d,%edi
call   1050 <TCC_CUI_VIQE_ShowHpf@plt>
mov    %r15d,%edi
call   1040 <TCC_CUI_VIQE_ShowHiseq@plt>
mov    %r13d,%edi
add    $0x18,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
jmp    1070 <TCC_CUI_VIQE_ShowGamut@plt>

LLVM IR (-O0):
@.str = [4 x i8] c"all\00"
@.str.1 = [7 x i8] c"deintl\00"
@.str.2 = [5 x i8] c"dnts\00"
@.str.3 = [5 x i8] c"dnsp\00"
@.str.4 = [4 x i8] c"hpf\00"
@.str.5 = [6 x i8] c"hiseq\00"
@.str.6 = [6 x i8] c"gamut\00"
@.str.7 = [5 x i8] c"viqe\00"
define void @TCC_CUI_VIQE_ShowState(i8* %0) {
%2 = alloca i8*
%3 = alloca i32
%4 = alloca i32
%5 = alloca i32
%6 = alloca i32
%7 = alloca i32
%8 = alloca i32
store i8* %0, i8** %2
store i32 0, i32* %3
store i32 0, i32* %4
store i32 0, i32* %5
store i32 0, i32* %6
store i32 0, i32* %7
store i32 0, i32* %8
%9 = load i8*, i8** %2
%10 = call i64 @strstr(i8* %9, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0))
%11 = icmp ne i64 %10, 0
br i1 %11, label %12, label %13
12: ; preds = %1
store i32 1, i32* %3
store i32 1, i32* %4
store i32 1, i32* %5
store i32 1, i32* %6
store i32 1, i32* %7
store i32 1, i32* %8
br label %13
13: ; preds = %12, %1
%14 = load i8*, i8** %2
%15 = call i64 @strstr(i8* %14, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0))
%16 = icmp ne i64 %15, 0
br i1 %16, label %17, label %18
17: ; preds = %13
store i32 1, i32* %3
br label %18
18: ; preds = %17, %13
%19 = load i8*, i8** %2
%20 = call i64 @strstr(i8* %19, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0))
%21 = icmp ne i64 %20, 0
br i1 %21, label %22, label %23
22: ; preds = %18
store i32 1, i32* %4
br label %23
23: ; preds = %22, %18
%24 = load i8*, i8** %2
%25 = call i64 @strstr(i8* %24, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0))
%26 = icmp ne i64 %25, 0
br i1 %26, label %27, label %28
27: ; preds = %23
store i32 1, i32* %5
br label %28
28: ; preds = %27, %23
%29 = load i8*, i8** %2
%30 = call i64 @strstr(i8* %29, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0))
%31 = icmp ne i64 %30, 0
br i1 %31, label %32, label %33
32: ; preds = %28
store i32 1, i32* %6
br label %33
33: ; preds = %32, %28
%34 = load i8*, i8** %2
%35 = call i64 @strstr(i8* %34, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.5, i64 0, i64 0))
%36 = icmp ne i64 %35, 0
br i1 %36, label %37, label %38
37: ; preds = %33
store i32 1, i32* %7
br label %38
38: ; preds = %37, %33
%39 = load i8*, i8** %2
%40 = call i64 @strstr(i8* %39, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.6, i64 0, i64 0))
%41 = icmp ne i64 %40, 0
br i1 %41, label %42, label %43
42: ; preds = %38
store i32 1, i32* %8
br label %43
43: ; preds = %42, %38
%44 = load i8*, i8** %2
%45 = call i64 @strstr(i8* %44, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.7, i64 0, i64 0))
%46 = icmp ne i64 %45, 0
br i1 %46, label %47, label %49
47: ; preds = %43
%48 = call i32 (...) @ShowVIQE()
br label %49
49: ; preds = %47, %43
%50 = call i32 @TCC_CUI_VIQE_ShowRandomMode(i32 1)
%51 = call i32 @TCC_CUI_VIQE_ShowHalfProcessing(i32 1)
%52 = call i32 @TCC_CUI_VIQE_ShowScaleOnOff(i32 1)
%53 = load i32, i32* %3
%54 = call i32 @TCC_CUI_VIQE_ShowDeintl(i32 %53)
%55 = load i32, i32* %4
%56 = call i32 @TCC_CUI_VIQE_ShowDnts(i32 %55)
%57 = load i32, i32* %5
%58 = call i32 @TCC_CUI_VIQE_ShowDnsp(i32 %57)
%59 = load i32, i32* %6
%60 = call i32 @TCC_CUI_VIQE_ShowHpf(i32 %59)
%61 = load i32, i32* %7
%62 = call i32 @TCC_CUI_VIQE_ShowHiseq(i32 %61)
%63 = load i32, i32* %8
%64 = call i32 @TCC_CUI_VIQE_ShowGamut(i32 %63)
ret void
}

LLVM IR (-O2):
@.str = [4 x i8] c"all\00"
@.str.1 = [7 x i8] c"deintl\00"
@.str.2 = [5 x i8] c"dnts\00"
@.str.3 = [5 x i8] c"dnsp\00"
@.str.4 = [4 x i8] c"hpf\00"
@.str.5 = [6 x i8] c"hiseq\00"
@.str.6 = [6 x i8] c"gamut\00"
@.str.7 = [5 x i8] c"viqe\00"
define void @TCC_CUI_VIQE_ShowState(i8* %0) {
%2 = tail call i64 @strstr(i8* %0, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0))
%3 = icmp ne i64 %2, 0
%4 = zext i1 %3 to i32
%5 = tail call i64 @strstr(i8* %0, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0))
%6 = tail call i64 @strstr(i8* %0, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0))
%7 = tail call i64 @strstr(i8* %0, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0))
%8 = tail call i64 @strstr(i8* %0, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0))
%9 = tail call i64 @strstr(i8* %0, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.5, i64 0, i64 0))
%10 = tail call i64 @strstr(i8* %0, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.6, i64 0, i64 0))
%11 = tail call i64 @strstr(i8* %0, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.7, i64 0, i64 0))
%12 = icmp eq i64 %11, 0
br i1 %12, label %15, label %13
13: ; preds = %1
%14 = tail call i32 (...) @ShowVIQE()
br label %15
15: ; preds = %13, %1
%16 = icmp eq i64 %10, 0
%17 = select i1 %16, i32 %4, i32 1
%18 = icmp eq i64 %9, 0
%19 = select i1 %18, i32 %4, i32 1
%20 = icmp eq i64 %8, 0
%21 = select i1 %20, i32 %4, i32 1
%22 = icmp eq i64 %7, 0
%23 = select i1 %22, i32 %4, i32 1
%24 = icmp eq i64 %6, 0
%25 = select i1 %24, i32 %4, i32 1
%26 = icmp eq i64 %5, 0
%27 = select i1 %26, i32 %4, i32 1
%28 = tail call i32 @TCC_CUI_VIQE_ShowRandomMode(i32 1)
%29 = tail call i32 @TCC_CUI_VIQE_ShowHalfProcessing(i32 1)
%30 = tail call i32 @TCC_CUI_VIQE_ShowScaleOnOff(i32 1)
%31 = tail call i32 @TCC_CUI_VIQE_ShowDeintl(i32 %27)
%32 = tail call i32 @TCC_CUI_VIQE_ShowDnts(i32 %25)
%33 = tail call i32 @TCC_CUI_VIQE_ShowDnsp(i32 %23)
%34 = tail call i32 @TCC_CUI_VIQE_ShowHpf(i32 %21)
%35 = tail call i32 @TCC_CUI_VIQE_ShowHiseq(i32 %19)
%36 = tail call i32 @TCC_CUI_VIQE_ShowGamut(i32 %17)
ret void
}