#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 */

/* Variables and functions */
int /*<<< orphan*/ orgfx_wait(int);
void orgfx_uv(unsigned int u0, unsigned int v0, unsigned int u1,
              unsigned int v1, unsigned int u2, unsigned int v2) {
  orgfx_wait(6);
  *((volatile unsigned int *)((0xB8000000 + 0x90))) = u0;
  *((volatile unsigned int *)((0xB8000000 + 0x94))) = v0;
  *((volatile unsigned int *)((0xB8000000 + 0x98))) = u1;
  *((volatile unsigned int *)((0xB8000000 + 0x9c))) = v1;
  *((volatile unsigned int *)((0xB8000000 + 0xa0))) = u2;
  *((volatile unsigned int *)((0xB8000000 + 0xa4))) = v2;
}


x86 assembly (clang, -O0):
<orgfx_uv>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    %edx,-0xc(%rbp)
mov    %ecx,-0x10(%rbp)
mov    %r8d,-0x14(%rbp)
mov    %r9d,-0x18(%rbp)
mov    $0x6,%edi
call   1030 <orgfx_wait@plt>
mov    -0x4(%rbp),%ecx
mov    $0xb8000090,%eax
mov    %ecx,(%rax)
mov    -0x8(%rbp),%ecx
mov    $0xb8000094,%eax
mov    %ecx,(%rax)
mov    -0xc(%rbp),%ecx
mov    $0xb8000098,%eax
mov    %ecx,(%rax)
mov    -0x10(%rbp),%ecx
mov    $0xb800009c,%eax
mov    %ecx,(%rax)
mov    -0x14(%rbp),%ecx
mov    $0xb80000a0,%eax
mov    %ecx,(%rax)
mov    -0x18(%rbp),%ecx
mov    $0xb80000a4,%eax
mov    %ecx,(%rax)
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<orgfx_uv>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
push   %rax
mov    %r9d,%r14d
mov    %r8d,%r15d
mov    %ecx,%r12d
mov    %edx,%r13d
mov    %esi,%ebx
mov    %edi,%ebp
mov    $0x6,%edi
call   1030 <orgfx_wait@plt>
mov    $0xb8000090,%eax
mov    %ebp,(%rax)
mov    %ebx,0x4(%rax)
mov    %r13d,0x8(%rax)
mov    %r12d,0xc(%rax)
mov    %r15d,0x10(%rax)
mov    %r14d,0x14(%rax)
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
define void @orgfx_uv(i32 %0, i32 %1, i32 %2, i32 %3, i32 %4, i32 %5) {
%7 = alloca i32
%8 = alloca i32
%9 = alloca i32
%10 = alloca i32
%11 = alloca i32
%12 = alloca i32
store i32 %0, i32* %7
store i32 %1, i32* %8
store i32 %2, i32* %9
store i32 %3, i32* %10
store i32 %4, i32* %11
store i32 %5, i32* %12
%13 = call i32 @orgfx_wait(i32 6)
%14 = load i32, i32* %7
store volatile i32 %14, i32* inttoptr (i64 3087007888 to i32*)
%15 = load i32, i32* %8
store volatile i32 %15, i32* inttoptr (i64 3087007892 to i32*)
%16 = load i32, i32* %9
store volatile i32 %16, i32* inttoptr (i64 3087007896 to i32*)
%17 = load i32, i32* %10
store volatile i32 %17, i32* inttoptr (i64 3087007900 to i32*)
%18 = load i32, i32* %11
store volatile i32 %18, i32* inttoptr (i64 3087007904 to i32*)
%19 = load i32, i32* %12
store volatile i32 %19, i32* inttoptr (i64 3087007908 to i32*)
ret void
}

LLVM IR (-O2):
define void @orgfx_uv(i32 %0, i32 %1, i32 %2, i32 %3, i32 %4, i32 %5) {
%7 = tail call i32 @orgfx_wait(i32 6)
store volatile i32 %0, i32* inttoptr (i64 3087007888 to i32*)
store volatile i32 %1, i32* inttoptr (i64 3087007892 to i32*)
store volatile i32 %2, i32* inttoptr (i64 3087007896 to i32*)
store volatile i32 %3, i32* inttoptr (i64 3087007900 to i32*)
store volatile i32 %4, i32* inttoptr (i64 3087007904 to i32*)
store volatile i32 %5, i32* inttoptr (i64 3087007908 to i32*)
ret void
}