const char *TapeImage_GetBlockDescription(int BlockID) {
  switch (BlockID) {
  case 0x010:
    return "Standard Speed Data Block";
  case 0x011:
    return "Turbo Loading Data Block";
  case 0x012:
    return "Pure Tone";
  case 0x013:
    return "Pulses of Different Lengths";
  case 0x014:
    return "Pure Data";
  case 0x015:
    return "Direct Recording";
  case 0x016:
    return "C64 ROM Type Data Block";
  case 0x017:
    return "C64 Turbo Tape Data Block";
  case 0x020:
    return "Pause or 'Stop the Tape'";
  case 0x021:
    return "Group Start";
  case 0x022:
    return "Group End";
  case 0x023:
    return "Jump To Block";
  case 0x024:
    return "Loop Start";
  case 0x025:
    return "Loop End";
  case 0x026:
    return "Call Sequence";
  case 0x027:
    return "Return from Sequence";
  case 0x028:
    return "Select Block";
  case 0x02a:
    return "Spectrum: Stop tape if in 48k mode";
  case 0x030:
    return "Text Description";
  case 0x031:
    return "Message Block";
  case 0x032:
    return "Archive Info";
  case 0x033:
    return "Hardware Type";
  case 0x034:
    return "Emulation Info";
  case 0x035:
    return "Custom Info";
  case 0x040:
    return "Spectrum Snapshot Block";
  case 'Z':
    return "Header of joined tape";
  default:
    return "Extension Block";
  }
}


x86 assembly (clang, -O0):
<TapeImage_GetBlockDescription>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0xc(%rbp)
mov    -0xc(%rbp),%eax
add    $0xfffffff0,%eax
mov    %eax,%ecx
mov    %rcx,-0x18(%rbp)
sub    $0x4a,%eax
ja     12d0 <TapeImage_GetBlockDescription+0x1d0>
mov    -0x18(%rbp),%rax
lea    0xed9(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
lea    0xff5(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    12db <TapeImage_GetBlockDescription+0x1db>
lea    0xfff(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    12db <TapeImage_GetBlockDescription+0x1db>
lea    0x1008(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    12db <TapeImage_GetBlockDescription+0x1db>
lea    0x1002(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    12db <TapeImage_GetBlockDescription+0x1db>
lea    0x100e(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    12db <TapeImage_GetBlockDescription+0x1db>
lea    0x1008(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    12db <TapeImage_GetBlockDescription+0x1db>
lea    0x1009(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    12db <TapeImage_GetBlockDescription+0x1db>
lea    0x1011(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    12db <TapeImage_GetBlockDescription+0x1db>
lea    0x101b(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    12db <TapeImage_GetBlockDescription+0x1db>
lea    0x1024(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    12db <TapeImage_GetBlockDescription+0x1db>
lea    0x1020(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    12db <TapeImage_GetBlockDescription+0x1db>
lea    0x101a(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    12db <TapeImage_GetBlockDescription+0x1db>
lea    0x1018(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    12db <TapeImage_GetBlockDescription+0x1db>
lea    0x1013(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    12db <TapeImage_GetBlockDescription+0x1db>
lea    0x100c(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    12db <TapeImage_GetBlockDescription+0x1db>
lea    0x100a(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    12db <TapeImage_GetBlockDescription+0x1db>
lea    0x100f(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    12db <TapeImage_GetBlockDescription+0x1db>
lea    0x100c(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    12db <TapeImage_GetBlockDescription+0x1db>
lea    0x101f(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    12db <TapeImage_GetBlockDescription+0x1db>
lea    0x1020(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    12db <TapeImage_GetBlockDescription+0x1db>
lea    0x101e(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    12db <TapeImage_GetBlockDescription+0x1db>
lea    0x101b(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    12db <TapeImage_GetBlockDescription+0x1db>
lea    0x1019(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    12db <TapeImage_GetBlockDescription+0x1db>
lea    0x1018(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    12db <TapeImage_GetBlockDescription+0x1db>
lea    0x1014(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    12db <TapeImage_GetBlockDescription+0x1db>
lea    0x101c(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    12db <TapeImage_GetBlockDescription+0x1db>
lea    0x1022(%rip),%rax
mov    %rax,-0x8(%rbp)
mov    -0x8(%rbp),%rax
pop    %rbp
ret

x86 assembly (clang, -O2):
<TapeImage_GetBlockDescription>:
add    $0xfffffff0,%edi
cmp    $0x4a,%edi
ja     1157 <TapeImage_GetBlockDescription+0x57>
lea    0x101d(%rip),%rax
lea    0xeea(%rip),%rcx
movslq (%rcx,%rdi,4),%rdx
add    %rcx,%rdx
jmp    *%rdx
lea    0x1020(%rip),%rax
ret
lea    0x1031(%rip),%rax
ret
lea    0x1033(%rip),%rax
ret
lea    0x1047(%rip),%rax
ret
lea    0x1049(%rip),%rax
ret
lea    0x1052(%rip),%rax
ret
lea    0x1062(%rip),%rax
ret
lea    0x119b(%rip),%rax
ret
lea    0x106c(%rip),%rax
ret
lea    0x107d(%rip),%rax
ret
lea    0x1081(%rip),%rax
ret
lea    0x1083(%rip),%rax
ret
lea    0x1089(%rip),%rax
ret
lea    0x108c(%rip),%rax
ret
lea    0x108d(%rip),%rax
ret
lea    0x1093(%rip),%rax
ret
lea    0x10a0(%rip),%rax
ret
lea    0x10a5(%rip),%rax
ret
lea    0x10c0(%rip),%rax
ret
lea    0x10c9(%rip),%rax
ret
lea    0x10cf(%rip),%rax
ret
lea    0x10d4(%rip),%rax
ret
lea    0x10da(%rip),%rax
ret
lea    0x10e1(%rip),%rax
ret
lea    0x10e5(%rip),%rax
ret
lea    0x10f5(%rip),%rax
ret

LLVM IR (-O0):
@.str = [26 x i8] c"Standard Speed Data Block\00"
@.str.1 = [25 x i8] c"Turbo Loading Data Block\00"
@.str.2 = [10 x i8] c"Pure Tone\00"
@.str.3 = [28 x i8] c"Pulses of Different Lengths\00"
@.str.4 = [10 x i8] c"Pure Data\00"
@.str.5 = [17 x i8] c"Direct Recording\00"
@.str.6 = [24 x i8] c"C64 ROM Type Data Block\00"
@.str.7 = [26 x i8] c"C64 Turbo Tape Data Block\00"
@.str.8 = [25 x i8] c"Pause or 'Stop the Tape'\00"
@.str.9 = [12 x i8] c"Group Start\00"
@.str.10 = [10 x i8] c"Group End\00"
@.str.11 = [14 x i8] c"Jump To Block\00"
@.str.12 = [11 x i8] c"Loop Start\00"
@.str.13 = [9 x i8] c"Loop End\00"
@.str.14 = [14 x i8] c"Call Sequence\00"
@.str.15 = [21 x i8] c"Return from Sequence\00"
@.str.16 = [13 x i8] c"Select Block\00"
@.str.17 = [35 x i8] c"Spectrum: Stop tape if in 48k mode\00"
@.str.18 = [17 x i8] c"Text Description\00"
@.str.19 = [14 x i8] c"Message Block\00"
@.str.20 = [13 x i8] c"Archive Info\00"
@.str.21 = [14 x i8] c"Hardware Type\00"
@.str.22 = [15 x i8] c"Emulation Info\00"
@.str.23 = [12 x i8] c"Custom Info\00"
@.str.24 = [24 x i8] c"Spectrum Snapshot Block\00"
@.str.25 = [22 x i8] c"Header of joined tape\00"
@.str.26 = [16 x i8] c"Extension Block\00"
define i8* @TapeImage_GetBlockDescription(i32 %0) {
%2 = alloca i8*
%3 = alloca i32
store i32 %0, i32* %3
%4 = load i32, i32* %3
switch i32 %4, label %31 [
i32 16, label %5
i32 17, label %6
i32 18, label %7
i32 19, label %8
i32 20, label %9
i32 21, label %10
i32 22, label %11
i32 23, label %12
i32 32, label %13
i32 33, label %14
i32 34, label %15
i32 35, label %16
i32 36, label %17
i32 37, label %18
i32 38, label %19
i32 39, label %20
i32 40, label %21
i32 42, label %22
i32 48, label %23
i32 49, label %24
i32 50, label %25
i32 51, label %26
i32 52, label %27
i32 53, label %28
i32 64, label %29
i32 90, label %30
]
5: ; preds = %1
store i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str, i64 0, i64 0), i8** %2
br label %32
6: ; preds = %1
store i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.1, i64 0, i64 0), i8** %2
br label %32
7: ; preds = %1
store i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.2, i64 0, i64 0), i8** %2
br label %32
8: ; preds = %1
store i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.3, i64 0, i64 0), i8** %2
br label %32
9: ; preds = %1
store i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.4, i64 0, i64 0), i8** %2
br label %32
10: ; preds = %1
store i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.5, i64 0, i64 0), i8** %2
br label %32
11: ; preds = %1
store i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.6, i64 0, i64 0), i8** %2
br label %32
12: ; preds = %1
store i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.7, i64 0, i64 0), i8** %2
br label %32
13: ; preds = %1
store i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.8, i64 0, i64 0), i8** %2
br label %32
14: ; preds = %1
store i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.9, i64 0, i64 0), i8** %2
br label %32
15: ; preds = %1
store i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.10, i64 0, i64 0), i8** %2
br label %32
16: ; preds = %1
store i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.11, i64 0, i64 0), i8** %2
br label %32
17: ; preds = %1
store i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.12, i64 0, i64 0), i8** %2
br label %32
18: ; preds = %1
store i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.13, i64 0, i64 0), i8** %2
br label %32
19: ; preds = %1
store i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.14, i64 0, i64 0), i8** %2
br label %32
20: ; preds = %1
store i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.15, i64 0, i64 0), i8** %2
br label %32
21: ; preds = %1
store i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.16, i64 0, i64 0), i8** %2
br label %32
22: ; preds = %1
store i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.17, i64 0, i64 0), i8** %2
br label %32
23: ; preds = %1
store i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.18, i64 0, i64 0), i8** %2
br label %32
24: ; preds = %1
store i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.19, i64 0, i64 0), i8** %2
br label %32
25: ; preds = %1
store i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.20, i64 0, i64 0), i8** %2
br label %32
26: ; preds = %1
store i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.21, i64 0, i64 0), i8** %2
br label %32
27: ; preds = %1
store i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.22, i64 0, i64 0), i8** %2
br label %32
28: ; preds = %1
store i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.23, i64 0, i64 0), i8** %2
br label %32
29: ; preds = %1
store i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.24, i64 0, i64 0), i8** %2
br label %32
30: ; preds = %1
store i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.25, i64 0, i64 0), i8** %2
br label %32
31: ; preds = %1
store i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.26, i64 0, i64 0), i8** %2
br label %32
32: ; preds = %31, %30, %29, %28, %27, %26, %25, %24, %23, %22, %21, %20, %19, %18, %17, %16, %15, %14, %13, %12, %11, %10, %9, %8, %7, %6, %5
%33 = load i8*, i8** %2
ret i8* %33
}

LLVM IR (-O2):
@.str = [26 x i8] c"Standard Speed Data Block\00"
@.str.1 = [25 x i8] c"Turbo Loading Data Block\00"
@.str.2 = [10 x i8] c"Pure Tone\00"
@.str.3 = [28 x i8] c"Pulses of Different Lengths\00"
@.str.4 = [10 x i8] c"Pure Data\00"
@.str.5 = [17 x i8] c"Direct Recording\00"
@.str.6 = [24 x i8] c"C64 ROM Type Data Block\00"
@.str.7 = [26 x i8] c"C64 Turbo Tape Data Block\00"
@.str.8 = [25 x i8] c"Pause or 'Stop the Tape'\00"
@.str.9 = [12 x i8] c"Group Start\00"
@.str.10 = [10 x i8] c"Group End\00"
@.str.11 = [14 x i8] c"Jump To Block\00"
@.str.12 = [11 x i8] c"Loop Start\00"
@.str.13 = [9 x i8] c"Loop End\00"
@.str.14 = [14 x i8] c"Call Sequence\00"
@.str.15 = [21 x i8] c"Return from Sequence\00"
@.str.16 = [13 x i8] c"Select Block\00"
@.str.17 = [35 x i8] c"Spectrum: Stop tape if in 48k mode\00"
@.str.18 = [17 x i8] c"Text Description\00"
@.str.19 = [14 x i8] c"Message Block\00"
@.str.20 = [13 x i8] c"Archive Info\00"
@.str.21 = [14 x i8] c"Hardware Type\00"
@.str.22 = [15 x i8] c"Emulation Info\00"
@.str.23 = [12 x i8] c"Custom Info\00"
@.str.24 = [24 x i8] c"Spectrum Snapshot Block\00"
@.str.25 = [22 x i8] c"Header of joined tape\00"
@.str.26 = [16 x i8] c"Extension Block\00"
define i8* @TapeImage_GetBlockDescription(i32 %0) {
switch i32 %0, label %27 [
i32 16, label %28
i32 17, label %2
i32 18, label %3
i32 19, label %4
i32 20, label %5
i32 21, label %6
i32 22, label %7
i32 23, label %8
i32 32, label %9
i32 33, label %10
i32 34, label %11
i32 35, label %12
i32 36, label %13
i32 37, label %14
i32 38, label %15
i32 39, label %16
i32 40, label %17
i32 42, label %18
i32 48, label %19
i32 49, label %20
i32 50, label %21
i32 51, label %22
i32 52, label %23
i32 53, label %24
i32 64, label %25
i32 90, label %26
]
2: ; preds = %1
br label %28
3: ; preds = %1
br label %28
4: ; preds = %1
br label %28
5: ; preds = %1
br label %28
6: ; preds = %1
br label %28
7: ; preds = %1
br label %28
8: ; preds = %1
br label %28
9: ; preds = %1
br label %28
10: ; preds = %1
br label %28
11: ; preds = %1
br label %28
12: ; preds = %1
br label %28
13: ; preds = %1
br label %28
14: ; preds = %1
br label %28
15: ; preds = %1
br label %28
16: ; preds = %1
br label %28
17: ; preds = %1
br label %28
18: ; preds = %1
br label %28
19: ; preds = %1
br label %28
20: ; preds = %1
br label %28
21: ; preds = %1
br label %28
22: ; preds = %1
br label %28
23: ; preds = %1
br label %28
24: ; preds = %1
br label %28
25: ; preds = %1
br label %28
26: ; preds = %1
br label %28
27: ; preds = %1
br label %28
28: ; preds = %1, %27, %26, %25, %24, %23, %22, %21, %20, %19, %18, %17, %16, %15, %14, %13, %12, %11, %10, %9, %8, %7, %6, %5, %4, %3, %2
%29 = phi i8* [ getelementptr inbounds ([16 x i8], [16 x i8]* @.str.26, i64 0, i64 0), %27 ], [ getelementptr inbounds ([22 x i8], [22 x i8]* @.str.25, i64 0, i64 0), %26 ], [ getelementptr inbounds ([24 x i8], [24 x i8]* @.str.24, i64 0, i64 0), %25 ], [ getelementptr inbounds ([12 x i8], [12 x i8]* @.str.23, i64 0, i64 0), %24 ], [ getelementptr inbounds ([15 x i8], [15 x i8]* @.str.22, i64 0, i64 0), %23 ], [ getelementptr inbounds ([14 x i8], [14 x i8]* @.str.21, i64 0, i64 0), %22 ], [ getelementptr inbounds ([13 x i8], [13 x i8]* @.str.20, i64 0, i64 0), %21 ], [ getelementptr inbounds ([14 x i8], [14 x i8]* @.str.19, i64 0, i64 0), %20 ], [ getelementptr inbounds ([17 x i8], [17 x i8]* @.str.18, i64 0, i64 0), %19 ], [ getelementptr inbounds ([35 x i8], [35 x i8]* @.str.17, i64 0, i64 0), %18 ], [ getelementptr inbounds ([13 x i8], [13 x i8]* @.str.16, i64 0, i64 0), %17 ], [ getelementptr inbounds ([21 x i8], [21 x i8]* @.str.15, i64 0, i64 0), %16 ], [ getelementptr inbounds ([14 x i8], [14 x i8]* @.str.14, i64 0, i64 0), %15 ], [ getelementptr inbounds ([9 x i8], [9 x i8]* @.str.13, i64 0, i64 0), %14 ], [ getelementptr inbounds ([11 x i8], [11 x i8]* @.str.12, i64 0, i64 0), %13 ], [ getelementptr inbounds ([14 x i8], [14 x i8]* @.str.11, i64 0, i64 0), %12 ], [ getelementptr inbounds ([10 x i8], [10 x i8]* @.str.10, i64 0, i64 0), %11 ], [ getelementptr inbounds ([12 x i8], [12 x i8]* @.str.9, i64 0, i64 0), %10 ], [ getelementptr inbounds ([25 x i8], [25 x i8]* @.str.8, i64 0, i64 0), %9 ], [ getelementptr inbounds ([26 x i8], [26 x i8]* @.str.7, i64 0, i64 0), %8 ], [ getelementptr inbounds ([24 x i8], [24 x i8]* @.str.6, i64 0, i64 0), %7 ], [ getelementptr inbounds ([17 x i8], [17 x i8]* @.str.5, i64 0, i64 0), %6 ], [ getelementptr inbounds ([10 x i8], [10 x i8]* @.str.4, i64 0, i64 0), %5 ], [ getelementptr inbounds ([28 x i8], [28 x i8]* @.str.3, i64 0, i64 0), %4 ], [ getelementptr inbounds ([10 x i8], [10 x i8]* @.str.2, i64 0, i64 0), %3 ], [ getelementptr inbounds ([25 x i8], [25 x i8]* @.str.1, i64 0, i64 0), %2 ], [ getelementptr inbounds ([26 x i8], [26 x i8]* @.str, i64 0, i64 0), %1 ]
ret i8* %29
}