#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 *, char);
int /*<<< orphan*/ nxtDisplayCenteredTextLine(int, char *, ...);
void dispDeposit(int n, int l) {
  char c;
  if (n == 10) {
    c = '.';
    nxtDisplayCenteredTextLine(l + 2, "9         D");
  } else if (n == 11) {
    c = 'D';
    nxtDisplayCenteredTextLine(l + 2, ".         0");
  } else {
    c = n + 48;
    nxtDisplayCenteredTextLine(l + 2, "%c         %c",
                               (c == '0' ? 'D' : n + 47),
                               (c == '9' ? '.' : n + 49));
  }
  nxtDisplayCenteredBigTextLine(l, "%c", c);
}


x86 assembly (clang, -O0):
<dispDeposit>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
cmpl   $0xa,-0x4(%rbp)
jne    1155 <dispDeposit+0x35>
movb   $0x2e,-0x9(%rbp)
mov    -0x8(%rbp),%edi
add    $0x2,%edi
lea    0xeb7(%rip),%rsi
mov    $0x0,%al
call   1040 <nxtDisplayCenteredTextLine@plt>
jmp    11f6 <dispDeposit+0xd6>
cmpl   $0xb,-0x4(%rbp)
jne    117c <dispDeposit+0x5c>
movb   $0x44,-0x9(%rbp)
mov    -0x8(%rbp),%edi
add    $0x2,%edi
lea    0xe9c(%rip),%rsi
mov    $0x0,%al
call   1040 <nxtDisplayCenteredTextLine@plt>
jmp    11f1 <dispDeposit+0xd1>
mov    -0x4(%rbp),%eax
add    $0x30,%eax
mov    %al,-0x9(%rbp)
mov    -0x8(%rbp),%eax
add    $0x2,%eax
mov    %eax,-0x10(%rbp)
movsbl -0x9(%rbp),%eax
cmp    $0x30,%eax
jne    11a8 <dispDeposit+0x88>
mov    $0x44,%eax
mov    %eax,-0x14(%rbp)
jmp    11b1 <dispDeposit+0x91>
mov    -0x4(%rbp),%eax
add    $0x2f,%eax
mov    %eax,-0x14(%rbp)
mov    -0x14(%rbp),%eax
mov    %eax,-0x18(%rbp)
movsbl -0x9(%rbp),%eax
cmp    $0x39,%eax
jne    11d1 <dispDeposit+0xb1>
mov    $0x2e,%eax
mov    %eax,-0x1c(%rbp)
jmp    11da <dispDeposit+0xba>
mov    -0x4(%rbp),%eax
add    $0x31,%eax
mov    %eax,-0x1c(%rbp)
mov    -0x18(%rbp),%edx
mov    -0x10(%rbp),%edi
mov    -0x1c(%rbp),%ecx
lea    0xe2e(%rip),%rsi
mov    $0x0,%al
call   1040 <nxtDisplayCenteredTextLine@plt>
jmp    11f6 <dispDeposit+0xd6>
mov    -0x8(%rbp),%edi
lea    0xe23(%rip),%rsi
movsbl -0x9(%rbp),%edx
call   1030 <nxtDisplayCenteredBigTextLine@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<dispDeposit>:
push   %rbp
push   %rbx
push   %rax
mov    %esi,%ebx
cmp    $0xb,%edi
je     1145 <dispDeposit+0x25>
cmp    $0xa,%edi
jne    115b <dispDeposit+0x3b>
lea    0x2(%rbx),%edi
lea    0xec7(%rip),%rsi
xor    %eax,%eax
call   1040 <nxtDisplayCenteredTextLine@plt>
mov    $0x2e,%bpl
jmp    118e <dispDeposit+0x6e>
lea    0x2(%rbx),%edi
lea    0xebd(%rip),%rsi
xor    %eax,%eax
call   1040 <nxtDisplayCenteredTextLine@plt>
mov    $0x44,%bpl
jmp    118e <dispDeposit+0x6e>
lea    0x30(%rdi),%ebp
lea    0x2(%rbx),%eax
lea    0x2f(%rdi),%ecx
test   %dil,%dil
mov    $0x44,%edx
cmovne %ecx,%edx
add    $0x31,%edi
cmp    $0x39,%bpl
mov    $0x2e,%ecx
cmovne %edi,%ecx
lea    0xe93(%rip),%rsi
mov    %eax,%edi
xor    %eax,%eax
call   1040 <nxtDisplayCenteredTextLine@plt>
movsbl %bpl,%edx
lea    0xe8a(%rip),%rsi
mov    %ebx,%edi
add    $0x8,%rsp
pop    %rbx
pop    %rbp
jmp    1030 <nxtDisplayCenteredBigTextLine@plt>

LLVM IR (-O0):
@.str = [12 x i8] c"9 D\00"
@.str.1 = [12 x i8] c". 0\00"
@.str.2 = [14 x i8] c"%c %c\00"
@.str.3 = [3 x i8] c"%c\00"
define void @dispDeposit(i32 %0, i32 %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8
store i32 %0, i32* %3
store i32 %1, i32* %4
%6 = load i32, i32* %3
%7 = icmp eq i32 %6, 10
br i1 %7, label %8, label %12
8: ; preds = %2
store i8 46, i8* %5
%9 = load i32, i32* %4
%10 = add nsw i32 %9, 2
%11 = call i32 (i32, i8*, ...) @nxtDisplayCenteredTextLine(i32 %10, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str, i64 0, i64 0))
br label %45
12: ; preds = %2
%13 = load i32, i32* %3
%14 = icmp eq i32 %13, 11
br i1 %14, label %15, label %19
15: ; preds = %12
store i8 68, i8* %5
%16 = load i32, i32* %4
%17 = add nsw i32 %16, 2
%18 = call i32 (i32, i8*, ...) @nxtDisplayCenteredTextLine(i32 %17, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.1, i64 0, i64 0))
br label %44
19: ; preds = %12
%20 = load i32, i32* %3
%21 = add nsw i32 %20, 48
%22 = trunc i32 %21 to i8
store i8 %22, i8* %5
%23 = load i32, i32* %4
%24 = add nsw i32 %23, 2
%25 = load i8, i8* %5
%26 = sext i8 %25 to i32
%27 = icmp eq i32 %26, 48
br i1 %27, label %28, label %29
28: ; preds = %19
br label %32
29: ; preds = %19
%30 = load i32, i32* %3
%31 = add nsw i32 %30, 47
br label %32
32: ; preds = %29, %28
%33 = phi i32 [ 68, %28 ], [ %31, %29 ]
%34 = load i8, i8* %5
%35 = sext i8 %34 to i32
%36 = icmp eq i32 %35, 57
br i1 %36, label %37, label %38
37: ; preds = %32
br label %41
38: ; preds = %32
%39 = load i32, i32* %3
%40 = add nsw i32 %39, 49
br label %41
41: ; preds = %38, %37
%42 = phi i32 [ 46, %37 ], [ %40, %38 ]
%43 = call i32 (i32, i8*, ...) @nxtDisplayCenteredTextLine(i32 %24, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.2, i64 0, i64 0), i32 %33, i32 %42)
br label %44
44: ; preds = %41, %15
br label %45
45: ; preds = %44, %8
%46 = load i32, i32* %4
%47 = load i8, i8* %5
%48 = call i32 @nxtDisplayCenteredBigTextLine(i32 %46, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0), i8 signext %47)
ret void
}

LLVM IR (-O2):
@.str = [12 x i8] c"9 D\00"
@.str.1 = [12 x i8] c". 0\00"
@.str.2 = [14 x i8] c"%c %c\00"
@.str.3 = [3 x i8] c"%c\00"
define void @dispDeposit(i32 %0, i32 %1) {
switch i32 %0, label %9 [
i32 10, label %3
i32 11, label %6
]
3: ; preds = %2
%4 = add nsw i32 %1, 2
%5 = tail call i32 (i32, i8*, ...) @nxtDisplayCenteredTextLine(i32 %4, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str, i64 0, i64 0))
br label %20
6: ; preds = %2
%7 = add nsw i32 %1, 2
%8 = tail call i32 (i32, i8*, ...) @nxtDisplayCenteredTextLine(i32 %7, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.1, i64 0, i64 0))
br label %20
9: ; preds = %2
%10 = trunc i32 %0 to i8
%11 = add i8 %10, 48
%12 = add nsw i32 %1, 2
%13 = icmp eq i8 %10, 0
%14 = add nsw i32 %0, 47
%15 = select i1 %13, i32 68, i32 %14
%16 = icmp eq i8 %11, 57
%17 = add nsw i32 %0, 49
%18 = select i1 %16, i32 46, i32 %17
%19 = tail call i32 (i32, i8*, ...) @nxtDisplayCenteredTextLine(i32 %12, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.2, i64 0, i64 0), i32 %15, i32 %18)
br label %20
20: ; preds = %6, %9, %3
%21 = phi i8 [ 46, %3 ], [ 68, %6 ], [ %11, %9 ]
%22 = tail call i32 @nxtDisplayCenteredBigTextLine(i32 %1, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0), i8 signext %21)
ret void
}