#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 hashExt(char const *);
int isVideoFile(const char *filename) {
  switch (hashExt(filename)) {
  case 0x007A530981FEBBAA:
  case 0x007A6D3158CF00AC:
  case 0x007A702376D830F6:
  case 0xEC59D09162FE6667:
  case 0x007A530653BC5F32:
  case 0x006D0241B8BE6BDE:
  case 0x0085D1C916AEEA68:
    return 1;
  default:
    return 0;
  }
}


x86 assembly (clang, -O0):
<isVideoFile>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x10(%rbp)
mov    -0x10(%rbp),%rdi
call   1030 <hashExt@plt>
mov    %eax,%ecx
mov    %ecx,-0x14(%rbp)
sub    $0x81febbaa,%eax
je     11ac <isVideoFile+0x9c>
jmp    113a <isVideoFile+0x2a>
mov    -0x14(%rbp),%eax
sub    $0xb8be6bde,%eax
je     11ac <isVideoFile+0x9c>
jmp    114d <isVideoFile+0x3d>
mov    -0x14(%rbp),%eax
sub    $0x16aeea68,%eax
je     11ac <isVideoFile+0x9c>
jmp    1160 <isVideoFile+0x50>
mov    -0x14(%rbp),%eax
sub    $0x53bc5f32,%eax
je     11ac <isVideoFile+0x9c>
jmp    1173 <isVideoFile+0x63>
mov    -0x14(%rbp),%eax
sub    $0x58cf00ac,%eax
je     11ac <isVideoFile+0x9c>
jmp    1186 <isVideoFile+0x76>
mov    -0x14(%rbp),%eax
sub    $0x62fe6667,%eax
je     11ac <isVideoFile+0x9c>
jmp    1199 <isVideoFile+0x89>
mov    -0x14(%rbp),%eax
sub    $0x76d830f6,%eax
jne    11b8 <isVideoFile+0xa8>
jmp    11ac <isVideoFile+0x9c>
movl   $0x1,-0x4(%rbp)
jmp    11bf <isVideoFile+0xaf>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<isVideoFile>:
push   %rax
call   1030 <hashExt@plt>
mov    %eax,%ecx
mov    $0x1,%eax
cmp    $0x53bc5f31,%ecx
jle    113f <isVideoFile+0x2f>
cmp    $0x62fe6666,%ecx
jg     1159 <isVideoFile+0x49>
cmp    $0x53bc5f32,%ecx
je     113d <isVideoFile+0x2d>
cmp    $0x58cf00ac,%ecx
jne    1169 <isVideoFile+0x59>
pop    %rcx
ret
cmp    $0x81febbaa,%ecx
je     113d <isVideoFile+0x2d>
cmp    $0xb8be6bde,%ecx
je     113d <isVideoFile+0x2d>
cmp    $0x16aeea68,%ecx
je     113d <isVideoFile+0x2d>
jmp    1169 <isVideoFile+0x59>
cmp    $0x62fe6667,%ecx
je     113d <isVideoFile+0x2d>
cmp    $0x76d830f6,%ecx
je     113d <isVideoFile+0x2d>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
define i32 @isVideoFile(i8* %0) {
%2 = alloca i32
%3 = alloca i8*
store i8* %0, i8** %3
%4 = load i8*, i8** %3
%5 = call i32 @hashExt(i8* %4)
switch i32 %5, label %7 [
i32 -2114012246, label %6
i32 1489961132, label %6
i32 1993879798, label %6
i32 1660839527, label %6
i32 1404854066, label %6
i32 -1195480098, label %6
i32 380562024, label %6
]
6: ; preds = %1, %1, %1, %1, %1, %1, %1
store i32 1, i32* %2
br label %8
7: ; preds = %1
store i32 0, i32* %2
br label %8
8: ; preds = %7, %6
%9 = load i32, i32* %2
ret i32 %9
}

LLVM IR (-O2):
define i32 @isVideoFile(i8* %0) {
%2 = tail call i32 @hashExt(i8* %0)
switch i32 %2, label %3 [
i32 -2114012246, label %4
i32 1489961132, label %4
i32 1993879798, label %4
i32 1660839527, label %4
i32 1404854066, label %4
i32 -1195480098, label %4
i32 380562024, label %4
]
3: ; preds = %1
br label %4
4: ; preds = %1, %1, %1, %1, %1, %1, %1, %3
%5 = phi i32 [ 0, %3 ], [ 1, %1 ], [ 1, %1 ], [ 1, %1 ], [ 1, %1 ], [ 1, %1 ], [ 1, %1 ], [ 1, %1 ]
ret i32 %5
}