// File: chrischute[P]are-you-the-one/src/ayto.cpp
// Function: getPrintableNames(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, std::map<int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::less<int>, std::allocator<std::pair<int const, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>>> const*, std::map<char, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::less<char>, std::allocator<std::pair<char const, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>>> const*)
string getPrintableNames(const PerfectMatching& p,
                         const map<int, string>* femaleNames,
                         const map<char, string>* maleNames) {
    stringstream printableNamesBuilder;

    int i = 0;
    for (PerfectMatching::const_iterator it = p.begin(); it != p.end(); it++) {
        printableNamesBuilder << "    " <<  femaleNames->at(i++)
                              << " + " << maleNames->at(*it);
        if (it != p.end() - 1)
            printableNamesBuilder << endl;
    }

    return printableNamesBuilder.str();
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x230, %rsp            # imm = 0x230
movq %rdi, -0x1f8(%rbp)
movq %rdi, %rax
movq %rax, -0x1f0(%rbp)
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movq %rcx, -0x20(%rbp)
leaq -0x1a8(%rbp), %rdi
callq 0x31f0
movl $0x0, -0x1ac(%rbp)
movq -0x10(%rbp), %rdi
callq 0x32b0
movq %rax, -0x1b8(%rbp)
movq -0x10(%rbp), %rdi
callq 0x3500
movq %rax, -0x1c0(%rbp)
leaq -0x1b8(%rbp), %rdi
leaq -0x1c0(%rbp), %rsi
callq 0x7980
testb $0x1, %al
jne 0x68ce
jmp 0x6a29
leaq -0x198(%rbp), %rdi
leaq 0xd95e(%rip), %rsi      # 0x1423a
callq 0x32e0
movq %rax, -0x200(%rbp)
jmp 0x68ea
movq -0x18(%rbp), %rdi
movl -0x1ac(%rbp), %eax
movl %eax, %ecx
incl %ecx
movl %ecx, -0x1ac(%rbp)
movl %eax, -0x1d0(%rbp)
leaq -0x1d0(%rbp), %rsi
callq 0x8530
movq %rax, -0x208(%rbp)
jmp 0x6919
movq -0x208(%rbp), %rsi
movq -0x200(%rbp), %rdi
callq 0x3280
movq %rax, -0x210(%rbp)
jmp 0x6935
movq -0x210(%rbp), %rdi
leaq 0xd8fc(%rip), %rsi      # 0x1423f
callq 0x32e0
movq %rax, -0x218(%rbp)
jmp 0x6951
movq -0x20(%rbp), %rax
movq %rax, -0x228(%rbp)
leaq -0x1b8(%rbp), %rdi
callq 0x7aa0
movq -0x228(%rbp), %rdi
movq %rax, %rsi
callq 0x85d0
movq %rax, -0x220(%rbp)
jmp 0x6980
movq -0x220(%rbp), %rsi
movq -0x218(%rbp), %rdi
callq 0x3280
jmp 0x6995
movq -0x10(%rbp), %rdi
callq 0x3500
movq %rax, -0x1e0(%rbp)
leaq -0x1e0(%rbp), %rdi
movl $0x1, %esi
callq 0x8670
movq %rax, -0x1d8(%rbp)
leaq -0x1b8(%rbp), %rdi
leaq -0x1d8(%rbp), %rsi
callq 0x7980
testb $0x1, %al
jne 0x69d6
jmp 0x6a0d
leaq -0x198(%rbp), %rdi
movq 0x175cc(%rip), %rsi     # 0x1dfb0
callq 0x3320
jmp 0x69eb
jmp 0x6a0d
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x1c8(%rbp)
movl %eax, -0x1cc(%rbp)
leaq -0x1a8(%rbp), %rdi
callq 0x3210
jmp 0x6a5a
jmp 0x6a0f
leaq -0x1b8(%rbp), %rdi
xorl %esi, %esi
callq 0x86b0
movq %rax, -0x1e8(%rbp)
jmp 0x68a2
movq -0x1f8(%rbp), %rdi
leaq -0x1a8(%rbp), %rsi
callq 0x32d0
jmp 0x6a3e
leaq -0x1a8(%rbp), %rdi
callq 0x3210
movq -0x1f0(%rbp), %rax
addq $0x230, %rsp            # imm = 0x230
popq %rbp
retq
movq -0x1c8(%rbp), %rdi
callq 0x34d0
nopw %cs:(%rax,%rax)