#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 KXTF9_tap_unmask_TDO();
int KXTF9_tap_unmask_TFD();
int KXTF9_tap_unmask_TFU();
int KXTF9_tap_unmask_TLE();
int KXTF9_tap_unmask_TRI();
int KXTF9_tap_unmask_TUP();
int KXTF9_tap_unmask_all_direction(void) {
  int res = 0;
  res |= KXTF9_tap_unmask_TFU();
  res |= KXTF9_tap_unmask_TFD();
  res |= KXTF9_tap_unmask_TUP();
  res |= KXTF9_tap_unmask_TDO();
  res |= KXTF9_tap_unmask_TRI();
  res |= KXTF9_tap_unmask_TLE();
  return res;
}


x86 assembly (clang, -O0):
<KXTF9_tap_unmask_all_direction>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
mov    $0x0,%al
call   1060 <KXTF9_tap_unmask_TFU@plt>
or     -0x4(%rbp),%eax
mov    %eax,-0x4(%rbp)
mov    $0x0,%al
call   1080 <KXTF9_tap_unmask_TFD@plt>
or     -0x4(%rbp),%eax
mov    %eax,-0x4(%rbp)
mov    $0x0,%al
call   1070 <KXTF9_tap_unmask_TUP@plt>
or     -0x4(%rbp),%eax
mov    %eax,-0x4(%rbp)
mov    $0x0,%al
call   1050 <KXTF9_tap_unmask_TDO@plt>
or     -0x4(%rbp),%eax
mov    %eax,-0x4(%rbp)
mov    $0x0,%al
call   1030 <KXTF9_tap_unmask_TRI@plt>
or     -0x4(%rbp),%eax
mov    %eax,-0x4(%rbp)
mov    $0x0,%al
call   1040 <KXTF9_tap_unmask_TLE@plt>
or     -0x4(%rbp),%eax
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<KXTF9_tap_unmask_all_direction>:
push   %rbp
push   %r14
push   %rbx
xor    %eax,%eax
call   1060 <KXTF9_tap_unmask_TFU@plt>
mov    %eax,%ebx
xor    %eax,%eax
call   1080 <KXTF9_tap_unmask_TFD@plt>
mov    %eax,%ebp
or     %ebx,%ebp
xor    %eax,%eax
call   1070 <KXTF9_tap_unmask_TUP@plt>
mov    %eax,%r14d
xor    %eax,%eax
call   1050 <KXTF9_tap_unmask_TDO@plt>
mov    %eax,%ebx
or     %r14d,%ebx
or     %ebp,%ebx
xor    %eax,%eax
call   1030 <KXTF9_tap_unmask_TRI@plt>
mov    %eax,%ebp
xor    %eax,%eax
call   1040 <KXTF9_tap_unmask_TLE@plt>
or     %ebp,%eax
or     %ebx,%eax
pop    %rbx
pop    %r14
pop    %rbp
ret

LLVM IR (-O0):
define i32 @KXTF9_tap_unmask_all_direction() {
%1 = alloca i32
store i32 0, i32* %1
%2 = call i32 (...) @KXTF9_tap_unmask_TFU()
%3 = load i32, i32* %1
%4 = or i32 %3, %2
store i32 %4, i32* %1
%5 = call i32 (...) @KXTF9_tap_unmask_TFD()
%6 = load i32, i32* %1
%7 = or i32 %6, %5
store i32 %7, i32* %1
%8 = call i32 (...) @KXTF9_tap_unmask_TUP()
%9 = load i32, i32* %1
%10 = or i32 %9, %8
store i32 %10, i32* %1
%11 = call i32 (...) @KXTF9_tap_unmask_TDO()
%12 = load i32, i32* %1
%13 = or i32 %12, %11
store i32 %13, i32* %1
%14 = call i32 (...) @KXTF9_tap_unmask_TRI()
%15 = load i32, i32* %1
%16 = or i32 %15, %14
store i32 %16, i32* %1
%17 = call i32 (...) @KXTF9_tap_unmask_TLE()
%18 = load i32, i32* %1
%19 = or i32 %18, %17
store i32 %19, i32* %1
%20 = load i32, i32* %1
ret i32 %20
}

LLVM IR (-O2):
define i32 @KXTF9_tap_unmask_all_direction() {
%1 = tail call i32 (...) @KXTF9_tap_unmask_TFU()
%2 = tail call i32 (...) @KXTF9_tap_unmask_TFD()
%3 = or i32 %2, %1
%4 = tail call i32 (...) @KXTF9_tap_unmask_TUP()
%5 = or i32 %3, %4
%6 = tail call i32 (...) @KXTF9_tap_unmask_TDO()
%7 = or i32 %5, %6
%8 = tail call i32 (...) @KXTF9_tap_unmask_TRI()
%9 = or i32 %7, %8
%10 = tail call i32 (...) @KXTF9_tap_unmask_TLE()
%11 = or i32 %9, %10
ret i32 %11
}