#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*/ pci_config_writeb(int const, int, int);
void setup_ich9(void) {
  const int bdf = 0x1f << 3;
  pci_config_writeb(bdf, 0x60, 10);
  pci_config_writeb(bdf, 0x60 + 1, 10);
  pci_config_writeb(bdf, 0x60 + 2, 11);
  pci_config_writeb(bdf, 0x60 + 3, 11);
  pci_config_writeb(bdf, 0x68, 10);
  pci_config_writeb(bdf, 0x68 + 1, 10);
  pci_config_writeb(bdf, 0x68 + 2, 11);
  pci_config_writeb(bdf, 0x68 + 3, 11);
}


x86 assembly (clang, -O0):
<setup_ich9>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0xf8,-0x4(%rbp)
mov    $0xf8,%edi
mov    $0x60,%esi
mov    $0xa,%edx
call   1030 <pci_config_writeb@plt>
mov    $0xf8,%edi
mov    $0x61,%esi
mov    $0xa,%edx
call   1030 <pci_config_writeb@plt>
mov    $0xf8,%edi
mov    $0x62,%esi
mov    $0xb,%edx
call   1030 <pci_config_writeb@plt>
mov    $0xf8,%edi
mov    $0x63,%esi
mov    $0xb,%edx
call   1030 <pci_config_writeb@plt>
mov    $0xf8,%edi
mov    $0x68,%esi
mov    $0xa,%edx
call   1030 <pci_config_writeb@plt>
mov    $0xf8,%edi
mov    $0x69,%esi
mov    $0xa,%edx
call   1030 <pci_config_writeb@plt>
mov    $0xf8,%edi
mov    $0x6a,%esi
mov    $0xb,%edx
call   1030 <pci_config_writeb@plt>
mov    $0xf8,%edi
mov    $0x6b,%esi
mov    $0xb,%edx
call   1030 <pci_config_writeb@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<setup_ich9>:
push   %rax
mov    $0xf8,%edi
mov    $0x60,%esi
mov    $0xa,%edx
call   1030 <pci_config_writeb@plt>
mov    $0xf8,%edi
mov    $0x61,%esi
mov    $0xa,%edx
call   1030 <pci_config_writeb@plt>
mov    $0xf8,%edi
mov    $0x62,%esi
mov    $0xb,%edx
call   1030 <pci_config_writeb@plt>
mov    $0xf8,%edi
mov    $0x63,%esi
mov    $0xb,%edx
call   1030 <pci_config_writeb@plt>
mov    $0xf8,%edi
mov    $0x68,%esi
mov    $0xa,%edx
call   1030 <pci_config_writeb@plt>
mov    $0xf8,%edi
mov    $0x69,%esi
mov    $0xa,%edx
call   1030 <pci_config_writeb@plt>
mov    $0xf8,%edi
mov    $0x6a,%esi
mov    $0xb,%edx
call   1030 <pci_config_writeb@plt>
mov    $0xf8,%edi
mov    $0x6b,%esi
mov    $0xb,%edx
pop    %rax
jmp    1030 <pci_config_writeb@plt>

LLVM IR (-O0):
define void @setup_ich9() {
%1 = alloca i32
store i32 248, i32* %1
%2 = call i32 @pci_config_writeb(i32 248, i32 96, i32 10)
%3 = call i32 @pci_config_writeb(i32 248, i32 97, i32 10)
%4 = call i32 @pci_config_writeb(i32 248, i32 98, i32 11)
%5 = call i32 @pci_config_writeb(i32 248, i32 99, i32 11)
%6 = call i32 @pci_config_writeb(i32 248, i32 104, i32 10)
%7 = call i32 @pci_config_writeb(i32 248, i32 105, i32 10)
%8 = call i32 @pci_config_writeb(i32 248, i32 106, i32 11)
%9 = call i32 @pci_config_writeb(i32 248, i32 107, i32 11)
ret void
}

LLVM IR (-O2):
define void @setup_ich9() {
%1 = tail call i32 @pci_config_writeb(i32 248, i32 96, i32 10)
%2 = tail call i32 @pci_config_writeb(i32 248, i32 97, i32 10)
%3 = tail call i32 @pci_config_writeb(i32 248, i32 98, i32 11)
%4 = tail call i32 @pci_config_writeb(i32 248, i32 99, i32 11)
%5 = tail call i32 @pci_config_writeb(i32 248, i32 104, i32 10)
%6 = tail call i32 @pci_config_writeb(i32 248, i32 105, i32 10)
%7 = tail call i32 @pci_config_writeb(i32 248, i32 106, i32 11)
%8 = tail call i32 @pci_config_writeb(i32 248, i32 107, i32 11)
ret void
}