#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 /*<<< orphan*/ puthex_b(unsigned char);
int /*<<< orphan*/ puts0(char *);
void out_os(unsigned char c) {
  switch (c) {
  case 0x00:
    puts0("none   ");
    break;
  case 0x01:
    puts0("FAT-12 ");
    break;
  case 0x02:
    puts0("XENIX /");
    break;
  case 0x04:
    puts0("FAT-16 ");
    break;
  case 0x05:
    puts0("EXTEND ");
    break;
  case 0x06:
    puts0("LARGE  ");
    break;
  case 0x07:
    puts0("HPFS/NT");
    break;
  case 0x0B:
    puts0("FAT-32 ");
    break;
  case 0x0C:
    puts0("FAT32LB");
    break;
  case 0x0E:
    puts0("VFATLBA");
    break;
  case 0x0F:
    puts0("EXTENDL");
    break;
  case 0x80:
    puts0("Minix  ");
    break;
  case 0x81:
    puts0("Linux  ");
    break;
  case 0x82:
    puts0("Linux  ");
    break;
  case 0x83:
    puts0("Linux  ");
    break;
  case 0x85:
    puts0("LinuxEx");
    break;
  case 0x86:
    puts0("WinNT  ");
    break;
  case 0x87:
    puts0("HPFS/NT");
    break;
  case 0x8E:
    puts0("LVM    ");
    break;
  case 0xF2:
    puts0("DOS sec");
    break;
  default:
    puts0("unkn ");
    puthex_b(c);
  }
}


x86 assembly (clang, -O0):
<out_os>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %dil,%al
mov    %al,-0x1(%rbp)
movzbl -0x1(%rbp),%eax
mov    %eax,-0x8(%rbp)
test   %eax,%eax
je     1297 <out_os+0x177>
jmp    1142 <out_os+0x22>
mov    -0x8(%rbp),%eax
sub    $0x1,%eax
je     12a8 <out_os+0x188>
jmp    1153 <out_os+0x33>
mov    -0x8(%rbp),%eax
sub    $0x2,%eax
je     12b9 <out_os+0x199>
jmp    1164 <out_os+0x44>
mov    -0x8(%rbp),%eax
sub    $0x4,%eax
je     12ca <out_os+0x1aa>
jmp    1175 <out_os+0x55>
mov    -0x8(%rbp),%eax
sub    $0x5,%eax
je     12db <out_os+0x1bb>
jmp    1186 <out_os+0x66>
mov    -0x8(%rbp),%eax
sub    $0x6,%eax
je     12ec <out_os+0x1cc>
jmp    1197 <out_os+0x77>
mov    -0x8(%rbp),%eax
sub    $0x7,%eax
je     12fd <out_os+0x1dd>
jmp    11a8 <out_os+0x88>
mov    -0x8(%rbp),%eax
sub    $0xb,%eax
je     130e <out_os+0x1ee>
jmp    11b9 <out_os+0x99>
mov    -0x8(%rbp),%eax
sub    $0xc,%eax
je     131f <out_os+0x1ff>
jmp    11ca <out_os+0xaa>
mov    -0x8(%rbp),%eax
sub    $0xe,%eax
je     1330 <out_os+0x210>
jmp    11db <out_os+0xbb>
mov    -0x8(%rbp),%eax
sub    $0xf,%eax
je     1341 <out_os+0x221>
jmp    11ec <out_os+0xcc>
mov    -0x8(%rbp),%eax
sub    $0x80,%eax
je     1352 <out_os+0x232>
jmp    11ff <out_os+0xdf>
mov    -0x8(%rbp),%eax
sub    $0x81,%eax
je     1363 <out_os+0x243>
jmp    1212 <out_os+0xf2>
mov    -0x8(%rbp),%eax
sub    $0x82,%eax
je     1374 <out_os+0x254>
jmp    1225 <out_os+0x105>
mov    -0x8(%rbp),%eax
sub    $0x83,%eax
je     1385 <out_os+0x265>
jmp    1238 <out_os+0x118>
mov    -0x8(%rbp),%eax
sub    $0x85,%eax
je     1396 <out_os+0x276>
jmp    124b <out_os+0x12b>
mov    -0x8(%rbp),%eax
sub    $0x86,%eax
je     13a7 <out_os+0x287>
jmp    125e <out_os+0x13e>
mov    -0x8(%rbp),%eax
sub    $0x87,%eax
je     13b8 <out_os+0x298>
jmp    1271 <out_os+0x151>
mov    -0x8(%rbp),%eax
sub    $0x8e,%eax
je     13c9 <out_os+0x2a9>
jmp    1284 <out_os+0x164>
mov    -0x8(%rbp),%eax
sub    $0xf2,%eax
je     13da <out_os+0x2ba>
jmp    13eb <out_os+0x2cb>
lea    0xd62(%rip),%rdi
call   1040 <puts0@plt>
jmp    1400 <out_os+0x2e0>
lea    0xd59(%rip),%rdi
call   1040 <puts0@plt>
jmp    1400 <out_os+0x2e0>
lea    0xd50(%rip),%rdi
call   1040 <puts0@plt>
jmp    1400 <out_os+0x2e0>
lea    0xd47(%rip),%rdi
call   1040 <puts0@plt>
jmp    1400 <out_os+0x2e0>
lea    0xd3e(%rip),%rdi
call   1040 <puts0@plt>
jmp    1400 <out_os+0x2e0>
lea    0xd35(%rip),%rdi
call   1040 <puts0@plt>
jmp    1400 <out_os+0x2e0>
lea    0xd2c(%rip),%rdi
call   1040 <puts0@plt>
jmp    1400 <out_os+0x2e0>
lea    0xd23(%rip),%rdi
call   1040 <puts0@plt>
jmp    1400 <out_os+0x2e0>
lea    0xd1a(%rip),%rdi
call   1040 <puts0@plt>
jmp    1400 <out_os+0x2e0>
lea    0xd11(%rip),%rdi
call   1040 <puts0@plt>
jmp    1400 <out_os+0x2e0>
lea    0xd08(%rip),%rdi
call   1040 <puts0@plt>
jmp    1400 <out_os+0x2e0>
lea    0xcff(%rip),%rdi
call   1040 <puts0@plt>
jmp    1400 <out_os+0x2e0>
lea    0xcf6(%rip),%rdi
call   1040 <puts0@plt>
jmp    1400 <out_os+0x2e0>
lea    0xce5(%rip),%rdi
call   1040 <puts0@plt>
jmp    1400 <out_os+0x2e0>
lea    0xcd4(%rip),%rdi
call   1040 <puts0@plt>
jmp    1400 <out_os+0x2e0>
lea    0xccb(%rip),%rdi
call   1040 <puts0@plt>
jmp    1400 <out_os+0x2e0>
lea    0xcc2(%rip),%rdi
call   1040 <puts0@plt>
jmp    1400 <out_os+0x2e0>
lea    0xc71(%rip),%rdi
call   1040 <puts0@plt>
jmp    1400 <out_os+0x2e0>
lea    0xca8(%rip),%rdi
call   1040 <puts0@plt>
jmp    1400 <out_os+0x2e0>
lea    0xc9f(%rip),%rdi
call   1040 <puts0@plt>
jmp    1400 <out_os+0x2e0>
lea    0xc96(%rip),%rdi
call   1040 <puts0@plt>
movzbl -0x1(%rbp),%edi
call   1030 <puthex_b@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<out_os>:
push   %rbx
mov    %edi,%ebx
lea    -0x80(%rbx),%eax
cmp    $0x8f,%al
ja     1164 <out_os+0x44>
movzbl %al,%eax
lea    0xecc(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
lea    0x115c(%rip),%rdi
pop    %rbx
jmp    1040 <puts0@plt>
lea    0x111f(%rip),%rdi
pop    %rbx
jmp    1040 <puts0@plt>
lea    0x113a(%rip),%rdi
pop    %rbx
jmp    1040 <puts0@plt>
lea    0x115d(%rip),%rdi
call   1040 <puts0@plt>
movzbl %bl,%edi
pop    %rbx
jmp    1030 <puthex_b@plt>
lea    0x1128(%rip),%rdi
pop    %rbx
jmp    1040 <puts0@plt>
lea    0x1123(%rip),%rdi
pop    %rbx
jmp    1040 <puts0@plt>
lea    0x111e(%rip),%rdi
pop    %rbx
jmp    1040 <puts0@plt>
lea    0x1119(%rip),%rdi
pop    %rbx
jmp    1040 <puts0@plt>
lea    0x108c(%rip),%rdi
pop    %rbx
jmp    1040 <puts0@plt>
lea    0x1087(%rip),%rdi
pop    %rbx
jmp    1040 <puts0@plt>
lea    0x1082(%rip),%rdi
pop    %rbx
jmp    1040 <puts0@plt>
lea    0x107d(%rip),%rdi
pop    %rbx
jmp    1040 <puts0@plt>
lea    0x1078(%rip),%rdi
pop    %rbx
jmp    1040 <puts0@plt>
lea    0x1073(%rip),%rdi
pop    %rbx
jmp    1040 <puts0@plt>
lea    0x1076(%rip),%rdi
pop    %rbx
jmp    1040 <puts0@plt>
lea    0x1071(%rip),%rdi
pop    %rbx
jmp    1040 <puts0@plt>
lea    0x106c(%rip),%rdi
pop    %rbx
jmp    1040 <puts0@plt>
lea    0x1067(%rip),%rdi
pop    %rbx
jmp    1040 <puts0@plt>

LLVM IR (-O0):
@.str = [8 x i8] c"none \00"
@.str.1 = [8 x i8] c"FAT-12 \00"
@.str.2 = [8 x i8] c"XENIX /\00"
@.str.3 = [8 x i8] c"FAT-16 \00"
@.str.4 = [8 x i8] c"EXTEND \00"
@.str.5 = [8 x i8] c"LARGE \00"
@.str.6 = [8 x i8] c"HPFS/NT\00"
@.str.7 = [8 x i8] c"FAT-32 \00"
@.str.8 = [8 x i8] c"FAT32LB\00"
@.str.9 = [8 x i8] c"VFATLBA\00"
@.str.10 = [8 x i8] c"EXTENDL\00"
@.str.11 = [8 x i8] c"Minix \00"
@.str.12 = [8 x i8] c"Linux \00"
@.str.13 = [8 x i8] c"LinuxEx\00"
@.str.14 = [8 x i8] c"WinNT \00"
@.str.15 = [8 x i8] c"LVM \00"
@.str.16 = [8 x i8] c"DOS sec\00"
@.str.17 = [6 x i8] c"unkn \00"
define void @out_os(i8 zeroext %0) {
%2 = alloca i8
store i8 %0, i8* %2
%3 = load i8, i8* %2
%4 = zext i8 %3 to i32
switch i32 %4, label %45 [
i32 0, label %5
i32 1, label %7
i32 2, label %9
i32 4, label %11
i32 5, label %13
i32 6, label %15
i32 7, label %17
i32 11, label %19
i32 12, label %21
i32 14, label %23
i32 15, label %25
i32 128, label %27
i32 129, label %29
i32 130, label %31
i32 131, label %33
i32 133, label %35
i32 134, label %37
i32 135, label %39
i32 142, label %41
i32 242, label %43
]
5: ; preds = %1
%6 = call i32 @puts0(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i64 0, i64 0))
br label %49
7: ; preds = %1
%8 = call i32 @puts0(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.1, i64 0, i64 0))
br label %49
9: ; preds = %1
%10 = call i32 @puts0(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.2, i64 0, i64 0))
br label %49
11: ; preds = %1
%12 = call i32 @puts0(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.3, i64 0, i64 0))
br label %49
13: ; preds = %1
%14 = call i32 @puts0(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.4, i64 0, i64 0))
br label %49
15: ; preds = %1
%16 = call i32 @puts0(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.5, i64 0, i64 0))
br label %49
17: ; preds = %1
%18 = call i32 @puts0(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.6, i64 0, i64 0))
br label %49
19: ; preds = %1
%20 = call i32 @puts0(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.7, i64 0, i64 0))
br label %49
21: ; preds = %1
%22 = call i32 @puts0(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.8, i64 0, i64 0))
br label %49
23: ; preds = %1
%24 = call i32 @puts0(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.9, i64 0, i64 0))
br label %49
25: ; preds = %1
%26 = call i32 @puts0(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.10, i64 0, i64 0))
br label %49
27: ; preds = %1
%28 = call i32 @puts0(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.11, i64 0, i64 0))
br label %49
29: ; preds = %1
%30 = call i32 @puts0(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.12, i64 0, i64 0))
br label %49
31: ; preds = %1
%32 = call i32 @puts0(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.12, i64 0, i64 0))
br label %49
33: ; preds = %1
%34 = call i32 @puts0(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.12, i64 0, i64 0))
br label %49
35: ; preds = %1
%36 = call i32 @puts0(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.13, i64 0, i64 0))
br label %49
37: ; preds = %1
%38 = call i32 @puts0(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.14, i64 0, i64 0))
br label %49
39: ; preds = %1
%40 = call i32 @puts0(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.6, i64 0, i64 0))
br label %49
41: ; preds = %1
%42 = call i32 @puts0(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.15, i64 0, i64 0))
br label %49
43: ; preds = %1
%44 = call i32 @puts0(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.16, i64 0, i64 0))
br label %49
45: ; preds = %1
%46 = call i32 @puts0(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.17, i64 0, i64 0))
%47 = load i8, i8* %2
%48 = call i32 @puthex_b(i8 zeroext %47)
br label %49
49: ; preds = %45, %43, %41, %39, %37, %35, %33, %31, %29, %27, %25, %23, %21, %19, %17, %15, %13, %11, %9, %7, %5
ret void
}

LLVM IR (-O2):
@.str = [8 x i8] c"none \00"
@.str.1 = [8 x i8] c"FAT-12 \00"
@.str.2 = [8 x i8] c"XENIX /\00"
@.str.3 = [8 x i8] c"FAT-16 \00"
@.str.4 = [8 x i8] c"EXTEND \00"
@.str.5 = [8 x i8] c"LARGE \00"
@.str.6 = [8 x i8] c"HPFS/NT\00"
@.str.7 = [8 x i8] c"FAT-32 \00"
@.str.8 = [8 x i8] c"FAT32LB\00"
@.str.9 = [8 x i8] c"VFATLBA\00"
@.str.10 = [8 x i8] c"EXTENDL\00"
@.str.11 = [8 x i8] c"Minix \00"
@.str.12 = [8 x i8] c"Linux \00"
@.str.13 = [8 x i8] c"LinuxEx\00"
@.str.14 = [8 x i8] c"WinNT \00"
@.str.15 = [8 x i8] c"LVM \00"
@.str.16 = [8 x i8] c"DOS sec\00"
@.str.17 = [6 x i8] c"unkn \00"
define void @out_os(i8 zeroext %0) {
switch i8 %0, label %42 [
i8 0, label %2
i8 1, label %4
i8 2, label %6
i8 4, label %8
i8 5, label %10
i8 6, label %12
i8 7, label %14
i8 11, label %16
i8 12, label %18
i8 14, label %20
i8 15, label %22
i8 -128, label %24
i8 -127, label %26
i8 -126, label %28
i8 -125, label %30
i8 -123, label %32
i8 -122, label %34
i8 -121, label %36
i8 -114, label %38
i8 -14, label %40
]
2: ; preds = %1
%3 = tail call i32 @puts0(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i64 0, i64 0))
br label %45
4: ; preds = %1
%5 = tail call i32 @puts0(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.1, i64 0, i64 0))
br label %45
6: ; preds = %1
%7 = tail call i32 @puts0(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.2, i64 0, i64 0))
br label %45
8: ; preds = %1
%9 = tail call i32 @puts0(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.3, i64 0, i64 0))
br label %45
10: ; preds = %1
%11 = tail call i32 @puts0(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.4, i64 0, i64 0))
br label %45
12: ; preds = %1
%13 = tail call i32 @puts0(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.5, i64 0, i64 0))
br label %45
14: ; preds = %1
%15 = tail call i32 @puts0(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.6, i64 0, i64 0))
br label %45
16: ; preds = %1
%17 = tail call i32 @puts0(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.7, i64 0, i64 0))
br label %45
18: ; preds = %1
%19 = tail call i32 @puts0(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.8, i64 0, i64 0))
br label %45
20: ; preds = %1
%21 = tail call i32 @puts0(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.9, i64 0, i64 0))
br label %45
22: ; preds = %1
%23 = tail call i32 @puts0(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.10, i64 0, i64 0))
br label %45
24: ; preds = %1
%25 = tail call i32 @puts0(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.11, i64 0, i64 0))
br label %45
26: ; preds = %1
%27 = tail call i32 @puts0(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.12, i64 0, i64 0))
br label %45
28: ; preds = %1
%29 = tail call i32 @puts0(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.12, i64 0, i64 0))
br label %45
30: ; preds = %1
%31 = tail call i32 @puts0(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.12, i64 0, i64 0))
br label %45
32: ; preds = %1
%33 = tail call i32 @puts0(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.13, i64 0, i64 0))
br label %45
34: ; preds = %1
%35 = tail call i32 @puts0(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.14, i64 0, i64 0))
br label %45
36: ; preds = %1
%37 = tail call i32 @puts0(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.6, i64 0, i64 0))
br label %45
38: ; preds = %1
%39 = tail call i32 @puts0(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.15, i64 0, i64 0))
br label %45
40: ; preds = %1
%41 = tail call i32 @puts0(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.16, i64 0, i64 0))
br label %45
42: ; preds = %1
%43 = tail call i32 @puts0(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.17, i64 0, i64 0))
%44 = tail call i32 @puthex_b(i8 zeroext %0)
br label %45
45: ; preds = %42, %40, %38, %36, %34, %32, %30, %28, %26, %24, %22, %20, %18, %16, %14, %12, %10, %8, %6, %4, %2
ret void
}