#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*/ ccuEvent1(int, int, int, int);
int /*<<< orphan*/ enablePin(int /*<<< orphan*/, int, int);
void configureCCU() {
  ccuEnable((0x03 << 8));
  ccuConfigureSlice(0, ccuEvent1(0x0008, 0x01, 0x00, (0x00)), (0x02 << 0),
                    0x00 | (1 << 0) | (1 << 2) | (1 << 10), 0x03, 99, 95, 0, 0,
                    0);
  ccuConfigureSlice(1, ccuEvent1(0x0008, 0x01, 0x00, (0x00)), (0x02 << 0),
                    0x00 | (1 << 0) | (1 << 2) | (1 << 10), 0x03, 99, 5, 0, 0,
                    1);
  enablePin(0, 6, 0xa0);
  enablePin(0, 7, 0xa0);
}


x86 assembly (clang, -O0):
<configureCCU>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    $0x300,%edi
call   1030 <ccuEnable@plt>
mov    $0x8,%edi
mov    $0x1,%esi
xor    %ecx,%ecx
mov    %ecx,%edx
call   1040 <ccuEvent1@plt>
mov    %eax,%esi
xor    %edi,%edi
mov    $0x2,%edx
mov    $0x405,%ecx
mov    $0x3,%r8d
mov    $0x63,%r9d
movl   $0x5f,(%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   1040 <ccuEvent1@plt>
mov    %eax,%esi
mov    $0x1,%edi
mov    $0x2,%edx
mov    $0x405,%ecx
mov    $0x3,%r8d
mov    $0x63,%r9d
xor    %eax,%eax
movl   $0x5,(%rsp)
movl   $0x0,0x8(%rsp)
movl   $0x0,0x10(%rsp)
movl   $0x1,0x18(%rsp)
call   1050 <ccuConfigureSlice@plt>
xor    %edi,%edi
mov    $0x6,%esi
mov    $0xa0,%edx
call   1060 <enablePin@plt>
xor    %edi,%edi
mov    $0x7,%esi
mov    $0xa0,%edx
call   1060 <enablePin@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<configureCCU>:
push   %rax
mov    $0x300,%edi
call   1030 <ccuEnable@plt>
mov    $0x8,%edi
mov    $0x1,%esi
xor    %edx,%edx
xor    %ecx,%ecx
call   1040 <ccuEvent1@plt>
xor    %edi,%edi
mov    %eax,%esi
mov    $0x2,%edx
mov    $0x405,%ecx
mov    $0x3,%r8d
mov    $0x63,%r9d
push   $0x0
push   $0x0
push   $0x0
push   $0x5f
call   1050 <ccuConfigureSlice@plt>
add    $0x20,%rsp
mov    $0x8,%edi
mov    $0x1,%esi
xor    %edx,%edx
xor    %ecx,%ecx
call   1040 <ccuEvent1@plt>
mov    $0x1,%edi
mov    %eax,%esi
mov    $0x2,%edx
mov    $0x405,%ecx
mov    $0x3,%r8d
mov    $0x63,%r9d
push   $0x1
push   $0x0
push   $0x0
push   $0x5
call   1050 <ccuConfigureSlice@plt>
add    $0x20,%rsp
xor    %edi,%edi
mov    $0x6,%esi
mov    $0xa0,%edx
call   1060 <enablePin@plt>
xor    %edi,%edi
mov    $0x7,%esi
mov    $0xa0,%edx
pop    %rax
jmp    1060 <enablePin@plt>

LLVM IR (-O0):
define void @configureCCU() {
%1 = call i32 @ccuEnable(i32 768)
%2 = call i32 @ccuEvent1(i32 8, i32 1, i32 0, i32 0)
%3 = call i32 @ccuConfigureSlice(i32 0, i32 %2, i32 2, i32 1029, i32 3, i32 99, i32 95, i32 0, i32 0, i32 0)
%4 = call i32 @ccuEvent1(i32 8, i32 1, i32 0, i32 0)
%5 = call i32 @ccuConfigureSlice(i32 1, i32 %4, i32 2, i32 1029, i32 3, i32 99, i32 5, i32 0, i32 0, i32 1)
%6 = call i32 @enablePin(i32 0, i32 6, i32 160)
%7 = call i32 @enablePin(i32 0, i32 7, i32 160)
ret void
}

LLVM IR (-O2):
define void @configureCCU() {
%1 = tail call i32 @ccuEnable(i32 768)
%2 = tail call i32 @ccuEvent1(i32 8, i32 1, i32 0, i32 0)
%3 = tail call i32 @ccuConfigureSlice(i32 0, i32 %2, i32 2, i32 1029, i32 3, i32 99, i32 95, i32 0, i32 0, i32 0)
%4 = tail call i32 @ccuEvent1(i32 8, i32 1, i32 0, i32 0)
%5 = tail call i32 @ccuConfigureSlice(i32 1, i32 %4, i32 2, i32 1029, i32 3, i32 99, i32 5, i32 0, i32 0, i32 1)
%6 = tail call i32 @enablePin(i32 0, i32 6, i32 160)
%7 = tail call i32 @enablePin(i32 0, i32 7, i32 160)
ret void
}