#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 */
int /*<<< orphan*/ ASSERT(int);
void DESDataRead(uint32_t ui32Base, uint32_t *pui32Dest) {
  ASSERT(ui32Base == 0x44038000);
  while (((*((volatile uint32_t *)(ui32Base + 0x00000020))) & 0x00000001) ==
         0) {
  }
  pui32Dest[0] = (*((volatile uint32_t *)(0x44038000 + 0x00000028)));
  pui32Dest[1] = (*((volatile uint32_t *)(0x44038000 + 0x0000002C)));
}


x86 assembly (clang, -O0):
<DESDataRead>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    %rsi,-0x10(%rbp)
cmpl   $0x44038000,-0x4(%rbp)
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1030 <ASSERT@plt>
mov    -0x4(%rbp),%eax
add    $0x20,%eax
cltq
mov    (%rax),%eax
and    $0x1,%eax
cmp    $0x0,%eax
jne    114e <DESDataRead+0x3e>
jmp    1133 <DESDataRead+0x23>
mov    $0x44038028,%eax
mov    (%rax),%ecx
mov    -0x10(%rbp),%rax
mov    %ecx,(%rax)
mov    $0x4403802c,%eax
mov    (%rax),%ecx
mov    -0x10(%rbp),%rax
mov    %ecx,0x4(%rax)
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<DESDataRead>:
push   %rbp
push   %rbx
push   %rax
mov    %rsi,%rbx
mov    %edi,%ebp
xor    %edi,%edi
cmp    $0x44038000,%ebp
sete   %dil
call   1030 <ASSERT@plt>
movslq %ebp,%rax
nopl   0x0(%rax)
testl  $0x1,0x20(%rax)
je     1130 <DESDataRead+0x20>
mov    0x44038028,%eax
mov    %eax,(%rbx)
mov    0x4403802c,%eax
mov    %eax,0x4(%rbx)
add    $0x8,%rsp
pop    %rbx
pop    %rbp
ret

LLVM IR (-O0):
define void @DESDataRead(i32 %0, i32* %1) {
%3 = alloca i32
%4 = alloca i32*
store i32 %0, i32* %3
store i32* %1, i32** %4
%5 = load i32, i32* %3
%6 = icmp eq i32 %5, 1141080064
%7 = zext i1 %6 to i32
%8 = call i32 @ASSERT(i32 %7)
br label %9
9: ; preds = %17, %2
%10 = load i32, i32* %3
%11 = add nsw i32 %10, 32
%12 = sext i32 %11 to i64
%13 = inttoptr i64 %12 to i32*
%14 = load volatile i32, i32* %13
%15 = and i32 %14, 1
%16 = icmp eq i32 %15, 0
br i1 %16, label %17, label %18
17: ; preds = %9
br label %9
18: ; preds = %9
%19 = load volatile i32, i32* inttoptr (i64 1141080104 to i32*)
%20 = load i32*, i32** %4
%21 = getelementptr inbounds i32, i32* %20, i64 0
store i32 %19, i32* %21
%22 = load volatile i32, i32* inttoptr (i64 1141080108 to i32*)
%23 = load i32*, i32** %4
%24 = getelementptr inbounds i32, i32* %23, i64 1
store i32 %22, i32* %24
ret void
}

LLVM IR (-O2):
define void @DESDataRead(i32 %0, i32* nocapture writeonly %1) {
%3 = icmp eq i32 %0, 1141080064
%4 = zext i1 %3 to i32
%5 = tail call i32 @ASSERT(i32 %4)
%6 = add nsw i32 %0, 32
%7 = sext i32 %6 to i64
%8 = inttoptr i64 %7 to i32*
br label %9
9: ; preds = %9, %2
%10 = load volatile i32, i32* %8
%11 = and i32 %10, 1
%12 = icmp eq i32 %11, 0
br i1 %12, label %9, label %13
13: ; preds = %9
%14 = load volatile i32, i32* inttoptr (i64 1141080104 to i32*)
store i32 %14, i32* %1
%15 = load volatile i32, i32* inttoptr (i64 1141080108 to i32*)
%16 = getelementptr inbounds i32, i32* %1, i64 1
store i32 %15, i32* %16
ret void
}