#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*/ my_putstr(char *);
void pause_system2_2() {
  int d;
  d = 0;
  my_putstr("\033[0m\033[37m");
  my_putstr("\t\t\t\t\t   ");
  my_putstr("DOWNLOAD COMPLETE !\r");
  while (d < 90000000)
    d++;
  d = 0;
  my_putstr("                                       ");
  my_putstr("                       ");
  while (d < 90000000)
    d++;
  d = 0;
  my_putstr("\r");
}


x86 assembly (clang, -O0):
<pause_system2_2>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xeda(%rip),%rdi
call   1030 <my_putstr@plt>
lea    0xed8(%rip),%rdi
call   1030 <my_putstr@plt>
lea    0xed5(%rip),%rdi
call   1030 <my_putstr@plt>
cmpl   $0x55d4a80,-0x4(%rbp)
jge    115e <pause_system2_2+0x4e>
mov    -0x4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x4(%rbp)
jmp    1143 <pause_system2_2+0x33>
movl   $0x0,-0x4(%rbp)
lea    0xebc(%rip),%rdi
call   1030 <my_putstr@plt>
lea    0xec0(%rip),%rdi
call   1030 <my_putstr@plt>
cmpl   $0x55d4a80,-0x4(%rbp)
jge    1198 <pause_system2_2+0x88>
mov    -0x4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x4(%rbp)
jmp    117d <pause_system2_2+0x6d>
movl   $0x0,-0x4(%rbp)
lea    0xe80(%rip),%rdi
call   1030 <my_putstr@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<pause_system2_2>:
push   %rax
lea    0xee8(%rip),%rdi
call   1030 <my_putstr@plt>
lea    0xee6(%rip),%rdi
call   1030 <my_putstr@plt>
lea    0xee3(%rip),%rdi
call   1030 <my_putstr@plt>
lea    0xeec(%rip),%rdi
call   1030 <my_putstr@plt>
lea    0xef0(%rip),%rdi
call   1030 <my_putstr@plt>
lea    0xed2(%rip),%rdi
pop    %rax
jmp    1030 <my_putstr@plt>

LLVM IR (-O0):
@.str = [10 x i8] c"\1B[0m\1B[37m\00"
@.str.1 = [9 x i8] c"\09\09\09\09\09 \00"
@.str.2 = [21 x i8] c"DOWNLOAD COMPLETE !\0D\00"
@.str.3 = [40 x i8] c" \00"
@.str.4 = [24 x i8] c" \00"
@.str.5 = [2 x i8] c"\0D\00"
define void @pause_system2_2() {
%1 = alloca i32
store i32 0, i32* %1
%2 = call i32 @my_putstr(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0))
%3 = call i32 @my_putstr(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.1, i64 0, i64 0))
%4 = call i32 @my_putstr(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.2, i64 0, i64 0))
br label %5
5: ; preds = %8, %0
%6 = load i32, i32* %1
%7 = icmp slt i32 %6, 90000000
br i1 %7, label %8, label %11
8: ; preds = %5
%9 = load i32, i32* %1
%10 = add nsw i32 %9, 1
store i32 %10, i32* %1
br label %5
11: ; preds = %5
store i32 0, i32* %1
%12 = call i32 @my_putstr(i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.3, i64 0, i64 0))
%13 = call i32 @my_putstr(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.4, i64 0, i64 0))
br label %14
14: ; preds = %17, %11
%15 = load i32, i32* %1
%16 = icmp slt i32 %15, 90000000
br i1 %16, label %17, label %20
17: ; preds = %14
%18 = load i32, i32* %1
%19 = add nsw i32 %18, 1
store i32 %19, i32* %1
br label %14
20: ; preds = %14
store i32 0, i32* %1
%21 = call i32 @my_putstr(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.5, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [10 x i8] c"\1B[0m\1B[37m\00"
@.str.1 = [9 x i8] c"\09\09\09\09\09 \00"
@.str.2 = [21 x i8] c"DOWNLOAD COMPLETE !\0D\00"
@.str.3 = [40 x i8] c" \00"
@.str.4 = [24 x i8] c" \00"
@.str.5 = [2 x i8] c"\0D\00"
define void @pause_system2_2() {
%1 = tail call i32 @my_putstr(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0))
%2 = tail call i32 @my_putstr(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.1, i64 0, i64 0))
%3 = tail call i32 @my_putstr(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.2, i64 0, i64 0))
%4 = tail call i32 @my_putstr(i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.3, i64 0, i64 0))
%5 = tail call i32 @my_putstr(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.4, i64 0, i64 0))
%6 = tail call i32 @my_putstr(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.5, i64 0, i64 0))
ret void
}