void __BSP_L1L2XMCUnlock(void) {
  ({
    unsigned long __v = (0x1 << 2);
    (*(volatile unsigned long *)(0x0184ad10) = (__v));
    __v;
  });
  ({
    unsigned long __v = 0xdeadbeef;
    (*(volatile unsigned long *)(0x0184ad00) = (__v));
    __v;
  });
  ({
    unsigned long __v = 0xdeadbeef;
    (*(volatile unsigned long *)(0x0184ad04) = (__v));
    __v;
  });
  ({
    unsigned long __v = 0xdeadbeef;
    (*(volatile unsigned long *)(0x0184ad08) = (__v));
    __v;
  });
  ({
    unsigned long __v = 0xdeadbeef;
    (*(volatile unsigned long *)(0x0184ad0c) = (__v));
    __v;
  });
  ({
    unsigned long __v = (0x1 << 0);
    (*(volatile unsigned long *)(0x0184ad10) = (__v));
    __v;
  });
}


x86 assembly (clang, -O0):
<__BSP_L1L2XMCUnlock>:
push   %rbp
mov    %rsp,%rbp
movq   $0x4,-0x8(%rbp)
mov    -0x8(%rbp),%rcx
mov    $0x184ad10,%eax
mov    %rcx,(%rax)
mov    -0x8(%rbp),%rax
mov    %rax,-0x10(%rbp)
mov    $0xdeadbeef,%eax
mov    %rax,-0x18(%rbp)
mov    -0x18(%rbp),%rcx
mov    $0x184ad00,%eax
mov    %rcx,(%rax)
mov    -0x18(%rbp),%rax
mov    %rax,-0x20(%rbp)
mov    $0xdeadbeef,%eax
mov    %rax,-0x28(%rbp)
mov    -0x28(%rbp),%rcx
mov    $0x184ad04,%eax
mov    %rcx,(%rax)
mov    -0x28(%rbp),%rax
mov    %rax,-0x30(%rbp)
mov    $0xdeadbeef,%eax
mov    %rax,-0x38(%rbp)
mov    -0x38(%rbp),%rcx
mov    $0x184ad08,%eax
mov    %rcx,(%rax)
mov    -0x38(%rbp),%rax
mov    %rax,-0x40(%rbp)
mov    $0xdeadbeef,%eax
mov    %rax,-0x48(%rbp)
mov    -0x48(%rbp),%rcx
mov    $0x184ad0c,%eax
mov    %rcx,(%rax)
mov    -0x48(%rbp),%rax
mov    %rax,-0x50(%rbp)
movq   $0x1,-0x58(%rbp)
mov    -0x58(%rbp),%rcx
mov    $0x184ad10,%eax
mov    %rcx,(%rax)
mov    -0x58(%rbp),%rax
mov    %rax,-0x60(%rbp)
pop    %rbp
ret

x86 assembly (clang, -O2):
<__BSP_L1L2XMCUnlock>:
movq   $0x4,0x184ad10
mov    $0xdeadbeef,%eax
mov    %rax,0x184ad00
01
mov    %rax,0x184ad04
01
mov    %rax,0x184ad08
01
mov    %rax,0x184ad0c
01
movq   $0x1,0x184ad10
ret

LLVM IR (-O0):
define void @__BSP_L1L2XMCUnlock() {
%1 = alloca i64
%2 = alloca i64
%3 = alloca i64
%4 = alloca i64
%5 = alloca i64
%6 = alloca i64
%7 = alloca i64
%8 = alloca i64
%9 = alloca i64
%10 = alloca i64
%11 = alloca i64
%12 = alloca i64
store i64 4, i64* %1
%13 = load i64, i64* %1
store volatile i64 %13, i64* inttoptr (i64 25472272 to i64*)
%14 = load i64, i64* %1
store i64 %14, i64* %2
%15 = load i64, i64* %2
store i64 3735928559, i64* %3
%16 = load i64, i64* %3
store volatile i64 %16, i64* inttoptr (i64 25472256 to i64*)
%17 = load i64, i64* %3
store i64 %17, i64* %4
%18 = load i64, i64* %4
store i64 3735928559, i64* %5
%19 = load i64, i64* %5
store volatile i64 %19, i64* inttoptr (i64 25472260 to i64*)
%20 = load i64, i64* %5
store i64 %20, i64* %6
%21 = load i64, i64* %6
store i64 3735928559, i64* %7
%22 = load i64, i64* %7
store volatile i64 %22, i64* inttoptr (i64 25472264 to i64*)
%23 = load i64, i64* %7
store i64 %23, i64* %8
%24 = load i64, i64* %8
store i64 3735928559, i64* %9
%25 = load i64, i64* %9
store volatile i64 %25, i64* inttoptr (i64 25472268 to i64*)
%26 = load i64, i64* %9
store i64 %26, i64* %10
%27 = load i64, i64* %10
store i64 1, i64* %11
%28 = load i64, i64* %11
store volatile i64 %28, i64* inttoptr (i64 25472272 to i64*)
%29 = load i64, i64* %11
store i64 %29, i64* %12
%30 = load i64, i64* %12
ret void
}

LLVM IR (-O2):
define void @__BSP_L1L2XMCUnlock() {
store volatile i64 4, i64* inttoptr (i64 25472272 to i64*)
store volatile i64 3735928559, i64* inttoptr (i64 25472256 to i64*)
store volatile i64 3735928559, i64* inttoptr (i64 25472260 to i64*)
store volatile i64 3735928559, i64* inttoptr (i64 25472264 to i64*)
store volatile i64 3735928559, i64* inttoptr (i64 25472268 to i64*)
store volatile i64 1, i64* inttoptr (i64 25472272 to i64*)
ret void
}