#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*/ parse_config_line(char *, char **, char **);
int /*<<< orphan*/ setenv(char *, char *, int);
int /*<<< orphan*/ strcmp(char *, char *);
void process_line(char *line) {
  char *option, *value;
  if (!parse_config_line(line, &option, &value))
    return;
  if (!strcmp(option, "TINT2_BUTTON_ALIGNED_X1"))
    setenv("TINT2_BUTTON_ALIGNED_X1", value, 1);
  else if (!strcmp(option, "TINT2_BUTTON_ALIGNED_X2"))
    setenv("TINT2_BUTTON_ALIGNED_X2", value, 1);
  else if (!strcmp(option, "TINT2_BUTTON_ALIGNED_Y1"))
    setenv("TINT2_BUTTON_ALIGNED_Y1", value, 1);
  else if (!strcmp(option, "TINT2_BUTTON_ALIGNED_Y2"))
    setenv("TINT2_BUTTON_ALIGNED_Y2", value, 1);
  else if (!strcmp(option, "TINT2_BUTTON_PANEL_X1"))
    setenv("TINT2_BUTTON_PANEL_X1", value, 1);
  else if (!strcmp(option, "TINT2_BUTTON_PANEL_X2"))
    setenv("TINT2_BUTTON_PANEL_X2", value, 1);
  else if (!strcmp(option, "TINT2_BUTTON_PANEL_Y1"))
    setenv("TINT2_BUTTON_PANEL_Y1", value, 1);
  else if (!strcmp(option, "TINT2_BUTTON_PANEL_Y2"))
    setenv("TINT2_BUTTON_PANEL_Y2", value, 1);
}


x86 assembly (clang, -O0):
<process_line>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rdi
lea    -0x10(%rbp),%rsi
lea    -0x18(%rbp),%rdx
call   1040 <parse_config_line@plt>
cmp    $0x0,%eax
jne    115b <process_line+0x2b>
jmp    1311 <process_line+0x1e1>
mov    -0x10(%rbp),%rdi
lea    0xe9a(%rip),%rsi
call   1050 <strcmp@plt>
cmp    $0x0,%eax
jne    118e <process_line+0x5e>
mov    -0x18(%rbp),%rsi
lea    0xe81(%rip),%rdi
mov    $0x1,%edx
call   1030 <setenv@plt>
jmp    1311 <process_line+0x1e1>
mov    -0x10(%rbp),%rdi
lea    0xe7f(%rip),%rsi
call   1050 <strcmp@plt>
cmp    $0x0,%eax
jne    11c1 <process_line+0x91>
mov    -0x18(%rbp),%rsi
lea    0xe66(%rip),%rdi
mov    $0x1,%edx
call   1030 <setenv@plt>
jmp    130c <process_line+0x1dc>
mov    -0x10(%rbp),%rdi
lea    0xe64(%rip),%rsi
call   1050 <strcmp@plt>
cmp    $0x0,%eax
jne    11f4 <process_line+0xc4>
mov    -0x18(%rbp),%rsi
lea    0xe4b(%rip),%rdi
mov    $0x1,%edx
call   1030 <setenv@plt>
jmp    1307 <process_line+0x1d7>
mov    -0x10(%rbp),%rdi
lea    0xe49(%rip),%rsi
call   1050 <strcmp@plt>
cmp    $0x0,%eax
jne    1227 <process_line+0xf7>
mov    -0x18(%rbp),%rsi
lea    0xe30(%rip),%rdi
mov    $0x1,%edx
call   1030 <setenv@plt>
jmp    1302 <process_line+0x1d2>
mov    -0x10(%rbp),%rdi
lea    0xe2e(%rip),%rsi
call   1050 <strcmp@plt>
cmp    $0x0,%eax
jne    125a <process_line+0x12a>
mov    -0x18(%rbp),%rsi
lea    0xe15(%rip),%rdi
mov    $0x1,%edx
call   1030 <setenv@plt>
jmp    12fd <process_line+0x1cd>
mov    -0x10(%rbp),%rdi
lea    0xe11(%rip),%rsi
call   1050 <strcmp@plt>
cmp    $0x0,%eax
jne    128d <process_line+0x15d>
mov    -0x18(%rbp),%rsi
lea    0xdf8(%rip),%rdi
mov    $0x1,%edx
call   1030 <setenv@plt>
jmp    12f8 <process_line+0x1c8>
mov    -0x10(%rbp),%rdi
lea    0xdf4(%rip),%rsi
call   1050 <strcmp@plt>
cmp    $0x0,%eax
jne    12c0 <process_line+0x190>
mov    -0x18(%rbp),%rsi
lea    0xddb(%rip),%rdi
mov    $0x1,%edx
call   1030 <setenv@plt>
jmp    12f3 <process_line+0x1c3>
mov    -0x10(%rbp),%rdi
lea    0xdd7(%rip),%rsi
call   1050 <strcmp@plt>
cmp    $0x0,%eax
jne    12ee <process_line+0x1be>
mov    -0x18(%rbp),%rsi
lea    0xdbe(%rip),%rdi
mov    $0x1,%edx
call   1030 <setenv@plt>
jmp    12f3 <process_line+0x1c3>
jmp    12f8 <process_line+0x1c8>
jmp    12fd <process_line+0x1cd>
jmp    1302 <process_line+0x1d2>
jmp    1307 <process_line+0x1d7>
jmp    130c <process_line+0x1dc>
jmp    1311 <process_line+0x1e1>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<process_line>:
push   %rbx
sub    $0x10,%rsp
lea    0x8(%rsp),%rsi
mov    %rsp,%rdx
call   1040 <parse_config_line@plt>
test   %eax,%eax
je     1267 <process_line+0x137>
mov    0x8(%rsp),%rbx
lea    0xeaa(%rip),%rsi
mov    %rbx,%rdi
call   1050 <strcmp@plt>
test   %eax,%eax
je     1204 <process_line+0xd4>
lea    0xeab(%rip),%rsi
mov    %rbx,%rdi
call   1050 <strcmp@plt>
test   %eax,%eax
je     1211 <process_line+0xe1>
lea    0xeac(%rip),%rsi
mov    %rbx,%rdi
call   1050 <strcmp@plt>
test   %eax,%eax
je     121e <process_line+0xee>
lea    0xead(%rip),%rsi
mov    %rbx,%rdi
call   1050 <strcmp@plt>
test   %eax,%eax
je     122b <process_line+0xfb>
lea    0xeae(%rip),%rsi
mov    %rbx,%rdi
call   1050 <strcmp@plt>
test   %eax,%eax
je     1238 <process_line+0x108>
lea    0xeb1(%rip),%rsi
mov    %rbx,%rdi
call   1050 <strcmp@plt>
test   %eax,%eax
je     1245 <process_line+0x115>
lea    0xeb4(%rip),%rsi
mov    %rbx,%rdi
call   1050 <strcmp@plt>
test   %eax,%eax
je     1252 <process_line+0x122>
lea    0xeb7(%rip),%rsi
mov    %rbx,%rdi
call   1050 <strcmp@plt>
test   %eax,%eax
jne    1267 <process_line+0x137>
mov    (%rsp),%rsi
lea    0xea0(%rip),%rdi
jmp    125d <process_line+0x12d>
mov    (%rsp),%rsi
lea    0xdf1(%rip),%rdi
jmp    125d <process_line+0x12d>
mov    (%rsp),%rsi
lea    0xdfc(%rip),%rdi
jmp    125d <process_line+0x12d>
mov    (%rsp),%rsi
lea    0xe07(%rip),%rdi
jmp    125d <process_line+0x12d>
mov    (%rsp),%rsi
lea    0xe12(%rip),%rdi
jmp    125d <process_line+0x12d>
mov    (%rsp),%rsi
lea    0xe1d(%rip),%rdi
jmp    125d <process_line+0x12d>
mov    (%rsp),%rsi
lea    0xe26(%rip),%rdi
jmp    125d <process_line+0x12d>
mov    (%rsp),%rsi
lea    0xe2f(%rip),%rdi
mov    $0x1,%edx
call   1030 <setenv@plt>
add    $0x10,%rsp
pop    %rbx
ret

LLVM IR (-O0):
@.str = [24 x i8] c"TINT2_BUTTON_ALIGNED_X1\00"
@.str.1 = [24 x i8] c"TINT2_BUTTON_ALIGNED_X2\00"
@.str.2 = [24 x i8] c"TINT2_BUTTON_ALIGNED_Y1\00"
@.str.3 = [24 x i8] c"TINT2_BUTTON_ALIGNED_Y2\00"
@.str.4 = [22 x i8] c"TINT2_BUTTON_PANEL_X1\00"
@.str.5 = [22 x i8] c"TINT2_BUTTON_PANEL_X2\00"
@.str.6 = [22 x i8] c"TINT2_BUTTON_PANEL_Y1\00"
@.str.7 = [22 x i8] c"TINT2_BUTTON_PANEL_Y2\00"
define void @process_line(i8* %0) {
%2 = alloca i8*
%3 = alloca i8*
%4 = alloca i8*
store i8* %0, i8** %2
%5 = load i8*, i8** %2
%6 = call i32 @parse_config_line(i8* %5, i8** %3, i8** %4)
%7 = icmp ne i32 %6, 0
br i1 %7, label %9, label %8
8: ; preds = %1
br label %72
9: ; preds = %1
%10 = load i8*, i8** %3
%11 = call i32 @strcmp(i8* %10, i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str, i64 0, i64 0))
%12 = icmp ne i32 %11, 0
br i1 %12, label %16, label %13
13: ; preds = %9
%14 = load i8*, i8** %4
%15 = call i32 @setenv(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str, i64 0, i64 0), i8* %14, i32 1)
br label %72
16: ; preds = %9
%17 = load i8*, i8** %3
%18 = call i32 @strcmp(i8* %17, i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.1, i64 0, i64 0))
%19 = icmp ne i32 %18, 0
br i1 %19, label %23, label %20
20: ; preds = %16
%21 = load i8*, i8** %4
%22 = call i32 @setenv(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.1, i64 0, i64 0), i8* %21, i32 1)
br label %71
23: ; preds = %16
%24 = load i8*, i8** %3
%25 = call i32 @strcmp(i8* %24, i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.2, i64 0, i64 0))
%26 = icmp ne i32 %25, 0
br i1 %26, label %30, label %27
27: ; preds = %23
%28 = load i8*, i8** %4
%29 = call i32 @setenv(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.2, i64 0, i64 0), i8* %28, i32 1)
br label %70
30: ; preds = %23
%31 = load i8*, i8** %3
%32 = call i32 @strcmp(i8* %31, i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.3, i64 0, i64 0))
%33 = icmp ne i32 %32, 0
br i1 %33, label %37, label %34
34: ; preds = %30
%35 = load i8*, i8** %4
%36 = call i32 @setenv(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.3, i64 0, i64 0), i8* %35, i32 1)
br label %69
37: ; preds = %30
%38 = load i8*, i8** %3
%39 = call i32 @strcmp(i8* %38, i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.4, i64 0, i64 0))
%40 = icmp ne i32 %39, 0
br i1 %40, label %44, label %41
41: ; preds = %37
%42 = load i8*, i8** %4
%43 = call i32 @setenv(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.4, i64 0, i64 0), i8* %42, i32 1)
br label %68
44: ; preds = %37
%45 = load i8*, i8** %3
%46 = call i32 @strcmp(i8* %45, i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.5, i64 0, i64 0))
%47 = icmp ne i32 %46, 0
br i1 %47, label %51, label %48
48: ; preds = %44
%49 = load i8*, i8** %4
%50 = call i32 @setenv(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.5, i64 0, i64 0), i8* %49, i32 1)
br label %67
51: ; preds = %44
%52 = load i8*, i8** %3
%53 = call i32 @strcmp(i8* %52, i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.6, i64 0, i64 0))
%54 = icmp ne i32 %53, 0
br i1 %54, label %58, label %55
55: ; preds = %51
%56 = load i8*, i8** %4
%57 = call i32 @setenv(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.6, i64 0, i64 0), i8* %56, i32 1)
br label %66
58: ; preds = %51
%59 = load i8*, i8** %3
%60 = call i32 @strcmp(i8* %59, i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.7, i64 0, i64 0))
%61 = icmp ne i32 %60, 0
br i1 %61, label %65, label %62
62: ; preds = %58
%63 = load i8*, i8** %4
%64 = call i32 @setenv(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.7, i64 0, i64 0), i8* %63, i32 1)
br label %65
65: ; preds = %62, %58
br label %66
66: ; preds = %65, %55
br label %67
67: ; preds = %66, %48
br label %68
68: ; preds = %67, %41
br label %69
69: ; preds = %68, %34
br label %70
70: ; preds = %69, %27
br label %71
71: ; preds = %70, %20
br label %72
72: ; preds = %8, %71, %13
ret void
}

LLVM IR (-O2):
@.str = [24 x i8] c"TINT2_BUTTON_ALIGNED_X1\00"
@.str.1 = [24 x i8] c"TINT2_BUTTON_ALIGNED_X2\00"
@.str.2 = [24 x i8] c"TINT2_BUTTON_ALIGNED_Y1\00"
@.str.3 = [24 x i8] c"TINT2_BUTTON_ALIGNED_Y2\00"
@.str.4 = [22 x i8] c"TINT2_BUTTON_PANEL_X1\00"
@.str.5 = [22 x i8] c"TINT2_BUTTON_PANEL_X2\00"
@.str.6 = [22 x i8] c"TINT2_BUTTON_PANEL_Y1\00"
@.str.7 = [22 x i8] c"TINT2_BUTTON_PANEL_Y2\00"
define void @process_line(i8* %0) {
%2 = alloca i8*
%3 = alloca i8*
%4 = bitcast i8** %2 to i8*
%5 = bitcast i8** %3 to i8*
%6 = call i32 @parse_config_line(i8* %0, i8** %2, i8** %3)
%7 = icmp eq i32 %6, 0
br i1 %7, label %57, label %8
8: ; preds = %1
%9 = load i8*, i8** %2
%10 = call i32 @strcmp(i8* dereferenceable(1) %9, i8* dereferenceable(24) getelementptr inbounds ([24 x i8], [24 x i8]* @.str, i64 0, i64 0))
%11 = icmp eq i32 %10, 0
br i1 %11, label %12, label %15
12: ; preds = %8
%13 = load i8*, i8** %3
%14 = call i32 @setenv(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str, i64 0, i64 0), i8* %13, i32 1)
br label %57
15: ; preds = %8
%16 = call i32 @strcmp(i8* dereferenceable(1) %9, i8* dereferenceable(24) getelementptr inbounds ([24 x i8], [24 x i8]* @.str.1, i64 0, i64 0))
%17 = icmp eq i32 %16, 0
br i1 %17, label %18, label %21
18: ; preds = %15
%19 = load i8*, i8** %3
%20 = call i32 @setenv(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.1, i64 0, i64 0), i8* %19, i32 1)
br label %57
21: ; preds = %15
%22 = call i32 @strcmp(i8* dereferenceable(1) %9, i8* dereferenceable(24) getelementptr inbounds ([24 x i8], [24 x i8]* @.str.2, i64 0, i64 0))
%23 = icmp eq i32 %22, 0
br i1 %23, label %24, label %27
24: ; preds = %21
%25 = load i8*, i8** %3
%26 = call i32 @setenv(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.2, i64 0, i64 0), i8* %25, i32 1)
br label %57
27: ; preds = %21
%28 = call i32 @strcmp(i8* dereferenceable(1) %9, i8* dereferenceable(24) getelementptr inbounds ([24 x i8], [24 x i8]* @.str.3, i64 0, i64 0))
%29 = icmp eq i32 %28, 0
br i1 %29, label %30, label %33
30: ; preds = %27
%31 = load i8*, i8** %3
%32 = call i32 @setenv(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.3, i64 0, i64 0), i8* %31, i32 1)
br label %57
33: ; preds = %27
%34 = call i32 @strcmp(i8* dereferenceable(1) %9, i8* dereferenceable(22) getelementptr inbounds ([22 x i8], [22 x i8]* @.str.4, i64 0, i64 0))
%35 = icmp eq i32 %34, 0
br i1 %35, label %36, label %39
36: ; preds = %33
%37 = load i8*, i8** %3
%38 = call i32 @setenv(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.4, i64 0, i64 0), i8* %37, i32 1)
br label %57
39: ; preds = %33
%40 = call i32 @strcmp(i8* dereferenceable(1) %9, i8* dereferenceable(22) getelementptr inbounds ([22 x i8], [22 x i8]* @.str.5, i64 0, i64 0))
%41 = icmp eq i32 %40, 0
br i1 %41, label %42, label %45
42: ; preds = %39
%43 = load i8*, i8** %3
%44 = call i32 @setenv(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.5, i64 0, i64 0), i8* %43, i32 1)
br label %57
45: ; preds = %39
%46 = call i32 @strcmp(i8* dereferenceable(1) %9, i8* dereferenceable(22) getelementptr inbounds ([22 x i8], [22 x i8]* @.str.6, i64 0, i64 0))
%47 = icmp eq i32 %46, 0
br i1 %47, label %48, label %51
48: ; preds = %45
%49 = load i8*, i8** %3
%50 = call i32 @setenv(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.6, i64 0, i64 0), i8* %49, i32 1)
br label %57
51: ; preds = %45
%52 = call i32 @strcmp(i8* dereferenceable(1) %9, i8* dereferenceable(22) getelementptr inbounds ([22 x i8], [22 x i8]* @.str.7, i64 0, i64 0))
%53 = icmp eq i32 %52, 0
br i1 %53, label %54, label %57
54: ; preds = %51
%55 = load i8*, i8** %3
%56 = call i32 @setenv(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.7, i64 0, i64 0), i8* %55, i32 1)
br label %57
57: ; preds = %12, %24, %36, %48, %54, %51, %42, %30, %18, %1
ret void
}