#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_pam(void) {
  pcibios_write_config_byte(0, ((0x00 << 3) + 0), 0x59, 0x00);
  pcibios_write_config_byte(0, ((0x00 << 3) + 0), 0x5a, 0x00);
  pcibios_write_config_byte(0, ((0x00 << 3) + 0), 0x5b, 0x00);
  pcibios_write_config_byte(0, ((0x00 << 3) + 0), 0x5d, 0x00);
  pcibios_write_config_byte(0, ((0x00 << 3) + 0), 0x5e, 0x00);
  pcibios_write_config_byte(0, ((0x00 << 3) + 0), 0x5f, 0x00);
}


x86 assembly (clang, -O0):
<set_pam>:
push   %rbp
mov    %rsp,%rbp
xor    %ecx,%ecx
xor    %eax,%eax
mov    %eax,%esi
mov    $0x59,%edx
mov    %ecx,%edi
call   1030 <pcibios_write_config_byte@plt>
xor    %ecx,%ecx
xor    %eax,%eax
mov    %eax,%esi
mov    $0x5a,%edx
mov    %ecx,%edi
call   1030 <pcibios_write_config_byte@plt>
xor    %ecx,%ecx
xor    %eax,%eax
mov    %eax,%esi
mov    $0x5b,%edx
mov    %ecx,%edi
call   1030 <pcibios_write_config_byte@plt>
xor    %ecx,%ecx
xor    %eax,%eax
mov    %eax,%esi
mov    $0x5d,%edx
mov    %ecx,%edi
call   1030 <pcibios_write_config_byte@plt>
xor    %ecx,%ecx
xor    %eax,%eax
mov    %eax,%esi
mov    $0x5e,%edx
mov    %ecx,%edi
call   1030 <pcibios_write_config_byte@plt>
xor    %ecx,%ecx
xor    %eax,%eax
mov    %eax,%esi
mov    $0x5f,%edx
mov    %ecx,%edi
call   1030 <pcibios_write_config_byte@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<set_pam>:
push   %rax
xor    %edi,%edi
xor    %esi,%esi
mov    $0x59,%edx
xor    %ecx,%ecx
call   1030 <pcibios_write_config_byte@plt>
xor    %edi,%edi
xor    %esi,%esi
mov    $0x5a,%edx
xor    %ecx,%ecx
call   1030 <pcibios_write_config_byte@plt>
xor    %edi,%edi
xor    %esi,%esi
mov    $0x5b,%edx
xor    %ecx,%ecx
call   1030 <pcibios_write_config_byte@plt>
xor    %edi,%edi
xor    %esi,%esi
mov    $0x5d,%edx
xor    %ecx,%ecx
call   1030 <pcibios_write_config_byte@plt>
xor    %edi,%edi
xor    %esi,%esi
mov    $0x5e,%edx
xor    %ecx,%ecx
call   1030 <pcibios_write_config_byte@plt>
xor    %edi,%edi
xor    %esi,%esi
mov    $0x5f,%edx
xor    %ecx,%ecx
pop    %rax
jmp    1030 <pcibios_write_config_byte@plt>

LLVM IR (-O0):
define void @set_pam() {
%1 = call i32 @pcibios_write_config_byte(i32 0, i64 0, i32 89, i32 0)
%2 = call i32 @pcibios_write_config_byte(i32 0, i64 0, i32 90, i32 0)
%3 = call i32 @pcibios_write_config_byte(i32 0, i64 0, i32 91, i32 0)
%4 = call i32 @pcibios_write_config_byte(i32 0, i64 0, i32 93, i32 0)
%5 = call i32 @pcibios_write_config_byte(i32 0, i64 0, i32 94, i32 0)
%6 = call i32 @pcibios_write_config_byte(i32 0, i64 0, i32 95, i32 0)
ret void
}

LLVM IR (-O2):
define void @set_pam() {
%1 = tail call i32 @pcibios_write_config_byte(i32 0, i64 0, i32 89, i32 0)
%2 = tail call i32 @pcibios_write_config_byte(i32 0, i64 0, i32 90, i32 0)
%3 = tail call i32 @pcibios_write_config_byte(i32 0, i64 0, i32 91, i32 0)
%4 = tail call i32 @pcibios_write_config_byte(i32 0, i64 0, i32 93, i32 0)
%5 = tail call i32 @pcibios_write_config_byte(i32 0, i64 0, i32 94, i32 0)
%6 = tail call i32 @pcibios_write_config_byte(i32 0, i64 0, i32 95, i32 0)
ret void
}