#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 */
typedef int uint32_t;

/* Variables and functions */
void DAC_Init(void) {
  volatile uint32_t delay;
  (*((volatile uint32_t *)0x400FE108)) |= 0x32;
  delay = (*((volatile uint32_t *)0x400FE108));
  delay = (*((volatile uint32_t *)0x400FE108));
  (*((volatile uint32_t *)0x40005400)) |= 0x3C;
  (*((volatile uint32_t *)0x40005420)) &= ~0x3C;
  (*((volatile uint32_t *)0x4000551C)) |= 0x3C;
  (*((volatile uint32_t *)0x40005528)) &= ~0x3C;
  (*((volatile uint32_t *)0x4000552C)) &= ~0x00FFFF00;
}


x86 assembly (clang, -O0):
<DAC_Init>:
push   %rbp
mov    %rsp,%rbp
mov    $0x400fe108,%eax
mov    (%rax),%ecx
or     $0x32,%ecx
mov    $0x400fe108,%eax
mov    %ecx,(%rax)
mov    $0x400fe108,%eax
mov    (%rax),%eax
mov    %eax,-0x4(%rbp)
mov    $0x400fe108,%eax
mov    (%rax),%eax
mov    %eax,-0x4(%rbp)
mov    $0x40005400,%eax
mov    (%rax),%ecx
or     $0x3c,%ecx
mov    $0x40005400,%eax
mov    %ecx,(%rax)
mov    $0x40005420,%eax
mov    (%rax),%ecx
and    $0xffffffc3,%ecx
mov    $0x40005420,%eax
mov    %ecx,(%rax)
mov    $0x4000551c,%eax
mov    (%rax),%ecx
or     $0x3c,%ecx
mov    $0x4000551c,%eax
mov    %ecx,(%rax)
mov    $0x40005528,%eax
mov    (%rax),%ecx
and    $0xffffffc3,%ecx
mov    $0x40005528,%eax
mov    %ecx,(%rax)
mov    $0x4000552c,%eax
mov    (%rax),%ecx
and    $0xff0000ff,%ecx
mov    $0x4000552c,%eax
mov    %ecx,(%rax)
pop    %rbp
ret

x86 assembly (clang, -O2):
<DAC_Init>:
orl    $0x32,0x400fe108
32
mov    0x400fe108,%eax
mov    %eax,-0x4(%rsp)
mov    0x400fe108,%eax
mov    %eax,-0x4(%rsp)
orl    $0x3c,0x40005400
3c
andl   $0xffffffc3,0x40005420
c3
orl    $0x3c,0x4000551c
3c
andl   $0xffffffc3,0x40005528
c3
andl   $0xff0000ff,0x4000552c
ret

LLVM IR (-O0):
define void @DAC_Init() {
%1 = alloca i32
%2 = load volatile i32, i32* inttoptr (i64 1074782472 to i32*)
%3 = or i32 %2, 50
store volatile i32 %3, i32* inttoptr (i64 1074782472 to i32*)
%4 = load volatile i32, i32* inttoptr (i64 1074782472 to i32*)
store volatile i32 %4, i32* %1
%5 = load volatile i32, i32* inttoptr (i64 1074782472 to i32*)
store volatile i32 %5, i32* %1
%6 = load volatile i32, i32* inttoptr (i64 1073763328 to i32*)
%7 = or i32 %6, 60
store volatile i32 %7, i32* inttoptr (i64 1073763328 to i32*)
%8 = load volatile i32, i32* inttoptr (i64 1073763360 to i32*)
%9 = and i32 %8, -61
store volatile i32 %9, i32* inttoptr (i64 1073763360 to i32*)
%10 = load volatile i32, i32* inttoptr (i64 1073763612 to i32*)
%11 = or i32 %10, 60
store volatile i32 %11, i32* inttoptr (i64 1073763612 to i32*)
%12 = load volatile i32, i32* inttoptr (i64 1073763624 to i32*)
%13 = and i32 %12, -61
store volatile i32 %13, i32* inttoptr (i64 1073763624 to i32*)
%14 = load volatile i32, i32* inttoptr (i64 1073763628 to i32*)
%15 = and i32 %14, -16776961
store volatile i32 %15, i32* inttoptr (i64 1073763628 to i32*)
ret void
}

LLVM IR (-O2):
define void @DAC_Init() {
%1 = alloca i32
%2 = bitcast i32* %1 to i8*
%3 = load volatile i32, i32* inttoptr (i64 1074782472 to i32*)
%4 = or i32 %3, 50
store volatile i32 %4, i32* inttoptr (i64 1074782472 to i32*)
%5 = load volatile i32, i32* inttoptr (i64 1074782472 to i32*)
store volatile i32 %5, i32* %1
%6 = load volatile i32, i32* inttoptr (i64 1074782472 to i32*)
store volatile i32 %6, i32* %1
%7 = load volatile i32, i32* inttoptr (i64 1073763328 to i32*)
%8 = or i32 %7, 60
store volatile i32 %8, i32* inttoptr (i64 1073763328 to i32*)
%9 = load volatile i32, i32* inttoptr (i64 1073763360 to i32*)
%10 = and i32 %9, -61
store volatile i32 %10, i32* inttoptr (i64 1073763360 to i32*)
%11 = load volatile i32, i32* inttoptr (i64 1073763612 to i32*)
%12 = or i32 %11, 60
store volatile i32 %12, i32* inttoptr (i64 1073763612 to i32*)
%13 = load volatile i32, i32* inttoptr (i64 1073763624 to i32*)
%14 = and i32 %13, -61
store volatile i32 %14, i32* inttoptr (i64 1073763624 to i32*)
%15 = load volatile i32, i32* inttoptr (i64 1073763628 to i32*)
%16 = and i32 %15, -16776961
store volatile i32 %16, i32* inttoptr (i64 1073763628 to i32*)
ret void
}