#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 unsigned long uint32_t;

/* Variables and functions */
bool AESDataWriteNonBlocking(uint32_t ui32Base, uint32_t *pui32Src) {
  ;
  if (!(0x00000002 &
        ((*((volatile unsigned long *)(ui32Base + 0x00000050)))))) {
    return (0);
  }
  (*((volatile unsigned long *)(ui32Base + 0x0000006C))) = pui32Src[0];
  (*((volatile unsigned long *)(ui32Base + 0x00000068))) = pui32Src[1];
  (*((volatile unsigned long *)(ui32Base + 0x00000064))) = pui32Src[2];
  (*((volatile unsigned long *)(ui32Base + 0x00000060))) = pui32Src[3];
  return (1);
}


x86 assembly (clang, -O0):
<AESDataWriteNonBlocking>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x10(%rbp)
mov    %rsi,-0x18(%rbp)
mov    -0x10(%rbp),%rax
mov    0x50(%rax),%rax
and    $0x2,%rax
cmp    $0x0,%rax
jne    112e <AESDataWriteNonBlocking+0x2e>
movl   $0x0,-0x4(%rbp)
jmp    1174 <AESDataWriteNonBlocking+0x74>
mov    -0x18(%rbp),%rax
mov    (%rax),%rcx
mov    -0x10(%rbp),%rax
mov    %rcx,0x6c(%rax)
mov    -0x18(%rbp),%rax
mov    0x8(%rax),%rcx
mov    -0x10(%rbp),%rax
mov    %rcx,0x68(%rax)
mov    -0x18(%rbp),%rax
mov    0x10(%rax),%rcx
mov    -0x10(%rbp),%rax
mov    %rcx,0x64(%rax)
mov    -0x18(%rbp),%rax
mov    0x18(%rax),%rcx
mov    -0x10(%rbp),%rax
mov    %rcx,0x60(%rax)
movl   $0x1,-0x4(%rbp)
mov    -0x4(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<AESDataWriteNonBlocking>:
xor    %eax,%eax
testq  $0x2,0x50(%rdi)
je     1130 <AESDataWriteNonBlocking+0x30>
mov    (%rsi),%rax
mov    %rax,0x6c(%rdi)
mov    0x8(%rsi),%rax
mov    %rax,0x68(%rdi)
mov    0x10(%rsi),%rax
mov    %rax,0x64(%rdi)
mov    0x18(%rsi),%rax
mov    %rax,0x60(%rdi)
mov    $0x1,%eax
ret

LLVM IR (-O0):
define i32 @AESDataWriteNonBlocking(i64 %0, i64* %1) {
%3 = alloca i32
%4 = alloca i64
%5 = alloca i64*
store i64 %0, i64* %4
store i64* %1, i64** %5
%6 = load i64, i64* %4
%7 = add i64 %6, 80
%8 = inttoptr i64 %7 to i64*
%9 = load volatile i64, i64* %8
%10 = and i64 2, %9
%11 = icmp ne i64 %10, 0
br i1 %11, label %13, label %12
12: ; preds = %2
store i32 0, i32* %3
br label %38
13: ; preds = %2
%14 = load i64*, i64** %5
%15 = getelementptr inbounds i64, i64* %14, i64 0
%16 = load i64, i64* %15
%17 = load i64, i64* %4
%18 = add i64 %17, 108
%19 = inttoptr i64 %18 to i64*
store volatile i64 %16, i64* %19
%20 = load i64*, i64** %5
%21 = getelementptr inbounds i64, i64* %20, i64 1
%22 = load i64, i64* %21
%23 = load i64, i64* %4
%24 = add i64 %23, 104
%25 = inttoptr i64 %24 to i64*
store volatile i64 %22, i64* %25
%26 = load i64*, i64** %5
%27 = getelementptr inbounds i64, i64* %26, i64 2
%28 = load i64, i64* %27
%29 = load i64, i64* %4
%30 = add i64 %29, 100
%31 = inttoptr i64 %30 to i64*
store volatile i64 %28, i64* %31
%32 = load i64*, i64** %5
%33 = getelementptr inbounds i64, i64* %32, i64 3
%34 = load i64, i64* %33
%35 = load i64, i64* %4
%36 = add i64 %35, 96
%37 = inttoptr i64 %36 to i64*
store volatile i64 %34, i64* %37
store i32 1, i32* %3
br label %38
38: ; preds = %13, %12
%39 = load i32, i32* %3
ret i32 %39
}

LLVM IR (-O2):
define i32 @AESDataWriteNonBlocking(i64 %0, i64* nocapture %1) {
%3 = add i64 %0, 80
%4 = inttoptr i64 %3 to i64*
%5 = load volatile i64, i64* %4
%6 = and i64 %5, 2
%7 = icmp eq i64 %6, 0
br i1 %7, label %24, label %8
8: ; preds = %2
%9 = load i64, i64* %1
%10 = add i64 %0, 108
%11 = inttoptr i64 %10 to i64*
store volatile i64 %9, i64* %11
%12 = getelementptr inbounds i64, i64* %1, i64 1
%13 = load i64, i64* %12
%14 = add i64 %0, 104
%15 = inttoptr i64 %14 to i64*
store volatile i64 %13, i64* %15
%16 = getelementptr inbounds i64, i64* %1, i64 2
%17 = load i64, i64* %16
%18 = add i64 %0, 100
%19 = inttoptr i64 %18 to i64*
store volatile i64 %17, i64* %19
%20 = getelementptr inbounds i64, i64* %1, i64 3
%21 = load i64, i64* %20
%22 = add i64 %0, 96
%23 = inttoptr i64 %22 to i64*
store volatile i64 %21, i64* %23
br label %24
24: ; preds = %2, %8
%25 = phi i32 [ 1, %8 ], [ 0, %2 ]
ret i32 %25
}