int map_parameter_oceanographic_waves(int center, int disc, int param_cat,
                                      int param_num) {
  (void)(disc);
  (void)(center);
  (void)(param_cat);
  switch (param_num) {
  case 0:
    return 28;
  case 1:
    return 29;
  case 2:
    return 30;
  case 3:
    return 100;
  case 4:
    return 101;
  case 5:
    return 102;
  case 6:
    return 103;
  case 7:
    return 104;
  case 8:
    return 105;
  case 9:
    return 106;
  case 10:
    return 107;
  case 11:
    return 108;
  case 12:
    return 109;
  case 13:
    return 110;
  default:
    break;
  }
  return -1;
}


x86 assembly (clang, -O0):
<map_parameter_oceanographic_waves>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    %edx,-0x10(%rbp)
mov    %ecx,-0x14(%rbp)
mov    -0x14(%rbp),%eax
mov    %rax,-0x20(%rbp)
sub    $0xd,%rax
ja     11dd <map_parameter_oceanographic_waves+0xdd>
mov    -0x20(%rbp),%rax
lea    0xed4(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
movl   $0x1c,-0x4(%rbp)
jmp    11e9 <map_parameter_oceanographic_waves+0xe9>
movl   $0x1d,-0x4(%rbp)
jmp    11e9 <map_parameter_oceanographic_waves+0xe9>
movl   $0x1e,-0x4(%rbp)
jmp    11e9 <map_parameter_oceanographic_waves+0xe9>
movl   $0x64,-0x4(%rbp)
jmp    11e9 <map_parameter_oceanographic_waves+0xe9>
movl   $0x65,-0x4(%rbp)
jmp    11e9 <map_parameter_oceanographic_waves+0xe9>
movl   $0x66,-0x4(%rbp)
jmp    11e9 <map_parameter_oceanographic_waves+0xe9>
movl   $0x67,-0x4(%rbp)
jmp    11e9 <map_parameter_oceanographic_waves+0xe9>
movl   $0x68,-0x4(%rbp)
jmp    11e9 <map_parameter_oceanographic_waves+0xe9>
movl   $0x69,-0x4(%rbp)
jmp    11e9 <map_parameter_oceanographic_waves+0xe9>
movl   $0x6a,-0x4(%rbp)
jmp    11e9 <map_parameter_oceanographic_waves+0xe9>
movl   $0x6b,-0x4(%rbp)
jmp    11e9 <map_parameter_oceanographic_waves+0xe9>
movl   $0x6c,-0x4(%rbp)
jmp    11e9 <map_parameter_oceanographic_waves+0xe9>
movl   $0x6d,-0x4(%rbp)
jmp    11e9 <map_parameter_oceanographic_waves+0xe9>
movl   $0x6e,-0x4(%rbp)
jmp    11e9 <map_parameter_oceanographic_waves+0xe9>
jmp    11e2 <map_parameter_oceanographic_waves+0xe2>
movl   $0xffffffff,-0x4(%rbp)
mov    -0x4(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<map_parameter_oceanographic_waves>:
mov    $0xffffffff,%eax
cmp    $0xd,%ecx
ja     1117 <map_parameter_oceanographic_waves+0x17>
movslq %ecx,%rax
lea    0xeec(%rip),%rcx
mov    (%rcx,%rax,4),%eax
ret

LLVM IR (-O0):
define i32 @map_parameter_oceanographic_waves(i32 %0, i32 %1, i32 %2, i32 %3) {
%5 = alloca i32
%6 = alloca i32
%7 = alloca i32
%8 = alloca i32
%9 = alloca i32
store i32 %0, i32* %6
store i32 %1, i32* %7
store i32 %2, i32* %8
store i32 %3, i32* %9
%10 = load i32, i32* %7
%11 = load i32, i32* %6
%12 = load i32, i32* %8
%13 = load i32, i32* %9
switch i32 %13, label %28 [
i32 0, label %14
i32 1, label %15
i32 2, label %16
i32 3, label %17
i32 4, label %18
i32 5, label %19
i32 6, label %20
i32 7, label %21
i32 8, label %22
i32 9, label %23
i32 10, label %24
i32 11, label %25
i32 12, label %26
i32 13, label %27
]
14: ; preds = %4
store i32 28, i32* %5
br label %30
15: ; preds = %4
store i32 29, i32* %5
br label %30
16: ; preds = %4
store i32 30, i32* %5
br label %30
17: ; preds = %4
store i32 100, i32* %5
br label %30
18: ; preds = %4
store i32 101, i32* %5
br label %30
19: ; preds = %4
store i32 102, i32* %5
br label %30
20: ; preds = %4
store i32 103, i32* %5
br label %30
21: ; preds = %4
store i32 104, i32* %5
br label %30
22: ; preds = %4
store i32 105, i32* %5
br label %30
23: ; preds = %4
store i32 106, i32* %5
br label %30
24: ; preds = %4
store i32 107, i32* %5
br label %30
25: ; preds = %4
store i32 108, i32* %5
br label %30
26: ; preds = %4
store i32 109, i32* %5
br label %30
27: ; preds = %4
store i32 110, i32* %5
br label %30
28: ; preds = %4
br label %29
29: ; preds = %28
store i32 -1, i32* %5
br label %30
30: ; preds = %29, %27, %26, %25, %24, %23, %22, %21, %20, %19, %18, %17, %16, %15, %14
%31 = load i32, i32* %5
ret i32 %31
}

LLVM IR (-O2):
@switch.table.map_parameter_oceanographic_waves = [14 x i32] [i32 28, i32 29, i32 30, i32 100, i32 101, i32 102, i32 103, i32 104, i32 105, i32 106, i32 107, i32 108, i32 109, i32 110]
define i32 @map_parameter_oceanographic_waves(i32 %0, i32 %1, i32 %2, i32 %3) {
%5 = icmp ult i32 %3, 14
br i1 %5, label %6, label %10
6: ; preds = %4
%7 = sext i32 %3 to i64
%8 = getelementptr inbounds [14 x i32], [14 x i32]* @switch.table.map_parameter_oceanographic_waves, i64 0, i64 %7
%9 = load i32, i32* %8
br label %10
10: ; preds = %4, %6
%11 = phi i32 [ %9, %6 ], [ -1, %4 ]
ret i32 %11
}