void phobos_ioreuse_initial(void) {
  unsigned int value;
  value = ({
    unsigned int __v = (*(volatile unsigned int *)(0x50018008));
    __v;
  });
  value |= (0x00000001 | 0x00000002 | 0x00000010 | 0x00000020 | 0x00000040 |
            0x00000200 | 0x00000400 | 0x00000800 | 0x00010000 | 0x00020000 |
            0x00040000 | 0x00400000 | 0x00800000 | 0x04000000 | 0x08000000);
  (void)((*(volatile unsigned int *)(0x50018008)) = (value));
  value = ({
    unsigned int __v = (*(volatile unsigned int *)(0x60018008));
    __v;
  });
  value |= (0x00000001);
  (void)((*(volatile unsigned int *)(0x60018008)) = (value));
  value = ({
    unsigned int __v = (*(volatile unsigned int *)(0x50018100));
    __v;
  });
  value |= (0x00000000 | 0x00000000 | 0x00000000 | 0x00000000 | 0x00001000 |
            0x00040000 | 0x00000000 | 0x00000000);
  (void)((*(volatile unsigned int *)(0x50018100)) = (value));
  value = ({
    unsigned int __v = (*(volatile unsigned int *)(0x50018104));
    __v;
  });
  value |= (0x00000000);
  (void)((*(volatile unsigned int *)(0x50018104)) = (value));
  value = ({
    unsigned int __v = (*(volatile unsigned int *)(0x50018108));
    __v;
  });
  value |= (0x00000000);
  (void)((*(volatile unsigned int *)(0x50018108)) = (value));
}


x86 assembly (clang, -O0):
<phobos_ioreuse_initial>:
push   %rbp
mov    %rsp,%rbp
mov    $0x50018008,%eax
mov    (%rax),%eax
mov    %eax,-0x8(%rbp)
mov    -0x8(%rbp),%eax
mov    %eax,-0xc(%rbp)
mov    -0xc(%rbp),%eax
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%eax
or     $0xcc70e73,%eax
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%ecx
mov    $0x50018008,%eax
mov    %ecx,(%rax)
mov    $0x60018008,%eax
mov    (%rax),%eax
mov    %eax,-0x10(%rbp)
mov    -0x10(%rbp),%eax
mov    %eax,-0x14(%rbp)
mov    -0x14(%rbp),%eax
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%eax
or     $0x1,%eax
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%ecx
mov    $0x60018008,%eax
mov    %ecx,(%rax)
mov    $0x50018100,%eax
mov    (%rax),%eax
mov    %eax,-0x18(%rbp)
mov    -0x18(%rbp),%eax
mov    %eax,-0x1c(%rbp)
mov    -0x1c(%rbp),%eax
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%eax
or     $0x41000,%eax
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%ecx
mov    $0x50018100,%eax
mov    %ecx,(%rax)
mov    $0x50018104,%eax
mov    (%rax),%eax
mov    %eax,-0x20(%rbp)
mov    -0x20(%rbp),%eax
mov    %eax,-0x24(%rbp)
mov    -0x24(%rbp),%eax
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%eax
or     $0x0,%eax
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%ecx
mov    $0x50018104,%eax
mov    %ecx,(%rax)
mov    $0x50018108,%eax
mov    (%rax),%eax
mov    %eax,-0x28(%rbp)
mov    -0x28(%rbp),%eax
mov    %eax,-0x2c(%rbp)
mov    -0x2c(%rbp),%eax
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%eax
or     $0x0,%eax
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%ecx
mov    $0x50018108,%eax
mov    %ecx,(%rax)
pop    %rbp
ret

x86 assembly (clang, -O2):
<phobos_ioreuse_initial>:
orl    $0xcc70e73,0x50018008
73 0e c7 0c
orl    $0x1,0x60018008
01
orl    $0x41000,0x50018100
mov    0x50018104,%eax
mov    %eax,0x50018104
mov    0x50018108,%eax
mov    %eax,0x50018108
ret

LLVM IR (-O0):
define void @phobos_ioreuse_initial() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca i32
%5 = alloca i32
%6 = alloca i32
%7 = alloca i32
%8 = alloca i32
%9 = alloca i32
%10 = alloca i32
%11 = alloca i32
%12 = load volatile i32, i32* inttoptr (i64 1342275592 to i32*)
store i32 %12, i32* %2
%13 = load i32, i32* %2
store i32 %13, i32* %3
%14 = load i32, i32* %3
store i32 %14, i32* %1
%15 = load i32, i32* %1
%16 = or i32 %15, 214371955
store i32 %16, i32* %1
%17 = load i32, i32* %1
store volatile i32 %17, i32* inttoptr (i64 1342275592 to i32*)
%18 = load volatile i32, i32* inttoptr (i64 1610711048 to i32*)
store i32 %18, i32* %4
%19 = load i32, i32* %4
store i32 %19, i32* %5
%20 = load i32, i32* %5
store i32 %20, i32* %1
%21 = load i32, i32* %1
%22 = or i32 %21, 1
store i32 %22, i32* %1
%23 = load i32, i32* %1
store volatile i32 %23, i32* inttoptr (i64 1610711048 to i32*)
%24 = load volatile i32, i32* inttoptr (i64 1342275840 to i32*)
store i32 %24, i32* %6
%25 = load i32, i32* %6
store i32 %25, i32* %7
%26 = load i32, i32* %7
store i32 %26, i32* %1
%27 = load i32, i32* %1
%28 = or i32 %27, 266240
store i32 %28, i32* %1
%29 = load i32, i32* %1
store volatile i32 %29, i32* inttoptr (i64 1342275840 to i32*)
%30 = load volatile i32, i32* inttoptr (i64 1342275844 to i32*)
store i32 %30, i32* %8
%31 = load i32, i32* %8
store i32 %31, i32* %9
%32 = load i32, i32* %9
store i32 %32, i32* %1
%33 = load i32, i32* %1
%34 = or i32 %33, 0
store i32 %34, i32* %1
%35 = load i32, i32* %1
store volatile i32 %35, i32* inttoptr (i64 1342275844 to i32*)
%36 = load volatile i32, i32* inttoptr (i64 1342275848 to i32*)
store i32 %36, i32* %10
%37 = load i32, i32* %10
store i32 %37, i32* %11
%38 = load i32, i32* %11
store i32 %38, i32* %1
%39 = load i32, i32* %1
%40 = or i32 %39, 0
store i32 %40, i32* %1
%41 = load i32, i32* %1
store volatile i32 %41, i32* inttoptr (i64 1342275848 to i32*)
ret void
}

LLVM IR (-O2):
define void @phobos_ioreuse_initial() {
%1 = load volatile i32, i32* inttoptr (i64 1342275592 to i32*)
%2 = or i32 %1, 214371955
store volatile i32 %2, i32* inttoptr (i64 1342275592 to i32*)
%3 = load volatile i32, i32* inttoptr (i64 1610711048 to i32*)
%4 = or i32 %3, 1
store volatile i32 %4, i32* inttoptr (i64 1610711048 to i32*)
%5 = load volatile i32, i32* inttoptr (i64 1342275840 to i32*)
%6 = or i32 %5, 266240
store volatile i32 %6, i32* inttoptr (i64 1342275840 to i32*)
%7 = load volatile i32, i32* inttoptr (i64 1342275844 to i32*)
store volatile i32 %7, i32* inttoptr (i64 1342275844 to i32*)
%8 = load volatile i32, i32* inttoptr (i64 1342275848 to i32*)
store volatile i32 %8, i32* inttoptr (i64 1342275848 to i32*)
ret void
}