#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 scalar_t__ GLenum;
typedef int GLboolean;

/* Variables and functions */
scalar_t__ GL_UNSIGNED_BYTE_2_3_3_REV;
scalar_t__ GL_UNSIGNED_BYTE_3_3_2;
scalar_t__ GL_UNSIGNED_INT_10_10_10_2;
scalar_t__ GL_UNSIGNED_INT_2_10_10_10_REV;
scalar_t__ GL_UNSIGNED_INT_8_8_8_8;
scalar_t__ GL_UNSIGNED_INT_8_8_8_8_REV;
scalar_t__ GL_UNSIGNED_SHORT_1_5_5_5_REV;
scalar_t__ GL_UNSIGNED_SHORT_4_4_4_4;
scalar_t__ GL_UNSIGNED_SHORT_4_4_4_4_REV;
scalar_t__ GL_UNSIGNED_SHORT_5_5_5_1;
scalar_t__ GL_UNSIGNED_SHORT_5_6_5;
scalar_t__ GL_UNSIGNED_SHORT_5_6_5_REV;
int /*<<< orphan*/ assert(int /*<<< orphan*/);
int /*<<< orphan*/ legalType(scalar_t__);
GLboolean isTypePackedPixel(GLenum type) {
  assert(legalType(type));
  if (type == GL_UNSIGNED_BYTE_3_3_2 || type == GL_UNSIGNED_BYTE_2_3_3_REV ||
      type == GL_UNSIGNED_SHORT_5_6_5 || type == GL_UNSIGNED_SHORT_5_6_5_REV ||
      type == GL_UNSIGNED_SHORT_4_4_4_4 ||
      type == GL_UNSIGNED_SHORT_4_4_4_4_REV ||
      type == GL_UNSIGNED_SHORT_5_5_5_1 ||
      type == GL_UNSIGNED_SHORT_1_5_5_5_REV ||
      type == GL_UNSIGNED_INT_8_8_8_8 || type == GL_UNSIGNED_INT_8_8_8_8_REV ||
      type == GL_UNSIGNED_INT_10_10_10_2 ||
      type == GL_UNSIGNED_INT_2_10_10_10_REV) {
    return 1;
  } else
    return 0;
}


x86 assembly (clang, -O0):
<isTypePackedPixel>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x10(%rbp)
mov    -0x10(%rbp),%rdi
call   1040 <legalType@plt>
mov    %eax,%edi
call   1030 <assert@plt>
mov    -0x10(%rbp),%rax
mov    0x2e91(%rip),%rcx
cmp    (%rcx),%rax
je     122c <isTypePackedPixel+0x10c>
mov    -0x10(%rbp),%rax
mov    0x2e75(%rip),%rcx
cmp    (%rcx),%rax
je     122c <isTypePackedPixel+0x10c>
mov    -0x10(%rbp),%rax
mov    0x2e39(%rip),%rcx
cmp    (%rcx),%rax
je     122c <isTypePackedPixel+0x10c>
mov    -0x10(%rbp),%rax
mov    0x2e0d(%rip),%rcx
cmp    (%rcx),%rax
je     122c <isTypePackedPixel+0x10c>
mov    -0x10(%rbp),%rax
mov    0x2de9(%rip),%rcx
cmp    (%rcx),%rax
je     122c <isTypePackedPixel+0x10c>
mov    -0x10(%rbp),%rax
mov    0x2e05(%rip),%rcx
cmp    (%rcx),%rax
je     122c <isTypePackedPixel+0x10c>
mov    -0x10(%rbp),%rax
mov    0x2e21(%rip),%rcx
cmp    (%rcx),%rax
je     122c <isTypePackedPixel+0x10c>
mov    -0x10(%rbp),%rax
mov    0x2ded(%rip),%rcx
cmp    (%rcx),%rax
je     122c <isTypePackedPixel+0x10c>
mov    -0x10(%rbp),%rax
mov    0x2db1(%rip),%rcx
cmp    (%rcx),%rax
je     122c <isTypePackedPixel+0x10c>
mov    -0x10(%rbp),%rax
mov    0x2da5(%rip),%rcx
cmp    (%rcx),%rax
je     122c <isTypePackedPixel+0x10c>
mov    -0x10(%rbp),%rax
mov    0x2de1(%rip),%rcx
cmp    (%rcx),%rax
je     122c <isTypePackedPixel+0x10c>
mov    -0x10(%rbp),%rax
mov    0x2da5(%rip),%rcx
cmp    (%rcx),%rax
jne    1238 <isTypePackedPixel+0x118>
movl   $0x1,-0x4(%rbp)
jmp    123f <isTypePackedPixel+0x11f>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<isTypePackedPixel>:
push   %rbx
mov    %rdi,%rbx
call   1040 <legalType@plt>
mov    %eax,%edi
call   1030 <assert@plt>
mov    0x2ea1(%rip),%rax
cmp    %rbx,(%rax)
sete   %al
mov    0x2e8c(%rip),%rcx
cmp    %rbx,(%rcx)
sete   %cl
or     %al,%cl
mov    0x2e55(%rip),%rax
cmp    %rbx,(%rax)
sete   %al
mov    0x2e30(%rip),%rdx
cmp    %rbx,(%rdx)
sete   %dl
or     %al,%dl
or     %cl,%dl
mov    0x2e0f(%rip),%rax
cmp    %rbx,(%rax)
sete   %al
mov    0x2e32(%rip),%rcx
cmp    %rbx,(%rcx)
sete   %cl
or     %al,%cl
mov    0x2e53(%rip),%rax
cmp    %rbx,(%rax)
sete   %al
or     %cl,%al
or     %dl,%al
mov    0x2e22(%rip),%rcx
cmp    %rbx,(%rcx)
sete   %cl
mov    0x2ded(%rip),%rdx
cmp    %rbx,(%rdx)
sete   %dl
or     %cl,%dl
mov    0x2de6(%rip),%rcx
cmp    %rbx,(%rcx)
sete   %cl
or     %dl,%cl
mov    0x2e27(%rip),%rdx
cmp    %rbx,(%rdx)
sete   %dl
or     %cl,%dl
or     %al,%dl
mov    0x2dee(%rip),%rax
cmp    %rbx,(%rax)
sete   %al
or     %dl,%al
movzbl %al,%eax
and    $0x1,%eax
pop    %rbx
ret

LLVM IR (-O0):
@GL_UNSIGNED_BYTE_3_3_2 = global i64 0
@GL_UNSIGNED_BYTE_2_3_3_REV = global i64 0
@GL_UNSIGNED_SHORT_5_6_5 = global i64 0
@GL_UNSIGNED_SHORT_5_6_5_REV = global i64 0
@GL_UNSIGNED_SHORT_4_4_4_4 = global i64 0
@GL_UNSIGNED_SHORT_4_4_4_4_REV = global i64 0
@GL_UNSIGNED_SHORT_5_5_5_1 = global i64 0
@GL_UNSIGNED_SHORT_1_5_5_5_REV = global i64 0
@GL_UNSIGNED_INT_8_8_8_8 = global i64 0
@GL_UNSIGNED_INT_8_8_8_8_REV = global i64 0
@GL_UNSIGNED_INT_10_10_10_2 = global i64 0
@GL_UNSIGNED_INT_2_10_10_10_REV = global i64 0
define i32 @isTypePackedPixel(i64 %0) {
%2 = alloca i32
%3 = alloca i64
store i64 %0, i64* %3
%4 = load i64, i64* %3
%5 = call i32 @legalType(i64 %4)
%6 = call i32 @assert(i32 %5)
%7 = load i64, i64* %3
%8 = load i64, i64* @GL_UNSIGNED_BYTE_3_3_2
%9 = icmp eq i64 %7, %8
br i1 %9, label %54, label %10
10: ; preds = %1
%11 = load i64, i64* %3
%12 = load i64, i64* @GL_UNSIGNED_BYTE_2_3_3_REV
%13 = icmp eq i64 %11, %12
br i1 %13, label %54, label %14
14: ; preds = %10
%15 = load i64, i64* %3
%16 = load i64, i64* @GL_UNSIGNED_SHORT_5_6_5
%17 = icmp eq i64 %15, %16
br i1 %17, label %54, label %18
18: ; preds = %14
%19 = load i64, i64* %3
%20 = load i64, i64* @GL_UNSIGNED_SHORT_5_6_5_REV
%21 = icmp eq i64 %19, %20
br i1 %21, label %54, label %22
22: ; preds = %18
%23 = load i64, i64* %3
%24 = load i64, i64* @GL_UNSIGNED_SHORT_4_4_4_4
%25 = icmp eq i64 %23, %24
br i1 %25, label %54, label %26
26: ; preds = %22
%27 = load i64, i64* %3
%28 = load i64, i64* @GL_UNSIGNED_SHORT_4_4_4_4_REV
%29 = icmp eq i64 %27, %28
br i1 %29, label %54, label %30
30: ; preds = %26
%31 = load i64, i64* %3
%32 = load i64, i64* @GL_UNSIGNED_SHORT_5_5_5_1
%33 = icmp eq i64 %31, %32
br i1 %33, label %54, label %34
34: ; preds = %30
%35 = load i64, i64* %3
%36 = load i64, i64* @GL_UNSIGNED_SHORT_1_5_5_5_REV
%37 = icmp eq i64 %35, %36
br i1 %37, label %54, label %38
38: ; preds = %34
%39 = load i64, i64* %3
%40 = load i64, i64* @GL_UNSIGNED_INT_8_8_8_8
%41 = icmp eq i64 %39, %40
br i1 %41, label %54, label %42
42: ; preds = %38
%43 = load i64, i64* %3
%44 = load i64, i64* @GL_UNSIGNED_INT_8_8_8_8_REV
%45 = icmp eq i64 %43, %44
br i1 %45, label %54, label %46
46: ; preds = %42
%47 = load i64, i64* %3
%48 = load i64, i64* @GL_UNSIGNED_INT_10_10_10_2
%49 = icmp eq i64 %47, %48
br i1 %49, label %54, label %50
50: ; preds = %46
%51 = load i64, i64* %3
%52 = load i64, i64* @GL_UNSIGNED_INT_2_10_10_10_REV
%53 = icmp eq i64 %51, %52
br i1 %53, label %54, label %55
54: ; preds = %50, %46, %42, %38, %34, %30, %26, %22, %18, %14, %10, %1
store i32 1, i32* %2
br label %56
55: ; preds = %50
store i32 0, i32* %2
br label %56
56: ; preds = %55, %54
%57 = load i32, i32* %2
ret i32 %57
}

LLVM IR (-O2):
@GL_UNSIGNED_BYTE_3_3_2 = global i64 0
@GL_UNSIGNED_BYTE_2_3_3_REV = global i64 0
@GL_UNSIGNED_SHORT_5_6_5 = global i64 0
@GL_UNSIGNED_SHORT_5_6_5_REV = global i64 0
@GL_UNSIGNED_SHORT_4_4_4_4 = global i64 0
@GL_UNSIGNED_SHORT_4_4_4_4_REV = global i64 0
@GL_UNSIGNED_SHORT_5_5_5_1 = global i64 0
@GL_UNSIGNED_SHORT_1_5_5_5_REV = global i64 0
@GL_UNSIGNED_INT_8_8_8_8 = global i64 0
@GL_UNSIGNED_INT_8_8_8_8_REV = global i64 0
@GL_UNSIGNED_INT_10_10_10_2 = global i64 0
@GL_UNSIGNED_INT_2_10_10_10_REV = global i64 0
define i32 @isTypePackedPixel(i64 %0) {
%2 = tail call i32 @legalType(i64 %0)
%3 = tail call i32 @assert(i32 %2)
%4 = load i64, i64* @GL_UNSIGNED_BYTE_3_3_2
%5 = icmp eq i64 %4, %0
%6 = load i64, i64* @GL_UNSIGNED_BYTE_2_3_3_REV
%7 = icmp eq i64 %6, %0
%8 = select i1 %5, i1 true, i1 %7
%9 = load i64, i64* @GL_UNSIGNED_SHORT_5_6_5
%10 = icmp eq i64 %9, %0
%11 = select i1 %8, i1 true, i1 %10
%12 = load i64, i64* @GL_UNSIGNED_SHORT_5_6_5_REV
%13 = icmp eq i64 %12, %0
%14 = select i1 %11, i1 true, i1 %13
%15 = load i64, i64* @GL_UNSIGNED_SHORT_4_4_4_4
%16 = icmp eq i64 %15, %0
%17 = select i1 %14, i1 true, i1 %16
%18 = load i64, i64* @GL_UNSIGNED_SHORT_4_4_4_4_REV
%19 = icmp eq i64 %18, %0
%20 = select i1 %17, i1 true, i1 %19
%21 = load i64, i64* @GL_UNSIGNED_SHORT_5_5_5_1
%22 = icmp eq i64 %21, %0
%23 = select i1 %20, i1 true, i1 %22
%24 = load i64, i64* @GL_UNSIGNED_SHORT_1_5_5_5_REV
%25 = icmp eq i64 %24, %0
%26 = select i1 %23, i1 true, i1 %25
%27 = load i64, i64* @GL_UNSIGNED_INT_8_8_8_8
%28 = icmp eq i64 %27, %0
%29 = select i1 %26, i1 true, i1 %28
%30 = load i64, i64* @GL_UNSIGNED_INT_8_8_8_8_REV
%31 = icmp eq i64 %30, %0
%32 = select i1 %29, i1 true, i1 %31
%33 = load i64, i64* @GL_UNSIGNED_INT_10_10_10_2
%34 = icmp eq i64 %33, %0
%35 = select i1 %32, i1 true, i1 %34
%36 = load i64, i64* @GL_UNSIGNED_INT_2_10_10_10_REV
%37 = icmp eq i64 %36, %0
%38 = select i1 %35, i1 true, i1 %37
%39 = zext i1 %38 to i32
ret i32 %39
}