#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*/ pcibios_write_config_byte(int /*<<< orphan*/, scalar_t__,
                                             int, int);
void set_dwtc(void) {
  pcibios_write_config_byte(0, ((0x00 << 3) + 0), 0xe0, 0xb4);
  pcibios_write_config_byte(0, ((0x00 << 3) + 0), 0xe1, 0xbe);
  pcibios_write_config_byte(0, ((0x00 << 3) + 0), 0xe2, 0xff);
  pcibios_write_config_byte(0, ((0x00 << 3) + 0), 0xe3, 0xd7);
  pcibios_write_config_byte(0, ((0x00 << 3) + 0), 0xe4, 0x97);
  pcibios_write_config_byte(0, ((0x00 << 3) + 0), 0xe5, 0x3e);
  pcibios_write_config_byte(0, ((0x00 << 3) + 0), 0xe6, 0x00);
  pcibios_write_config_byte(0, ((0x00 << 3) + 0), 0xe7, 0x80);
}


x86 assembly (clang, -O0):
<set_dwtc>:
push   %rbp
mov    %rsp,%rbp
xor    %edi,%edi
xor    %eax,%eax
mov    %eax,%esi
mov    $0xe0,%edx
mov    $0xb4,%ecx
call   1030 <pcibios_write_config_byte@plt>
xor    %edi,%edi
xor    %eax,%eax
mov    %eax,%esi
mov    $0xe1,%edx
mov    $0xbe,%ecx
call   1030 <pcibios_write_config_byte@plt>
xor    %edi,%edi
xor    %eax,%eax
mov    %eax,%esi
mov    $0xe2,%edx
mov    $0xff,%ecx
call   1030 <pcibios_write_config_byte@plt>
xor    %edi,%edi
xor    %eax,%eax
mov    %eax,%esi
mov    $0xe3,%edx
mov    $0xd7,%ecx
call   1030 <pcibios_write_config_byte@plt>
xor    %edi,%edi
xor    %eax,%eax
mov    %eax,%esi
mov    $0xe4,%edx
mov    $0x97,%ecx
call   1030 <pcibios_write_config_byte@plt>
xor    %edi,%edi
xor    %eax,%eax
mov    %eax,%esi
mov    $0xe5,%edx
mov    $0x3e,%ecx
call   1030 <pcibios_write_config_byte@plt>
xor    %ecx,%ecx
xor    %eax,%eax
mov    %eax,%esi
mov    $0xe6,%edx
mov    %ecx,%edi
call   1030 <pcibios_write_config_byte@plt>
xor    %edi,%edi
xor    %eax,%eax
mov    %eax,%esi
mov    $0xe7,%edx
mov    $0x80,%ecx
call   1030 <pcibios_write_config_byte@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<set_dwtc>:
push   %rax
xor    %edi,%edi
xor    %esi,%esi
mov    $0xe0,%edx
mov    $0xb4,%ecx
call   1030 <pcibios_write_config_byte@plt>
xor    %edi,%edi
xor    %esi,%esi
mov    $0xe1,%edx
mov    $0xbe,%ecx
call   1030 <pcibios_write_config_byte@plt>
xor    %edi,%edi
xor    %esi,%esi
mov    $0xe2,%edx
mov    $0xff,%ecx
call   1030 <pcibios_write_config_byte@plt>
xor    %edi,%edi
xor    %esi,%esi
mov    $0xe3,%edx
mov    $0xd7,%ecx
call   1030 <pcibios_write_config_byte@plt>
xor    %edi,%edi
xor    %esi,%esi
mov    $0xe4,%edx
mov    $0x97,%ecx
call   1030 <pcibios_write_config_byte@plt>
xor    %edi,%edi
xor    %esi,%esi
mov    $0xe5,%edx
mov    $0x3e,%ecx
call   1030 <pcibios_write_config_byte@plt>
xor    %edi,%edi
xor    %esi,%esi
mov    $0xe6,%edx
xor    %ecx,%ecx
call   1030 <pcibios_write_config_byte@plt>
xor    %edi,%edi
xor    %esi,%esi
mov    $0xe7,%edx
mov    $0x80,%ecx
pop    %rax
jmp    1030 <pcibios_write_config_byte@plt>

LLVM IR (-O0):
define void @set_dwtc() {
%1 = call i32 @pcibios_write_config_byte(i32 0, i64 0, i32 224, i32 180)
%2 = call i32 @pcibios_write_config_byte(i32 0, i64 0, i32 225, i32 190)
%3 = call i32 @pcibios_write_config_byte(i32 0, i64 0, i32 226, i32 255)
%4 = call i32 @pcibios_write_config_byte(i32 0, i64 0, i32 227, i32 215)
%5 = call i32 @pcibios_write_config_byte(i32 0, i64 0, i32 228, i32 151)
%6 = call i32 @pcibios_write_config_byte(i32 0, i64 0, i32 229, i32 62)
%7 = call i32 @pcibios_write_config_byte(i32 0, i64 0, i32 230, i32 0)
%8 = call i32 @pcibios_write_config_byte(i32 0, i64 0, i32 231, i32 128)
ret void
}

LLVM IR (-O2):
define void @set_dwtc() {
%1 = tail call i32 @pcibios_write_config_byte(i32 0, i64 0, i32 224, i32 180)
%2 = tail call i32 @pcibios_write_config_byte(i32 0, i64 0, i32 225, i32 190)
%3 = tail call i32 @pcibios_write_config_byte(i32 0, i64 0, i32 226, i32 255)
%4 = tail call i32 @pcibios_write_config_byte(i32 0, i64 0, i32 227, i32 215)
%5 = tail call i32 @pcibios_write_config_byte(i32 0, i64 0, i32 228, i32 151)
%6 = tail call i32 @pcibios_write_config_byte(i32 0, i64 0, i32 229, i32 62)
%7 = tail call i32 @pcibios_write_config_byte(i32 0, i64 0, i32 230, i32 0)
%8 = tail call i32 @pcibios_write_config_byte(i32 0, i64 0, i32 231, i32 128)
ret void
}