#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*/ clock_out_timer_task();
int /*<<< orphan*/ iface_midi_router_timer_task();
int /*<<< orphan*/ midi_clock_timer_task();
int /*<<< orphan*/ panel_timer_task();
int /*<<< orphan*/ pattern_edit_timer_task();
int power_ctrl_get_power_state();
int /*<<< orphan*/ seq_engine_timer_task();
int /*<<< orphan*/ song_edit_timer_task();
int /*<<< orphan*/ song_timer_task();
int /*<<< orphan*/ step_edit_timer_task();
int /*<<< orphan*/ sysex_timer_task();
void seq_ctrl_rt_task(void) {
  if (power_ctrl_get_power_state() == 5) {
    midi_clock_timer_task();
    seq_engine_timer_task();
    clock_out_timer_task();
    pattern_edit_timer_task();
    step_edit_timer_task();
    song_edit_timer_task();
    sysex_timer_task();
    song_timer_task();
  } else {
    iface_midi_router_timer_task();
  }
  panel_timer_task();
}


x86 assembly (clang, -O0):
<seq_ctrl_rt_task>:
push   %rbp
mov    %rsp,%rbp
mov    $0x0,%al
call   1050 <power_ctrl_get_power_state@plt>
cmp    $0x5,%eax
jne    1201 <seq_ctrl_rt_task+0x51>
mov    $0x0,%al
call   10a0 <midi_clock_timer_task@plt>
mov    $0x0,%al
call   1070 <seq_engine_timer_task@plt>
mov    $0x0,%al
call   1080 <clock_out_timer_task@plt>
mov    $0x0,%al
call   1040 <pattern_edit_timer_task@plt>
mov    $0x0,%al
call   10d0 <step_edit_timer_task@plt>
mov    $0x0,%al
call   10b0 <song_edit_timer_task@plt>
mov    $0x0,%al
call   1090 <sysex_timer_task@plt>
mov    $0x0,%al
call   1030 <song_timer_task@plt>
jmp    1208 <seq_ctrl_rt_task+0x58>
mov    $0x0,%al
call   10c0 <iface_midi_router_timer_task@plt>
mov    $0x0,%al
call   1060 <panel_timer_task@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<seq_ctrl_rt_task>:
push   %rax
xor    %eax,%eax
call   1050 <power_ctrl_get_power_state@plt>
cmp    $0x5,%eax
jne    11f7 <seq_ctrl_rt_task+0x47>
xor    %eax,%eax
call   10a0 <midi_clock_timer_task@plt>
xor    %eax,%eax
call   1070 <seq_engine_timer_task@plt>
xor    %eax,%eax
call   1080 <clock_out_timer_task@plt>
xor    %eax,%eax
call   1040 <pattern_edit_timer_task@plt>
xor    %eax,%eax
call   10d0 <step_edit_timer_task@plt>
xor    %eax,%eax
call   10b0 <song_edit_timer_task@plt>
xor    %eax,%eax
call   1090 <sysex_timer_task@plt>
xor    %eax,%eax
call   1030 <song_timer_task@plt>
jmp    11fe <seq_ctrl_rt_task+0x4e>
xor    %eax,%eax
call   10c0 <iface_midi_router_timer_task@plt>
xor    %eax,%eax
pop    %rcx
jmp    1060 <panel_timer_task@plt>

LLVM IR (-O0):
define void @seq_ctrl_rt_task() {
%1 = call i32 (...) @power_ctrl_get_power_state()
%2 = icmp eq i32 %1, 5
br i1 %2, label %3, label %12
3: ; preds = %0
%4 = call i32 (...) @midi_clock_timer_task()
%5 = call i32 (...) @seq_engine_timer_task()
%6 = call i32 (...) @clock_out_timer_task()
%7 = call i32 (...) @pattern_edit_timer_task()
%8 = call i32 (...) @step_edit_timer_task()
%9 = call i32 (...) @song_edit_timer_task()
%10 = call i32 (...) @sysex_timer_task()
%11 = call i32 (...) @song_timer_task()
br label %14
12: ; preds = %0
%13 = call i32 (...) @iface_midi_router_timer_task()
br label %14
14: ; preds = %12, %3
%15 = call i32 (...) @panel_timer_task()
ret void
}

LLVM IR (-O2):
define void @seq_ctrl_rt_task() {
%1 = tail call i32 (...) @power_ctrl_get_power_state()
%2 = icmp eq i32 %1, 5
br i1 %2, label %3, label %12
3: ; preds = %0
%4 = tail call i32 (...) @midi_clock_timer_task()
%5 = tail call i32 (...) @seq_engine_timer_task()
%6 = tail call i32 (...) @clock_out_timer_task()
%7 = tail call i32 (...) @pattern_edit_timer_task()
%8 = tail call i32 (...) @step_edit_timer_task()
%9 = tail call i32 (...) @song_edit_timer_task()
%10 = tail call i32 (...) @sysex_timer_task()
%11 = tail call i32 (...) @song_timer_task()
br label %14
12: ; preds = %0
%13 = tail call i32 (...) @iface_midi_router_timer_task()
br label %14
14: ; preds = %12, %3
%15 = tail call i32 (...) @panel_timer_task()
ret void
}