#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 */
typedef int uint64_t;
typedef int uint32_t;

/* Variables and functions */
int fnP(uint64_t klowery) {
  const uint32_t ht2_function4a = 0x2C79;
  const uint32_t ht2_function4b = 0x6671;
  const uint32_t ht2_function4p = 0xAE83;
  uint32_t i;
  i = (ht2_function4a >>
       (((klowery >> 2) & 3) | ((klowery >> (5 - 2)) & 0xC))) &
      1;
  i |= ((ht2_function4b << 1) >>
        (((klowery >> 8) & 1) | ((klowery >> (12 - 1)) & 2) |
         ((klowery >> (14 - 2)) & 0xC))) &
       0x02;
  i |= ((ht2_function4b << 2) >>
        (((klowery >> 17) & 1) | ((klowery >> (21 - 1)) & 2) |
         ((klowery >> (23 - 2)) & 4) | ((klowery >> (26 - 3)) & 8))) &
       0x04;
  i |= ((ht2_function4b << 3) >>
        (((klowery >> 28) & 3) | ((klowery >> (31 - 2)) & 4) |
         ((klowery >> (33 - 3)) & 8))) &
       0x08;
  return (ht2_function4p >> i) & 1;
}


x86 assembly (clang, -O0):
<fnP>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
movl   $0x2c79,-0x8(%rbp)
movl   $0x6671,-0xc(%rbp)
movl   $0xae83,-0x10(%rbp)
mov    -0x4(%rbp),%ecx
sar    $0x2,%ecx
and    $0x3,%ecx
mov    -0x4(%rbp),%eax
sar    $0x3,%eax
and    $0xc,%eax
or     %eax,%ecx
mov    $0x2c79,%eax
sar    %cl,%eax
and    $0x1,%eax
mov    %eax,-0x14(%rbp)
mov    -0x4(%rbp),%ecx
sar    $0x8,%ecx
and    $0x1,%ecx
mov    -0x4(%rbp),%eax
sar    $0xb,%eax
and    $0x2,%eax
or     %eax,%ecx
mov    -0x4(%rbp),%eax
sar    $0xc,%eax
and    $0xc,%eax
or     %eax,%ecx
mov    $0xcce2,%eax
sar    %cl,%eax
and    $0x2,%eax
or     -0x14(%rbp),%eax
mov    %eax,-0x14(%rbp)
mov    -0x4(%rbp),%ecx
sar    $0x11,%ecx
and    $0x1,%ecx
mov    -0x4(%rbp),%eax
sar    $0x14,%eax
and    $0x2,%eax
or     %eax,%ecx
mov    -0x4(%rbp),%eax
sar    $0x15,%eax
and    $0x4,%eax
or     %eax,%ecx
mov    -0x4(%rbp),%eax
sar    $0x17,%eax
and    $0x8,%eax
or     %eax,%ecx
mov    $0x199c4,%eax
sar    %cl,%eax
and    $0x4,%eax
or     -0x14(%rbp),%eax
mov    %eax,-0x14(%rbp)
mov    -0x4(%rbp),%ecx
sar    $0x1c,%ecx
and    $0x3,%ecx
mov    -0x4(%rbp),%eax
sar    $0x1d,%eax
and    $0x4,%eax
or     %eax,%ecx
mov    -0x4(%rbp),%eax
sar    $0x1e,%eax
and    $0x8,%eax
or     %eax,%ecx
mov    $0x33388,%eax
sar    %cl,%eax
and    $0x8,%eax
or     -0x14(%rbp),%eax
mov    %eax,-0x14(%rbp)
mov    -0x14(%rbp),%ecx
mov    $0xae83,%eax
sar    %cl,%eax
and    $0x1,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<fnP>:
mov    %edi,%eax
shr    $0x2,%eax
and    $0x3,%eax
mov    %edi,%ecx
shr    $0x3,%ecx
and    $0xc,%ecx
or     %eax,%ecx
mov    $0x2c79,%r8d
shr    %cl,%r8d
and    $0x1,%r8d
mov    %edi,%eax
shr    $0x8,%eax
and    $0x1,%eax
mov    %edi,%esi
shr    $0xb,%esi
and    $0x2,%esi
or     %eax,%esi
mov    %edi,%ecx
shr    $0xc,%ecx
and    $0xc,%ecx
or     %esi,%ecx
mov    $0xcce2,%eax
shr    %cl,%eax
and    $0x2,%eax
mov    %edi,%ecx
shr    $0x11,%ecx
and    $0x1,%ecx
mov    %edi,%esi
shr    $0x14,%esi
and    $0x2,%esi
or     %ecx,%esi
mov    %edi,%edx
shr    $0x15,%edx
and    $0x4,%edx
or     %esi,%edx
mov    %edi,%ecx
shr    $0x17,%ecx
and    $0x8,%ecx
or     %edx,%ecx
mov    $0x199c4,%esi
shr    %cl,%esi
or     %r8d,%eax
and    $0x4,%esi
mov    %edi,%ecx
shr    $0x1c,%ecx
mov    %ecx,%edx
and    $0x3,%edx
shr    $0x1f,%edi
lea    (%rdx,%rdi,4),%edx
and    $0xfffffff8,%ecx
or     %edx,%ecx
mov    $0x33388,%edx
shr    %cl,%edx
and    $0x8,%edx
or     %eax,%edx
or     %esi,%edx
mov    $0xae83,%eax
mov    %edx,%ecx
shr    %cl,%eax
and    $0x1,%eax
ret

LLVM IR (-O0):
define i32 @fnP(i32 %0) {
%2 = alloca i32
%3 = alloca i32
%4 = alloca i32
%5 = alloca i32
%6 = alloca i32
store i32 %0, i32* %2
store i32 11385, i32* %3
store i32 26225, i32* %4
store i32 44675, i32* %5
%7 = load i32, i32* %2
%8 = ashr i32 %7, 2
%9 = and i32 %8, 3
%10 = load i32, i32* %2
%11 = ashr i32 %10, 3
%12 = and i32 %11, 12
%13 = or i32 %9, %12
%14 = ashr i32 11385, %13
%15 = and i32 %14, 1
store i32 %15, i32* %6
%16 = load i32, i32* %2
%17 = ashr i32 %16, 8
%18 = and i32 %17, 1
%19 = load i32, i32* %2
%20 = ashr i32 %19, 11
%21 = and i32 %20, 2
%22 = or i32 %18, %21
%23 = load i32, i32* %2
%24 = ashr i32 %23, 12
%25 = and i32 %24, 12
%26 = or i32 %22, %25
%27 = ashr i32 52450, %26
%28 = and i32 %27, 2
%29 = load i32, i32* %6
%30 = or i32 %29, %28
store i32 %30, i32* %6
%31 = load i32, i32* %2
%32 = ashr i32 %31, 17
%33 = and i32 %32, 1
%34 = load i32, i32* %2
%35 = ashr i32 %34, 20
%36 = and i32 %35, 2
%37 = or i32 %33, %36
%38 = load i32, i32* %2
%39 = ashr i32 %38, 21
%40 = and i32 %39, 4
%41 = or i32 %37, %40
%42 = load i32, i32* %2
%43 = ashr i32 %42, 23
%44 = and i32 %43, 8
%45 = or i32 %41, %44
%46 = ashr i32 104900, %45
%47 = and i32 %46, 4
%48 = load i32, i32* %6
%49 = or i32 %48, %47
store i32 %49, i32* %6
%50 = load i32, i32* %2
%51 = ashr i32 %50, 28
%52 = and i32 %51, 3
%53 = load i32, i32* %2
%54 = ashr i32 %53, 29
%55 = and i32 %54, 4
%56 = or i32 %52, %55
%57 = load i32, i32* %2
%58 = ashr i32 %57, 30
%59 = and i32 %58, 8
%60 = or i32 %56, %59
%61 = ashr i32 209800, %60
%62 = and i32 %61, 8
%63 = load i32, i32* %6
%64 = or i32 %63, %62
store i32 %64, i32* %6
%65 = load i32, i32* %6
%66 = ashr i32 44675, %65
%67 = and i32 %66, 1
ret i32 %67
}

LLVM IR (-O2):
define i32 @fnP(i32 %0) {
%2 = lshr i32 %0, 2
%3 = and i32 %2, 3
%4 = lshr i32 %0, 3
%5 = and i32 %4, 12
%6 = or i32 %3, %5
%7 = lshr i32 11385, %6
%8 = and i32 %7, 1
%9 = lshr i32 %0, 8
%10 = and i32 %9, 1
%11 = lshr i32 %0, 11
%12 = and i32 %11, 2
%13 = or i32 %10, %12
%14 = lshr i32 %0, 12
%15 = and i32 %14, 12
%16 = or i32 %13, %15
%17 = lshr i32 52450, %16
%18 = and i32 %17, 2
%19 = or i32 %18, %8
%20 = lshr i32 %0, 17
%21 = and i32 %20, 1
%22 = lshr i32 %0, 20
%23 = and i32 %22, 2
%24 = or i32 %21, %23
%25 = lshr i32 %0, 21
%26 = and i32 %25, 4
%27 = or i32 %24, %26
%28 = lshr i32 %0, 23
%29 = and i32 %28, 8
%30 = or i32 %27, %29
%31 = lshr i32 104900, %30
%32 = and i32 %31, 4
%33 = lshr i32 %0, 28
%34 = and i32 %33, 3
%35 = lshr i32 %0, 29
%36 = and i32 %35, 4
%37 = or i32 %34, %36
%38 = ashr i32 %0, 30
%39 = and i32 %38, 8
%40 = or i32 %37, %39
%41 = lshr i32 209800, %40
%42 = and i32 %41, 8
%43 = or i32 %19, %42
%44 = or i32 %43, %32
%45 = lshr i32 44675, %44
%46 = and i32 %45, 1
ret i32 %46
}