#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*/ ccuConfigureSlice(int, int /*<<< orphan*/, int, int, int,
                                     int, int, int /*<<< orphan*/,
                                     int /*<<< orphan*/, int);
int /*<<< orphan*/ ccuEnable(int);
int /*<<< orphan*/ ccuEvent0(int, int, int, int);
int /*<<< orphan*/ ccuStartSlices(int);
int /*<<< orphan*/ enablePin(int, int, int);
void blink(void) {
  ccuEnable((0x03 << 8));
  ccuConfigureSlice(0, ccuEvent0(0x0008, 0x01, 0x00, (0x00)), (0x01 << 0),
                    0x00 | (1 << 2) | (1 << 10), 0x08, 31250, 15625, 0, 0, 0);
  ccuConfigureSlice(1, ccuEvent0(0x0008, 0x01, 0x00, (0x00)), (0x01 << 0),
                    0x00 | (1 << 2) | (1 << 10), 0x08, 31250, 15625, 0, 0, 1);
  enablePin(1, 0, 0x90);
  enablePin(1, 1, 0x90);
  ccuStartSlices((1 << 0) | (1 << 1));
}


x86 assembly (clang, -O0):
<blink>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    $0x300,%edi
call   1040 <ccuEnable@plt>
mov    $0x8,%edi
mov    $0x1,%esi
xor    %ecx,%ecx
mov    %ecx,%edx
call   1070 <ccuEvent0@plt>
mov    %eax,%esi
xor    %edi,%edi
mov    $0x1,%edx
mov    $0x404,%ecx
mov    $0x8,%r8d
mov    $0x7a12,%r9d
movl   $0x3d09,(%rsp)
movl   $0x0,0x8(%rsp)
movl   $0x0,0x10(%rsp)
movl   $0x0,0x18(%rsp)
call   1050 <ccuConfigureSlice@plt>
mov    $0x8,%edi
mov    $0x1,%esi
xor    %ecx,%ecx
mov    %ecx,%edx
call   1070 <ccuEvent0@plt>
mov    %eax,%esi
mov    $0x1,%edx
mov    $0x404,%ecx
mov    $0x8,%r8d
mov    $0x7a12,%r9d
xor    %eax,%eax
mov    %edx,%edi
movl   $0x3d09,(%rsp)
movl   $0x0,0x8(%rsp)
movl   $0x0,0x10(%rsp)
movl   $0x1,0x18(%rsp)
call   1050 <ccuConfigureSlice@plt>
mov    $0x1,%edi
xor    %esi,%esi
mov    $0x90,%edx
call   1060 <enablePin@plt>
mov    $0x1,%esi
mov    $0x90,%edx
mov    %esi,%edi
call   1060 <enablePin@plt>
mov    $0x3,%edi
call   1030 <ccuStartSlices@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<blink>:
push   %rax
mov    $0x300,%edi
call   1040 <ccuEnable@plt>
mov    $0x8,%edi
mov    $0x1,%esi
xor    %edx,%edx
xor    %ecx,%ecx
call   1070 <ccuEvent0@plt>
xor    %edi,%edi
mov    %eax,%esi
mov    $0x1,%edx
mov    $0x404,%ecx
mov    $0x8,%r8d
mov    $0x7a12,%r9d
push   $0x0
push   $0x0
push   $0x0
push   $0x3d09
call   1050 <ccuConfigureSlice@plt>
add    $0x20,%rsp
mov    $0x8,%edi
mov    $0x1,%esi
xor    %edx,%edx
xor    %ecx,%ecx
call   1070 <ccuEvent0@plt>
mov    $0x1,%edi
mov    %eax,%esi
mov    $0x1,%edx
mov    $0x404,%ecx
mov    $0x8,%r8d
mov    $0x7a12,%r9d
push   $0x1
push   $0x0
push   $0x0
push   $0x3d09
call   1050 <ccuConfigureSlice@plt>
add    $0x20,%rsp
mov    $0x1,%edi
xor    %esi,%esi
mov    $0x90,%edx
call   1060 <enablePin@plt>
mov    $0x1,%edi
mov    $0x1,%esi
mov    $0x90,%edx
call   1060 <enablePin@plt>
mov    $0x3,%edi
pop    %rax
jmp    1030 <ccuStartSlices@plt>

LLVM IR (-O0):
define void @blink() {
%1 = call i32 @ccuEnable(i32 768)
%2 = call i32 @ccuEvent0(i32 8, i32 1, i32 0, i32 0)
%3 = call i32 @ccuConfigureSlice(i32 0, i32 %2, i32 1, i32 1028, i32 8, i32 31250, i32 15625, i32 0, i32 0, i32 0)
%4 = call i32 @ccuEvent0(i32 8, i32 1, i32 0, i32 0)
%5 = call i32 @ccuConfigureSlice(i32 1, i32 %4, i32 1, i32 1028, i32 8, i32 31250, i32 15625, i32 0, i32 0, i32 1)
%6 = call i32 @enablePin(i32 1, i32 0, i32 144)
%7 = call i32 @enablePin(i32 1, i32 1, i32 144)
%8 = call i32 @ccuStartSlices(i32 3)
ret void
}

LLVM IR (-O2):
define void @blink() {
%1 = tail call i32 @ccuEnable(i32 768)
%2 = tail call i32 @ccuEvent0(i32 8, i32 1, i32 0, i32 0)
%3 = tail call i32 @ccuConfigureSlice(i32 0, i32 %2, i32 1, i32 1028, i32 8, i32 31250, i32 15625, i32 0, i32 0, i32 0)
%4 = tail call i32 @ccuEvent0(i32 8, i32 1, i32 0, i32 0)
%5 = tail call i32 @ccuConfigureSlice(i32 1, i32 %4, i32 1, i32 1028, i32 8, i32 31250, i32 15625, i32 0, i32 0, i32 1)
%6 = tail call i32 @enablePin(i32 1, i32 0, i32 144)
%7 = tail call i32 @enablePin(i32 1, i32 1, i32 144)
%8 = tail call i32 @ccuStartSlices(i32 3)
ret void
}