#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*/ printf(char *, ...);
void out_os(unsigned char c) {
  switch (c) {
  case 0x00:
    printf("none   ");
    break;
  case 0x01:
    printf("FAT-12 ");
    break;
  case 0x04:
    printf("FAT-16 ");
    break;
  case 0x05:
    printf("EXTEND ");
    break;
  case 0x06:
    printf("LARGE  ");
    break;
  case 0x07:
    printf("HPFS/NT");
    break;
  case 0x0B:
    printf("FAT-32 ");
    break;
  case 0x0C:
    printf("FAT32LB");
    break;
  case 0x0E:
    printf("VFATLBA");
    break;
  case 0x0F:
    printf("EXTENDL");
    break;
  case 0x80:
    printf("Minix  ");
    break;
  case 0x81:
    printf("Linux  ");
    break;
  case 0x82:
    printf("Linux  ");
    break;
  case 0x83:
    printf("Linux  ");
    break;
  case 0x85:
    printf("LinuxEx");
    break;
  case 0x86:
    printf("WinNT  ");
    break;
  case 0x87:
    printf("HPFS/NT");
    break;
  case 0xF2:
    printf("DOS sec");
    break;
  default:
    printf("unkn %02X", 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     1263 <out_os+0x153>
jmp    1132 <out_os+0x22>
mov    -0x8(%rbp),%eax
sub    $0x1,%eax
je     1276 <out_os+0x166>
jmp    1143 <out_os+0x33>
mov    -0x8(%rbp),%eax
sub    $0x4,%eax
je     1289 <out_os+0x179>
jmp    1154 <out_os+0x44>
mov    -0x8(%rbp),%eax
sub    $0x5,%eax
je     129c <out_os+0x18c>
jmp    1165 <out_os+0x55>
mov    -0x8(%rbp),%eax
sub    $0x6,%eax
je     12af <out_os+0x19f>
jmp    1176 <out_os+0x66>
mov    -0x8(%rbp),%eax
sub    $0x7,%eax
je     12c2 <out_os+0x1b2>
jmp    1187 <out_os+0x77>
mov    -0x8(%rbp),%eax
sub    $0xb,%eax
je     12d5 <out_os+0x1c5>
jmp    1198 <out_os+0x88>
mov    -0x8(%rbp),%eax
sub    $0xc,%eax
je     12e8 <out_os+0x1d8>
jmp    11a9 <out_os+0x99>
mov    -0x8(%rbp),%eax
sub    $0xe,%eax
je     12fb <out_os+0x1eb>
jmp    11ba <out_os+0xaa>
mov    -0x8(%rbp),%eax
sub    $0xf,%eax
je     130e <out_os+0x1fe>
jmp    11cb <out_os+0xbb>
mov    -0x8(%rbp),%eax
sub    $0x80,%eax
je     1321 <out_os+0x211>
jmp    11de <out_os+0xce>
mov    -0x8(%rbp),%eax
sub    $0x81,%eax
je     1334 <out_os+0x224>
jmp    11f1 <out_os+0xe1>
mov    -0x8(%rbp),%eax
sub    $0x82,%eax
je     1347 <out_os+0x237>
jmp    1204 <out_os+0xf4>
mov    -0x8(%rbp),%eax
sub    $0x83,%eax
je     135a <out_os+0x24a>
jmp    1217 <out_os+0x107>
mov    -0x8(%rbp),%eax
sub    $0x85,%eax
je     136d <out_os+0x25d>
jmp    122a <out_os+0x11a>
mov    -0x8(%rbp),%eax
sub    $0x86,%eax
je     1380 <out_os+0x270>
jmp    123d <out_os+0x12d>
mov    -0x8(%rbp),%eax
sub    $0x87,%eax
je     1393 <out_os+0x283>
jmp    1250 <out_os+0x140>
mov    -0x8(%rbp),%eax
sub    $0xf2,%eax
je     13a6 <out_os+0x296>
jmp    13b9 <out_os+0x2a9>
lea    0xd96(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    13cb <out_os+0x2bb>
lea    0xd8b(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    13cb <out_os+0x2bb>
lea    0xd80(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    13cb <out_os+0x2bb>
lea    0xd75(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    13cb <out_os+0x2bb>
lea    0xd6a(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    13cb <out_os+0x2bb>
lea    0xd5f(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    13cb <out_os+0x2bb>
lea    0xd54(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    13cb <out_os+0x2bb>
lea    0xd49(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    13cb <out_os+0x2bb>
lea    0xd3e(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    13cb <out_os+0x2bb>
lea    0xd33(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    13cb <out_os+0x2bb>
lea    0xd28(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    13cb <out_os+0x2bb>
lea    0xd1d(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    13cb <out_os+0x2bb>
lea    0xd0a(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    13cb <out_os+0x2bb>
lea    0xcf7(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    13cb <out_os+0x2bb>
lea    0xcec(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    13cb <out_os+0x2bb>
lea    0xce1(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    13cb <out_os+0x2bb>
lea    0xc8e(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    13cb <out_os+0x2bb>
lea    0xcc3(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    13cb <out_os+0x2bb>
movzbl -0x1(%rbp),%esi
lea    0xcb4(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<out_os>:
lea    -0x80(%rdi),%eax
cmp    $0x8f,%al
ja     1154 <out_os+0x44>
movzbl %al,%eax
lea    0xedf(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
lea    0x1167(%rip),%rdi
xor    %eax,%eax
jmp    1030 <printf@plt>
lea    0x1129(%rip),%rdi
xor    %eax,%eax
jmp    1030 <printf@plt>
lea    0x1143(%rip),%rdi
xor    %eax,%eax
jmp    1030 <printf@plt>
movzbl %dil,%esi
lea    0x1159(%rip),%rdi
xor    %eax,%eax
jmp    1030 <printf@plt>
lea    0x1133(%rip),%rdi
xor    %eax,%eax
jmp    1030 <printf@plt>
lea    0x112d(%rip),%rdi
xor    %eax,%eax
jmp    1030 <printf@plt>
lea    0x1127(%rip),%rdi
xor    %eax,%eax
jmp    1030 <printf@plt>
lea    0x10a9(%rip),%rdi
xor    %eax,%eax
jmp    1030 <printf@plt>
lea    0x10a3(%rip),%rdi
xor    %eax,%eax
jmp    1030 <printf@plt>
lea    0x109d(%rip),%rdi
xor    %eax,%eax
jmp    1030 <printf@plt>
lea    0x1097(%rip),%rdi
xor    %eax,%eax
jmp    1030 <printf@plt>
lea    0x1091(%rip),%rdi
xor    %eax,%eax
jmp    1030 <printf@plt>
lea    0x1093(%rip),%rdi
xor    %eax,%eax
jmp    1030 <printf@plt>
lea    0x108d(%rip),%rdi
xor    %eax,%eax
jmp    1030 <printf@plt>
lea    0x1087(%rip),%rdi
xor    %eax,%eax
jmp    1030 <printf@plt>
lea    0x1081(%rip),%rdi
xor    %eax,%eax
jmp    1030 <printf@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"FAT-16 \00"
@.str.3 = [8 x i8] c"EXTEND \00"
@.str.4 = [8 x i8] c"LARGE \00"
@.str.5 = [8 x i8] c"HPFS/NT\00"
@.str.6 = [8 x i8] c"FAT-32 \00"
@.str.7 = [8 x i8] c"FAT32LB\00"
@.str.8 = [8 x i8] c"VFATLBA\00"
@.str.9 = [8 x i8] c"EXTENDL\00"
@.str.10 = [8 x i8] c"Minix \00"
@.str.11 = [8 x i8] c"Linux \00"
@.str.12 = [8 x i8] c"LinuxEx\00"
@.str.13 = [8 x i8] c"WinNT \00"
@.str.14 = [8 x i8] c"DOS sec\00"
@.str.15 = [10 x i8] c"unkn %02X\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 %41 [
i32 0, label %5
i32 1, label %7
i32 4, label %9
i32 5, label %11
i32 6, label %13
i32 7, label %15
i32 11, label %17
i32 12, label %19
i32 14, label %21
i32 15, label %23
i32 128, label %25
i32 129, label %27
i32 130, label %29
i32 131, label %31
i32 133, label %33
i32 134, label %35
i32 135, label %37
i32 242, label %39
]
5: ; preds = %1
%6 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i64 0, i64 0))
br label %45
7: ; preds = %1
%8 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.1, i64 0, i64 0))
br label %45
9: ; preds = %1
%10 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.2, i64 0, i64 0))
br label %45
11: ; preds = %1
%12 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.3, i64 0, i64 0))
br label %45
13: ; preds = %1
%14 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.4, i64 0, i64 0))
br label %45
15: ; preds = %1
%16 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.5, i64 0, i64 0))
br label %45
17: ; preds = %1
%18 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.6, i64 0, i64 0))
br label %45
19: ; preds = %1
%20 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.7, i64 0, i64 0))
br label %45
21: ; preds = %1
%22 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.8, i64 0, i64 0))
br label %45
23: ; preds = %1
%24 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.9, i64 0, i64 0))
br label %45
25: ; preds = %1
%26 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.10, i64 0, i64 0))
br label %45
27: ; preds = %1
%28 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.11, i64 0, i64 0))
br label %45
29: ; preds = %1
%30 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.11, i64 0, i64 0))
br label %45
31: ; preds = %1
%32 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.11, i64 0, i64 0))
br label %45
33: ; preds = %1
%34 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.12, i64 0, i64 0))
br label %45
35: ; preds = %1
%36 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.13, i64 0, i64 0))
br label %45
37: ; preds = %1
%38 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.5, i64 0, i64 0))
br label %45
39: ; preds = %1
%40 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.14, i64 0, i64 0))
br label %45
41: ; preds = %1
%42 = load i8, i8* %2
%43 = zext i8 %42 to i32
%44 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.15, i64 0, i64 0), i32 %43)
br label %45
45: ; preds = %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"FAT-16 \00"
@.str.3 = [8 x i8] c"EXTEND \00"
@.str.4 = [8 x i8] c"LARGE \00"
@.str.5 = [8 x i8] c"HPFS/NT\00"
@.str.6 = [8 x i8] c"FAT-32 \00"
@.str.7 = [8 x i8] c"FAT32LB\00"
@.str.8 = [8 x i8] c"VFATLBA\00"
@.str.9 = [8 x i8] c"EXTENDL\00"
@.str.10 = [8 x i8] c"Minix \00"
@.str.11 = [8 x i8] c"Linux \00"
@.str.12 = [8 x i8] c"LinuxEx\00"
@.str.13 = [8 x i8] c"WinNT \00"
@.str.14 = [8 x i8] c"DOS sec\00"
@.str.15 = [10 x i8] c"unkn %02X\00"
define void @out_os(i8 zeroext %0) {
switch i8 %0, label %38 [
i8 0, label %2
i8 1, label %4
i8 4, label %6
i8 5, label %8
i8 6, label %10
i8 7, label %12
i8 11, label %14
i8 12, label %16
i8 14, label %18
i8 15, label %20
i8 -128, label %22
i8 -127, label %24
i8 -126, label %26
i8 -125, label %28
i8 -123, label %30
i8 -122, label %32
i8 -121, label %34
i8 -14, label %36
]
2: ; preds = %1
%3 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i64 0, i64 0))
br label %41
4: ; preds = %1
%5 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([8 x i8], [8 x i8]* @.str.1, i64 0, i64 0))
br label %41
6: ; preds = %1
%7 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([8 x i8], [8 x i8]* @.str.2, i64 0, i64 0))
br label %41
8: ; preds = %1
%9 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([8 x i8], [8 x i8]* @.str.3, i64 0, i64 0))
br label %41
10: ; preds = %1
%11 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([8 x i8], [8 x i8]* @.str.4, i64 0, i64 0))
br label %41
12: ; preds = %1
%13 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([8 x i8], [8 x i8]* @.str.5, i64 0, i64 0))
br label %41
14: ; preds = %1
%15 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([8 x i8], [8 x i8]* @.str.6, i64 0, i64 0))
br label %41
16: ; preds = %1
%17 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([8 x i8], [8 x i8]* @.str.7, i64 0, i64 0))
br label %41
18: ; preds = %1
%19 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([8 x i8], [8 x i8]* @.str.8, i64 0, i64 0))
br label %41
20: ; preds = %1
%21 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([8 x i8], [8 x i8]* @.str.9, i64 0, i64 0))
br label %41
22: ; preds = %1
%23 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([8 x i8], [8 x i8]* @.str.10, i64 0, i64 0))
br label %41
24: ; preds = %1
%25 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([8 x i8], [8 x i8]* @.str.11, i64 0, i64 0))
br label %41
26: ; preds = %1
%27 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([8 x i8], [8 x i8]* @.str.11, i64 0, i64 0))
br label %41
28: ; preds = %1
%29 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([8 x i8], [8 x i8]* @.str.11, i64 0, i64 0))
br label %41
30: ; preds = %1
%31 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([8 x i8], [8 x i8]* @.str.12, i64 0, i64 0))
br label %41
32: ; preds = %1
%33 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([8 x i8], [8 x i8]* @.str.13, i64 0, i64 0))
br label %41
34: ; preds = %1
%35 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([8 x i8], [8 x i8]* @.str.5, i64 0, i64 0))
br label %41
36: ; preds = %1
%37 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([8 x i8], [8 x i8]* @.str.14, i64 0, i64 0))
br label %41
38: ; preds = %1
%39 = zext i8 %0 to i32
%40 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([10 x i8], [10 x i8]* @.str.15, i64 0, i64 0), i32 %39)
br label %41
41: ; preds = %38, %36, %34, %32, %30, %28, %26, %24, %22, %20, %18, %16, %14, %12, %10, %8, %6, %4, %2
ret void
}