#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*/ nxtDisplayCenteredBigTextLine(int, char *, int);
int /*<<< orphan*/ nxtDisplayCenteredTextLine(int, char *, int, int);
void dispInt(int n, int l) {
  nxtDisplayCenteredTextLine(l + 2, "%d         %d", (n == 0 ? 9 : n - 1),
                             (n == 9 ? 0 : n + 1));
  nxtDisplayCenteredBigTextLine(l, "%d", n);
}


x86 assembly (clang, -O0):
<dispInt>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    -0x8(%rbp),%eax
add    $0x2,%eax
mov    %eax,-0xc(%rbp)
cmpl   $0x0,-0x4(%rbp)
jne    114e <dispInt+0x2e>
mov    $0x9,%eax
mov    %eax,-0x10(%rbp)
jmp    1157 <dispInt+0x37>
mov    -0x4(%rbp),%eax
sub    $0x1,%eax
mov    %eax,-0x10(%rbp)
mov    -0x10(%rbp),%eax
mov    %eax,-0x14(%rbp)
cmpl   $0x9,-0x4(%rbp)
jne    1171 <dispInt+0x51>
xor    %eax,%eax
mov    %eax,-0x18(%rbp)
jmp    117a <dispInt+0x5a>
mov    -0x4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x18(%rbp)
mov    -0x14(%rbp),%edx
mov    -0xc(%rbp),%edi
mov    -0x18(%rbp),%ecx
lea    0xe76(%rip),%rsi
call   1040 <nxtDisplayCenteredTextLine@plt>
mov    -0x8(%rbp),%edi
mov    -0x4(%rbp),%edx
lea    0xe6f(%rip),%rsi
call   1030 <nxtDisplayCenteredBigTextLine@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<dispInt>:
push   %r14
push   %rbx
push   %rax
mov    %esi,%r14d
mov    %edi,%ebx
lea    0x2(%r14),%edi
mov    %ebx,%eax
sub    $0x1,%eax
mov    $0x9,%edx
cmovae %eax,%edx
lea    0x1(%rbx),%eax
xor    %ecx,%ecx
cmp    $0x9,%ebx
cmovne %eax,%ecx
lea    0xeb4(%rip),%rsi
call   1040 <nxtDisplayCenteredTextLine@plt>
lea    0xeb3(%rip),%rsi
mov    %r14d,%edi
mov    %ebx,%edx
add    $0x8,%rsp
pop    %rbx
pop    %r14
jmp    1030 <nxtDisplayCenteredBigTextLine@plt>

LLVM IR (-O0):
@.str = [14 x i8] c"%d %d\00"
@.str.1 = [3 x i8] c"%d\00"
define void @dispInt(i32 %0, i32 %1) {
%3 = alloca i32
%4 = alloca i32
store i32 %0, i32* %3
store i32 %1, i32* %4
%5 = load i32, i32* %4
%6 = add nsw i32 %5, 2
%7 = load i32, i32* %3
%8 = icmp eq i32 %7, 0
br i1 %8, label %9, label %10
9: ; preds = %2
br label %13
10: ; preds = %2
%11 = load i32, i32* %3
%12 = sub nsw i32 %11, 1
br label %13
13: ; preds = %10, %9
%14 = phi i32 [ 9, %9 ], [ %12, %10 ]
%15 = load i32, i32* %3
%16 = icmp eq i32 %15, 9
br i1 %16, label %17, label %18
17: ; preds = %13
br label %21
18: ; preds = %13
%19 = load i32, i32* %3
%20 = add nsw i32 %19, 1
br label %21
21: ; preds = %18, %17
%22 = phi i32 [ 0, %17 ], [ %20, %18 ]
%23 = call i32 @nxtDisplayCenteredTextLine(i32 %6, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str, i64 0, i64 0), i32 %14, i32 %22)
%24 = load i32, i32* %4
%25 = load i32, i32* %3
%26 = call i32 @nxtDisplayCenteredBigTextLine(i32 %24, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32 %25)
ret void
}

LLVM IR (-O2):
@.str = [14 x i8] c"%d %d\00"
@.str.1 = [3 x i8] c"%d\00"
define void @dispInt(i32 %0, i32 %1) {
%3 = add nsw i32 %1, 2
%4 = icmp eq i32 %0, 0
%5 = add nsw i32 %0, -1
%6 = select i1 %4, i32 9, i32 %5
%7 = icmp eq i32 %0, 9
%8 = add nsw i32 %0, 1
%9 = select i1 %7, i32 0, i32 %8
%10 = tail call i32 @nxtDisplayCenteredTextLine(i32 %3, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str, i64 0, i64 0), i32 %6, i32 %9)
%11 = tail call i32 @nxtDisplayCenteredBigTextLine(i32 %1, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32 %0)
ret void
}