#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*/ iic_write(int, int, int);
void wm8960_init(void) {
  iic_write(0x34, 0xf, 0x0);
  iic_write(0x34, 0x19, 1 << 8 | 1 << 7 | 1 << 6);
  iic_write(0x34, 0x1a, 1 << 8 | 1 << 7 | 1 << 6 | 1 << 5 | 1 << 4 | 1 << 3);
  iic_write(0x34, 0x2F, 1 << 3 | 1 << 2);
  iic_write(0x34, 0x4, 0x0);
  iic_write(0x34, 0x5, 0x0);
  iic_write(0x34, 0x7, 0x2);
  iic_write(0x34, 0x2, 0xFF | 0x100);
  iic_write(0x34, 0x3, 0xFF | 0x100);
  iic_write(0x34, 0xa, 0xFF | 0x100);
  iic_write(0x34, 0xb, 0xFF | 0x100);
  iic_write(0x34, 0x22, 1 << 8 | 1 << 7);
  iic_write(0x34, 0x25, 1 << 8 | 1 << 7);
  return;
}


x86 assembly (clang, -O0):
<wm8960_init>:
push   %rbp
mov    %rsp,%rbp
mov    $0x34,%edi
mov    $0xf,%esi
xor    %edx,%edx
call   1030 <iic_write@plt>
mov    $0x34,%edi
mov    $0x19,%esi
mov    $0x1c0,%edx
call   1030 <iic_write@plt>
mov    $0x34,%edi
mov    $0x1a,%esi
mov    $0x1f8,%edx
call   1030 <iic_write@plt>
mov    $0x34,%edi
mov    $0x2f,%esi
mov    $0xc,%edx
call   1030 <iic_write@plt>
mov    $0x34,%edi
mov    $0x4,%esi
xor    %edx,%edx
call   1030 <iic_write@plt>
mov    $0x34,%edi
mov    $0x5,%esi
xor    %edx,%edx
call   1030 <iic_write@plt>
mov    $0x34,%edi
mov    $0x7,%esi
mov    $0x2,%edx
call   1030 <iic_write@plt>
mov    $0x34,%edi
mov    $0x2,%esi
mov    $0x1ff,%edx
call   1030 <iic_write@plt>
mov    $0x34,%edi
mov    $0x3,%esi
mov    $0x1ff,%edx
call   1030 <iic_write@plt>
mov    $0x34,%edi
mov    $0xa,%esi
mov    $0x1ff,%edx
call   1030 <iic_write@plt>
mov    $0x34,%edi
mov    $0xb,%esi
mov    $0x1ff,%edx
call   1030 <iic_write@plt>
mov    $0x34,%edi
mov    $0x22,%esi
mov    $0x180,%edx
call   1030 <iic_write@plt>
mov    $0x34,%edi
mov    $0x25,%esi
mov    $0x180,%edx
call   1030 <iic_write@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<wm8960_init>:
push   %rax
mov    $0x34,%edi
mov    $0xf,%esi
xor    %edx,%edx
call   1030 <iic_write@plt>
mov    $0x34,%edi
mov    $0x19,%esi
mov    $0x1c0,%edx
call   1030 <iic_write@plt>
mov    $0x34,%edi
mov    $0x1a,%esi
mov    $0x1f8,%edx
call   1030 <iic_write@plt>
mov    $0x34,%edi
mov    $0x2f,%esi
mov    $0xc,%edx
call   1030 <iic_write@plt>
mov    $0x34,%edi
mov    $0x4,%esi
xor    %edx,%edx
call   1030 <iic_write@plt>
mov    $0x34,%edi
mov    $0x5,%esi
xor    %edx,%edx
call   1030 <iic_write@plt>
mov    $0x34,%edi
mov    $0x7,%esi
mov    $0x2,%edx
call   1030 <iic_write@plt>
mov    $0x34,%edi
mov    $0x2,%esi
mov    $0x1ff,%edx
call   1030 <iic_write@plt>
mov    $0x34,%edi
mov    $0x3,%esi
mov    $0x1ff,%edx
call   1030 <iic_write@plt>
mov    $0x34,%edi
mov    $0xa,%esi
mov    $0x1ff,%edx
call   1030 <iic_write@plt>
mov    $0x34,%edi
mov    $0xb,%esi
mov    $0x1ff,%edx
call   1030 <iic_write@plt>
mov    $0x34,%edi
mov    $0x22,%esi
mov    $0x180,%edx
call   1030 <iic_write@plt>
mov    $0x34,%edi
mov    $0x25,%esi
mov    $0x180,%edx
pop    %rax
jmp    1030 <iic_write@plt>

LLVM IR (-O0):
define void @wm8960_init() {
%1 = call i32 @iic_write(i32 52, i32 15, i32 0)
%2 = call i32 @iic_write(i32 52, i32 25, i32 448)
%3 = call i32 @iic_write(i32 52, i32 26, i32 504)
%4 = call i32 @iic_write(i32 52, i32 47, i32 12)
%5 = call i32 @iic_write(i32 52, i32 4, i32 0)
%6 = call i32 @iic_write(i32 52, i32 5, i32 0)
%7 = call i32 @iic_write(i32 52, i32 7, i32 2)
%8 = call i32 @iic_write(i32 52, i32 2, i32 511)
%9 = call i32 @iic_write(i32 52, i32 3, i32 511)
%10 = call i32 @iic_write(i32 52, i32 10, i32 511)
%11 = call i32 @iic_write(i32 52, i32 11, i32 511)
%12 = call i32 @iic_write(i32 52, i32 34, i32 384)
%13 = call i32 @iic_write(i32 52, i32 37, i32 384)
ret void
}

LLVM IR (-O2):
define void @wm8960_init() {
%1 = tail call i32 @iic_write(i32 52, i32 15, i32 0)
%2 = tail call i32 @iic_write(i32 52, i32 25, i32 448)
%3 = tail call i32 @iic_write(i32 52, i32 26, i32 504)
%4 = tail call i32 @iic_write(i32 52, i32 47, i32 12)
%5 = tail call i32 @iic_write(i32 52, i32 4, i32 0)
%6 = tail call i32 @iic_write(i32 52, i32 5, i32 0)
%7 = tail call i32 @iic_write(i32 52, i32 7, i32 2)
%8 = tail call i32 @iic_write(i32 52, i32 2, i32 511)
%9 = tail call i32 @iic_write(i32 52, i32 3, i32 511)
%10 = tail call i32 @iic_write(i32 52, i32 10, i32 511)
%11 = tail call i32 @iic_write(i32 52, i32 11, i32 511)
%12 = tail call i32 @iic_write(i32 52, i32 34, i32 384)
%13 = tail call i32 @iic_write(i32 52, i32 37, i32 384)
ret void
}