void memsetup(void) {
  volatile unsigned long *p = (volatile unsigned long *)0x48000000;
  p[0] = 0x22011110;
  p[1] = 0x00000700;
  p[2] = 0x00000700;
  p[3] = 0x00000700;
  p[4] = 0x00000700;
  p[5] = 0x00000700;
  p[6] = 0x00000700;
  p[7] = 0x00018005;
  p[8] = 0x00018005;
  p[9] = 0x008C04F4;
  p[10] = 0x000000B1;
  p[11] = 0x00000030;
  p[12] = 0x00000030;
}


x86 assembly (clang, -O0):
<memsetup>:
push   %rbp
mov    %rsp,%rbp
mov    $0x48000000,%eax
mov    %rax,-0x8(%rbp)
mov    -0x8(%rbp),%rax
movq   $0x22011110,(%rax)
mov    -0x8(%rbp),%rax
movq   $0x700,0x8(%rax)
mov    -0x8(%rbp),%rax
movq   $0x700,0x10(%rax)
mov    -0x8(%rbp),%rax
movq   $0x700,0x18(%rax)
mov    -0x8(%rbp),%rax
movq   $0x700,0x20(%rax)
mov    -0x8(%rbp),%rax
movq   $0x700,0x28(%rax)
mov    -0x8(%rbp),%rax
movq   $0x700,0x30(%rax)
mov    -0x8(%rbp),%rax
movq   $0x18005,0x38(%rax)
mov    -0x8(%rbp),%rax
movq   $0x18005,0x40(%rax)
mov    -0x8(%rbp),%rax
movq   $0x8c04f4,0x48(%rax)
mov    -0x8(%rbp),%rax
movq   $0xb1,0x50(%rax)
mov    -0x8(%rbp),%rax
movq   $0x30,0x58(%rax)
mov    -0x8(%rbp),%rax
movq   $0x30,0x60(%rax)
pop    %rbp
ret

x86 assembly (clang, -O2):
<memsetup>:
movq   $0x22011110,0x48000000
48 10 11 01 22
movq   $0x700,0x48000008
movq   $0x700,0x48000010
movq   $0x700,0x48000018
movq   $0x700,0x48000020
movq   $0x700,0x48000028
movq   $0x700,0x48000030
movq   $0x18005,0x48000038
movq   $0x18005,0x48000040
movq   $0x8c04f4,0x48000048
movq   $0xb1,0x48000050
movq   $0x30,0x48000058
movq   $0x30,0x48000060
ret

LLVM IR (-O0):
define void @memsetup() {
%1 = alloca i64*
store i64* inttoptr (i64 1207959552 to i64*), i64** %1
%2 = load i64*, i64** %1
%3 = getelementptr inbounds i64, i64* %2, i64 0
store volatile i64 570495248, i64* %3
%4 = load i64*, i64** %1
%5 = getelementptr inbounds i64, i64* %4, i64 1
store volatile i64 1792, i64* %5
%6 = load i64*, i64** %1
%7 = getelementptr inbounds i64, i64* %6, i64 2
store volatile i64 1792, i64* %7
%8 = load i64*, i64** %1
%9 = getelementptr inbounds i64, i64* %8, i64 3
store volatile i64 1792, i64* %9
%10 = load i64*, i64** %1
%11 = getelementptr inbounds i64, i64* %10, i64 4
store volatile i64 1792, i64* %11
%12 = load i64*, i64** %1
%13 = getelementptr inbounds i64, i64* %12, i64 5
store volatile i64 1792, i64* %13
%14 = load i64*, i64** %1
%15 = getelementptr inbounds i64, i64* %14, i64 6
store volatile i64 1792, i64* %15
%16 = load i64*, i64** %1
%17 = getelementptr inbounds i64, i64* %16, i64 7
store volatile i64 98309, i64* %17
%18 = load i64*, i64** %1
%19 = getelementptr inbounds i64, i64* %18, i64 8
store volatile i64 98309, i64* %19
%20 = load i64*, i64** %1
%21 = getelementptr inbounds i64, i64* %20, i64 9
store volatile i64 9176308, i64* %21
%22 = load i64*, i64** %1
%23 = getelementptr inbounds i64, i64* %22, i64 10
store volatile i64 177, i64* %23
%24 = load i64*, i64** %1
%25 = getelementptr inbounds i64, i64* %24, i64 11
store volatile i64 48, i64* %25
%26 = load i64*, i64** %1
%27 = getelementptr inbounds i64, i64* %26, i64 12
store volatile i64 48, i64* %27
ret void
}

LLVM IR (-O2):
define void @memsetup() {
store volatile i64 570495248, i64* inttoptr (i64 1207959552 to i64*)
store volatile i64 1792, i64* inttoptr (i64 1207959560 to i64*)
store volatile i64 1792, i64* inttoptr (i64 1207959568 to i64*)
store volatile i64 1792, i64* inttoptr (i64 1207959576 to i64*)
store volatile i64 1792, i64* inttoptr (i64 1207959584 to i64*)
store volatile i64 1792, i64* inttoptr (i64 1207959592 to i64*)
store volatile i64 1792, i64* inttoptr (i64 1207959600 to i64*)
store volatile i64 98309, i64* inttoptr (i64 1207959608 to i64*)
store volatile i64 98309, i64* inttoptr (i64 1207959616 to i64*)
store volatile i64 9176308, i64* inttoptr (i64 1207959624 to i64*)
store volatile i64 177, i64* inttoptr (i64 1207959632 to i64*)
store volatile i64 48, i64* inttoptr (i64 1207959640 to i64*)
store volatile i64 48, i64* inttoptr (i64 1207959648 to i64*)
ret void
}