int main() {
  monitor_clear();
  monitor_write("Inicializando la IDT\n");
  idt_install();
  monitor_write("Inicializando las ISR\n");
  isrs_install();
  monitor_write("Inicializando las IRQ\n");
  irq_install();
  asm volatile("sti");
  monitor_write("Inicializando el PIT\n");
  timer_install();
  monitor_clear();
  monitor_write("\t\b\b\t\t---------------------------------\n");
  monitor_write("\t\b\b\t\t\b|  W to Sweet                     |\n");
  monitor_write("\t\b\b\t\t---------------------------------\n");
  monitor_write("\n");
  monitor_write("\n");
  monitor_write("\n");
  timer_wait(320);
  monitor_clear();
  monitor_write("\t\b\b\t\t---------------------------------\n");
  monitor_write("\t\b\b\t\t\b|  We to Sweet                    |\n");
  monitor_write("\t\b\b\t\t---------------------------------\n");
  monitor_write("\n");
  monitor_write("\n");
  monitor_write("\n");
  timer_wait(320);
  monitor_clear();
  monitor_write("\t\b\b\t\t---------------------------------\n");
  monitor_write("\t\b\b\t\t\b|  Wel to Sweet                   |\n");
  monitor_write("\t\b\b\t\t---------------------------------\n");
  monitor_write("\n");
  monitor_write("\n");
  monitor_write("\n");
  timer_wait(320);
  monitor_clear();
  monitor_write("\t\b\b\t\t---------------------------------\n");
  monitor_write("\t\b\b\t\t\b|  Welc to Sweet                  |\n");
  monitor_write("\t\b\b\t\t---------------------------------\n");
  monitor_write("\n");
  monitor_write("\n");
  monitor_write("\n");
  timer_wait(320);
  monitor_clear();
  monitor_write("\t\b\b\t\t---------------------------------\n");
  monitor_write("\t\b\b\t\t\b|  Welco to Sweet                 |\n");
  monitor_write("\t\b\b\t\t---------------------------------\n");
  monitor_write("\n");
  monitor_write("\n");
  monitor_write("\n");
  timer_wait(320);
  monitor_clear();
  monitor_write("\t\b\b\t\t---------------------------------\n");
  monitor_write("\t\b\b\t\t\b|  Welcom to Sweet                |\n");
  monitor_write("\t\b\b\t\t---------------------------------\n");
  monitor_write("\n");
  monitor_write("\n");
  monitor_write("\n");
  timer_wait(320);
  monitor_clear();
  monitor_write("\t\b\b\t\t---------------------------------\n");
  monitor_write("\t\b\b\t\t\b|  Welcome to Sweet               |\n");
  monitor_write("\t\b\b\t\t---------------------------------\n");
  monitor_write("\n");
  monitor_write("\n");
  monitor_write("\n");
  monitor_clear();
  timer_wait(320);
  monitor_write("Inicializando el teclado\n");
  keyboard_install();
  monitor_clear();
  monitor_write("%s>>>", "user");
  speaker_set(10000);
  beep(2000, 2000);
  speaker_set(10000);
  beep(2000, 2000);
  speaker_set(10000);
  beep(2000, 2000);
  speaker_set(10000);
  beep(2000, 2000);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
mov    $0x0,%al
call   1040 <monitor_clear@plt>
lea    0xe43(%rip),%rdi
mov    $0x0,%al
call   10a0 <monitor_write@plt>
mov    $0x0,%al
call   1060 <idt_install@plt>
lea    0xe44(%rip),%rdi
mov    $0x0,%al
call   10a0 <monitor_write@plt>
mov    $0x0,%al
call   1080 <isrs_install@plt>
lea    0xe46(%rip),%rdi
mov    $0x0,%al
call   10a0 <monitor_write@plt>
mov    $0x0,%al
call   1050 <irq_install@plt>
sti
lea    0xe47(%rip),%rdi
mov    $0x0,%al
call   10a0 <monitor_write@plt>
mov    $0x0,%al
call   1030 <timer_install@plt>
mov    $0x0,%al
call   1040 <monitor_clear@plt>
lea    0xe41(%rip),%rdi
mov    $0x0,%al
call   10a0 <monitor_write@plt>
lea    0xe5b(%rip),%rdi
mov    $0x0,%al
call   10a0 <monitor_write@plt>
lea    0xe25(%rip),%rdi
mov    $0x0,%al
call   10a0 <monitor_write@plt>
lea    0xe3d(%rip),%rdi
mov    $0x0,%al
call   10a0 <monitor_write@plt>
lea    0xe2f(%rip),%rdi
mov    $0x0,%al
call   10a0 <monitor_write@plt>
lea    0xe21(%rip),%rdi
mov    $0x0,%al
call   10a0 <monitor_write@plt>
mov    $0x140,%edi
mov    $0x0,%al
call   10b0 <timer_wait@plt>
mov    $0x0,%al
call   1040 <monitor_clear@plt>
lea    0xdda(%rip),%rdi
mov    $0x0,%al
call   10a0 <monitor_write@plt>
lea    0xe1f(%rip),%rdi
mov    $0x0,%al
call   10a0 <monitor_write@plt>
lea    0xdbe(%rip),%rdi
mov    $0x0,%al
call   10a0 <monitor_write@plt>
lea    0xdd6(%rip),%rdi
mov    $0x0,%al
call   10a0 <monitor_write@plt>
lea    0xdc8(%rip),%rdi
mov    $0x0,%al
call   10a0 <monitor_write@plt>
lea    0xdba(%rip),%rdi
mov    $0x0,%al
call   10a0 <monitor_write@plt>
mov    $0x140,%edi
mov    $0x0,%al
call   10b0 <timer_wait@plt>
mov    $0x0,%al
call   1040 <monitor_clear@plt>
lea    0xd73(%rip),%rdi
mov    $0x0,%al
call   10a0 <monitor_write@plt>
lea    0xde3(%rip),%rdi
mov    $0x0,%al
call   10a0 <monitor_write@plt>
lea    0xd57(%rip),%rdi
mov    $0x0,%al
call   10a0 <monitor_write@plt>
lea    0xd6f(%rip),%rdi
mov    $0x0,%al
call   10a0 <monitor_write@plt>
lea    0xd61(%rip),%rdi
mov    $0x0,%al
call   10a0 <monitor_write@plt>
lea    0xd53(%rip),%rdi
mov    $0x0,%al
call   10a0 <monitor_write@plt>
mov    $0x140,%edi
mov    $0x0,%al
call   10b0 <timer_wait@plt>
mov    $0x0,%al
call   1040 <monitor_clear@plt>
lea    0xd0c(%rip),%rdi
mov    $0x0,%al
call   10a0 <monitor_write@plt>
lea    0xda7(%rip),%rdi
mov    $0x0,%al
call   10a0 <monitor_write@plt>
lea    0xcf0(%rip),%rdi
mov    $0x0,%al
call   10a0 <monitor_write@plt>
lea    0xd08(%rip),%rdi
mov    $0x0,%al
call   10a0 <monitor_write@plt>
lea    0xcfa(%rip),%rdi
mov    $0x0,%al
call   10a0 <monitor_write@plt>
lea    0xcec(%rip),%rdi
mov    $0x0,%al
call   10a0 <monitor_write@plt>
mov    $0x140,%edi
mov    $0x0,%al
call   10b0 <timer_wait@plt>
mov    $0x0,%al
call   1040 <monitor_clear@plt>
lea    0xca5(%rip),%rdi
mov    $0x0,%al
call   10a0 <monitor_write@plt>
lea    0xd6b(%rip),%rdi
mov    $0x0,%al
call   10a0 <monitor_write@plt>
lea    0xc89(%rip),%rdi
mov    $0x0,%al
call   10a0 <monitor_write@plt>
lea    0xca1(%rip),%rdi
mov    $0x0,%al
call   10a0 <monitor_write@plt>
lea    0xc93(%rip),%rdi
mov    $0x0,%al
call   10a0 <monitor_write@plt>
lea    0xc85(%rip),%rdi
mov    $0x0,%al
call   10a0 <monitor_write@plt>
mov    $0x140,%edi
mov    $0x0,%al
call   10b0 <timer_wait@plt>
mov    $0x0,%al
call   1040 <monitor_clear@plt>
lea    0xc3e(%rip),%rdi
mov    $0x0,%al
call   10a0 <monitor_write@plt>
lea    0xd2f(%rip),%rdi
mov    $0x0,%al
call   10a0 <monitor_write@plt>
lea    0xc22(%rip),%rdi
mov    $0x0,%al
call   10a0 <monitor_write@plt>
lea    0xc3a(%rip),%rdi
mov    $0x0,%al
call   10a0 <monitor_write@plt>
lea    0xc2c(%rip),%rdi
mov    $0x0,%al
call   10a0 <monitor_write@plt>
lea    0xc1e(%rip),%rdi
mov    $0x0,%al
call   10a0 <monitor_write@plt>
mov    $0x140,%edi
mov    $0x0,%al
call   10b0 <timer_wait@plt>
mov    $0x0,%al
call   1040 <monitor_clear@plt>
lea    0xbd7(%rip),%rdi
mov    $0x0,%al
call   10a0 <monitor_write@plt>
lea    0xcf3(%rip),%rdi
mov    $0x0,%al
call   10a0 <monitor_write@plt>
lea    0xbbb(%rip),%rdi
mov    $0x0,%al
call   10a0 <monitor_write@plt>
lea    0xbd3(%rip),%rdi
mov    $0x0,%al
call   10a0 <monitor_write@plt>
lea    0xbc5(%rip),%rdi
mov    $0x0,%al
call   10a0 <monitor_write@plt>
lea    0xbb7(%rip),%rdi
mov    $0x0,%al
call   10a0 <monitor_write@plt>
mov    $0x0,%al
call   1040 <monitor_clear@plt>
mov    $0x140,%edi
mov    $0x0,%al
call   10b0 <timer_wait@plt>
lea    0xcc5(%rip),%rdi
mov    $0x0,%al
call   10a0 <monitor_write@plt>
mov    $0x0,%al
call   10c0 <keyboard_install@plt>
mov    $0x0,%al
call   1040 <monitor_clear@plt>
lea    0xcc3(%rip),%rdi
lea    0xcc2(%rip),%rsi
mov    $0x0,%al
call   10a0 <monitor_write@plt>
mov    $0x2710,%edi
mov    $0x0,%al
call   1090 <speaker_set@plt>
mov    $0x7d0,%esi
mov    %esi,%edi
mov    $0x0,%al
call   1070 <beep@plt>
mov    $0x2710,%edi
mov    $0x0,%al
call   1090 <speaker_set@plt>
mov    $0x7d0,%esi
mov    %esi,%edi
mov    $0x0,%al
call   1070 <beep@plt>
mov    $0x2710,%edi
mov    $0x0,%al
call   1090 <speaker_set@plt>
mov    $0x7d0,%esi
mov    %esi,%edi
mov    $0x0,%al
call   1070 <beep@plt>
mov    $0x2710,%edi
mov    $0x0,%al
call   1090 <speaker_set@plt>
mov    $0x7d0,%esi
mov    %esi,%edi
mov    $0x0,%al
call   1070 <beep@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r14
push   %rbx
push   %rax
xor    %eax,%eax
call   1040 <monitor_clear@plt>
lea    0xe4e(%rip),%rdi
xor    %eax,%eax
call   10a0 <monitor_write@plt>
xor    %eax,%eax
call   1060 <idt_install@plt>
lea    0xe4f(%rip),%rdi
xor    %eax,%eax
call   10a0 <monitor_write@plt>
xor    %eax,%eax
call   1080 <isrs_install@plt>
lea    0xe51(%rip),%rdi
xor    %eax,%eax
call   10a0 <monitor_write@plt>
xor    %eax,%eax
call   1050 <irq_install@plt>
sti
lea    0xe52(%rip),%rdi
xor    %eax,%eax
call   10a0 <monitor_write@plt>
xor    %eax,%eax
call   1030 <timer_install@plt>
xor    %eax,%eax
call   1040 <monitor_clear@plt>
lea    0xe4c(%rip),%r14
mov    %r14,%rdi
xor    %eax,%eax
call   10a0 <monitor_write@plt>
lea    0xe63(%rip),%rdi
xor    %eax,%eax
call   10a0 <monitor_write@plt>
mov    %r14,%rdi
xor    %eax,%eax
call   10a0 <monitor_write@plt>
lea    0xe49(%rip),%rbx
mov    %rbx,%rdi
xor    %eax,%eax
call   10a0 <monitor_write@plt>
mov    %rbx,%rdi
xor    %eax,%eax
call   10a0 <monitor_write@plt>
mov    %rbx,%rdi
xor    %eax,%eax
call   10a0 <monitor_write@plt>
mov    $0x140,%edi
xor    %eax,%eax
call   10b0 <timer_wait@plt>
xor    %eax,%eax
call   1040 <monitor_clear@plt>
mov    %r14,%rdi
xor    %eax,%eax
call   10a0 <monitor_write@plt>
lea    0xe34(%rip),%rdi
xor    %eax,%eax
call   10a0 <monitor_write@plt>
mov    %r14,%rdi
xor    %eax,%eax
call   10a0 <monitor_write@plt>
mov    %rbx,%rdi
xor    %eax,%eax
call   10a0 <monitor_write@plt>
mov    %rbx,%rdi
xor    %eax,%eax
call   10a0 <monitor_write@plt>
mov    %rbx,%rdi
xor    %eax,%eax
call   10a0 <monitor_write@plt>
mov    $0x140,%edi
xor    %eax,%eax
call   10b0 <timer_wait@plt>
xor    %eax,%eax
call   1040 <monitor_clear@plt>
mov    %r14,%rdi
xor    %eax,%eax
call   10a0 <monitor_write@plt>
lea    0xe0c(%rip),%rdi
xor    %eax,%eax
call   10a0 <monitor_write@plt>
mov    %r14,%rdi
xor    %eax,%eax
call   10a0 <monitor_write@plt>
mov    %rbx,%rdi
xor    %eax,%eax
call   10a0 <monitor_write@plt>
mov    %rbx,%rdi
xor    %eax,%eax
call   10a0 <monitor_write@plt>
mov    %rbx,%rdi
xor    %eax,%eax
call   10a0 <monitor_write@plt>
mov    $0x140,%edi
xor    %eax,%eax
call   10b0 <timer_wait@plt>
xor    %eax,%eax
call   1040 <monitor_clear@plt>
mov    %r14,%rdi
xor    %eax,%eax
call   10a0 <monitor_write@plt>
lea    0xde4(%rip),%rdi
xor    %eax,%eax
call   10a0 <monitor_write@plt>
mov    %r14,%rdi
xor    %eax,%eax
call   10a0 <monitor_write@plt>
mov    %rbx,%rdi
xor    %eax,%eax
call   10a0 <monitor_write@plt>
mov    %rbx,%rdi
xor    %eax,%eax
call   10a0 <monitor_write@plt>
mov    %rbx,%rdi
xor    %eax,%eax
call   10a0 <monitor_write@plt>
mov    $0x140,%edi
xor    %eax,%eax
call   10b0 <timer_wait@plt>
xor    %eax,%eax
call   1040 <monitor_clear@plt>
mov    %r14,%rdi
xor    %eax,%eax
call   10a0 <monitor_write@plt>
lea    0xdbc(%rip),%rdi
xor    %eax,%eax
call   10a0 <monitor_write@plt>
mov    %r14,%rdi
xor    %eax,%eax
call   10a0 <monitor_write@plt>
mov    %rbx,%rdi
xor    %eax,%eax
call   10a0 <monitor_write@plt>
mov    %rbx,%rdi
xor    %eax,%eax
call   10a0 <monitor_write@plt>
mov    %rbx,%rdi
xor    %eax,%eax
call   10a0 <monitor_write@plt>
mov    $0x140,%edi
xor    %eax,%eax
call   10b0 <timer_wait@plt>
xor    %eax,%eax
call   1040 <monitor_clear@plt>
mov    %r14,%rdi
xor    %eax,%eax
call   10a0 <monitor_write@plt>
lea    0xd94(%rip),%rdi
xor    %eax,%eax
call   10a0 <monitor_write@plt>
mov    %r14,%rdi
xor    %eax,%eax
call   10a0 <monitor_write@plt>
mov    %rbx,%rdi
xor    %eax,%eax
call   10a0 <monitor_write@plt>
mov    %rbx,%rdi
xor    %eax,%eax
call   10a0 <monitor_write@plt>
mov    %rbx,%rdi
xor    %eax,%eax
call   10a0 <monitor_write@plt>
mov    $0x140,%edi
xor    %eax,%eax
call   10b0 <timer_wait@plt>
xor    %eax,%eax
call   1040 <monitor_clear@plt>
mov    %r14,%rdi
xor    %eax,%eax
call   10a0 <monitor_write@plt>
lea    0xd6c(%rip),%rdi
xor    %eax,%eax
call   10a0 <monitor_write@plt>
mov    %r14,%rdi
xor    %eax,%eax
call   10a0 <monitor_write@plt>
mov    %rbx,%rdi
xor    %eax,%eax
call   10a0 <monitor_write@plt>
mov    %rbx,%rdi
xor    %eax,%eax
call   10a0 <monitor_write@plt>
mov    %rbx,%rdi
xor    %eax,%eax
call   10a0 <monitor_write@plt>
xor    %eax,%eax
call   1040 <monitor_clear@plt>
mov    $0x140,%edi
xor    %eax,%eax
call   10b0 <timer_wait@plt>
lea    0xd4e(%rip),%rdi
xor    %eax,%eax
call   10a0 <monitor_write@plt>
xor    %eax,%eax
call   10c0 <keyboard_install@plt>
xor    %eax,%eax
call   1040 <monitor_clear@plt>
lea    0xd4c(%rip),%rdi
lea    0xd4b(%rip),%rsi
xor    %eax,%eax
call   10a0 <monitor_write@plt>
mov    $0x2710,%edi
xor    %eax,%eax
call   1090 <speaker_set@plt>
mov    $0x7d0,%edi
mov    $0x7d0,%esi
xor    %eax,%eax
call   1070 <beep@plt>
mov    $0x2710,%edi
xor    %eax,%eax
call   1090 <speaker_set@plt>
mov    $0x7d0,%edi
mov    $0x7d0,%esi
xor    %eax,%eax
call   1070 <beep@plt>
mov    $0x2710,%edi
xor    %eax,%eax
call   1090 <speaker_set@plt>
mov    $0x7d0,%edi
mov    $0x7d0,%esi
xor    %eax,%eax
call   1070 <beep@plt>
mov    $0x2710,%edi
xor    %eax,%eax
call   1090 <speaker_set@plt>
mov    $0x7d0,%edi
mov    $0x7d0,%esi
xor    %eax,%eax
call   1070 <beep@plt>
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r14
ret

LLVM IR (-O0):
@.str = [22 x i8] c"Inicializando la IDT\0A\00"
@.str.1 = [23 x i8] c"Inicializando las ISR\0A\00"
@.str.2 = [23 x i8] c"Inicializando las IRQ\0A\00"
@.str.3 = [22 x i8] c"Inicializando el PIT\0A\00"
@.str.4 = [40 x i8] c"\09\08\08\09\09---------------------------------\0A\00"
@.str.5 = [43 x i8] c"\09\08\08\09\09\08| W to Sweet |\0A\00"
@.str.6 = [2 x i8] c"\0A\00"
@.str.7 = [43 x i8] c"\09\08\08\09\09\08| We to Sweet |\0A\00"
@.str.8 = [43 x i8] c"\09\08\08\09\09\08| Wel to Sweet |\0A\00"
@.str.9 = [43 x i8] c"\09\08\08\09\09\08| Welc to Sweet |\0A\00"
@.str.10 = [43 x i8] c"\09\08\08\09\09\08| Welco to Sweet |\0A\00"
@.str.11 = [43 x i8] c"\09\08\08\09\09\08| Welcom to Sweet |\0A\00"
@.str.12 = [43 x i8] c"\09\08\08\09\09\08| Welcome to Sweet |\0A\00"
@.str.13 = [26 x i8] c"Inicializando el teclado\0A\00"
@.str.14 = [6 x i8] c"%s>>>\00"
@.str.15 = [5 x i8] c"user\00"
define i32 @main() {
%1 = alloca i32
store i32 0, i32* %1
%2 = call i32 (...) @monitor_clear()
%3 = call i32 (i8*, ...) bitcast (i32 (...)* @monitor_write to i32 (i8*, ...)*)(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str, i64 0, i64 0))
%4 = call i32 (...) @idt_install()
%5 = call i32 (i8*, ...) bitcast (i32 (...)* @monitor_write to i32 (i8*, ...)*)(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.1, i64 0, i64 0))
%6 = call i32 (...) @isrs_install()
%7 = call i32 (i8*, ...) bitcast (i32 (...)* @monitor_write to i32 (i8*, ...)*)(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.2, i64 0, i64 0))
%8 = call i32 (...) @irq_install()
%9 = call i32 (i8*, ...) bitcast (i32 (...)* @monitor_write to i32 (i8*, ...)*)(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.3, i64 0, i64 0))
%10 = call i32 (...) @timer_install()
%11 = call i32 (...) @monitor_clear()
%12 = call i32 (i8*, ...) bitcast (i32 (...)* @monitor_write to i32 (i8*, ...)*)(i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.4, i64 0, i64 0))
%13 = call i32 (i8*, ...) bitcast (i32 (...)* @monitor_write to i32 (i8*, ...)*)(i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str.5, i64 0, i64 0))
%14 = call i32 (i8*, ...) bitcast (i32 (...)* @monitor_write to i32 (i8*, ...)*)(i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.4, i64 0, i64 0))
%15 = call i32 (i8*, ...) bitcast (i32 (...)* @monitor_write to i32 (i8*, ...)*)(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.6, i64 0, i64 0))
%16 = call i32 (i8*, ...) bitcast (i32 (...)* @monitor_write to i32 (i8*, ...)*)(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.6, i64 0, i64 0))
%17 = call i32 (i8*, ...) bitcast (i32 (...)* @monitor_write to i32 (i8*, ...)*)(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.6, i64 0, i64 0))
%18 = call i32 (i32, ...) bitcast (i32 (...)* @timer_wait to i32 (i32, ...)*)(i32 320)
%19 = call i32 (...) @monitor_clear()
%20 = call i32 (i8*, ...) bitcast (i32 (...)* @monitor_write to i32 (i8*, ...)*)(i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.4, i64 0, i64 0))
%21 = call i32 (i8*, ...) bitcast (i32 (...)* @monitor_write to i32 (i8*, ...)*)(i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str.7, i64 0, i64 0))
%22 = call i32 (i8*, ...) bitcast (i32 (...)* @monitor_write to i32 (i8*, ...)*)(i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.4, i64 0, i64 0))
%23 = call i32 (i8*, ...) bitcast (i32 (...)* @monitor_write to i32 (i8*, ...)*)(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.6, i64 0, i64 0))
%24 = call i32 (i8*, ...) bitcast (i32 (...)* @monitor_write to i32 (i8*, ...)*)(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.6, i64 0, i64 0))
%25 = call i32 (i8*, ...) bitcast (i32 (...)* @monitor_write to i32 (i8*, ...)*)(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.6, i64 0, i64 0))
%26 = call i32 (i32, ...) bitcast (i32 (...)* @timer_wait to i32 (i32, ...)*)(i32 320)
%27 = call i32 (...) @monitor_clear()
%28 = call i32 (i8*, ...) bitcast (i32 (...)* @monitor_write to i32 (i8*, ...)*)(i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.4, i64 0, i64 0))
%29 = call i32 (i8*, ...) bitcast (i32 (...)* @monitor_write to i32 (i8*, ...)*)(i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str.8, i64 0, i64 0))
%30 = call i32 (i8*, ...) bitcast (i32 (...)* @monitor_write to i32 (i8*, ...)*)(i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.4, i64 0, i64 0))
%31 = call i32 (i8*, ...) bitcast (i32 (...)* @monitor_write to i32 (i8*, ...)*)(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.6, i64 0, i64 0))
%32 = call i32 (i8*, ...) bitcast (i32 (...)* @monitor_write to i32 (i8*, ...)*)(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.6, i64 0, i64 0))
%33 = call i32 (i8*, ...) bitcast (i32 (...)* @monitor_write to i32 (i8*, ...)*)(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.6, i64 0, i64 0))
%34 = call i32 (i32, ...) bitcast (i32 (...)* @timer_wait to i32 (i32, ...)*)(i32 320)
%35 = call i32 (...) @monitor_clear()
%36 = call i32 (i8*, ...) bitcast (i32 (...)* @monitor_write to i32 (i8*, ...)*)(i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.4, i64 0, i64 0))
%37 = call i32 (i8*, ...) bitcast (i32 (...)* @monitor_write to i32 (i8*, ...)*)(i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str.9, i64 0, i64 0))
%38 = call i32 (i8*, ...) bitcast (i32 (...)* @monitor_write to i32 (i8*, ...)*)(i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.4, i64 0, i64 0))
%39 = call i32 (i8*, ...) bitcast (i32 (...)* @monitor_write to i32 (i8*, ...)*)(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.6, i64 0, i64 0))
%40 = call i32 (i8*, ...) bitcast (i32 (...)* @monitor_write to i32 (i8*, ...)*)(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.6, i64 0, i64 0))
%41 = call i32 (i8*, ...) bitcast (i32 (...)* @monitor_write to i32 (i8*, ...)*)(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.6, i64 0, i64 0))
%42 = call i32 (i32, ...) bitcast (i32 (...)* @timer_wait to i32 (i32, ...)*)(i32 320)
%43 = call i32 (...) @monitor_clear()
%44 = call i32 (i8*, ...) bitcast (i32 (...)* @monitor_write to i32 (i8*, ...)*)(i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.4, i64 0, i64 0))
%45 = call i32 (i8*, ...) bitcast (i32 (...)* @monitor_write to i32 (i8*, ...)*)(i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str.10, i64 0, i64 0))
%46 = call i32 (i8*, ...) bitcast (i32 (...)* @monitor_write to i32 (i8*, ...)*)(i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.4, i64 0, i64 0))
%47 = call i32 (i8*, ...) bitcast (i32 (...)* @monitor_write to i32 (i8*, ...)*)(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.6, i64 0, i64 0))
%48 = call i32 (i8*, ...) bitcast (i32 (...)* @monitor_write to i32 (i8*, ...)*)(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.6, i64 0, i64 0))
%49 = call i32 (i8*, ...) bitcast (i32 (...)* @monitor_write to i32 (i8*, ...)*)(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.6, i64 0, i64 0))
%50 = call i32 (i32, ...) bitcast (i32 (...)* @timer_wait to i32 (i32, ...)*)(i32 320)
%51 = call i32 (...) @monitor_clear()
%52 = call i32 (i8*, ...) bitcast (i32 (...)* @monitor_write to i32 (i8*, ...)*)(i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.4, i64 0, i64 0))
%53 = call i32 (i8*, ...) bitcast (i32 (...)* @monitor_write to i32 (i8*, ...)*)(i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str.11, i64 0, i64 0))
%54 = call i32 (i8*, ...) bitcast (i32 (...)* @monitor_write to i32 (i8*, ...)*)(i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.4, i64 0, i64 0))
%55 = call i32 (i8*, ...) bitcast (i32 (...)* @monitor_write to i32 (i8*, ...)*)(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.6, i64 0, i64 0))
%56 = call i32 (i8*, ...) bitcast (i32 (...)* @monitor_write to i32 (i8*, ...)*)(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.6, i64 0, i64 0))
%57 = call i32 (i8*, ...) bitcast (i32 (...)* @monitor_write to i32 (i8*, ...)*)(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.6, i64 0, i64 0))
%58 = call i32 (i32, ...) bitcast (i32 (...)* @timer_wait to i32 (i32, ...)*)(i32 320)
%59 = call i32 (...) @monitor_clear()
%60 = call i32 (i8*, ...) bitcast (i32 (...)* @monitor_write to i32 (i8*, ...)*)(i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.4, i64 0, i64 0))
%61 = call i32 (i8*, ...) bitcast (i32 (...)* @monitor_write to i32 (i8*, ...)*)(i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str.12, i64 0, i64 0))
%62 = call i32 (i8*, ...) bitcast (i32 (...)* @monitor_write to i32 (i8*, ...)*)(i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.4, i64 0, i64 0))
%63 = call i32 (i8*, ...) bitcast (i32 (...)* @monitor_write to i32 (i8*, ...)*)(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.6, i64 0, i64 0))
%64 = call i32 (i8*, ...) bitcast (i32 (...)* @monitor_write to i32 (i8*, ...)*)(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.6, i64 0, i64 0))
%65 = call i32 (i8*, ...) bitcast (i32 (...)* @monitor_write to i32 (i8*, ...)*)(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.6, i64 0, i64 0))
%66 = call i32 (...) @monitor_clear()
%67 = call i32 (i32, ...) bitcast (i32 (...)* @timer_wait to i32 (i32, ...)*)(i32 320)
%68 = call i32 (i8*, ...) bitcast (i32 (...)* @monitor_write to i32 (i8*, ...)*)(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.13, i64 0, i64 0))
%69 = call i32 (...) @keyboard_install()
%70 = call i32 (...) @monitor_clear()
%71 = call i32 (i8*, i8*, ...) bitcast (i32 (...)* @monitor_write to i32 (i8*, i8*, ...)*)(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.14, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.15, i64 0, i64 0))
%72 = call i32 (i32, ...) bitcast (i32 (...)* @speaker_set to i32 (i32, ...)*)(i32 10000)
%73 = call i32 (i32, i32, ...) bitcast (i32 (...)* @beep to i32 (i32, i32, ...)*)(i32 2000, i32 2000)
%74 = call i32 (i32, ...) bitcast (i32 (...)* @speaker_set to i32 (i32, ...)*)(i32 10000)
%75 = call i32 (i32, i32, ...) bitcast (i32 (...)* @beep to i32 (i32, i32, ...)*)(i32 2000, i32 2000)
%76 = call i32 (i32, ...) bitcast (i32 (...)* @speaker_set to i32 (i32, ...)*)(i32 10000)
%77 = call i32 (i32, i32, ...) bitcast (i32 (...)* @beep to i32 (i32, i32, ...)*)(i32 2000, i32 2000)
%78 = call i32 (i32, ...) bitcast (i32 (...)* @speaker_set to i32 (i32, ...)*)(i32 10000)
%79 = call i32 (i32, i32, ...) bitcast (i32 (...)* @beep to i32 (i32, i32, ...)*)(i32 2000, i32 2000)
ret i32 0
}

LLVM IR (-O2):
@.str = [22 x i8] c"Inicializando la IDT\0A\00"
@.str.1 = [23 x i8] c"Inicializando las ISR\0A\00"
@.str.2 = [23 x i8] c"Inicializando las IRQ\0A\00"
@.str.3 = [22 x i8] c"Inicializando el PIT\0A\00"
@.str.4 = [40 x i8] c"\09\08\08\09\09---------------------------------\0A\00"
@.str.5 = [43 x i8] c"\09\08\08\09\09\08| W to Sweet |\0A\00"
@.str.6 = [2 x i8] c"\0A\00"
@.str.7 = [43 x i8] c"\09\08\08\09\09\08| We to Sweet |\0A\00"
@.str.8 = [43 x i8] c"\09\08\08\09\09\08| Wel to Sweet |\0A\00"
@.str.9 = [43 x i8] c"\09\08\08\09\09\08| Welc to Sweet |\0A\00"
@.str.10 = [43 x i8] c"\09\08\08\09\09\08| Welco to Sweet |\0A\00"
@.str.11 = [43 x i8] c"\09\08\08\09\09\08| Welcom to Sweet |\0A\00"
@.str.12 = [43 x i8] c"\09\08\08\09\09\08| Welcome to Sweet |\0A\00"
@.str.13 = [26 x i8] c"Inicializando el teclado\0A\00"
@.str.14 = [6 x i8] c"%s>>>\00"
@.str.15 = [5 x i8] c"user\00"
define i32 @main() {
%1 = tail call i32 (...) @monitor_clear()
%2 = tail call i32 (i8*, ...) bitcast (i32 (...)* @monitor_write to i32 (i8*, ...)*)(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str, i64 0, i64 0))
%3 = tail call i32 (...) @idt_install()
%4 = tail call i32 (i8*, ...) bitcast (i32 (...)* @monitor_write to i32 (i8*, ...)*)(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.1, i64 0, i64 0))
%5 = tail call i32 (...) @isrs_install()
%6 = tail call i32 (i8*, ...) bitcast (i32 (...)* @monitor_write to i32 (i8*, ...)*)(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.2, i64 0, i64 0))
%7 = tail call i32 (...) @irq_install()
tail call void asm sideeffect "sti", "~{dirflag},~{fpsr},~{flags}"()
%8 = tail call i32 (i8*, ...) bitcast (i32 (...)* @monitor_write to i32 (i8*, ...)*)(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.3, i64 0, i64 0))
%9 = tail call i32 (...) @timer_install()
%10 = tail call i32 (...) @monitor_clear()
%11 = tail call i32 (i8*, ...) bitcast (i32 (...)* @monitor_write to i32 (i8*, ...)*)(i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.4, i64 0, i64 0))
%12 = tail call i32 (i8*, ...) bitcast (i32 (...)* @monitor_write to i32 (i8*, ...)*)(i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str.5, i64 0, i64 0))
%13 = tail call i32 (i8*, ...) bitcast (i32 (...)* @monitor_write to i32 (i8*, ...)*)(i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.4, i64 0, i64 0))
%14 = tail call i32 (i8*, ...) bitcast (i32 (...)* @monitor_write to i32 (i8*, ...)*)(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.6, i64 0, i64 0))
%15 = tail call i32 (i8*, ...) bitcast (i32 (...)* @monitor_write to i32 (i8*, ...)*)(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.6, i64 0, i64 0))
%16 = tail call i32 (i8*, ...) bitcast (i32 (...)* @monitor_write to i32 (i8*, ...)*)(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.6, i64 0, i64 0))
%17 = tail call i32 (i32, ...) bitcast (i32 (...)* @timer_wait to i32 (i32, ...)*)(i32 320)
%18 = tail call i32 (...) @monitor_clear()
%19 = tail call i32 (i8*, ...) bitcast (i32 (...)* @monitor_write to i32 (i8*, ...)*)(i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.4, i64 0, i64 0))
%20 = tail call i32 (i8*, ...) bitcast (i32 (...)* @monitor_write to i32 (i8*, ...)*)(i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str.7, i64 0, i64 0))
%21 = tail call i32 (i8*, ...) bitcast (i32 (...)* @monitor_write to i32 (i8*, ...)*)(i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.4, i64 0, i64 0))
%22 = tail call i32 (i8*, ...) bitcast (i32 (...)* @monitor_write to i32 (i8*, ...)*)(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.6, i64 0, i64 0))
%23 = tail call i32 (i8*, ...) bitcast (i32 (...)* @monitor_write to i32 (i8*, ...)*)(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.6, i64 0, i64 0))
%24 = tail call i32 (i8*, ...) bitcast (i32 (...)* @monitor_write to i32 (i8*, ...)*)(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.6, i64 0, i64 0))
%25 = tail call i32 (i32, ...) bitcast (i32 (...)* @timer_wait to i32 (i32, ...)*)(i32 320)
%26 = tail call i32 (...) @monitor_clear()
%27 = tail call i32 (i8*, ...) bitcast (i32 (...)* @monitor_write to i32 (i8*, ...)*)(i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.4, i64 0, i64 0))
%28 = tail call i32 (i8*, ...) bitcast (i32 (...)* @monitor_write to i32 (i8*, ...)*)(i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str.8, i64 0, i64 0))
%29 = tail call i32 (i8*, ...) bitcast (i32 (...)* @monitor_write to i32 (i8*, ...)*)(i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.4, i64 0, i64 0))
%30 = tail call i32 (i8*, ...) bitcast (i32 (...)* @monitor_write to i32 (i8*, ...)*)(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.6, i64 0, i64 0))
%31 = tail call i32 (i8*, ...) bitcast (i32 (...)* @monitor_write to i32 (i8*, ...)*)(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.6, i64 0, i64 0))
%32 = tail call i32 (i8*, ...) bitcast (i32 (...)* @monitor_write to i32 (i8*, ...)*)(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.6, i64 0, i64 0))
%33 = tail call i32 (i32, ...) bitcast (i32 (...)* @timer_wait to i32 (i32, ...)*)(i32 320)
%34 = tail call i32 (...) @monitor_clear()
%35 = tail call i32 (i8*, ...) bitcast (i32 (...)* @monitor_write to i32 (i8*, ...)*)(i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.4, i64 0, i64 0))
%36 = tail call i32 (i8*, ...) bitcast (i32 (...)* @monitor_write to i32 (i8*, ...)*)(i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str.9, i64 0, i64 0))
%37 = tail call i32 (i8*, ...) bitcast (i32 (...)* @monitor_write to i32 (i8*, ...)*)(i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.4, i64 0, i64 0))
%38 = tail call i32 (i8*, ...) bitcast (i32 (...)* @monitor_write to i32 (i8*, ...)*)(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.6, i64 0, i64 0))
%39 = tail call i32 (i8*, ...) bitcast (i32 (...)* @monitor_write to i32 (i8*, ...)*)(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.6, i64 0, i64 0))
%40 = tail call i32 (i8*, ...) bitcast (i32 (...)* @monitor_write to i32 (i8*, ...)*)(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.6, i64 0, i64 0))
%41 = tail call i32 (i32, ...) bitcast (i32 (...)* @timer_wait to i32 (i32, ...)*)(i32 320)
%42 = tail call i32 (...) @monitor_clear()
%43 = tail call i32 (i8*, ...) bitcast (i32 (...)* @monitor_write to i32 (i8*, ...)*)(i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.4, i64 0, i64 0))
%44 = tail call i32 (i8*, ...) bitcast (i32 (...)* @monitor_write to i32 (i8*, ...)*)(i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str.10, i64 0, i64 0))
%45 = tail call i32 (i8*, ...) bitcast (i32 (...)* @monitor_write to i32 (i8*, ...)*)(i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.4, i64 0, i64 0))
%46 = tail call i32 (i8*, ...) bitcast (i32 (...)* @monitor_write to i32 (i8*, ...)*)(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.6, i64 0, i64 0))
%47 = tail call i32 (i8*, ...) bitcast (i32 (...)* @monitor_write to i32 (i8*, ...)*)(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.6, i64 0, i64 0))
%48 = tail call i32 (i8*, ...) bitcast (i32 (...)* @monitor_write to i32 (i8*, ...)*)(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.6, i64 0, i64 0))
%49 = tail call i32 (i32, ...) bitcast (i32 (...)* @timer_wait to i32 (i32, ...)*)(i32 320)
%50 = tail call i32 (...) @monitor_clear()
%51 = tail call i32 (i8*, ...) bitcast (i32 (...)* @monitor_write to i32 (i8*, ...)*)(i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.4, i64 0, i64 0))
%52 = tail call i32 (i8*, ...) bitcast (i32 (...)* @monitor_write to i32 (i8*, ...)*)(i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str.11, i64 0, i64 0))
%53 = tail call i32 (i8*, ...) bitcast (i32 (...)* @monitor_write to i32 (i8*, ...)*)(i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.4, i64 0, i64 0))
%54 = tail call i32 (i8*, ...) bitcast (i32 (...)* @monitor_write to i32 (i8*, ...)*)(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.6, i64 0, i64 0))
%55 = tail call i32 (i8*, ...) bitcast (i32 (...)* @monitor_write to i32 (i8*, ...)*)(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.6, i64 0, i64 0))
%56 = tail call i32 (i8*, ...) bitcast (i32 (...)* @monitor_write to i32 (i8*, ...)*)(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.6, i64 0, i64 0))
%57 = tail call i32 (i32, ...) bitcast (i32 (...)* @timer_wait to i32 (i32, ...)*)(i32 320)
%58 = tail call i32 (...) @monitor_clear()
%59 = tail call i32 (i8*, ...) bitcast (i32 (...)* @monitor_write to i32 (i8*, ...)*)(i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.4, i64 0, i64 0))
%60 = tail call i32 (i8*, ...) bitcast (i32 (...)* @monitor_write to i32 (i8*, ...)*)(i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str.12, i64 0, i64 0))
%61 = tail call i32 (i8*, ...) bitcast (i32 (...)* @monitor_write to i32 (i8*, ...)*)(i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.4, i64 0, i64 0))
%62 = tail call i32 (i8*, ...) bitcast (i32 (...)* @monitor_write to i32 (i8*, ...)*)(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.6, i64 0, i64 0))
%63 = tail call i32 (i8*, ...) bitcast (i32 (...)* @monitor_write to i32 (i8*, ...)*)(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.6, i64 0, i64 0))
%64 = tail call i32 (i8*, ...) bitcast (i32 (...)* @monitor_write to i32 (i8*, ...)*)(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.6, i64 0, i64 0))
%65 = tail call i32 (...) @monitor_clear()
%66 = tail call i32 (i32, ...) bitcast (i32 (...)* @timer_wait to i32 (i32, ...)*)(i32 320)
%67 = tail call i32 (i8*, ...) bitcast (i32 (...)* @monitor_write to i32 (i8*, ...)*)(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.13, i64 0, i64 0))
%68 = tail call i32 (...) @keyboard_install()
%69 = tail call i32 (...) @monitor_clear()
%70 = tail call i32 (i8*, i8*, ...) bitcast (i32 (...)* @monitor_write to i32 (i8*, i8*, ...)*)(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.14, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.15, i64 0, i64 0))
%71 = tail call i32 (i32, ...) bitcast (i32 (...)* @speaker_set to i32 (i32, ...)*)(i32 10000)
%72 = tail call i32 (i32, i32, ...) bitcast (i32 (...)* @beep to i32 (i32, i32, ...)*)(i32 2000, i32 2000)
%73 = tail call i32 (i32, ...) bitcast (i32 (...)* @speaker_set to i32 (i32, ...)*)(i32 10000)
%74 = tail call i32 (i32, i32, ...) bitcast (i32 (...)* @beep to i32 (i32, i32, ...)*)(i32 2000, i32 2000)
%75 = tail call i32 (i32, ...) bitcast (i32 (...)* @speaker_set to i32 (i32, ...)*)(i32 10000)
%76 = tail call i32 (i32, i32, ...) bitcast (i32 (...)* @beep to i32 (i32, i32, ...)*)(i32 2000, i32 2000)
%77 = tail call i32 (i32, ...) bitcast (i32 (...)* @speaker_set to i32 (i32, ...)*)(i32 10000)
%78 = tail call i32 (i32, i32, ...) bitcast (i32 (...)* @beep to i32 (i32, i32, ...)*)(i32 2000, i32 2000)
ret i32 0
}