#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*/ displayCenteredTextLine(int, char *, ...);
int /*<<< orphan*/ recalibrate2();
int /*<<< orphan*/ sleep(int);
void start() {
  for (int i = 2; i > 0; i--) {
    displayCenteredTextLine(2, "%d", i);
    sleep(1000);
  }
  displayCenteredTextLine(2, "Start");
  recalibrate2();
}


x86 assembly (clang, -O0):
<start>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x2,-0x4(%rbp)
cmpl   $0x0,-0x4(%rbp)
jle    1177 <start+0x47>
mov    -0x4(%rbp),%edx
mov    $0x2,%edi
lea    0xea8(%rip),%rsi
mov    $0x0,%al
call   1040 <displayCenteredTextLine@plt>
mov    $0x3e8,%edi
call   1050 <sleep@plt>
mov    -0x4(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,-0x4(%rbp)
jmp    113f <start+0xf>
mov    $0x2,%edi
lea    0xe80(%rip),%rsi
mov    $0x0,%al
call   1040 <displayCenteredTextLine@plt>
mov    $0x0,%al
call   1030 <recalibrate2@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<start>:
push   %rbx
lea    0xec8(%rip),%rbx
mov    $0x2,%edi
mov    %rbx,%rsi
mov    $0x2,%edx
xor    %eax,%eax
call   1040 <displayCenteredTextLine@plt>
mov    $0x3e8,%edi
call   1050 <sleep@plt>
mov    $0x2,%edi
mov    %rbx,%rsi
mov    $0x1,%edx
xor    %eax,%eax
call   1040 <displayCenteredTextLine@plt>
mov    $0x3e8,%edi
call   1050 <sleep@plt>
lea    0xe88(%rip),%rsi
mov    $0x2,%edi
xor    %eax,%eax
call   1040 <displayCenteredTextLine@plt>
xor    %eax,%eax
pop    %rbx
jmp    1030 <recalibrate2@plt>

LLVM IR (-O0):
@.str = [3 x i8] c"%d\00"
@.str.1 = [6 x i8] c"Start\00"
define void @start() {
%1 = alloca i32
store i32 2, i32* %1
br label %2
2: ; preds = %9, %0
%3 = load i32, i32* %1
%4 = icmp sgt i32 %3, 0
br i1 %4, label %5, label %12
5: ; preds = %2
%6 = load i32, i32* %1
%7 = call i32 (i32, i8*, ...) @displayCenteredTextLine(i32 2, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32 %6)
%8 = call i32 @sleep(i32 1000)
br label %9
9: ; preds = %5
%10 = load i32, i32* %1
%11 = add nsw i32 %10, -1
store i32 %11, i32* %1
br label %2
12: ; preds = %2
%13 = call i32 (i32, i8*, ...) @displayCenteredTextLine(i32 2, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0))
%14 = call i32 (...) @recalibrate2()
ret void
}

LLVM IR (-O2):
@.str = [3 x i8] c"%d\00"
@.str.1 = [6 x i8] c"Start\00"
define void @start() {
%1 = tail call i32 (i32, i8*, ...) @displayCenteredTextLine(i32 2, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32 2)
%2 = tail call i32 @sleep(i32 1000)
%3 = tail call i32 (i32, i8*, ...) @displayCenteredTextLine(i32 2, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32 1)
%4 = tail call i32 @sleep(i32 1000)
%5 = tail call i32 (i32, i8*, ...) @displayCenteredTextLine(i32 2, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0))
%6 = tail call i32 (...) @recalibrate2()
ret void
}