#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 33457:
  case 32503:
  case 33438:
  case 569705:
  case 33508:
  case 30144:
  case 36362:
    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    $0x75c0,%eax
je     11ac <isVideoFile+0x9c>
jmp    113a <isVideoFile+0x2a>
mov    -0x14(%rbp),%eax
sub    $0x7ef7,%eax
je     11ac <isVideoFile+0x9c>
jmp    114d <isVideoFile+0x3d>
mov    -0x14(%rbp),%eax
sub    $0x829e,%eax
je     11ac <isVideoFile+0x9c>
jmp    1160 <isVideoFile+0x50>
mov    -0x14(%rbp),%eax
sub    $0x82b1,%eax
je     11ac <isVideoFile+0x9c>
jmp    1173 <isVideoFile+0x63>
mov    -0x14(%rbp),%eax
sub    $0x82e4,%eax
je     11ac <isVideoFile+0x9c>
jmp    1186 <isVideoFile+0x76>
mov    -0x14(%rbp),%eax
sub    $0x8e0a,%eax
je     11ac <isVideoFile+0x9c>
jmp    1199 <isVideoFile+0x89>
mov    -0x14(%rbp),%eax
sub    $0x8b169,%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    $0x82b0,%ecx
jle    113f <isVideoFile+0x2f>
cmp    $0x8e09,%ecx
jg     1159 <isVideoFile+0x49>
cmp    $0x82b1,%ecx
je     113d <isVideoFile+0x2d>
cmp    $0x82e4,%ecx
jne    1169 <isVideoFile+0x59>
pop    %rcx
ret
cmp    $0x75c0,%ecx
je     113d <isVideoFile+0x2d>
cmp    $0x7ef7,%ecx
je     113d <isVideoFile+0x2d>
cmp    $0x829e,%ecx
je     113d <isVideoFile+0x2d>
jmp    1169 <isVideoFile+0x59>
cmp    $0x8e0a,%ecx
je     113d <isVideoFile+0x2d>
cmp    $0x8b169,%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 33457, label %6
i32 32503, label %6
i32 33438, label %6
i32 569705, label %6
i32 33508, label %6
i32 30144, label %6
i32 36362, 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 33457, label %4
i32 32503, label %4
i32 33438, label %4
i32 569705, label %4
i32 33508, label %4
i32 30144, label %4
i32 36362, 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
}