#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*/ CodecRegWrite(unsigned int, int, int);
void AIC31DACInit(unsigned int baseAddr) {
  CodecRegWrite(baseAddr, (37), 0xE0);
  CodecRegWrite(baseAddr, (41), 0x02);
  CodecRegWrite(baseAddr, (42), 0x6C);
  CodecRegWrite(baseAddr, (47), 0x80);
  CodecRegWrite(baseAddr, (51), 0x09);
  CodecRegWrite(baseAddr, (64), 0x80);
  CodecRegWrite(baseAddr, (65), 0x09);
  CodecRegWrite(baseAddr, (82), 0x80);
  CodecRegWrite(baseAddr, (86), 0x09);
  CodecRegWrite(baseAddr, (92), 0x80);
  CodecRegWrite(baseAddr, (93), 0x09);
  CodecRegWrite(baseAddr, (43), 0x00);
  CodecRegWrite(baseAddr, (44), 0x00);
}


x86 assembly (clang, -O0):
<AIC31DACInit>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    -0x4(%rbp),%edi
mov    $0x25,%esi
mov    $0xe0,%edx
call   1030 <CodecRegWrite@plt>
mov    -0x4(%rbp),%edi
mov    $0x29,%esi
mov    $0x2,%edx
call   1030 <CodecRegWrite@plt>
mov    -0x4(%rbp),%edi
mov    $0x2a,%esi
mov    $0x6c,%edx
call   1030 <CodecRegWrite@plt>
mov    -0x4(%rbp),%edi
mov    $0x2f,%esi
mov    $0x80,%edx
call   1030 <CodecRegWrite@plt>
mov    -0x4(%rbp),%edi
mov    $0x33,%esi
mov    $0x9,%edx
call   1030 <CodecRegWrite@plt>
mov    -0x4(%rbp),%edi
mov    $0x40,%esi
mov    $0x80,%edx
call   1030 <CodecRegWrite@plt>
mov    -0x4(%rbp),%edi
mov    $0x41,%esi
mov    $0x9,%edx
call   1030 <CodecRegWrite@plt>
mov    -0x4(%rbp),%edi
mov    $0x52,%esi
mov    $0x80,%edx
call   1030 <CodecRegWrite@plt>
mov    -0x4(%rbp),%edi
mov    $0x56,%esi
mov    $0x9,%edx
call   1030 <CodecRegWrite@plt>
mov    -0x4(%rbp),%edi
mov    $0x5c,%esi
mov    $0x80,%edx
call   1030 <CodecRegWrite@plt>
mov    -0x4(%rbp),%edi
mov    $0x5d,%esi
mov    $0x9,%edx
call   1030 <CodecRegWrite@plt>
mov    -0x4(%rbp),%edi
mov    $0x2b,%esi
xor    %edx,%edx
call   1030 <CodecRegWrite@plt>
mov    -0x4(%rbp),%edi
mov    $0x2c,%esi
xor    %edx,%edx
call   1030 <CodecRegWrite@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<AIC31DACInit>:
push   %rbx
mov    %edi,%ebx
mov    $0x25,%esi
mov    $0xe0,%edx
call   1030 <CodecRegWrite@plt>
mov    %ebx,%edi
mov    $0x29,%esi
mov    $0x2,%edx
call   1030 <CodecRegWrite@plt>
mov    %ebx,%edi
mov    $0x2a,%esi
mov    $0x6c,%edx
call   1030 <CodecRegWrite@plt>
mov    %ebx,%edi
mov    $0x2f,%esi
mov    $0x80,%edx
call   1030 <CodecRegWrite@plt>
mov    %ebx,%edi
mov    $0x33,%esi
mov    $0x9,%edx
call   1030 <CodecRegWrite@plt>
mov    %ebx,%edi
mov    $0x40,%esi
mov    $0x80,%edx
call   1030 <CodecRegWrite@plt>
mov    %ebx,%edi
mov    $0x41,%esi
mov    $0x9,%edx
call   1030 <CodecRegWrite@plt>
mov    %ebx,%edi
mov    $0x52,%esi
mov    $0x80,%edx
call   1030 <CodecRegWrite@plt>
mov    %ebx,%edi
mov    $0x56,%esi
mov    $0x9,%edx
call   1030 <CodecRegWrite@plt>
mov    %ebx,%edi
mov    $0x5c,%esi
mov    $0x80,%edx
call   1030 <CodecRegWrite@plt>
mov    %ebx,%edi
mov    $0x5d,%esi
mov    $0x9,%edx
call   1030 <CodecRegWrite@plt>
mov    %ebx,%edi
mov    $0x2b,%esi
xor    %edx,%edx
call   1030 <CodecRegWrite@plt>
mov    %ebx,%edi
mov    $0x2c,%esi
xor    %edx,%edx
pop    %rbx
jmp    1030 <CodecRegWrite@plt>

LLVM IR (-O0):
define void @AIC31DACInit(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
%3 = load i32, i32* %2
%4 = call i32 @CodecRegWrite(i32 %3, i32 37, i32 224)
%5 = load i32, i32* %2
%6 = call i32 @CodecRegWrite(i32 %5, i32 41, i32 2)
%7 = load i32, i32* %2
%8 = call i32 @CodecRegWrite(i32 %7, i32 42, i32 108)
%9 = load i32, i32* %2
%10 = call i32 @CodecRegWrite(i32 %9, i32 47, i32 128)
%11 = load i32, i32* %2
%12 = call i32 @CodecRegWrite(i32 %11, i32 51, i32 9)
%13 = load i32, i32* %2
%14 = call i32 @CodecRegWrite(i32 %13, i32 64, i32 128)
%15 = load i32, i32* %2
%16 = call i32 @CodecRegWrite(i32 %15, i32 65, i32 9)
%17 = load i32, i32* %2
%18 = call i32 @CodecRegWrite(i32 %17, i32 82, i32 128)
%19 = load i32, i32* %2
%20 = call i32 @CodecRegWrite(i32 %19, i32 86, i32 9)
%21 = load i32, i32* %2
%22 = call i32 @CodecRegWrite(i32 %21, i32 92, i32 128)
%23 = load i32, i32* %2
%24 = call i32 @CodecRegWrite(i32 %23, i32 93, i32 9)
%25 = load i32, i32* %2
%26 = call i32 @CodecRegWrite(i32 %25, i32 43, i32 0)
%27 = load i32, i32* %2
%28 = call i32 @CodecRegWrite(i32 %27, i32 44, i32 0)
ret void
}

LLVM IR (-O2):
define void @AIC31DACInit(i32 %0) {
%2 = tail call i32 @CodecRegWrite(i32 %0, i32 37, i32 224)
%3 = tail call i32 @CodecRegWrite(i32 %0, i32 41, i32 2)
%4 = tail call i32 @CodecRegWrite(i32 %0, i32 42, i32 108)
%5 = tail call i32 @CodecRegWrite(i32 %0, i32 47, i32 128)
%6 = tail call i32 @CodecRegWrite(i32 %0, i32 51, i32 9)
%7 = tail call i32 @CodecRegWrite(i32 %0, i32 64, i32 128)
%8 = tail call i32 @CodecRegWrite(i32 %0, i32 65, i32 9)
%9 = tail call i32 @CodecRegWrite(i32 %0, i32 82, i32 128)
%10 = tail call i32 @CodecRegWrite(i32 %0, i32 86, i32 9)
%11 = tail call i32 @CodecRegWrite(i32 %0, i32 92, i32 128)
%12 = tail call i32 @CodecRegWrite(i32 %0, i32 93, i32 9)
%13 = tail call i32 @CodecRegWrite(i32 %0, i32 43, i32 0)
%14 = tail call i32 @CodecRegWrite(i32 %0, i32 44, i32 0)
ret void
}