// File: sagardoshi[P]NegotiationsEncounter/src/GameMaster.cpp
// Function: GameMaster::createTitle(char, int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>&, bool)
void GameMaster::createTitle(char ch, int x, string text,
                             string &toAdd, bool print) {

    toAdd += string(WIDTH, ch) + "\n";
    centerText(text, toAdd);
    toAdd += string(WIDTH, ch) + "\n\n";

    if (print) cout << toAdd;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x130, %rsp            # imm = 0x130
movq %rcx, -0x110(%rbp)
movb %r9b, %al
movq %rdi, -0x8(%rbp)
movb %sil, -0x9(%rbp)
movl %edx, -0x10(%rbp)
movq %rcx, -0x18(%rbp)
movq %r8, -0x20(%rbp)
andb $0x1, %al
movb %al, -0x21(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x108(%rbp)
movslq 0x4(%rax), %rax
movq %rax, -0x100(%rbp)
movsbl -0x9(%rbp), %eax
movl %eax, -0xf4(%rbp)
leaq -0x69(%rbp), %rdi
movq %rdi, -0xf0(%rbp)
callq 0x3520
movq -0x100(%rbp), %rsi
movl -0xf4(%rbp), %edx
movq -0xf0(%rbp), %rcx
leaq -0x68(%rbp), %rdi
callq 0x85b0
jmp 0x53cc
leaq 0x16ff4(%rip), %rdx     # 0x1c3c7
leaq -0x48(%rbp), %rdi
leaq -0x68(%rbp), %rsi
callq 0x8440
jmp 0x53e2
movq -0x20(%rbp), %rdi
leaq -0x48(%rbp), %rsi
callq 0x33e0
jmp 0x53f1
leaq -0x48(%rbp), %rdi
callq 0x3200
leaq -0x68(%rbp), %rdi
callq 0x3200
leaq -0x69(%rbp), %rdi
callq 0x3350
movq -0x110(%rbp), %rsi
leaq -0xa0(%rbp), %rdi
movq %rdi, -0x118(%rbp)
callq 0x3170
movq -0x108(%rbp), %rdi
movq -0x118(%rbp), %rsi
movq -0x20(%rbp), %rdx
callq 0x5750
jmp 0x543f
leaq -0xa0(%rbp), %rdi
callq 0x3200
movq -0x108(%rbp), %rax
movslq 0x4(%rax), %rax
movq %rax, -0x130(%rbp)
movsbl -0x9(%rbp), %eax
movl %eax, -0x124(%rbp)
leaq -0xe1(%rbp), %rdi
movq %rdi, -0x120(%rbp)
callq 0x3520
movq -0x130(%rbp), %rsi
movl -0x124(%rbp), %edx
movq -0x120(%rbp), %rcx
leaq -0xe0(%rbp), %rdi
callq 0x85b0
jmp 0x549c
leaq 0x16f23(%rip), %rdx     # 0x1c3c6
leaq -0xc0(%rbp), %rdi
leaq -0xe0(%rbp), %rsi
callq 0x8440
jmp 0x54b8
movq -0x20(%rbp), %rdi
leaq -0xc0(%rbp), %rsi
callq 0x33e0
jmp 0x54ca
leaq -0xc0(%rbp), %rdi
callq 0x3200
leaq -0xe0(%rbp), %rdi
callq 0x3200
leaq -0xe1(%rbp), %rdi
callq 0x3350
testb $0x1, -0x21(%rbp)
je 0x55ba
movq -0x20(%rbp), %rsi
movq 0x21abd(%rip), %rdi     # 0x26fc0
callq 0x32b0
jmp 0x55ba
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x78(%rbp)
movl %eax, -0x7c(%rbp)
jmp 0x5547
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x78(%rbp)
movl %eax, -0x7c(%rbp)
jmp 0x553e
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x78(%rbp)
movl %eax, -0x7c(%rbp)
leaq -0x48(%rbp), %rdi
callq 0x3200
leaq -0x68(%rbp), %rdi
callq 0x3200
leaq -0x69(%rbp), %rdi
callq 0x3350
jmp 0x55c3
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x78(%rbp)
movl %eax, -0x7c(%rbp)
leaq -0xa0(%rbp), %rdi
callq 0x3200
jmp 0x55c3
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x78(%rbp)
movl %eax, -0x7c(%rbp)
jmp 0x55ac
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x78(%rbp)
movl %eax, -0x7c(%rbp)
jmp 0x55a0
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x78(%rbp)
movl %eax, -0x7c(%rbp)
leaq -0xc0(%rbp), %rdi
callq 0x3200
leaq -0xe0(%rbp), %rdi
callq 0x3200
leaq -0xe1(%rbp), %rdi
callq 0x3350
jmp 0x55c3
addq $0x130, %rsp            # imm = 0x130
popq %rbp
retq
movq -0x78(%rbp), %rdi
callq 0x3510
nopl (%rax)