#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 int inb(int);
int /*<<< orphan*/ outb(int, int);
void iniciaTarjeta(void) {
  unsigned lec1;
  unsigned lec2;
  outb(0x00, 0x0260);
  outb(0x00, 0x0260 + 0x0001);
  outb(0x00, 0x0260 + 0x0002);
  outb(0x00, 0x0260 + 0x000F);
  outb(0x34, 0x0260 + 0x0017);
  outb(0x0A, 0x0260 + 0x0014);
  outb(0x00, 0x0260 + 0x0014);
  outb(0x00, 0x0260 + 0x000A);
  outb(0x00, 0x0260 + 0x000C);
  outb(0x00, 0x0260 + 0x0008);
  lec1 = inb(0x0260 + 0x000A);
  lec2 = inb(0x0260 + 0x000A);
}


x86 assembly (clang, -O0):
<iniciaTarjeta>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
xor    %edi,%edi
mov    $0x260,%esi
call   1030 <outb@plt>
xor    %edi,%edi
mov    $0x261,%esi
call   1030 <outb@plt>
xor    %edi,%edi
mov    $0x262,%esi
call   1030 <outb@plt>
xor    %edi,%edi
mov    $0x26f,%esi
call   1030 <outb@plt>
mov    $0x34,%edi
mov    $0x277,%esi
call   1030 <outb@plt>
mov    $0xa,%edi
mov    $0x274,%esi
call   1030 <outb@plt>
xor    %edi,%edi
mov    $0x274,%esi
call   1030 <outb@plt>
xor    %edi,%edi
mov    $0x26a,%esi
call   1030 <outb@plt>
xor    %edi,%edi
mov    $0x26c,%esi
call   1030 <outb@plt>
xor    %edi,%edi
mov    $0x268,%esi
call   1030 <outb@plt>
mov    $0x26a,%edi
call   1040 <inb@plt>
mov    %eax,-0x4(%rbp)
mov    $0x26a,%edi
call   1040 <inb@plt>
mov    %eax,-0x8(%rbp)
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<iniciaTarjeta>:
push   %rax
xor    %edi,%edi
mov    $0x260,%esi
call   1030 <outb@plt>
xor    %edi,%edi
mov    $0x261,%esi
call   1030 <outb@plt>
xor    %edi,%edi
mov    $0x262,%esi
call   1030 <outb@plt>
xor    %edi,%edi
mov    $0x26f,%esi
call   1030 <outb@plt>
mov    $0x34,%edi
mov    $0x277,%esi
call   1030 <outb@plt>
mov    $0xa,%edi
mov    $0x274,%esi
call   1030 <outb@plt>
xor    %edi,%edi
mov    $0x274,%esi
call   1030 <outb@plt>
xor    %edi,%edi
mov    $0x26a,%esi
call   1030 <outb@plt>
xor    %edi,%edi
mov    $0x26c,%esi
call   1030 <outb@plt>
xor    %edi,%edi
mov    $0x268,%esi
call   1030 <outb@plt>
mov    $0x26a,%edi
call   1040 <inb@plt>
mov    $0x26a,%edi
pop    %rax
jmp    1040 <inb@plt>

LLVM IR (-O0):
define void @iniciaTarjeta() {
%1 = alloca i32
%2 = alloca i32
%3 = call i32 @outb(i32 0, i32 608)
%4 = call i32 @outb(i32 0, i32 609)
%5 = call i32 @outb(i32 0, i32 610)
%6 = call i32 @outb(i32 0, i32 623)
%7 = call i32 @outb(i32 52, i32 631)
%8 = call i32 @outb(i32 10, i32 628)
%9 = call i32 @outb(i32 0, i32 628)
%10 = call i32 @outb(i32 0, i32 618)
%11 = call i32 @outb(i32 0, i32 620)
%12 = call i32 @outb(i32 0, i32 616)
%13 = call i32 @inb(i32 618)
store i32 %13, i32* %1
%14 = call i32 @inb(i32 618)
store i32 %14, i32* %2
ret void
}

LLVM IR (-O2):
define void @iniciaTarjeta() {
%1 = tail call i32 @outb(i32 0, i32 608)
%2 = tail call i32 @outb(i32 0, i32 609)
%3 = tail call i32 @outb(i32 0, i32 610)
%4 = tail call i32 @outb(i32 0, i32 623)
%5 = tail call i32 @outb(i32 52, i32 631)
%6 = tail call i32 @outb(i32 10, i32 628)
%7 = tail call i32 @outb(i32 0, i32 628)
%8 = tail call i32 @outb(i32 0, i32 618)
%9 = tail call i32 @outb(i32 0, i32 620)
%10 = tail call i32 @outb(i32 0, i32 616)
%11 = tail call i32 @inb(i32 618)
%12 = tail call i32 @inb(i32 618)
ret void
}