#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*/ SPISend(unsigned int const, int);
int /*<<< orphan*/ tickleMax1112x();
int /*<<< orphan*/ usicBufferedSendCh0(char *);
void configureMax1112x(const unsigned int adc_cbase) {
  SPISend(adc_cbase, (2 << 5));
  SPISend(adc_cbase, (0x10 << 11) | (1 << 10) | (0 << 9) | (0 << 7) | (0 << 5) |
                         (0 << 3) | (0 << 2));
  SPISend(adc_cbase, (0x12 << 11));
  SPISend(adc_cbase, (0x11 << 11) | (1 << 2));
  SPISend(adc_cbase,
          (0 << 15) | (3 << 11) | (4 << 7) | (0 << 5) | (0 << 3) | (1 << 2));
  tickleMax1112x();
  usicBufferedSendCh0("Configured\r\n");
}


x86 assembly (clang, -O0):
<configureMax1112x>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    -0x4(%rbp),%edi
mov    $0x40,%esi
call   1030 <SPISend@plt>
mov    -0x4(%rbp),%edi
mov    $0x8400,%esi
call   1030 <SPISend@plt>
mov    -0x4(%rbp),%edi
mov    $0x9000,%esi
call   1030 <SPISend@plt>
mov    -0x4(%rbp),%edi
mov    $0x8804,%esi
call   1030 <SPISend@plt>
mov    -0x4(%rbp),%edi
mov    $0x1a04,%esi
call   1030 <SPISend@plt>
mov    $0x0,%al
call   1050 <tickleMax1112x@plt>
lea    0xe76(%rip),%rdi
call   1040 <usicBufferedSendCh0@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<configureMax1112x>:
push   %rbx
mov    %edi,%ebx
mov    $0x40,%esi
call   1030 <SPISend@plt>
mov    %ebx,%edi
mov    $0x8400,%esi
call   1030 <SPISend@plt>
mov    %ebx,%edi
mov    $0x9000,%esi
call   1030 <SPISend@plt>
mov    %ebx,%edi
mov    $0x8804,%esi
call   1030 <SPISend@plt>
mov    %ebx,%edi
mov    $0x1a04,%esi
call   1030 <SPISend@plt>
xor    %eax,%eax
call   1050 <tickleMax1112x@plt>
lea    0xe85(%rip),%rdi
pop    %rbx
jmp    1040 <usicBufferedSendCh0@plt>

LLVM IR (-O0):
@.str = [13 x i8] c"Configured\0D\0A\00"
define void @configureMax1112x(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
%3 = load i32, i32* %2
%4 = call i32 @SPISend(i32 %3, i32 64)
%5 = load i32, i32* %2
%6 = call i32 @SPISend(i32 %5, i32 33792)
%7 = load i32, i32* %2
%8 = call i32 @SPISend(i32 %7, i32 36864)
%9 = load i32, i32* %2
%10 = call i32 @SPISend(i32 %9, i32 34820)
%11 = load i32, i32* %2
%12 = call i32 @SPISend(i32 %11, i32 6660)
%13 = call i32 (...) @tickleMax1112x()
%14 = call i32 @usicBufferedSendCh0(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [13 x i8] c"Configured\0D\0A\00"
define void @configureMax1112x(i32 %0) {
%2 = tail call i32 @SPISend(i32 %0, i32 64)
%3 = tail call i32 @SPISend(i32 %0, i32 33792)
%4 = tail call i32 @SPISend(i32 %0, i32 36864)
%5 = tail call i32 @SPISend(i32 %0, i32 34820)
%6 = tail call i32 @SPISend(i32 %0, i32 6660)
%7 = tail call i32 (...) @tickleMax1112x()
%8 = tail call i32 @usicBufferedSendCh0(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str, i64 0, i64 0))
ret void
}