// File: /workspace/github_cpp_makefile_star2_O3/AsherGlick[P]CommentHeader/source/main.cpp
// Function: align(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, char, unsigned int)
vector<string> align(string text, char position, unsigned int width) {
  vector<string> wrapped = wrap(text, width);

  for (unsigned int i = 0; i < wrapped.size(); i++) {
    unsigned int difference = width-wrapped[i].size();
    switch (position) {
      case 'n':
        for (unsigned int j = 0; j < difference; j++) {
          wrapped[i] += " ";
        }
        break;
      case 'r':
        for (unsigned int j = 0; j < difference; j++) {
          wrapped[i] = " " + wrapped[i];
        }
        break;
      case 'm':
        unsigned int leftDifference = difference / 2;
        unsigned int rightDifference = difference - leftDifference;
        for (unsigned int j = 0; j < leftDifference; j++) {
          wrapped[i] = " " + wrapped[i];
        }
        for (unsigned int j = 0; j < rightDifference; j++) {
          wrapped[i] += " ";
        }
        break;
    }
  }
  return wrapped;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x58, %rsp
movl %ecx, %r14d
movl %edx, %r15d
movq %rdi, %rbx
leaq -0x70(%rbp), %r13
movq %r13, -0x10(%r13)
movq (%rsi), %rax
movq 0x8(%rsi), %rdx
addq %rax, %rdx
leaq -0x80(%rbp), %r12
movq %r12, %rdi
movq %rax, %rsi
callq 0x7faa
movq %rbx, %rdi
movq %r12, %rsi
movl %r14d, -0x2c(%rbp)
movl %r14d, %edx
callq 0xcb6b
movq -0x80(%rbp), %rdi
cmpq %r13, %rdi
je 0xce66
callq 0x3260
movq (%rbx), %rax
cmpq %rax, 0x8(%rbx)
je 0xcfc6
xorl %r14d, %r14d
movsbl %r15b, %ecx
xorl %r13d, %r13d
movl %ecx, -0x38(%rbp)
shlq $0x5, %r14
movl 0x8(%rax,%r14), %eax
movl -0x2c(%rbp), %r15d
subl %eax, %r15d
cmpl $0x6d, %ecx
je 0xcf14
cmpl $0x6e, %ecx
je 0xceef
cmpl $0x72, %ecx
jne 0xcfa6
cmpl %eax, -0x2c(%rbp)
je 0xcfa6
movq (%rbx), %rdx
addq %r14, %rdx
leaq -0x60(%rbp), %r12
movq %r12, %rdi
leaq 0x215c(%rip), %rsi      # 0xf01c
callq 0xd2c3
movq (%rbx), %rdi
addq %r14, %rdi
movq %r12, %rsi
callq 0x32e0
movq -0x60(%rbp), %rdi
leaq -0x50(%rbp), %rax
cmpq %rax, %rdi
je 0xcee5
callq 0x3260
decl %r15d
jne 0xceac
jmp 0xcfa6
cmpl %eax, -0x2c(%rbp)
je 0xcfa6
movq (%rbx), %rdi
addq %r14, %rdi
leaq 0x2117(%rip), %rsi      # 0xf01c
callq 0x33e0
decl %r15d
jne 0xcef8
jmp 0xcfa6
movl %eax, -0x34(%rbp)
movq %r13, -0x40(%rbp)
movl %r15d, %eax
shrl %eax
movl %eax, -0x30(%rbp)
cmpl $0x2, %r15d
leaq -0x60(%rbp), %rdi
jb 0xcf77
movl -0x30(%rbp), %r12d
cmpl $0x1, %r12d
adcl $0x0, %r12d
movq (%rbx), %rdx
addq %r14, %rdx
leaq 0x20d6(%rip), %rsi      # 0xf01c
movq %rdi, %r13
callq 0xd2c3
movq (%rbx), %rdi
addq %r14, %rdi
movq %r13, %rsi
callq 0x32e0
movq -0x60(%rbp), %rdi
leaq -0x50(%rbp), %rax
cmpq %rax, %rdi
je 0xcf6e
callq 0x3260
decl %r12d
leaq -0x60(%rbp), %rdi
jne 0xcf39
movl -0x34(%rbp), %eax
cmpl %eax, -0x2c(%rbp)
movq -0x40(%rbp), %r13
je 0xcfa6
subl -0x30(%rbp), %r15d
cmpl $0x1, %r15d
adcl $0x0, %r15d
movq (%rbx), %rdi
addq %r14, %rdi
leaq 0x2080(%rip), %rsi      # 0xf01c
callq 0x33e0
decl %r15d
jne 0xcf8f
incl %r13d
movq (%rbx), %rax
movq 0x8(%rbx), %rcx
subq %rax, %rcx
sarq $0x5, %rcx
movq %r13, %r14
cmpq %r13, %rcx
movl -0x38(%rbp), %ecx
ja 0xce80
movq %rbx, %rax
addq $0x58, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %r14
movq -0x80(%rbp), %rdi
cmpq %r13, %rdi
je 0xcffc
callq 0x3260
jmp 0xcffc
jmp 0xcff1
jmp 0xcff1
jmp 0xcff1
movq %rax, %r14
movq %rbx, %rdi
callq 0x7c92
movq %r14, %rdi
callq 0x3390