int lpfc_is_LC_HBA(unsigned short device) {
  if ((device == 0xf0a5) || (device == 0xf098) || (device == 0xf0a1) ||
      (device == 0xf0d5) || (device == 0xf0e5) || (device == 0xf0d1) ||
      (device == 0xf0e1) || (device == 0xf095))
    return 1;
  else
    return 0;
}


x86 assembly (clang, -O0):
<lpfc_is_LC_HBA>:
push   %rbp
mov    %rsp,%rbp
mov    %di,%ax
mov    %ax,-0x6(%rbp)
movzwl -0x6(%rbp),%eax
cmp    $0xf0a5,%eax
je     1183 <lpfc_is_LC_HBA+0x83>
movzwl -0x6(%rbp),%eax
cmp    $0xf098,%eax
je     1183 <lpfc_is_LC_HBA+0x83>
movzwl -0x6(%rbp),%eax
cmp    $0xf0a1,%eax
je     1183 <lpfc_is_LC_HBA+0x83>
movzwl -0x6(%rbp),%eax
cmp    $0xf0d5,%eax
je     1183 <lpfc_is_LC_HBA+0x83>
movzwl -0x6(%rbp),%eax
cmp    $0xf0e5,%eax
je     1183 <lpfc_is_LC_HBA+0x83>
movzwl -0x6(%rbp),%eax
cmp    $0xf0d1,%eax
je     1183 <lpfc_is_LC_HBA+0x83>
movzwl -0x6(%rbp),%eax
cmp    $0xf0e1,%eax
je     1183 <lpfc_is_LC_HBA+0x83>
movzwl -0x6(%rbp),%eax
cmp    $0xf095,%eax
jne    118f <lpfc_is_LC_HBA+0x8f>
movl   $0x1,-0x4(%rbp)
jmp    1196 <lpfc_is_LC_HBA+0x96>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<lpfc_is_LC_HBA>:
mov    $0x1,%eax
lea    0xf6b(%rdi),%ecx
cmp    $0x3c,%cx
ja     1124 <lpfc_is_LC_HBA+0x24>
movzwl %cx,%ecx
movabs $0x1000000000011009,%rdx
bt     %rcx,%rdx
jb     113e <lpfc_is_LC_HBA+0x3e>
add    $0xf2b,%edi
cmp    $0x10,%di
ja     113f <lpfc_is_LC_HBA+0x3f>
movzwl %di,%ecx
mov    $0x11001,%edx
bt     %rcx,%rdx
jae    113f <lpfc_is_LC_HBA+0x3f>
ret
xor    %eax,%eax
ret

LLVM IR (-O0):
define i32 @lpfc_is_LC_HBA(i16 zeroext %0) {
%2 = alloca i32
%3 = alloca i16
store i16 %0, i16* %3
%4 = load i16, i16* %3
%5 = zext i16 %4 to i32
%6 = icmp eq i32 %5, 61605
br i1 %6, label %35, label %7
7: ; preds = %1
%8 = load i16, i16* %3
%9 = zext i16 %8 to i32
%10 = icmp eq i32 %9, 61592
br i1 %10, label %35, label %11
11: ; preds = %7
%12 = load i16, i16* %3
%13 = zext i16 %12 to i32
%14 = icmp eq i32 %13, 61601
br i1 %14, label %35, label %15
15: ; preds = %11
%16 = load i16, i16* %3
%17 = zext i16 %16 to i32
%18 = icmp eq i32 %17, 61653
br i1 %18, label %35, label %19
19: ; preds = %15
%20 = load i16, i16* %3
%21 = zext i16 %20 to i32
%22 = icmp eq i32 %21, 61669
br i1 %22, label %35, label %23
23: ; preds = %19
%24 = load i16, i16* %3
%25 = zext i16 %24 to i32
%26 = icmp eq i32 %25, 61649
br i1 %26, label %35, label %27
27: ; preds = %23
%28 = load i16, i16* %3
%29 = zext i16 %28 to i32
%30 = icmp eq i32 %29, 61665
br i1 %30, label %35, label %31
31: ; preds = %27
%32 = load i16, i16* %3
%33 = zext i16 %32 to i32
%34 = icmp eq i32 %33, 61589
br i1 %34, label %35, label %36
35: ; preds = %31, %27, %23, %19, %15, %11, %7, %1
store i32 1, i32* %2
br label %37
36: ; preds = %31
store i32 0, i32* %2
br label %37
37: ; preds = %36, %35
%38 = load i32, i32* %2
ret i32 %38
}

LLVM IR (-O2):
define i32 @lpfc_is_LC_HBA(i16 zeroext %0) {
switch i16 %0, label %2 [
i16 -3867, label %3
i16 -3871, label %3
i16 -3883, label %3
i16 -3887, label %3
i16 -3931, label %3
i16 -3935, label %3
i16 -3944, label %3
i16 -3947, label %3
]
2: ; preds = %1
br label %3
3: ; preds = %1, %1, %1, %1, %1, %1, %1, %1, %2
%4 = phi i32 [ 0, %2 ], [ 1, %1 ], [ 1, %1 ], [ 1, %1 ], [ 1, %1 ], [ 1, %1 ], [ 1, %1 ], [ 1, %1 ], [ 1, %1 ]
ret i32 %4
}