#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*/ ckTerminalPrintStringF(char *);
int /*<<< orphan*/ ckTerminalPutCharEntryAt(char, int, int);
int /*<<< orphan*/ delay(int);
int /*<<< orphan*/ gotoxy(int, int);
void LoadingStage(void) {
  int i;
  for (i = 0; i < 45; i++) {
    ckTerminalPutCharEntryAt(('-'), (10 + i), (5));
    delay(10);
  }
  for (i = 0; i < 45; i++) {
    ckTerminalPutCharEntryAt(('-'), (70 - i), (11));
    delay(10);
  }
  delay(800);
  gotoxy(35, 7);
  ckTerminalPrintStringF("So");
  delay(600);
  gotoxy(38, 7);
  ckTerminalPrintStringF("ko");
  delay(600);
  gotoxy(41, 7);
  ckTerminalPrintStringF("ban");
  delay(600);
  ckTerminalPutCharEntryAt(('M'), (48), (8));
  delay(40);
  ckTerminalPutCharEntryAt(('a'), (49), (8));
  delay(40);
  ckTerminalPutCharEntryAt(('d'), (50), (8));
  delay(40);
  ckTerminalPutCharEntryAt(('e'), (51), (8));
  delay(40);
  ckTerminalPutCharEntryAt(('b'), (53), (8));
  delay(40);
  ckTerminalPutCharEntryAt(('y'), (54), (8));
  delay(40);
  gotoxy(56, 8);
  ckTerminalPrintStringF("Skout");
  delay(200);
  gotoxy(37, 9);
  ckTerminalPrintStringF("Ported & Modified by ikh");
  delay(2500);
}


x86 assembly (clang, -O0):
<LoadingStage>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
cmpl   $0x2d,-0x4(%rbp)
jge    1186 <LoadingStage+0x46>
mov    -0x4(%rbp),%esi
add    $0xa,%esi
mov    $0x2d,%edi
mov    $0x5,%edx
call   1050 <ckTerminalPutCharEntryAt@plt>
mov    $0xa,%edi
call   1040 <delay@plt>
mov    -0x4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x4(%rbp)
jmp    114f <LoadingStage+0xf>
movl   $0x0,-0x4(%rbp)
cmpl   $0x2d,-0x4(%rbp)
jge    11c6 <LoadingStage+0x86>
mov    $0x46,%esi
sub    -0x4(%rbp),%esi
mov    $0x2d,%edi
mov    $0xb,%edx
call   1050 <ckTerminalPutCharEntryAt@plt>
mov    $0xa,%edi
call   1040 <delay@plt>
mov    -0x4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x4(%rbp)
jmp    118d <LoadingStage+0x4d>
mov    $0x320,%edi
call   1040 <delay@plt>
mov    $0x23,%edi
mov    $0x7,%esi
call   1060 <gotoxy@plt>
lea    0xe1a(%rip),%rdi
call   1030 <ckTerminalPrintStringF@plt>
mov    $0x258,%edi
call   1040 <delay@plt>
mov    $0x26,%edi
mov    $0x7,%esi
call   1060 <gotoxy@plt>
lea    0xdf8(%rip),%rdi
call   1030 <ckTerminalPrintStringF@plt>
mov    $0x258,%edi
call   1040 <delay@plt>
mov    $0x29,%edi
mov    $0x7,%esi
call   1060 <gotoxy@plt>
lea    0xdd6(%rip),%rdi
call   1030 <ckTerminalPrintStringF@plt>
mov    $0x258,%edi
call   1040 <delay@plt>
mov    $0x4d,%edi
mov    $0x30,%esi
mov    $0x8,%edx
call   1050 <ckTerminalPutCharEntryAt@plt>
mov    $0x28,%edi
call   1040 <delay@plt>
mov    $0x61,%edi
mov    $0x31,%esi
mov    $0x8,%edx
call   1050 <ckTerminalPutCharEntryAt@plt>
mov    $0x28,%edi
call   1040 <delay@plt>
mov    $0x64,%edi
mov    $0x32,%esi
mov    $0x8,%edx
call   1050 <ckTerminalPutCharEntryAt@plt>
mov    $0x28,%edi
call   1040 <delay@plt>
mov    $0x65,%edi
mov    $0x33,%esi
mov    $0x8,%edx
call   1050 <ckTerminalPutCharEntryAt@plt>
mov    $0x28,%edi
call   1040 <delay@plt>
mov    $0x62,%edi
mov    $0x35,%esi
mov    $0x8,%edx
call   1050 <ckTerminalPutCharEntryAt@plt>
mov    $0x28,%edi
call   1040 <delay@plt>
mov    $0x79,%edi
mov    $0x36,%esi
mov    $0x8,%edx
call   1050 <ckTerminalPutCharEntryAt@plt>
mov    $0x28,%edi
call   1040 <delay@plt>
mov    $0x38,%edi
mov    $0x8,%esi
call   1060 <gotoxy@plt>
lea    0xd01(%rip),%rdi
call   1030 <ckTerminalPrintStringF@plt>
mov    $0xc8,%edi
call   1040 <delay@plt>
mov    $0x25,%edi
mov    $0x9,%esi
call   1060 <gotoxy@plt>
lea    0xce2(%rip),%rdi
call   1030 <ckTerminalPrintStringF@plt>
mov    $0x9c4,%edi
call   1040 <delay@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<LoadingStage>:
push   %rbx
mov    $0xa,%ebx
cs nopw 0x0(%rax,%rax,1)
mov    $0x2d,%edi
mov    %ebx,%esi
mov    $0x5,%edx
call   1050 <ckTerminalPutCharEntryAt@plt>
mov    $0xa,%edi
call   1040 <delay@plt>
add    $0x1,%ebx
cmp    $0x37,%ebx
jne    1150 <LoadingStage+0x10>
mov    $0x46,%ebx
nopl   0x0(%rax,%rax,1)
mov    $0x2d,%edi
mov    %ebx,%esi
mov    $0xb,%edx
call   1050 <ckTerminalPutCharEntryAt@plt>
mov    $0xa,%edi
call   1040 <delay@plt>
add    $0xffffffff,%ebx
cmp    $0x19,%ebx
jne    1180 <LoadingStage+0x40>
mov    $0x320,%edi
call   1040 <delay@plt>
mov    $0x23,%edi
mov    $0x7,%esi
call   1060 <gotoxy@plt>
lea    0xe3d(%rip),%rdi
call   1030 <ckTerminalPrintStringF@plt>
mov    $0x258,%edi
call   1040 <delay@plt>
mov    $0x26,%edi
mov    $0x7,%esi
call   1060 <gotoxy@plt>
lea    0xe1b(%rip),%rdi
call   1030 <ckTerminalPrintStringF@plt>
mov    $0x258,%edi
call   1040 <delay@plt>
mov    $0x29,%edi
mov    $0x7,%esi
call   1060 <gotoxy@plt>
lea    0xdf9(%rip),%rdi
call   1030 <ckTerminalPrintStringF@plt>
mov    $0x258,%edi
call   1040 <delay@plt>
mov    $0x4d,%edi
mov    $0x30,%esi
mov    $0x8,%edx
call   1050 <ckTerminalPutCharEntryAt@plt>
mov    $0x28,%edi
call   1040 <delay@plt>
mov    $0x61,%edi
mov    $0x31,%esi
mov    $0x8,%edx
call   1050 <ckTerminalPutCharEntryAt@plt>
mov    $0x28,%edi
call   1040 <delay@plt>
mov    $0x64,%edi
mov    $0x32,%esi
mov    $0x8,%edx
call   1050 <ckTerminalPutCharEntryAt@plt>
mov    $0x28,%edi
call   1040 <delay@plt>
mov    $0x65,%edi
mov    $0x33,%esi
mov    $0x8,%edx
call   1050 <ckTerminalPutCharEntryAt@plt>
mov    $0x28,%edi
call   1040 <delay@plt>
mov    $0x62,%edi
mov    $0x35,%esi
mov    $0x8,%edx
call   1050 <ckTerminalPutCharEntryAt@plt>
mov    $0x28,%edi
call   1040 <delay@plt>
mov    $0x79,%edi
mov    $0x36,%esi
mov    $0x8,%edx
call   1050 <ckTerminalPutCharEntryAt@plt>
mov    $0x28,%edi
call   1040 <delay@plt>
mov    $0x38,%edi
mov    $0x8,%esi
call   1060 <gotoxy@plt>
lea    0xd24(%rip),%rdi
call   1030 <ckTerminalPrintStringF@plt>
mov    $0xc8,%edi
call   1040 <delay@plt>
mov    $0x25,%edi
mov    $0x9,%esi
call   1060 <gotoxy@plt>
lea    0xd05(%rip),%rdi
call   1030 <ckTerminalPrintStringF@plt>
mov    $0x9c4,%edi
pop    %rbx
jmp    1040 <delay@plt>

LLVM IR (-O0):
@.str = [3 x i8] c"So\00"
@.str.1 = [3 x i8] c"ko\00"
@.str.2 = [4 x i8] c"ban\00"
@.str.3 = [6 x i8] c"Skout\00"
@.str.4 = [25 x i8] c"Ported & Modified by ikh\00"
define void @LoadingStage() {
%1 = alloca i32
store i32 0, i32* %1
br label %2
2: ; preds = %10, %0
%3 = load i32, i32* %1
%4 = icmp slt i32 %3, 45
br i1 %4, label %5, label %13
5: ; preds = %2
%6 = load i32, i32* %1
%7 = add nsw i32 10, %6
%8 = call i32 @ckTerminalPutCharEntryAt(i8 signext 45, i32 %7, i32 5)
%9 = call i32 @delay(i32 10)
br label %10
10: ; preds = %5
%11 = load i32, i32* %1
%12 = add nsw i32 %11, 1
store i32 %12, i32* %1
br label %2
13: ; preds = %2
store i32 0, i32* %1
br label %14
14: ; preds = %22, %13
%15 = load i32, i32* %1
%16 = icmp slt i32 %15, 45
br i1 %16, label %17, label %25
17: ; preds = %14
%18 = load i32, i32* %1
%19 = sub nsw i32 70, %18
%20 = call i32 @ckTerminalPutCharEntryAt(i8 signext 45, i32 %19, i32 11)
%21 = call i32 @delay(i32 10)
br label %22
22: ; preds = %17
%23 = load i32, i32* %1
%24 = add nsw i32 %23, 1
store i32 %24, i32* %1
br label %14
25: ; preds = %14
%26 = call i32 @delay(i32 800)
%27 = call i32 @gotoxy(i32 35, i32 7)
%28 = call i32 @ckTerminalPrintStringF(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0))
%29 = call i32 @delay(i32 600)
%30 = call i32 @gotoxy(i32 38, i32 7)
%31 = call i32 @ckTerminalPrintStringF(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0))
%32 = call i32 @delay(i32 600)
%33 = call i32 @gotoxy(i32 41, i32 7)
%34 = call i32 @ckTerminalPrintStringF(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0))
%35 = call i32 @delay(i32 600)
%36 = call i32 @ckTerminalPutCharEntryAt(i8 signext 77, i32 48, i32 8)
%37 = call i32 @delay(i32 40)
%38 = call i32 @ckTerminalPutCharEntryAt(i8 signext 97, i32 49, i32 8)
%39 = call i32 @delay(i32 40)
%40 = call i32 @ckTerminalPutCharEntryAt(i8 signext 100, i32 50, i32 8)
%41 = call i32 @delay(i32 40)
%42 = call i32 @ckTerminalPutCharEntryAt(i8 signext 101, i32 51, i32 8)
%43 = call i32 @delay(i32 40)
%44 = call i32 @ckTerminalPutCharEntryAt(i8 signext 98, i32 53, i32 8)
%45 = call i32 @delay(i32 40)
%46 = call i32 @ckTerminalPutCharEntryAt(i8 signext 121, i32 54, i32 8)
%47 = call i32 @delay(i32 40)
%48 = call i32 @gotoxy(i32 56, i32 8)
%49 = call i32 @ckTerminalPrintStringF(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.3, i64 0, i64 0))
%50 = call i32 @delay(i32 200)
%51 = call i32 @gotoxy(i32 37, i32 9)
%52 = call i32 @ckTerminalPrintStringF(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.4, i64 0, i64 0))
%53 = call i32 @delay(i32 2500)
ret void
}

LLVM IR (-O2):
@.str = [3 x i8] c"So\00"
@.str.1 = [3 x i8] c"ko\00"
@.str.2 = [4 x i8] c"ban\00"
@.str.3 = [6 x i8] c"Skout\00"
@.str.4 = [25 x i8] c"Ported & Modified by ikh\00"
define void @LoadingStage() {
br label %1
1: ; preds = %0, %1
%2 = phi i32 [ 0, %0 ], [ %6, %1 ]
%3 = add nuw nsw i32 %2, 10
%4 = tail call i32 @ckTerminalPutCharEntryAt(i8 signext 45, i32 %3, i32 5)
%5 = tail call i32 @delay(i32 10)
%6 = add nuw nsw i32 %2, 1
%7 = icmp eq i32 %6, 45
br i1 %7, label %8, label %1
8: ; preds = %1, %8
%9 = phi i32 [ %13, %8 ], [ 0, %1 ]
%10 = sub nuw nsw i32 70, %9
%11 = tail call i32 @ckTerminalPutCharEntryAt(i8 signext 45, i32 %10, i32 11)
%12 = tail call i32 @delay(i32 10)
%13 = add nuw nsw i32 %9, 1
%14 = icmp eq i32 %13, 45
br i1 %14, label %15, label %8
15: ; preds = %8
%16 = tail call i32 @delay(i32 800)
%17 = tail call i32 @gotoxy(i32 35, i32 7)
%18 = tail call i32 @ckTerminalPrintStringF(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0))
%19 = tail call i32 @delay(i32 600)
%20 = tail call i32 @gotoxy(i32 38, i32 7)
%21 = tail call i32 @ckTerminalPrintStringF(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0))
%22 = tail call i32 @delay(i32 600)
%23 = tail call i32 @gotoxy(i32 41, i32 7)
%24 = tail call i32 @ckTerminalPrintStringF(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0))
%25 = tail call i32 @delay(i32 600)
%26 = tail call i32 @ckTerminalPutCharEntryAt(i8 signext 77, i32 48, i32 8)
%27 = tail call i32 @delay(i32 40)
%28 = tail call i32 @ckTerminalPutCharEntryAt(i8 signext 97, i32 49, i32 8)
%29 = tail call i32 @delay(i32 40)
%30 = tail call i32 @ckTerminalPutCharEntryAt(i8 signext 100, i32 50, i32 8)
%31 = tail call i32 @delay(i32 40)
%32 = tail call i32 @ckTerminalPutCharEntryAt(i8 signext 101, i32 51, i32 8)
%33 = tail call i32 @delay(i32 40)
%34 = tail call i32 @ckTerminalPutCharEntryAt(i8 signext 98, i32 53, i32 8)
%35 = tail call i32 @delay(i32 40)
%36 = tail call i32 @ckTerminalPutCharEntryAt(i8 signext 121, i32 54, i32 8)
%37 = tail call i32 @delay(i32 40)
%38 = tail call i32 @gotoxy(i32 56, i32 8)
%39 = tail call i32 @ckTerminalPrintStringF(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.3, i64 0, i64 0))
%40 = tail call i32 @delay(i32 200)
%41 = tail call i32 @gotoxy(i32 37, i32 9)
%42 = tail call i32 @ckTerminalPrintStringF(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.4, i64 0, i64 0))
%43 = tail call i32 @delay(i32 2500)
ret void
}