#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 */
typedef int uint8_t;
typedef int uint32_t;

/* Variables and functions */
uint32_t get_PHY_base(uint8_t index) {
  switch (index) {
  case 0:
    return (0x4000 << 8);
    break;
  case 1:
    return (0x4000 << 8);
    break;
  case 2:
    return (0x4000 << 8);
    break;
  case 3:
    return (0x4000 << 8);
    break;
  case 4:
    return (0x4000 << 8);
    break;
  case 5:
    return (0x4000 << 8);
    break;
  case 6:
    return (0x4000 << 8);
    break;
  case 7:
    return (0x4000 << 8);
    break;
  case 8:
    return (0x4000 << 8);
    break;
  case 9:
    return (0x4000 << 8);
    break;
  case 10:
    return (0x4000 << 8);
    break;
  case 11:
    return (0x4000 << 8);
    break;
  default:
    return (0x4000 << 8);
    break;
  }
}


x86 assembly (clang, -O0):
<get_PHY_base>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x8(%rbp)
mov    -0x8(%rbp),%eax
mov    %rax,-0x10(%rbp)
sub    $0xb,%rax
ja     11bc <get_PHY_base+0xbc>
mov    -0x10(%rbp),%rax
lea    0xedd(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
movl   $0x400000,-0x4(%rbp)
jmp    11c3 <get_PHY_base+0xc3>
movl   $0x400000,-0x4(%rbp)
jmp    11c3 <get_PHY_base+0xc3>
movl   $0x400000,-0x4(%rbp)
jmp    11c3 <get_PHY_base+0xc3>
movl   $0x400000,-0x4(%rbp)
jmp    11c3 <get_PHY_base+0xc3>
movl   $0x400000,-0x4(%rbp)
jmp    11c3 <get_PHY_base+0xc3>
movl   $0x400000,-0x4(%rbp)
jmp    11c3 <get_PHY_base+0xc3>
movl   $0x400000,-0x4(%rbp)
jmp    11c3 <get_PHY_base+0xc3>
movl   $0x400000,-0x4(%rbp)
jmp    11c3 <get_PHY_base+0xc3>
movl   $0x400000,-0x4(%rbp)
jmp    11c3 <get_PHY_base+0xc3>
movl   $0x400000,-0x4(%rbp)
jmp    11c3 <get_PHY_base+0xc3>
movl   $0x400000,-0x4(%rbp)
jmp    11c3 <get_PHY_base+0xc3>
movl   $0x400000,-0x4(%rbp)
jmp    11c3 <get_PHY_base+0xc3>
movl   $0x400000,-0x4(%rbp)
mov    -0x4(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<get_PHY_base>:
mov    $0x400000,%eax
ret

LLVM IR (-O0):
define i32 @get_PHY_base(i32 %0) {
%2 = alloca i32
%3 = alloca i32
store i32 %0, i32* %3
%4 = load i32, i32* %3
switch i32 %4, label %17 [
i32 0, label %5
i32 1, label %6
i32 2, label %7
i32 3, label %8
i32 4, label %9
i32 5, label %10
i32 6, label %11
i32 7, label %12
i32 8, label %13
i32 9, label %14
i32 10, label %15
i32 11, label %16
]
5: ; preds = %1
store i32 4194304, i32* %2
br label %18
6: ; preds = %1
store i32 4194304, i32* %2
br label %18
7: ; preds = %1
store i32 4194304, i32* %2
br label %18
8: ; preds = %1
store i32 4194304, i32* %2
br label %18
9: ; preds = %1
store i32 4194304, i32* %2
br label %18
10: ; preds = %1
store i32 4194304, i32* %2
br label %18
11: ; preds = %1
store i32 4194304, i32* %2
br label %18
12: ; preds = %1
store i32 4194304, i32* %2
br label %18
13: ; preds = %1
store i32 4194304, i32* %2
br label %18
14: ; preds = %1
store i32 4194304, i32* %2
br label %18
15: ; preds = %1
store i32 4194304, i32* %2
br label %18
16: ; preds = %1
store i32 4194304, i32* %2
br label %18
17: ; preds = %1
store i32 4194304, i32* %2
br label %18
18: ; preds = %17, %16, %15, %14, %13, %12, %11, %10, %9, %8, %7, %6, %5
%19 = load i32, i32* %2
ret i32 %19
}

LLVM IR (-O2):
define i32 @get_PHY_base(i32 %0) {
ret i32 4194304
}