// File: /workspace/github_cpp_makefile_star2_O1/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
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x68, %rsp
movl %r9d, %ebp
movq %r8, %rbx
movq %rcx, %r12
movl %esi, %r14d
movq %rdi, %r15
movslq 0x4(%rdi), %rsi
leaq 0x38(%rsp), %r13
movq %r13, -0x10(%r13)
leaq 0x28(%rsp), %rdi
movl %r14d, %edx
callq 0x2270
movl %ebp, 0x24(%rsp)
leaq 0xba31(%rip), %rsi      # 0xf3b7
leaq 0x28(%rsp), %rdi
callq 0x23d0
leaq 0x10(%rsp), %rbp
movq %rbp, -0x10(%rbp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x39b6
movq %rdx, (%rsp)
movq (%rcx), %rdx
movq %rdx, 0x10(%rsp)
jmp 0x39bd
movups (%rcx), %xmm0
movups %xmm0, (%rbp)
movq 0x8(%rax), %rdx
movq %rdx, 0x8(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq (%rsp), %rsi
movq 0x8(%rsp), %rdx
movq %rbx, %rdi
callq 0x20d0
movq (%rsp), %rdi
cmpq %rbp, %rdi
je 0x39fc
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x2210
movq 0x28(%rsp), %rdi
cmpq %r13, %rdi
je 0x3a13
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x2210
leaq 0x58(%rsp), %r13
movq %r13, -0x10(%r13)
movq (%r12), %rsi
movq 0x8(%r12), %rdx
addq %rsi, %rdx
leaq 0x48(%rsp), %r12
movq %r12, %rdi
callq 0x687c
movq %r15, %rdi
movq %r12, %rsi
movq %rbx, %rdx
callq 0x3cd6
movq 0x48(%rsp), %rdi
cmpq %r13, %rdi
je 0x3a5a
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x2210
movslq 0x4(%r15), %rsi
leaq 0x28(%rsp), %rdi
leaq 0x38(%rsp), %r15
movq %r15, (%rdi)
movsbl %r14b, %edx
callq 0x2270
leaq 0xb93b(%rip), %rsi      # 0xf3b6
leaq 0x28(%rsp), %rdi
callq 0x23d0
movq %rbp, (%rsp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x3aa6
movq %rdx, (%rsp)
movq (%rcx), %rdx
movq %rdx, 0x10(%rsp)
jmp 0x3aad
movups (%rcx), %xmm0
movups %xmm0, (%rbp)
movq 0x8(%rax), %rdx
movq %rdx, 0x8(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq (%rsp), %rsi
movq 0x8(%rsp), %rdx
movq %rbx, %rdi
callq 0x20d0
movq (%rsp), %rdi
cmpq %rbp, %rdi
je 0x3aec
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x2210
movq 0x28(%rsp), %rdi
cmpq %r15, %rdi
movl 0x24(%rsp), %ebp
je 0x3b07
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x2210
testb %bpl, %bpl
je 0x3b1f
movq (%rbx), %rsi
movq 0x8(%rbx), %rdx
movq 0x114b6(%rip), %rdi     # 0x14fd0
callq 0x2260
addq $0x68, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
movq (%rsp), %rdi
cmpq %rbp, %rdi
je 0x3b4c
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x2210
jmp 0x3b4c
movq %rax, %rbx
movq 0x28(%rsp), %rdi
leaq 0x38(%rsp), %rax
cmpq %rax, %rdi
jne 0x3b9b
jmp 0x3bad
jmp 0x3baa
movq %rax, %rbx
movq 0x48(%rsp), %rdi
cmpq %r13, %rdi
je 0x3bad
movq 0x58(%rsp), %rsi
jmp 0x3ba0
movq %rax, %rbx
movq (%rsp), %rdi
cmpq %rbp, %rdi
je 0x3b91
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x2210
jmp 0x3b91
movq %rax, %rbx
movq 0x28(%rsp), %rdi
cmpq %r13, %rdi
je 0x3bad
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x2210
jmp 0x3bad
movq %rax, %rbx
movq %rbx, %rdi
callq 0x2390
nop