#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 */
typedef struct TYPE_3__ TYPE_1__;

/* Type definitions */
struct TYPE_3__ {
  int type;
  int /*<<< orphan*/ xkey;
};
typedef TYPE_1__ XEvent;
typedef int /*<<< orphan*/ Bool;

/* Variables and functions */
int /*<<< orphan*/ False;
#define KeyPress 132
#define KeyRelease 131
int /*<<< orphan*/ True;
#define XK_Escape 130
#define XK_Shift_L 129
#define XK_Shift_R 128
int /*<<< orphan*/ XLookupKeysym(int /*<<< orphan*/ *, int /*<<< orphan*/);
Bool _procEvent(XEvent *e) {
  Bool proceed = True;
  switch (e->type) {
  case KeyPress:
    switch (XLookupKeysym(&(e->xkey), 0)) {
    case XK_Shift_L:
    case XK_Shift_R:
      break;
    case XK_Escape:
      proceed = False;
      break;
    }
    break;
  case KeyRelease:
    switch (XLookupKeysym(&(e->xkey), 0)) {
    case XK_Shift_L:
    case XK_Shift_R:
      break;
    }
    break;
  }
  return proceed;
}


x86 assembly (clang, -O0):
<_procEvent>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    0x2ebd(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0xc(%rbp)
mov    -0x8(%rbp),%rax
mov    (%rax),%eax
mov    %eax,-0x10(%rbp)
sub    $0x83,%eax
je     11a4 <_procEvent+0x94>
jmp    1141 <_procEvent+0x31>
mov    -0x10(%rbp),%eax
sub    $0x84,%eax
jne    11ce <_procEvent+0xbe>
jmp    1154 <_procEvent+0x44>
mov    -0x8(%rbp),%rdi
add    $0x4,%rdi
xor    %esi,%esi
call   1030 <XLookupKeysym@plt>
mov    %eax,%ecx
mov    %ecx,%eax
add    $0xffffff80,%eax
mov    %ecx,-0x14(%rbp)
sub    $0x2,%eax
jb     118e <_procEvent+0x7e>
jmp    117b <_procEvent+0x6b>
mov    -0x14(%rbp),%eax
sub    $0x82,%eax
je     1193 <_procEvent+0x83>
jmp    119f <_procEvent+0x8f>
jmp    119f <_procEvent+0x8f>
mov    0x2e4e(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0xc(%rbp)
jmp    11ce <_procEvent+0xbe>
mov    -0x8(%rbp),%rdi
add    $0x4,%rdi
xor    %esi,%esi
call   1030 <XLookupKeysym@plt>
add    $0xffffff80,%eax
sub    $0x1,%eax
ja     11c9 <_procEvent+0xb9>
jmp    11c4 <_procEvent+0xb4>
jmp    11c9 <_procEvent+0xb9>
jmp    11ce <_procEvent+0xbe>
mov    -0xc(%rbp),%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<_procEvent>:
push   %rbx
mov    0x2ec8(%rip),%rax
mov    (%rax),%ebx
mov    (%rdi),%eax
cmp    $0x83,%eax
je     1147 <_procEvent+0x37>
cmp    $0x84,%eax
jne    1152 <_procEvent+0x42>
add    $0x4,%rdi
xor    %esi,%esi
call   1030 <XLookupKeysym@plt>
cmp    $0x82,%eax
jne    1152 <_procEvent+0x42>
mov    0x2ea5(%rip),%rax
mov    (%rax),%ebx
jmp    1152 <_procEvent+0x42>
add    $0x4,%rdi
xor    %esi,%esi
call   1030 <XLookupKeysym@plt>
mov    %ebx,%eax
pop    %rbx
ret

LLVM IR (-O0):
%struct.TYPE_3__ = type { i32, i32 }
@True = global i32 0
@False = global i32 0
define i32 @_procEvent(%struct.TYPE_3__* %0) {
%2 = alloca %struct.TYPE_3__*
%3 = alloca i32
store %struct.TYPE_3__* %0, %struct.TYPE_3__** %2
%4 = load i32, i32* @True
store i32 %4, i32* %3
%5 = load %struct.TYPE_3__*, %struct.TYPE_3__** %2
%6 = getelementptr inbounds %struct.TYPE_3__, %struct.TYPE_3__* %5, i32 0, i32 0
%7 = load i32, i32* %6
switch i32 %7, label %22 [
i32 132, label %8
i32 131, label %16
]
8: ; preds = %1
%9 = load %struct.TYPE_3__*, %struct.TYPE_3__** %2
%10 = getelementptr inbounds %struct.TYPE_3__, %struct.TYPE_3__* %9, i32 0, i32 1
%11 = call i32 @XLookupKeysym(i32* %10, i32 0)
switch i32 %11, label %15 [
i32 129, label %12
i32 128, label %12
i32 130, label %13
]
12: ; preds = %8, %8
br label %15
13: ; preds = %8
%14 = load i32, i32* @False
store i32 %14, i32* %3
br label %15
15: ; preds = %8, %13, %12
br label %22
16: ; preds = %1
%17 = load %struct.TYPE_3__*, %struct.TYPE_3__** %2
%18 = getelementptr inbounds %struct.TYPE_3__, %struct.TYPE_3__* %17, i32 0, i32 1
%19 = call i32 @XLookupKeysym(i32* %18, i32 0)
switch i32 %19, label %21 [
i32 129, label %20
i32 128, label %20
]
20: ; preds = %16, %16
br label %21
21: ; preds = %16, %20
br label %22
22: ; preds = %1, %21, %15
%23 = load i32, i32* %3
ret i32 %23
}

LLVM IR (-O2):
%struct.TYPE_3__ = type { i32, i32 }
@True = global i32 0
@False = global i32 0
define i32 @_procEvent(%struct.TYPE_3__* %0) {
%2 = load i32, i32* @True
%3 = getelementptr inbounds %struct.TYPE_3__, %struct.TYPE_3__* %0, i64 0, i32 0
%4 = load i32, i32* %3
switch i32 %4, label %14 [
i32 132, label %5
i32 131, label %11
]
5: ; preds = %1
%6 = getelementptr inbounds %struct.TYPE_3__, %struct.TYPE_3__* %0, i64 0, i32 1
%7 = tail call i32 @XLookupKeysym(i32* %6, i32 0)
%8 = icmp eq i32 %7, 130
%9 = load i32, i32* @False
%10 = select i1 %8, i32 %9, i32 %2
br label %14
11: ; preds = %1
%12 = getelementptr inbounds %struct.TYPE_3__, %struct.TYPE_3__* %0, i64 0, i32 1
%13 = tail call i32 @XLookupKeysym(i32* %12, i32 0)
br label %14
14: ; preds = %5, %1, %11
%15 = phi i32 [ %2, %1 ], [ %2, %11 ], [ %10, %5 ]
ret i32 %15
}