#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*/ aregw(int, int);
void setup_audio(void) {
  aregw(0x00000001, 0);
  aregw(0x00000001, (0 << 4) | 1);
  aregw(0x00000002, (1 << 7) | (1 << 6) | (1 << 1) | (1 << 0));
  aregw(0x00000043, (0 << 2) | (0 << 0));
  aregw(0x0000003A, (1 << 4) | 6);
  aregw(0x00000017, (1 << 3) | (1 << 2));
  aregw(0x0000001B, (1 << 0) | (1 << 1) | (0x06 << 3));
  aregw(0x0000001C, (1 << 0) | (1 << 1) | (0x06 << 3));
  aregw(0x00000022, (1 << 2) | (1 << 5));
  aregw(0x00000013, 0x30 | (3 << 6));
  aregw(0x00000012, 0x30 | (3 << 6));
  aregw(0x00000023, 0x0a);
  aregw(0x0000000E, (0 << 3) | (0 << 5) | (1 << 0));
  aregw(0x0000002E, 0);
  aregw(0x00000024, (1 << 6) | (3 << 2) | 1);
  aregw(0x0000000A, 0x0);
  aregw(0x0000000B, 0x0);
  aregw(0x00000007, (1 << 3) | (1 << 1));
  aregw(0x00000008, 0);
  aregw(0x00000005, 0x34 | (1 << 2) | (3 << 5) | (1 << 7));
  aregw(0x00000006, 0x14 | (1 << 2));
  aregw(0x00000048, (0 << 3) | 0);
  aregw(0x00000001, (0 << 4) | 0 | 1);
  aregw(0x00000001, (0xa << 4) | 2 | 1);
}


x86 assembly (clang, -O0):
<setup_audio>:
push   %rbp
mov    %rsp,%rbp
mov    $0x1,%edi
xor    %esi,%esi
call   1030 <aregw@plt>
mov    $0x1,%esi
mov    %esi,%edi
call   1030 <aregw@plt>
mov    $0x2,%edi
mov    $0xc3,%esi
call   1030 <aregw@plt>
mov    $0x43,%edi
xor    %esi,%esi
call   1030 <aregw@plt>
mov    $0x3a,%edi
mov    $0x16,%esi
call   1030 <aregw@plt>
mov    $0x17,%edi
mov    $0xc,%esi
call   1030 <aregw@plt>
mov    $0x1b,%edi
mov    $0x33,%esi
call   1030 <aregw@plt>
mov    $0x1c,%edi
mov    $0x33,%esi
call   1030 <aregw@plt>
mov    $0x22,%edi
mov    $0x24,%esi
call   1030 <aregw@plt>
mov    $0x13,%edi
mov    $0xf0,%esi
call   1030 <aregw@plt>
mov    $0x12,%edi
mov    $0xf0,%esi
call   1030 <aregw@plt>
mov    $0x23,%edi
mov    $0xa,%esi
call   1030 <aregw@plt>
mov    $0xe,%edi
mov    $0x1,%esi
call   1030 <aregw@plt>
mov    $0x2e,%edi
xor    %esi,%esi
call   1030 <aregw@plt>
mov    $0x24,%edi
mov    $0x4d,%esi
call   1030 <aregw@plt>
mov    $0xa,%edi
xor    %esi,%esi
call   1030 <aregw@plt>
mov    $0xb,%edi
xor    %esi,%esi
call   1030 <aregw@plt>
mov    $0x7,%edi
mov    $0xa,%esi
call   1030 <aregw@plt>
mov    $0x8,%edi
xor    %esi,%esi
call   1030 <aregw@plt>
mov    $0x5,%edi
mov    $0xf4,%esi
call   1030 <aregw@plt>
mov    $0x6,%edi
mov    $0x14,%esi
call   1030 <aregw@plt>
mov    $0x48,%edi
xor    %esi,%esi
call   1030 <aregw@plt>
mov    $0x1,%esi
mov    %esi,%edi
call   1030 <aregw@plt>
mov    $0x1,%edi
mov    $0xa3,%esi
call   1030 <aregw@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<setup_audio>:
push   %rax
mov    $0x1,%edi
xor    %esi,%esi
call   1030 <aregw@plt>
mov    $0x1,%edi
mov    $0x1,%esi
call   1030 <aregw@plt>
mov    $0x2,%edi
mov    $0xc3,%esi
call   1030 <aregw@plt>
mov    $0x43,%edi
xor    %esi,%esi
call   1030 <aregw@plt>
mov    $0x3a,%edi
mov    $0x16,%esi
call   1030 <aregw@plt>
mov    $0x17,%edi
mov    $0xc,%esi
call   1030 <aregw@plt>
mov    $0x1b,%edi
mov    $0x33,%esi
call   1030 <aregw@plt>
mov    $0x1c,%edi
mov    $0x33,%esi
call   1030 <aregw@plt>
mov    $0x22,%edi
mov    $0x24,%esi
call   1030 <aregw@plt>
mov    $0x13,%edi
mov    $0xf0,%esi
call   1030 <aregw@plt>
mov    $0x12,%edi
mov    $0xf0,%esi
call   1030 <aregw@plt>
mov    $0x23,%edi
mov    $0xa,%esi
call   1030 <aregw@plt>
mov    $0xe,%edi
mov    $0x1,%esi
call   1030 <aregw@plt>
mov    $0x2e,%edi
xor    %esi,%esi
call   1030 <aregw@plt>
mov    $0x24,%edi
mov    $0x4d,%esi
call   1030 <aregw@plt>
mov    $0xa,%edi
xor    %esi,%esi
call   1030 <aregw@plt>
mov    $0xb,%edi
xor    %esi,%esi
call   1030 <aregw@plt>
mov    $0x7,%edi
mov    $0xa,%esi
call   1030 <aregw@plt>
mov    $0x8,%edi
xor    %esi,%esi
call   1030 <aregw@plt>
mov    $0x5,%edi
mov    $0xf4,%esi
call   1030 <aregw@plt>
mov    $0x6,%edi
mov    $0x14,%esi
call   1030 <aregw@plt>
mov    $0x48,%edi
xor    %esi,%esi
call   1030 <aregw@plt>
mov    $0x1,%edi
mov    $0x1,%esi
call   1030 <aregw@plt>
mov    $0x1,%edi
mov    $0xa3,%esi
pop    %rax
jmp    1030 <aregw@plt>

LLVM IR (-O0):
define void @setup_audio() {
%1 = call i32 @aregw(i32 1, i32 0)
%2 = call i32 @aregw(i32 1, i32 1)
%3 = call i32 @aregw(i32 2, i32 195)
%4 = call i32 @aregw(i32 67, i32 0)
%5 = call i32 @aregw(i32 58, i32 22)
%6 = call i32 @aregw(i32 23, i32 12)
%7 = call i32 @aregw(i32 27, i32 51)
%8 = call i32 @aregw(i32 28, i32 51)
%9 = call i32 @aregw(i32 34, i32 36)
%10 = call i32 @aregw(i32 19, i32 240)
%11 = call i32 @aregw(i32 18, i32 240)
%12 = call i32 @aregw(i32 35, i32 10)
%13 = call i32 @aregw(i32 14, i32 1)
%14 = call i32 @aregw(i32 46, i32 0)
%15 = call i32 @aregw(i32 36, i32 77)
%16 = call i32 @aregw(i32 10, i32 0)
%17 = call i32 @aregw(i32 11, i32 0)
%18 = call i32 @aregw(i32 7, i32 10)
%19 = call i32 @aregw(i32 8, i32 0)
%20 = call i32 @aregw(i32 5, i32 244)
%21 = call i32 @aregw(i32 6, i32 20)
%22 = call i32 @aregw(i32 72, i32 0)
%23 = call i32 @aregw(i32 1, i32 1)
%24 = call i32 @aregw(i32 1, i32 163)
ret void
}

LLVM IR (-O2):
define void @setup_audio() {
%1 = tail call i32 @aregw(i32 1, i32 0)
%2 = tail call i32 @aregw(i32 1, i32 1)
%3 = tail call i32 @aregw(i32 2, i32 195)
%4 = tail call i32 @aregw(i32 67, i32 0)
%5 = tail call i32 @aregw(i32 58, i32 22)
%6 = tail call i32 @aregw(i32 23, i32 12)
%7 = tail call i32 @aregw(i32 27, i32 51)
%8 = tail call i32 @aregw(i32 28, i32 51)
%9 = tail call i32 @aregw(i32 34, i32 36)
%10 = tail call i32 @aregw(i32 19, i32 240)
%11 = tail call i32 @aregw(i32 18, i32 240)
%12 = tail call i32 @aregw(i32 35, i32 10)
%13 = tail call i32 @aregw(i32 14, i32 1)
%14 = tail call i32 @aregw(i32 46, i32 0)
%15 = tail call i32 @aregw(i32 36, i32 77)
%16 = tail call i32 @aregw(i32 10, i32 0)
%17 = tail call i32 @aregw(i32 11, i32 0)
%18 = tail call i32 @aregw(i32 7, i32 10)
%19 = tail call i32 @aregw(i32 8, i32 0)
%20 = tail call i32 @aregw(i32 5, i32 244)
%21 = tail call i32 @aregw(i32 6, i32 20)
%22 = tail call i32 @aregw(i32 72, i32 0)
%23 = tail call i32 @aregw(i32 1, i32 1)
%24 = tail call i32 @aregw(i32 1, i32 163)
ret void
}