#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*/ setMicroEighthStep();
int /*<<< orphan*/ setMicroFullStep();
int /*<<< orphan*/ setMicroHalfStep();
int /*<<< orphan*/ setMicroQuarterStep();
int /*<<< orphan*/ setMicroSixteenthStep();
void setMicro(int micro_mode) {
  switch (micro_mode) {
  case 1:
    setMicroFullStep();
    break;
  case 2:
    setMicroHalfStep();
    break;
  case 3:
    setMicroQuarterStep();
    break;
  case 4:
    setMicroEighthStep();
    break;
  case 5:
    setMicroSixteenthStep();
    break;
  default:
    setMicroSixteenthStep();
    break;
  }
}


x86 assembly (clang, -O0):
<setMicro>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,%ecx
mov    %rcx,-0x10(%rbp)
sub    $0x4,%eax
ja     11c0 <setMicro+0x70>
mov    -0x10(%rbp),%rax
lea    0xe85(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
mov    $0x0,%al
call   1070 <setMicroFullStep@plt>
jmp    11c7 <setMicro+0x77>
mov    $0x0,%al
call   1040 <setMicroHalfStep@plt>
jmp    11c7 <setMicro+0x77>
mov    $0x0,%al
call   1060 <setMicroQuarterStep@plt>
jmp    11c7 <setMicro+0x77>
mov    $0x0,%al
call   1030 <setMicroEighthStep@plt>
jmp    11c7 <setMicro+0x77>
mov    $0x0,%al
call   1050 <setMicroSixteenthStep@plt>
jmp    11c7 <setMicro+0x77>
mov    $0x0,%al
call   1050 <setMicroSixteenthStep@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<setMicro>:
add    $0xffffffff,%edi
cmp    $0x4,%edi
ja     116f <setMicro+0x1f>
lea    0xea1(%rip),%rax
movslq (%rax,%rdi,4),%rcx
add    %rax,%rcx
jmp    *%rcx
xor    %eax,%eax
jmp    1070 <setMicroFullStep@plt>
xor    %eax,%eax
jmp    1050 <setMicroSixteenthStep@plt>
xor    %eax,%eax
jmp    1040 <setMicroHalfStep@plt>
xor    %eax,%eax
jmp    1060 <setMicroQuarterStep@plt>
xor    %eax,%eax
jmp    1030 <setMicroEighthStep@plt>

LLVM IR (-O0):
define void @setMicro(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
%3 = load i32, i32* %2
switch i32 %3, label %14 [
i32 1, label %4
i32 2, label %6
i32 3, label %8
i32 4, label %10
i32 5, label %12
]
4: ; preds = %1
%5 = call i32 (...) @setMicroFullStep()
br label %16
6: ; preds = %1
%7 = call i32 (...) @setMicroHalfStep()
br label %16
8: ; preds = %1
%9 = call i32 (...) @setMicroQuarterStep()
br label %16
10: ; preds = %1
%11 = call i32 (...) @setMicroEighthStep()
br label %16
12: ; preds = %1
%13 = call i32 (...) @setMicroSixteenthStep()
br label %16
14: ; preds = %1
%15 = call i32 (...) @setMicroSixteenthStep()
br label %16
16: ; preds = %14, %12, %10, %8, %6, %4
ret void
}

LLVM IR (-O2):
define void @setMicro(i32 %0) {
switch i32 %0, label %12 [
i32 1, label %2
i32 2, label %4
i32 3, label %6
i32 4, label %8
i32 5, label %10
]
2: ; preds = %1
%3 = tail call i32 (...) @setMicroFullStep()
br label %14
4: ; preds = %1
%5 = tail call i32 (...) @setMicroHalfStep()
br label %14
6: ; preds = %1
%7 = tail call i32 (...) @setMicroQuarterStep()
br label %14
8: ; preds = %1
%9 = tail call i32 (...) @setMicroEighthStep()
br label %14
10: ; preds = %1
%11 = tail call i32 (...) @setMicroSixteenthStep()
br label %14
12: ; preds = %1
%13 = tail call i32 (...) @setMicroSixteenthStep()
br label %14
14: ; preds = %12, %10, %8, %6, %4, %2
ret void
}