int Get_Coordinates(int location, int *x, int *y) {
  int status = 1;
  switch (location) {
  case 1:
    *x = -5430;
    *y = 35750;
    break;
  case 2:
    *x = -7300;
    *y = 42580;
    break;
  case 3:
    *x = -4920;
    *y = 44800;
    break;
  case 4:
    *x = -4931;
    *y = -25183;
    break;
  case 5:
    *x = -23758;
    *y = 34647;
    break;
  default:
    status = 0;
    break;
  }
  return status;
}


x86 assembly (clang, -O0):
<Get_Coordinates>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
movl   $0x1,-0x1c(%rbp)
mov    -0x4(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,%ecx
mov    %rcx,-0x28(%rbp)
sub    $0x4,%eax
ja     11bc <Get_Coordinates+0xbc>
mov    -0x28(%rbp),%rax
lea    0xeca(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
mov    -0x10(%rbp),%rax
movl   $0xffffeaca,(%rax)
mov    -0x18(%rbp),%rax
movl   $0x8ba6,(%rax)
jmp    11c3 <Get_Coordinates+0xc3>
mov    -0x10(%rbp),%rax
movl   $0xffffe37c,(%rax)
mov    -0x18(%rbp),%rax
movl   $0xa654,(%rax)
jmp    11c3 <Get_Coordinates+0xc3>
mov    -0x10(%rbp),%rax
movl   $0xffffecc8,(%rax)
mov    -0x18(%rbp),%rax
movl   $0xaf00,(%rax)
jmp    11c3 <Get_Coordinates+0xc3>
mov    -0x10(%rbp),%rax
movl   $0xffffecbd,(%rax)
mov    -0x18(%rbp),%rax
movl   $0xffff9da1,(%rax)
jmp    11c3 <Get_Coordinates+0xc3>
mov    -0x10(%rbp),%rax
movl   $0xffffa332,(%rax)
mov    -0x18(%rbp),%rax
movl   $0x8757,(%rax)
jmp    11c3 <Get_Coordinates+0xc3>
movl   $0x0,-0x1c(%rbp)
mov    -0x1c(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<Get_Coordinates>:
add    $0xffffffff,%edi
xor    %eax,%eax
cmp    $0x4,%edi
ja     112a <Get_Coordinates+0x2a>
movslq %edi,%rax
lea    0xeec(%rip),%rcx
mov    (%rcx,%rax,4),%ecx
lea    0xef6(%rip),%rdi
mov    (%rdi,%rax,4),%eax
mov    %ecx,(%rsi)
mov    %eax,(%rdx)
mov    $0x1,%eax
ret

LLVM IR (-O0):
define i32 @Get_Coordinates(i32 %0, i32* %1, i32* %2) {
%4 = alloca i32
%5 = alloca i32*
%6 = alloca i32*
%7 = alloca i32
store i32 %0, i32* %4
store i32* %1, i32** %5
store i32* %2, i32** %6
store i32 1, i32* %7
%8 = load i32, i32* %4
switch i32 %8, label %24 [
i32 1, label %9
i32 2, label %12
i32 3, label %15
i32 4, label %18
i32 5, label %21
]
9: ; preds = %3
%10 = load i32*, i32** %5
store i32 -5430, i32* %10
%11 = load i32*, i32** %6
store i32 35750, i32* %11
br label %25
12: ; preds = %3
%13 = load i32*, i32** %5
store i32 -7300, i32* %13
%14 = load i32*, i32** %6
store i32 42580, i32* %14
br label %25
15: ; preds = %3
%16 = load i32*, i32** %5
store i32 -4920, i32* %16
%17 = load i32*, i32** %6
store i32 44800, i32* %17
br label %25
18: ; preds = %3
%19 = load i32*, i32** %5
store i32 -4931, i32* %19
%20 = load i32*, i32** %6
store i32 -25183, i32* %20
br label %25
21: ; preds = %3
%22 = load i32*, i32** %5
store i32 -23758, i32* %22
%23 = load i32*, i32** %6
store i32 34647, i32* %23
br label %25
24: ; preds = %3
store i32 0, i32* %7
br label %25
25: ; preds = %24, %21, %18, %15, %12, %9
%26 = load i32, i32* %7
ret i32 %26
}

LLVM IR (-O2):
@switch.table.Get_Coordinates = [5 x i32] [i32 -5430, i32 -7300, i32 -4920, i32 -4931, i32 -23758]
@switch.table.Get_Coordinates.1 = [5 x i32] [i32 35750, i32 42580, i32 44800, i32 -25183, i32 34647]
define i32 @Get_Coordinates(i32 %0, i32* nocapture writeonly %1, i32* nocapture writeonly %2) {
%4 = add i32 %0, -1
%5 = icmp ult i32 %4, 5
br i1 %5, label %6, label %13
6: ; preds = %3
%7 = sext i32 %4 to i64
%8 = getelementptr inbounds [5 x i32], [5 x i32]* @switch.table.Get_Coordinates, i64 0, i64 %7
%9 = load i32, i32* %8
%10 = sext i32 %4 to i64
%11 = getelementptr inbounds [5 x i32], [5 x i32]* @switch.table.Get_Coordinates.1, i64 0, i64 %10
%12 = load i32, i32* %11
store i32 %9, i32* %1
store i32 %12, i32* %2
br label %13
13: ; preds = %3, %6
%14 = phi i32 [ 0, %3 ], [ 1, %6 ]
ret i32 %14
}