void memsetup() {
  int i = 0;
  unsigned long *p = (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] = 0x008C07A3;
  p[10] = 0x000000B1;
  p[11] = 0x00000030;
  p[12] = 0x00000030;
}


x86 assembly (clang, -O0):
<memsetup>:
push   %rbp
mov    %rsp,%rbp
movl   $0x0,-0x4(%rbp)
mov    $0x48000000,%eax
mov    %rax,-0x10(%rbp)
mov    -0x10(%rbp),%rax
movq   $0x22011110,(%rax)
mov    -0x10(%rbp),%rax
movq   $0x700,0x8(%rax)
mov    -0x10(%rbp),%rax
movq   $0x700,0x10(%rax)
mov    -0x10(%rbp),%rax
movq   $0x700,0x18(%rax)
mov    -0x10(%rbp),%rax
movq   $0x700,0x20(%rax)
mov    -0x10(%rbp),%rax
movq   $0x700,0x28(%rax)
mov    -0x10(%rbp),%rax
movq   $0x700,0x30(%rax)
mov    -0x10(%rbp),%rax
movq   $0x18005,0x38(%rax)
mov    -0x10(%rbp),%rax
movq   $0x18005,0x40(%rax)
mov    -0x10(%rbp),%rax
movq   $0x8c07a3,0x48(%rax)
mov    -0x10(%rbp),%rax
movq   $0xb1,0x50(%rax)
mov    -0x10(%rbp),%rax
movq   $0x30,0x58(%rax)
mov    -0x10(%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   $0x8c07a3,0x48000048
movq   $0xb1,0x48000050
movq   $0x30,0x48000058
movq   $0x30,0x48000060
ret

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

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