#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_set_transformation_matrix(int aa, int ab, int ac, int tx, int ba,
                                     int bb, int bc, int ty, int ca, int cb,
                                     int cc, int tz) {
  orgfx_wait(12);
  *((volatile unsigned int *)((0xB8000000 + 0x44))) = aa;
  *((volatile unsigned int *)((0xB8000000 + 0x48))) = ab;
  *((volatile unsigned int *)((0xB8000000 + 0x4c))) = ac;
  *((volatile unsigned int *)((0xB8000000 + 0x50))) = tx;
  *((volatile unsigned int *)((0xB8000000 + 0x54))) = ba;
  *((volatile unsigned int *)((0xB8000000 + 0x58))) = bb;
  *((volatile unsigned int *)((0xB8000000 + 0x5c))) = bc;
  *((volatile unsigned int *)((0xB8000000 + 0x60))) = ty;
  *((volatile unsigned int *)((0xB8000000 + 0x64))) = ca;
  *((volatile unsigned int *)((0xB8000000 + 0x68))) = cb;
  *((volatile unsigned int *)((0xB8000000 + 0x6c))) = cc;
  *((volatile unsigned int *)((0xB8000000 + 0x70))) = tz;
}


x86 assembly (clang, -O0):
<orgfx_set_transformation_matrix>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    0x38(%rbp),%eax
mov    0x30(%rbp),%eax
mov    0x28(%rbp),%eax
mov    0x20(%rbp),%eax
mov    0x18(%rbp),%eax
mov    0x10(%rbp),%eax
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    $0xc,%edi
call   1030 <orgfx_wait@plt>
mov    -0x4(%rbp),%ecx
mov    $0xb8000044,%eax
mov    %ecx,(%rax)
mov    -0x8(%rbp),%ecx
mov    $0xb8000048,%eax
mov    %ecx,(%rax)
mov    -0xc(%rbp),%ecx
mov    $0xb800004c,%eax
mov    %ecx,(%rax)
mov    -0x10(%rbp),%ecx
mov    $0xb8000050,%eax
mov    %ecx,(%rax)
mov    -0x14(%rbp),%ecx
mov    $0xb8000054,%eax
mov    %ecx,(%rax)
mov    -0x18(%rbp),%ecx
mov    $0xb8000058,%eax
mov    %ecx,(%rax)
mov    0x10(%rbp),%ecx
mov    $0xb800005c,%eax
mov    %ecx,(%rax)
mov    0x18(%rbp),%ecx
mov    $0xb8000060,%eax
mov    %ecx,(%rax)
mov    0x20(%rbp),%ecx
mov    $0xb8000064,%eax
mov    %ecx,(%rax)
mov    0x28(%rbp),%ecx
mov    $0xb8000068,%eax
mov    %ecx,(%rax)
mov    0x30(%rbp),%ecx
mov    $0xb800006c,%eax
mov    %ecx,(%rax)
mov    0x38(%rbp),%ecx
mov    $0xb8000070,%eax
mov    %ecx,(%rax)
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<orgfx_set_transformation_matrix>:
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    $0xc,%edi
call   1030 <orgfx_wait@plt>
mov    $0xb8000044,%eax
mov    %ebp,(%rax)
mov    %ebx,0x4(%rax)
mov    %r13d,0x8(%rax)
mov    %r12d,0xc(%rax)
mov    %r15d,0x10(%rax)
mov    %r14d,0x14(%rax)
mov    0x40(%rsp),%ecx
mov    %ecx,0x18(%rax)
mov    0x48(%rsp),%ecx
mov    %ecx,0x1c(%rax)
mov    0x50(%rsp),%ecx
mov    %ecx,0x20(%rax)
mov    0x58(%rsp),%ecx
mov    %ecx,0x24(%rax)
mov    0x60(%rsp),%ecx
mov    %ecx,0x28(%rax)
mov    0x68(%rsp),%ecx
mov    %ecx,0x2c(%rax)
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
define void @orgfx_set_transformation_matrix(i32 %0, i32 %1, i32 %2, i32 %3, i32 %4, i32 %5, i32 %6, i32 %7, i32 %8, i32 %9, i32 %10, i32 %11) {
%13 = alloca i32
%14 = alloca i32
%15 = alloca i32
%16 = alloca i32
%17 = alloca i32
%18 = alloca i32
%19 = alloca i32
%20 = alloca i32
%21 = alloca i32
%22 = alloca i32
%23 = alloca i32
%24 = alloca i32
store i32 %0, i32* %13
store i32 %1, i32* %14
store i32 %2, i32* %15
store i32 %3, i32* %16
store i32 %4, i32* %17
store i32 %5, i32* %18
store i32 %6, i32* %19
store i32 %7, i32* %20
store i32 %8, i32* %21
store i32 %9, i32* %22
store i32 %10, i32* %23
store i32 %11, i32* %24
%25 = call i32 @orgfx_wait(i32 12)
%26 = load i32, i32* %13
store volatile i32 %26, i32* inttoptr (i64 3087007812 to i32*)
%27 = load i32, i32* %14
store volatile i32 %27, i32* inttoptr (i64 3087007816 to i32*)
%28 = load i32, i32* %15
store volatile i32 %28, i32* inttoptr (i64 3087007820 to i32*)
%29 = load i32, i32* %16
store volatile i32 %29, i32* inttoptr (i64 3087007824 to i32*)
%30 = load i32, i32* %17
store volatile i32 %30, i32* inttoptr (i64 3087007828 to i32*)
%31 = load i32, i32* %18
store volatile i32 %31, i32* inttoptr (i64 3087007832 to i32*)
%32 = load i32, i32* %19
store volatile i32 %32, i32* inttoptr (i64 3087007836 to i32*)
%33 = load i32, i32* %20
store volatile i32 %33, i32* inttoptr (i64 3087007840 to i32*)
%34 = load i32, i32* %21
store volatile i32 %34, i32* inttoptr (i64 3087007844 to i32*)
%35 = load i32, i32* %22
store volatile i32 %35, i32* inttoptr (i64 3087007848 to i32*)
%36 = load i32, i32* %23
store volatile i32 %36, i32* inttoptr (i64 3087007852 to i32*)
%37 = load i32, i32* %24
store volatile i32 %37, i32* inttoptr (i64 3087007856 to i32*)
ret void
}

LLVM IR (-O2):
define void @orgfx_set_transformation_matrix(i32 %0, i32 %1, i32 %2, i32 %3, i32 %4, i32 %5, i32 %6, i32 %7, i32 %8, i32 %9, i32 %10, i32 %11) {
%13 = tail call i32 @orgfx_wait(i32 12)
store volatile i32 %0, i32* inttoptr (i64 3087007812 to i32*)
store volatile i32 %1, i32* inttoptr (i64 3087007816 to i32*)
store volatile i32 %2, i32* inttoptr (i64 3087007820 to i32*)
store volatile i32 %3, i32* inttoptr (i64 3087007824 to i32*)
store volatile i32 %4, i32* inttoptr (i64 3087007828 to i32*)
store volatile i32 %5, i32* inttoptr (i64 3087007832 to i32*)
store volatile i32 %6, i32* inttoptr (i64 3087007836 to i32*)
store volatile i32 %7, i32* inttoptr (i64 3087007840 to i32*)
store volatile i32 %8, i32* inttoptr (i64 3087007844 to i32*)
store volatile i32 %9, i32* inttoptr (i64 3087007848 to i32*)
store volatile i32 %10, i32* inttoptr (i64 3087007852 to i32*)
store volatile i32 %11, i32* inttoptr (i64 3087007856 to i32*)
ret void
}