void memsetup(void) {
  unsigned long *p = (unsigned long *)0x48000000;
  p[0] = 0x22111110;
  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] = 0x008e07a3;
  p[10] = 0x000000b2;
  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   $0x22111110,(%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   $0x8e07a3,0x48(%rax)
mov    -0x8(%rbp),%rax
movq   $0xb2,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   $0x22111110,0x48000000
48 10 11 11 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   $0x8e07a3,0x48000048
movq   $0xb2,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 i64 571543824, i64* %3
%4 = load i64*, i64** %1
%5 = getelementptr inbounds i64, i64* %4, i64 1
store i64 1792, i64* %5
%6 = load i64*, i64** %1
%7 = getelementptr inbounds i64, i64* %6, i64 2
store i64 1792, i64* %7
%8 = load i64*, i64** %1
%9 = getelementptr inbounds i64, i64* %8, i64 3
store i64 1792, i64* %9
%10 = load i64*, i64** %1
%11 = getelementptr inbounds i64, i64* %10, i64 4
store i64 1792, i64* %11
%12 = load i64*, i64** %1
%13 = getelementptr inbounds i64, i64* %12, i64 5
store i64 1792, i64* %13
%14 = load i64*, i64** %1
%15 = getelementptr inbounds i64, i64* %14, i64 6
store i64 1792, i64* %15
%16 = load i64*, i64** %1
%17 = getelementptr inbounds i64, i64* %16, i64 7
store i64 98309, i64* %17
%18 = load i64*, i64** %1
%19 = getelementptr inbounds i64, i64* %18, i64 8
store i64 98309, i64* %19
%20 = load i64*, i64** %1
%21 = getelementptr inbounds i64, i64* %20, i64 9
store i64 9308067, i64* %21
%22 = load i64*, i64** %1
%23 = getelementptr inbounds i64, i64* %22, i64 10
store i64 178, i64* %23
%24 = load i64*, i64** %1
%25 = getelementptr inbounds i64, i64* %24, i64 11
store i64 48, i64* %25
%26 = load i64*, i64** %1
%27 = getelementptr inbounds i64, i64* %26, i64 12
store i64 48, i64* %27
ret void
}

LLVM IR (-O2):
define void @memsetup() {
store i64 571543824, 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 9308067, i64* inttoptr (i64 1207959624 to i64*)
store i64 178, 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
}