#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 */
unsigned long gfx_ind(int);
int /*<<< orphan*/ gfx_outd(int, unsigned long);
void Dorado9211GpioInit(void) {
  unsigned long value;
  gfx_outd((0x6400 + 0x20), 0x00000007);
  gfx_outd((0x6400 + 0x24), 3);
  gfx_outd((0x6400 + 0x20), 0x00000009);
  gfx_outd((0x6400 + 0x24), 3);
  gfx_outd((0x6400 + 0x20), 0x00000012);
  gfx_outd((0x6400 + 0x24), 3);
  gfx_outd((0x6400 + 0x20), 0x0000000B);
  gfx_outd((0x6400 + 0x24), 0);
  value = gfx_ind(0x6400 + 0x04);
  value &= ~(0x00000200 | 0x00000080 | 0x00040000);
  gfx_outd((0x6400 + 0x00), value);
}


x86 assembly (clang, -O0):
<Dorado9211GpioInit>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    $0x6420,%edi
mov    $0x7,%esi
call   1030 <gfx_outd@plt>
mov    $0x6424,%edi
mov    $0x3,%esi
call   1030 <gfx_outd@plt>
mov    $0x6420,%edi
mov    $0x9,%esi
call   1030 <gfx_outd@plt>
mov    $0x6424,%edi
mov    $0x3,%esi
call   1030 <gfx_outd@plt>
mov    $0x6420,%edi
mov    $0x12,%esi
call   1030 <gfx_outd@plt>
mov    $0x6424,%edi
mov    $0x3,%esi
call   1030 <gfx_outd@plt>
mov    $0x6420,%edi
mov    $0xb,%esi
call   1030 <gfx_outd@plt>
mov    $0x6424,%edi
xor    %eax,%eax
mov    %eax,%esi
call   1030 <gfx_outd@plt>
mov    $0x6404,%edi
call   1040 <gfx_ind@plt>
mov    %rax,-0x8(%rbp)
mov    -0x8(%rbp),%rax
and    $0xfffffffffffbfd7f,%rax
mov    %rax,-0x8(%rbp)
mov    -0x8(%rbp),%rsi
mov    $0x6400,%edi
call   1030 <gfx_outd@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<Dorado9211GpioInit>:
push   %rax
mov    $0x7,%esi
mov    $0x6420,%edi
call   1030 <gfx_outd@plt>
mov    $0x3,%esi
mov    $0x6424,%edi
call   1030 <gfx_outd@plt>
mov    $0x9,%esi
mov    $0x6420,%edi
call   1030 <gfx_outd@plt>
mov    $0x3,%esi
mov    $0x6424,%edi
call   1030 <gfx_outd@plt>
mov    $0x12,%esi
mov    $0x6420,%edi
call   1030 <gfx_outd@plt>
mov    $0x3,%esi
mov    $0x6424,%edi
call   1030 <gfx_outd@plt>
mov    $0xb,%esi
mov    $0x6420,%edi
call   1030 <gfx_outd@plt>
mov    $0x6424,%edi
xor    %esi,%esi
call   1030 <gfx_outd@plt>
mov    $0x6404,%edi
call   1040 <gfx_ind@plt>
and    $0xfffffffffffbfd7f,%rax
mov    $0x6400,%edi
mov    %rax,%rsi
pop    %rax
jmp    1030 <gfx_outd@plt>

LLVM IR (-O0):
define void @Dorado9211GpioInit() {
%1 = alloca i64
%2 = call i32 @gfx_outd(i32 25632, i64 7)
%3 = call i32 @gfx_outd(i32 25636, i64 3)
%4 = call i32 @gfx_outd(i32 25632, i64 9)
%5 = call i32 @gfx_outd(i32 25636, i64 3)
%6 = call i32 @gfx_outd(i32 25632, i64 18)
%7 = call i32 @gfx_outd(i32 25636, i64 3)
%8 = call i32 @gfx_outd(i32 25632, i64 11)
%9 = call i32 @gfx_outd(i32 25636, i64 0)
%10 = call i64 @gfx_ind(i32 25604)
store i64 %10, i64* %1
%11 = load i64, i64* %1
%12 = and i64 %11, -262785
store i64 %12, i64* %1
%13 = load i64, i64* %1
%14 = call i32 @gfx_outd(i32 25600, i64 %13)
ret void
}

LLVM IR (-O2):
define void @Dorado9211GpioInit() {
%1 = tail call i32 @gfx_outd(i32 25632, i64 7)
%2 = tail call i32 @gfx_outd(i32 25636, i64 3)
%3 = tail call i32 @gfx_outd(i32 25632, i64 9)
%4 = tail call i32 @gfx_outd(i32 25636, i64 3)
%5 = tail call i32 @gfx_outd(i32 25632, i64 18)
%6 = tail call i32 @gfx_outd(i32 25636, i64 3)
%7 = tail call i32 @gfx_outd(i32 25632, i64 11)
%8 = tail call i32 @gfx_outd(i32 25636, i64 0)
%9 = tail call i64 @gfx_ind(i32 25604)
%10 = and i64 %9, -262785
%11 = tail call i32 @gfx_outd(i32 25600, i64 %10)
ret void
}