#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 mipi_dsim_init() {
  (*((volatile uint32_t *)0xFA500008)) |= 0x90000000;
  (*((volatile uint32_t *)0xFA500010)) |= 0x386f;
  (*((volatile uint32_t *)0xFA500014)) |= 0x80;
  (*((volatile uint32_t *)0xFA500018)) |= (1 << 31 | 720);
  (*((volatile uint32_t *)0xFA50001C)) |= (10 << 16 | 10);
  (*((volatile uint32_t *)0xFA500020)) |= (20 << 16 | 20);
  (*((volatile uint32_t *)0xFA500024)) |= (5 << 22 | 10);
  (*((volatile uint32_t *)0xFA500028)) |= (1 << 31);
  (*((volatile uint32_t *)0xFA50004C)) |=
      (1 << 24 | 1 << 23 | 3 << 13 | 80 << 3 | 8);
  (*((volatile uint32_t *)0xFA500054)) |= (1 << 14 | 4);
}


x86 assembly (clang, -O0):
<mipi_dsim_init>:
push   %rbp
mov    %rsp,%rbp
mov    $0xfa500008,%eax
mov    (%rax),%ecx
or     $0x90000000,%ecx
mov    $0xfa500008,%eax
mov    %ecx,(%rax)
mov    $0xfa500010,%eax
mov    (%rax),%ecx
or     $0x386f,%ecx
mov    $0xfa500010,%eax
mov    %ecx,(%rax)
mov    $0xfa500014,%eax
mov    (%rax),%ecx
or     $0x80,%ecx
mov    $0xfa500014,%eax
mov    %ecx,(%rax)
mov    $0xfa500018,%eax
mov    (%rax),%ecx
or     $0x800002d0,%ecx
mov    $0xfa500018,%eax
mov    %ecx,(%rax)
mov    $0xfa50001c,%eax
mov    (%rax),%ecx
or     $0xa000a,%ecx
mov    $0xfa50001c,%eax
mov    %ecx,(%rax)
mov    $0xfa500020,%eax
mov    (%rax),%ecx
or     $0x140014,%ecx
mov    $0xfa500020,%eax
mov    %ecx,(%rax)
mov    $0xfa500024,%eax
mov    (%rax),%ecx
or     $0x140000a,%ecx
mov    $0xfa500024,%eax
mov    %ecx,(%rax)
mov    $0xfa500028,%eax
mov    (%rax),%ecx
or     $0x80000000,%ecx
mov    $0xfa500028,%eax
mov    %ecx,(%rax)
mov    $0xfa50004c,%eax
mov    (%rax),%ecx
or     $0x1806288,%ecx
mov    $0xfa50004c,%eax
mov    %ecx,(%rax)
mov    $0xfa500054,%eax
mov    (%rax),%ecx
or     $0x4004,%ecx
mov    $0xfa500054,%eax
mov    %ecx,(%rax)
pop    %rbp
ret

x86 assembly (clang, -O2):
<mipi_dsim_init>:
mov    $0xfa500008,%eax
orl    $0x90000000,(%rax)
orl    $0x386f,0x8(%rax)
orl    $0x80,0xc(%rax)
orl    $0x800002d0,0x10(%rax)
orl    $0xa000a,0x14(%rax)
orl    $0x140014,0x18(%rax)
orl    $0x140000a,0x1c(%rax)
orl    $0x80000000,0x20(%rax)
orl    $0x1806288,0x44(%rax)
orl    $0x4004,0x4c(%rax)
ret

LLVM IR (-O0):
define void @mipi_dsim_init() {
%1 = load volatile i32, i32* inttoptr (i64 4199546888 to i32*)
%2 = or i32 %1, -1879048192
store volatile i32 %2, i32* inttoptr (i64 4199546888 to i32*)
%3 = load volatile i32, i32* inttoptr (i64 4199546896 to i32*)
%4 = or i32 %3, 14447
store volatile i32 %4, i32* inttoptr (i64 4199546896 to i32*)
%5 = load volatile i32, i32* inttoptr (i64 4199546900 to i32*)
%6 = or i32 %5, 128
store volatile i32 %6, i32* inttoptr (i64 4199546900 to i32*)
%7 = load volatile i32, i32* inttoptr (i64 4199546904 to i32*)
%8 = or i32 %7, -2147482928
store volatile i32 %8, i32* inttoptr (i64 4199546904 to i32*)
%9 = load volatile i32, i32* inttoptr (i64 4199546908 to i32*)
%10 = or i32 %9, 655370
store volatile i32 %10, i32* inttoptr (i64 4199546908 to i32*)
%11 = load volatile i32, i32* inttoptr (i64 4199546912 to i32*)
%12 = or i32 %11, 1310740
store volatile i32 %12, i32* inttoptr (i64 4199546912 to i32*)
%13 = load volatile i32, i32* inttoptr (i64 4199546916 to i32*)
%14 = or i32 %13, 20971530
store volatile i32 %14, i32* inttoptr (i64 4199546916 to i32*)
%15 = load volatile i32, i32* inttoptr (i64 4199546920 to i32*)
%16 = or i32 %15, -2147483648
store volatile i32 %16, i32* inttoptr (i64 4199546920 to i32*)
%17 = load volatile i32, i32* inttoptr (i64 4199546956 to i32*)
%18 = or i32 %17, 25191048
store volatile i32 %18, i32* inttoptr (i64 4199546956 to i32*)
%19 = load volatile i32, i32* inttoptr (i64 4199546964 to i32*)
%20 = or i32 %19, 16388
store volatile i32 %20, i32* inttoptr (i64 4199546964 to i32*)
ret void
}

LLVM IR (-O2):
define void @mipi_dsim_init() {
%1 = load volatile i32, i32* inttoptr (i64 4199546888 to i32*)
%2 = or i32 %1, -1879048192
store volatile i32 %2, i32* inttoptr (i64 4199546888 to i32*)
%3 = load volatile i32, i32* inttoptr (i64 4199546896 to i32*)
%4 = or i32 %3, 14447
store volatile i32 %4, i32* inttoptr (i64 4199546896 to i32*)
%5 = load volatile i32, i32* inttoptr (i64 4199546900 to i32*)
%6 = or i32 %5, 128
store volatile i32 %6, i32* inttoptr (i64 4199546900 to i32*)
%7 = load volatile i32, i32* inttoptr (i64 4199546904 to i32*)
%8 = or i32 %7, -2147482928
store volatile i32 %8, i32* inttoptr (i64 4199546904 to i32*)
%9 = load volatile i32, i32* inttoptr (i64 4199546908 to i32*)
%10 = or i32 %9, 655370
store volatile i32 %10, i32* inttoptr (i64 4199546908 to i32*)
%11 = load volatile i32, i32* inttoptr (i64 4199546912 to i32*)
%12 = or i32 %11, 1310740
store volatile i32 %12, i32* inttoptr (i64 4199546912 to i32*)
%13 = load volatile i32, i32* inttoptr (i64 4199546916 to i32*)
%14 = or i32 %13, 20971530
store volatile i32 %14, i32* inttoptr (i64 4199546916 to i32*)
%15 = load volatile i32, i32* inttoptr (i64 4199546920 to i32*)
%16 = or i32 %15, -2147483648
store volatile i32 %16, i32* inttoptr (i64 4199546920 to i32*)
%17 = load volatile i32, i32* inttoptr (i64 4199546956 to i32*)
%18 = or i32 %17, 25191048
store volatile i32 %18, i32* inttoptr (i64 4199546956 to i32*)
%19 = load volatile i32, i32* inttoptr (i64 4199546964 to i32*)
%20 = or i32 %19, 16388
store volatile i32 %20, i32* inttoptr (i64 4199546964 to i32*)
ret void
}