#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_drtc(void) {
  pcibios_write_config_byte(0, ((0x00 << 3) + 0), 0xe8, 0x2c);
  pcibios_write_config_byte(0, ((0x00 << 3) + 0), 0xe9, 0xd3);
  pcibios_write_config_byte(0, ((0x00 << 3) + 0), 0xea, 0xf7);
  pcibios_write_config_byte(0, ((0x00 << 3) + 0), 0xeb, 0xcf);
  pcibios_write_config_byte(0, ((0x00 << 3) + 0), 0xec, 0x9d);
  pcibios_write_config_byte(0, ((0x00 << 3) + 0), 0xed, 0x3e);
  pcibios_write_config_byte(0, ((0x00 << 3) + 0), 0xee, 0x00);
  pcibios_write_config_byte(0, ((0x00 << 3) + 0), 0xef, 0x00);
}


x86 assembly (clang, -O0):
<set_drtc>:
push   %rbp
mov    %rsp,%rbp
xor    %edi,%edi
xor    %eax,%eax
mov    %eax,%esi
mov    $0xe8,%edx
mov    $0x2c,%ecx
call   1030 <pcibios_write_config_byte@plt>
xor    %edi,%edi
xor    %eax,%eax
mov    %eax,%esi
mov    $0xe9,%edx
mov    $0xd3,%ecx
call   1030 <pcibios_write_config_byte@plt>
xor    %edi,%edi
xor    %eax,%eax
mov    %eax,%esi
mov    $0xea,%edx
mov    $0xf7,%ecx
call   1030 <pcibios_write_config_byte@plt>
xor    %edi,%edi
xor    %eax,%eax
mov    %eax,%esi
mov    $0xeb,%edx
mov    $0xcf,%ecx
call   1030 <pcibios_write_config_byte@plt>
xor    %edi,%edi
xor    %eax,%eax
mov    %eax,%esi
mov    $0xec,%edx
mov    $0x9d,%ecx
call   1030 <pcibios_write_config_byte@plt>
xor    %edi,%edi
xor    %eax,%eax
mov    %eax,%esi
mov    $0xed,%edx
mov    $0x3e,%ecx
call   1030 <pcibios_write_config_byte@plt>
xor    %ecx,%ecx
xor    %eax,%eax
mov    %eax,%esi
mov    $0xee,%edx
mov    %ecx,%edi
call   1030 <pcibios_write_config_byte@plt>
xor    %ecx,%ecx
xor    %eax,%eax
mov    %eax,%esi
mov    $0xef,%edx
mov    %ecx,%edi
call   1030 <pcibios_write_config_byte@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<set_drtc>:
push   %rax
xor    %edi,%edi
xor    %esi,%esi
mov    $0xe8,%edx
mov    $0x2c,%ecx
call   1030 <pcibios_write_config_byte@plt>
xor    %edi,%edi
xor    %esi,%esi
mov    $0xe9,%edx
mov    $0xd3,%ecx
call   1030 <pcibios_write_config_byte@plt>
xor    %edi,%edi
xor    %esi,%esi
mov    $0xea,%edx
mov    $0xf7,%ecx
call   1030 <pcibios_write_config_byte@plt>
xor    %edi,%edi
xor    %esi,%esi
mov    $0xeb,%edx
mov    $0xcf,%ecx
call   1030 <pcibios_write_config_byte@plt>
xor    %edi,%edi
xor    %esi,%esi
mov    $0xec,%edx
mov    $0x9d,%ecx
call   1030 <pcibios_write_config_byte@plt>
xor    %edi,%edi
xor    %esi,%esi
mov    $0xed,%edx
mov    $0x3e,%ecx
call   1030 <pcibios_write_config_byte@plt>
xor    %edi,%edi
xor    %esi,%esi
mov    $0xee,%edx
xor    %ecx,%ecx
call   1030 <pcibios_write_config_byte@plt>
xor    %edi,%edi
xor    %esi,%esi
mov    $0xef,%edx
xor    %ecx,%ecx
pop    %rax
jmp    1030 <pcibios_write_config_byte@plt>

LLVM IR (-O0):
define void @set_drtc() {
%1 = call i32 @pcibios_write_config_byte(i32 0, i64 0, i32 232, i32 44)
%2 = call i32 @pcibios_write_config_byte(i32 0, i64 0, i32 233, i32 211)
%3 = call i32 @pcibios_write_config_byte(i32 0, i64 0, i32 234, i32 247)
%4 = call i32 @pcibios_write_config_byte(i32 0, i64 0, i32 235, i32 207)
%5 = call i32 @pcibios_write_config_byte(i32 0, i64 0, i32 236, i32 157)
%6 = call i32 @pcibios_write_config_byte(i32 0, i64 0, i32 237, i32 62)
%7 = call i32 @pcibios_write_config_byte(i32 0, i64 0, i32 238, i32 0)
%8 = call i32 @pcibios_write_config_byte(i32 0, i64 0, i32 239, i32 0)
ret void
}

LLVM IR (-O2):
define void @set_drtc() {
%1 = tail call i32 @pcibios_write_config_byte(i32 0, i64 0, i32 232, i32 44)
%2 = tail call i32 @pcibios_write_config_byte(i32 0, i64 0, i32 233, i32 211)
%3 = tail call i32 @pcibios_write_config_byte(i32 0, i64 0, i32 234, i32 247)
%4 = tail call i32 @pcibios_write_config_byte(i32 0, i64 0, i32 235, i32 207)
%5 = tail call i32 @pcibios_write_config_byte(i32 0, i64 0, i32 236, i32 157)
%6 = tail call i32 @pcibios_write_config_byte(i32 0, i64 0, i32 237, i32 62)
%7 = tail call i32 @pcibios_write_config_byte(i32 0, i64 0, i32 238, i32 0)
%8 = tail call i32 @pcibios_write_config_byte(i32 0, i64 0, i32 239, i32 0)
ret void
}